Hi folks,

I have an MPEG2-PS file that I am trying to transcode to xvid4, and I am trying to pull in an a52 stream into it.

tcprobe on the audio file:
[tcprobe] AC3 stream
[tcprobe] summary for scrubstest-1.ac3, (*) = not default, 0 = not detected
audio track: -a 0 [0] -e 48000,16,3 [48000,16,2] -n 0x2000 [0x2000] (*)
                  bitrate=384 kbps


I give a first pass just fine with:
nice -n 15 transcode --accel sse2 -i ./scrubstest.mpg -y xvid4,null -o /dev/null --threads 2 -R 1

But I'm now trying to figure out how to get this audio in for the second pass:


nice -n 15 transcode --accel sse2 -i scrubstest.mpg -p scrubstest-1.ac3 -N 0x2000 -y xvid4,tcaud -o scrubstest.xvid4.avi --threads 2 -R 2

transcode v1.1.5 (C) 2001-2003 Thomas Oestreich, 2003-2009 Transcode Team libdvdread: Using libdvdcss version 1.2.10 for DVD access libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed libdvdread: Can't open file VIDEO_TS.IFO. libdvdread: Using libdvdcss version 1.2.10 for DVD access libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
[transcode] V: auto-probing     | scrubstest.mpg (OK)
[transcode] V: import format    | MPEG 2 program stream in  (module=vob)
[transcode] A: auto-probing     | scrubstest-1.ac3 (OK)
[transcode] A: import format    | AC3 in AC3 (module=ac3)
[transcode] V: AV demux/sync    | (1) sync AV at initial MPEG sequence
[transcode] V: import frame     | 1920x1088  1.76:1  encoded @ 16:9
[transcode] V: bits/pixel       | 0.029 (low)
[transcode] V: decoding fps,frc | 29.970,4
[transcode] V: multi-pass | (mode=2) reading data (pass2) from divx4.log
[transcode] V: video format     | YUV420 (4:2:0) aka I420
[transcode] A: import format | 0x2000 AC3 [48000,16,3] 384 kbps
[transcode] A: downmix          | 3 channels -> 2 channels
[transcode] A: export format | 0x2000 AC3 [48000,16,2] 128 kbps
[transcode] V: export format    | unknown (module dependant)
[transcode] V: encoding fps,frc | 29.970,4
[transcode] A: bytes per frame  | 6408 (6406.400000)
[transcode] A: adjustment       | -1...@1000
[transcode] V: IA32/AMD64 accel | sse2
[transcode] V: video buffer     | 10 @ 1920x1088 [0x2]
[transcode] A: audio buffer     | 10 @ 48000x2x16
[import_ac3.so] v0.3.2 (2002-02-15) (audio) AC3
[import_vob.so] v0.6.1 (2006-05-02) (video) MPEG-2 | (audio) MPEG/AC3/PCM | (subtitle)
[export_tcaud.so] v0.9.0 (2007-07-03) (audio) MPEG/AC3/PCM
[export_xvid4.so] v0.0.6 (2007-08-11) (video) XviD 1.0.x series (aka API 4.0) | (audio) MPEG/AC3/PCM
[import_ac3.so] AC3->PCM
[import_ac3.so] tcextract -a 0 -i "scrubstest-1.ac3" -x ac3 -d 0 | tcdecode -x ac3 -d 0 -s 1.000000,1.000000,1.000000 -A 0 [import_vob.so] tccat -i "scrubstest.mpg" -t vob -d 0 -S 0 | tcdemux -s 0x80 -x mpeg2 -S 0 -M 1 -d 0 | tcextract -t vob -a 0 -x mpeg2 -d 0 | tcdecode -x mpeg2 -d 0 -y yuv420p
[decode_mpeg2.c] libmpeg2 acceleration: 3dnow
No accelerated IMDCT transform found
[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

Now I'm not surprised that it chokes on this. So I try a different export module:

nice -n 15 transcode --accel sse2 -i scrubstest.mpg -p scrubstest-1.ac3 -P 2 -N 0x2000 -y xvid4 -o scrubstest.xvid4.avi --threads 2 -R 2
transcode v1.1.5 (C) 2001-2003 Thomas Oestreich, 2003-2009 Transcode Team
libdvdread: Using libdvdcss version 1.2.10 for DVD access
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdread: Using libdvdcss version 1.2.10 for DVD access
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
[transcode] V: auto-probing     | scrubstest.mpg (OK)
[transcode] V: import format    | MPEG 2 program stream in  (module=vob)
[transcode] A: auto-probing     | scrubstest-1.ac3 (OK)
[transcode] A: import format    | AC3 in AC3 (module=ac3)
[transcode] V: AV demux/sync    | (1) sync AV at initial MPEG sequence
[transcode] V: import frame     | 1920x1088  1.76:1  encoded @ 16:9
[transcode] V: bits/pixel       | 0.029 (low)
[transcode] V: decoding fps,frc | 29.970,4
[transcode] V: multi-pass | (mode=2) reading data (pass2) from divx4.log
[transcode] V: video format     | YUV420 (4:2:0) aka I420
[transcode] A: import format | 0x2000 AC3 [48000,16,3] 384 kbps [transcode] A: export format | 0x1 PCM [48000,16,3] 384 kbps
[transcode] V: export format    | unknown (module dependant)
[transcode] V: encoding fps,frc | 29.970,4
[transcode] A: bytes per frame  | 9608 (9609.600000)
[transcode] A: adjustment       | 1...@1000
[transcode] A: pass-through     | yes
[transcode] V: IA32/AMD64 accel | sse2
[transcode] V: video buffer     | 50 @ 1920x1088 [0x2]
[transcode] A: audio buffer     | 50 @ 48000x3x16
[import_ac3.so] v0.3.2 (2002-02-15) (audio) AC3
[transcode] critical: audio format not supported by import module
[transcode] critical: failed to init import modules
[transcode] critical: plug-in initialization failed

Ok, so it's autodetecting that the import format for the audio as ac3. But why, if I've set -N 0x2000, is it wanting to export as -N 0x1 (PCM) instead? And why is it complaing about the audio format not being supported by the import module? I do have this built against a52dec 0.7.4.

Any help would be appreciated.   Thanks!

-Mishehu

Reply via email to