Hi,
back on my Linux PC:
Francesco Romani wrote:
2. Much more important, the resulting audio file is not AC3 but MP3, I
guess I'm missing the magic option for tcaud, but I couldn't find any
documentation, not on the web, no manpage, and tcmodinfo neither.
Any clue on how to fix this?
Take a look at the -N and -A options, they may be helpful.
I added the -N 0x2000 option and get the following command now:
transcode \
-x v4l2=resync_margin=1:resync_interval=250,oss \
-i /dev/video0 \
-e 48000,16,2 \
-p /dev/dsp \
-c 0-00:00:10 \
-J smartyuv,pv \
-y ffmpeg,tcaud \
-N 0x2000 \
--export_prof dvd-pal \
--export_asr 2 \
-D0 \
-o tvrecord.m2v \
-m tvrecord.ac3
which result in the error (full output at the end of the email):
[transcode] PCM -> AC3
codec type or id mismatches
[transcode] warning: tc_audio_init_ffmpeg: could not open mpa codec !
[encoder.c] warning: audio export module error: init failed
[transcode] critical: failed to init encoder
Any idea? Googling for it, I found the following thread:
http://www.mail-archive.com/transcode-users@exit1.org/msg02085.html
but it seems John Moe never got an answer...
Both packages are Marillat's so I would expect that they're aligned:
$ apt-cache policy transcode ffmpeg
transcode:
Installed: 3:1.1.5-0.5
Candidate: 3:1.1.5-0.5
Version table:
*** 3:1.1.5-0.5 0
500 http://www.debian-multimedia.org squeeze/main Packages
100 /var/lib/dpkg/status
ffmpeg:
Installed: 5:0.5.1+svn20100321-0.0
Candidate: 5:0.5.1+svn20100321-0.0
Version table:
*** 5:0.5.1+svn20100321-0.0 0
500 http://www.debian-multimedia.org squeeze/main Packages
100 /var/lib/dpkg/status
4:0.5.1-3 0
500 http://ftp.de.debian.org squeeze/main Packages
Thanks, Eric
transcode v1.1.5 (C) 2001-2003 Thomas Oestreich, 2003-2009 Transcode
Team
[transcode] V: auto-probing | /dev/video0 (OK)
[transcode] V: import format | (null) in (module=v4l2)
[transcode] A: auto-probing | /dev/dsp (OK)
[transcode] A: import format | PCM in (module=oss)
[transcode] V: AV demux/sync | (1) sync AV at initial MPEG sequence
[transcode] V: import frame | 352x288 1.22:1 encoded @ UNKNOWN
[transcode] V: pre clip frame | 352x270 (8,0,10,0)
[transcode] V: zoom | 720x576 1.17:1 (Lanczos3)
[transcode] V: bits/pixel | 0.174
[transcode] V: decoding fps,frc | 25.000,3
[transcode] V: video format | YUV420 (4:2:0) aka I420
[transcode] A: import format | 0x1 PCM [48000,16,2]
[transcode] A: export format | 0x2000 AC3 [48000,16,2] 128
kbps
[transcode] V: export format | unknown (module dependant)
[transcode] V: encoding fps,frc | 25.000,3
[transcode] A: bytes per frame | 7680 (7680.000000)
[transcode] A: adjustment | 0...@1000
[transcode] V: IA32/AMD64 accel | sse3 sse2 sse mmx cmove asm
[transcode] V: video buffer | 10 @ 720x576 [0x2]
[transcode] A: audio buffer | 10 @ 48000x2x16
[import_oss.so] v0.0.3 (2007-11-18) (audio) pcm
[import_v4l2.so] v1.6.2 (2008-10-25) (video) v4l2 | (audio) pcm
[filter_smartyuv.so] (MMX) 0.1.6 (2007-05-31) Motion-adaptive
deinterlacing
[filter_pv.so] v0.2.3 (2004-06-01) xv only preview plugin
[filter_pv.so] preview window 720x576
[pv.c] Xv: Intel(R) Textured Video: ports 86 - 101
[pv.c] Xv: grabbed port 86
[pv.c] Using Xv for display
[export_tcaud.so] v0.9.0 (2007-07-03) (audio) MPEG/AC3/PCM
[export_ffmpeg.so] v0.3.18 (2008-11-29) (video) Lavc52.58.0 | (audio)
MPEG/AC3/PCM
[import_v4l2.so] warning: driver does not support setting parameters
(ioctl(VIDIOC_S_PARM) returns "Invalid argument")
[export_ffmpeg.so] Using FFMPEG codec 'mpeg2video' (FourCC 'mpg2', MPEG2
compliant video).
[export_ffmpeg.so] Selected dvd profile, pal/secam video type for video
[export_ffmpeg.so] Set interlacing to top-first
[export_ffmpeg.so] Set frame rate to 25
[export_ffmpeg.so] Set video bitrate to 5000
[export_ffmpeg.so] Set GOP size to 15
[export_ffmpeg.so] warning: Error opening configuration file
./ffmpeg.cfg: No such file or directory
[export_ffmpeg.so] Starting 1 thread(s)
[export_ffmpeg.so] Display aspect ratio calculated as 1.333333
[export_ffmpeg.so] Sample aspect ratio calculated as 1.066667
[mpeg2video @ 0x96fc3f0]removing common factors from framerate
[transcode] PCM -> AC3
codec type or id mismatches
[transcode] warning: tc_audio_init_ffmpeg: could not open mpa codec !
[encoder.c] warning: audio export module error: init failed
[transcode] critical: failed to init encoder