Hi,

I have an MPEG elementary video stream and audio stream in separate files, 
that I would like to transcode to DVD format. The video is already in a 
suitable resolution and refresh rate etc. for DVD, although its aspect ratio 
flag is incorrectly set as 4:3 instead of 16:9. I want to transcode the audio 
to AC3 and add it to the video stream, which should be passed through.

My reading of the manpage suggests that the raw export module and -P 1 flag 
should accomplish this, however when I try this, I get strange errors about 
AVI files:

$ transcode -i program.mpv -p program.mpa --export_prof dvd-pal -P 1 -y 
raw,ac3 -N 0x2000 -E 48000 -b 192 --import_asr 3 --export_asr 3 -o 
program.mpg -q 3
transcode v1.0.2 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg
[tcprobe] MPEG elementary stream (ES)
[tcprobe] MP2 stream
(mpg123.c) channels=2, samplerate=32000 Hz, bitrate=192 kbps, (fsize=1152)
[transcode] (probe) suggested AV correction -D 0 (0 ms) | AV 0 ms | 0 ms
(probe.c) V magic=0xf3, A magic=0xfffd, V codec=0x1000000, A codec=0x50
(probe.c) V magic=, A magic=MP2, V codec=MPEG  , A codec=MPEG layer-2
[transcode] auto-probing source program.mpv (ok)
[transcode] V: import format    | MPEG    (V=mpeg2|A=mp3)
[transcode] V: pass-through     | yes
[transcode] V: import frame     | 720x576  1.25:1  encoded @ 16:9
XXX: zoom=no pre_clip=no
[transcode] V: bits/pixel       | 0.174
[transcode] V: decoding fps,frc | 25.000,3
[transcode] A: import format    | 0x50    MPEG layer-2 [32000,16,2]  192 kbps
[transcode] A: export format    | 0x2000  AC3          [48000,16,2]  192 kbps
[transcode] V: encoding fps,frc | 25.000,3
[transcode] A: bytes per frame  | 5120 (5120.000000)
[transcode] A: adjustment       | [EMAIL PROTECTED]
[transcode] V: IA32/AMD64 accel | sse2 (sse2 sse mmxext mmx asm C)
tc_memcpy: using sse for memcpy
[transcode] encoder delay = decode=10000 encode=10000 usec
[transcode] V: video buffer     | 50 @ 720x576
[transcode] allocating 50 framebuffer (static)
loading audio import module /usr/lib/transcode/import_mp3.so
loading video import module /usr/lib/transcode/import_mpeg2.so
[import_mp3.so] v0.1.4 (2003-08-04) (audio) MPEG
Audio capability flag 0x1 | 0x1
[import_mpeg2.so] v0.4.0 (2003-10-02) (video) MPEG2
Video capability flag 0x2a | 0x80
loading audio export module /usr/lib/transcode/export_ac3.so
loading video export module /usr/lib/transcode/export_raw.so
[export_ac3.so] v0.1 (2003-02-26) (video) null | (audio) ac3
(encoder.c) audio capability flag 0x1 | 0x1
[export_raw.so] v0.3.12 (2003-08-04) (video) * | (audio) MPEG/AC3/PCM
(encoder.c) video capability flag 0x33f | 0x80
[transcode] starting 1 frame processing thread(s)
[transcode] starting 1 frame processing thread(s)
[import_mp3.so] MP3->PCM
[import_mp3.so] tcextract -a 0 -i "program.mpa" -x mp2 -d 3 | tcdecode -x 
mp2 -d 3 -z 0
[import_mpeg2.so] tcextract -x mpeg2 -i "program.mpv" -d 3
tc_memcpy: using sse for memcpy
[tcextract] (pid=31244) MP2 stream
[tcextract] (pid=31244) starting, doing mp2
found sync frame at offset 0 (0)
tc_memcpy: using sse for memcpy
[tcextract] (pid=31243) MPEG elementary stream (ES)
[tcextract] (pid=31243) starting, doing mpeg2
(decode_mp3.c) channels=2, samplerate=32000 Hz, bitrate=192 kbps, (1152)
[export_raw.so] max AVI-file size limit = 4278188031 bytes
avi open error in export_raw: avilib - Not an AVI file
video export module error
[transcode] warning : (encoder.c) video export module error: open failed
[transcode] critical: failed to open output
(decoder.c) audio thread id=-1421644880
(decoder.c) video thread id=-1430037584
Completed a sequence + I frame from 0 -> 11992

What am I doing wrong? Why is export_raw trying to open an AVI file? I am 
using the packages from http://www.debian-multimedia.org on a debian testing 
x86 Linux box.

Thanks,
Andrew

Reply via email to