Some year ago (when transcode stable was 0.6-something), I had a
vobs-to-xvid-script with everything tuned to suit my DVD-player (which
plays Xvid-files on data-dvd). After a HD-crash I have reinstalled
transcode (from cvs), and am trying to produce the same nice
xvid-files that were produced before the crash. It works mostly well
(isn't it way faster now?!), but there is one big obstacle left which
I don't know how to deal with. I have tried with both xvid2 and xvid4,
with the same results. The avi is vertically stretched.

The commandlines are (they used to work with the old transcode stable):

transcode  -c 0-00:01:00
                  -J extsub=2:0:0:0:1:255:0:1:1,normalize  \
                  --export_prof dvd \
                 -M 3  -R1 -i vobdir/ -x vob,null \
                  -N 0x50 -b 128,0,0  \
                  -o /dev/null \
                  -y xvid2,null  \
                  -w 1400,250,100

transcode  -c 0-00:01:00
                  -J extsub=2:0:0:0:1:255:0:1:1,normalize  \
                 --export_prof dvd \
                 -M 3  -R2 -i vobdir/ -x vob,vob \
                 -N 0x50 -b 128,0,0  \
                 -o preview.avi \
                 -y xvid2  \
                 -w 1400,250,100

The produced avifile becomes vertically stretched. Comparing a new,
streched file, and an old correct file, shows that there seems to be a
difference in import frame size: "720x576 [720x576] " has become
"720x768 [720x576] (*)". "--export_prof dvd" seems to be where the
difference is; if I remove it, the produced avi looks better (but
still a little stretched, maybe due to some aspect aspect):

tcprobe -i preview.avi
[tcprobe] RIFF data, AVI video
[avilib] V: 25.000 fps, codec=XVID, frames=1500, width=720, height=768
[avilib] A: 48000 Hz, format=0x50, bits=16, channels=2, bitrate=128 kbps,
[avilib]    2500 chunks, 960000 bytes, CBR
[tcprobe] summary for preview.avi, (*) = not default, 0 = not detected
import frame size: -g 720x768 [720x576] (*)
       frame rate: -f 25.000 [25.000] frc=3
      audio track: -a 0 [0] -e 48000,16,2 [48000,16,2] -n 0x50 [0x2000] (*)
                   bitrate=128 kbps
           length: 1500 frames, frame_time=40 msec, duration=0:01:00.000

Here is tcprobe for an old file, produced by the same configuration
with the old transcode:

[tcprobe] RIFF data, AVI video
[avilib] V: 25.000 fps, codec=XVID, frames=173971, width=720, height=576
[avilib] A: 48000 Hz, format=0x50, bits=16, channels=2, bitrate=128 kbps,
[avilib]    289951 chunks, 111341184 bytes, CBR
[tcprobe] summary for old_correct.avi, (*) = not default, 0 = not detected
import frame size: -g 720x576 [720x576]
       frame rate: -f 25.000 [25.000] frc=3
      audio track: -a 0 [0] -e 48000,16,2 [48000,16,2] -n 0x50 [0x2000] (*)
                   bitrate=128 kbps
           length: 173971 frames, frame_time=40 msec, duration=1:55:58.840



Here is the transcode output for the generation of preview.avi.
Notable are the lines:
...
XXX: zoom=no pre_clip=yes
[transcode] V: pre clip frame   | 720x768 (-96,0,-96,0)
...



transcode  -c 0-00:01:00  -J extsub=2:0:0:0:1:255:0:1:1,normalize
--export_prof dvd -M 3  -R1 -i vobs/ -x vob,null  -N 0x50 -b 128,0,0
-o /dev/null -y xvid2,null -w 1400,250,100
transcode v1.0.2 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg
libdvdread: Using libdvdcss version 1.2.5 for DVD access
libdvdread: Couldn't find device name.
libdvdread: Can't open file VIDEO_TS.IFO.
[transcode] (probe) suggested AV correction -D 2 (80 ms) | AV 80 ms | 0 ms
[transcode] auto-probing source vobs/ [ok]
[transcode] V: import format    | MPEG-2  (V=vob|A=null)
[transcode] V: AV demux/sync    | (3) sync AV at initial PTS
[transcode] V: import frame     | 720x576  1.25:1  encoded @ 16:9
XXX: zoom=no pre_clip=yes
[transcode] V: pre clip frame   | 720x768 (-96,0,-96,0)
[transcode] V: bits/pixel       | 0.101 (low)
[transcode] V: decoding fps,frc | 25.000,3
[transcode] V: multi-pass       | (mode=1) writing data (pass 1) to divx4.log
[transcode] V: Y'CbCr           | YV12/I420
[transcode] A: import format    | 0x2000  AC3          [48000,16,2]  384 kbps
[transcode] A: export           | disabled
[transcode] V: encoding fps,frc | 25.000,3
[transcode] A: bytes per frame  | 7680 (7680.000000)
[transcode] A: adjustment       | [EMAIL PROTECTED]
[transcode] A: AV shift         | 80 ms [ 2 (A) | 0 ms ]
[transcode] V: IA32/AMD64 accel | sse2 (sse2 sse mmxext mmx asm C)
tc_memcpy: using sse for memcpy
[transcode] V: video buffer     | 10 @ 720x768
[import_null.so] v0.2.0 (2002-01-19) (video) null | (audio) null
[import_vob.so] v0.6.0 (2003-10-02) (video) MPEG-2 | (audio)
MPEG/AC3/PCM | (subtitle)
[filter_extsub.so] 0.3.5 (2003-10-15) DVD subtitle overlay plugin
[filter_extsub.so] options=2:0:0:0:1:255:0:1:1
[filter_extsub.so] extracting subtitle 0x22
[import_vob.so] tccat -i "vobs/" -t vob -d 0 -S 0 | tcdemux -a 2 -x
ps1 -S 0 -M 3 -d 0 | tcextract -t vob -a 0x22 -x ps1 -d 0
(subproc.c) extracting subtitle stream 2
[filter_normalize.so] v0.1.1 (2002-06-18) Volume normalizer
tc_memcpy: using sse for memcpy
[export_null.so] v0.1.2 (2001-08-17) (video) null | (audio) null
[export_xvid2.so] v0.3.10 (2003-07-30) (video) XviD 0.9.x (aka API 2.1
series)  | (audio) MPEG/AC3/PCM
[import_vob.so] tccat -i "vobs/" -t vob -d 0 -S 0 | tcdemux -s 0x80 -x
mpeg2 -S 0 -M 3 -d 0 | tcextract -t vob -a 0 -x mpeg2 -d 0 | tcdecode
-x mpeg2 -d 0 -y yv12
tc_memcpy: using sse for memcpy
[decode_mpeg2.c] libmpeg2 0.4.0b loop decoder
[decode_mpeg2.c] libmpeg2 acceleration: mmxext
No ./xvid2.cfg nor ~/.transcode/xvid2.cfg file found, falling back to
hardcoded defaults
encoding frame [1499],  20.97 fps, 100.0%, ETA: 0:00:00, ( 0| 0| 9)
clean up | frame threads | unload modules | cancel signal | internal
threads | done
[transcode] encoded 1500 frames (0 dropped, 0 cloned), clip length  60.00 s


transcode  -c 0-00:01:00  -J extsub=2:0:0:0:1:255:0:1:1,normalize
--export_prof dvd -M 3  -R2 -i vobs/ -x vob,vob   -N 0x50 -b 128,0,0
-o preview.avi -y xvid2 -w 1400,250,100
transcode v1.0.2 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg
libdvdread: Using libdvdcss version 1.2.5 for DVD access
libdvdread: Couldn't find device name.
libdvdread: Can't open file VIDEO_TS.IFO.
[transcode] (probe) suggested AV correction -D 2 (80 ms) | AV 80 ms | 0 ms
[transcode] auto-probing source vobs/ [ok]
[transcode] V: import format    | MPEG-2  (V=vob|A=vob)
[transcode] V: AV demux/sync    | (3) sync AV at initial PTS
[transcode] V: import frame     | 720x576  1.25:1  encoded @ 16:9
XXX: zoom=no pre_clip=yes
[transcode] V: pre clip frame   | 720x768 (-96,0,-96,0)
[transcode] V: bits/pixel       | 0.101 (low)
[transcode] V: decoding fps,frc | 25.000,3
[transcode] V: multi-pass       | (mode=2) reading data (pass2) from divx4.log
[transcode] V: Y'CbCr           | YV12/I420
[transcode] A: import format    | 0x2000  AC3          [48000,16,2]  384 kbps
[transcode] A: export format    | 0x50    MPEG layer-2 [48000,16,2]  128 kbps
[transcode] V: encoding fps,frc | 25.000,3
[transcode] A: bytes per frame  | 7680 (7680.000000)
[transcode] A: adjustment       | [EMAIL PROTECTED]
[transcode] A: AV shift         | 80 ms [ 2 (A) | 0 ms ]
[transcode] V: IA32/AMD64 accel | sse2 (sse2 sse mmxext mmx asm C)
tc_memcpy: using sse for memcpy
[transcode] V: video buffer     | 10 @ 720x768
[import_vob.so] v0.6.0 (2003-10-02) (video) MPEG-2 | (audio)
MPEG/AC3/PCM | (subtitle)
[filter_extsub.so] 0.3.5 (2003-10-15) DVD subtitle overlay plugin
[filter_extsub.so] options=2:0:0:0:1:255:0:1:1
[filter_extsub.so] extracting subtitle 0x22
[import_vob.so] tccat -i "vobs/" -t vob -d 0 -S 0 | tcdemux -a 2 -x
ps1 -S 0 -M 3 -d 0 | tcextract -t vob -a 0x22 -x ps1 -d 0
(subproc.c) extracting subtitle stream 2
[filter_normalize.so] v0.1.1 (2002-06-18) Volume normalizer
tc_memcpy: using sse for memcpy
[export_xvid2.so] v0.3.10 (2003-07-30) (video) XviD 0.9.x (aka API 2.1
series)  | (audio) MPEG/AC3/PCM
[import_vob.so] tccat -i "vobs/" -t vob -d 0 -S 0 | tcdemux -a 0 -x
ac3 -S 0 -M 3 -d 0 | tcextract -t vob -a 0 -x ac3 -d 0 | tcdecode -x
ac3 -d 0 -s 1.000000,1.000000,1.000000 -A 0
[import_vob.so] tccat -i "vobs/" -t vob -d 0 -S 0 | tcdemux -s 0x80 -x
mpeg2 -S 0 -M 3 -d 0 | tcextract -t vob -a 0 -x mpeg2 -d 0 | tcdecode
-x mpeg2 -d 0 -y yv12
tc_memcpy: using sse for memcpy
tc_memcpy: using sse for memcpy
[decode_mpeg2.c] libmpeg2 0.4.0b loop decoder
[decode_mpeg2.c] libmpeg2 acceleration: mmxext
No ./xvid2.cfg nor ~/.transcode/xvid2.cfg file found, falling back to
hardcoded defaults
encoding frame [1499],  20.30 fps, 100.0%, ETA: 0:00:00, ( 0| 0| 9)
clean up | frame threads | unload modules | cancel signal | internal
threads | done
[transcode] encoded 1500 frames (0 dropped, 0 cloned), clip length  60.00 s

Reply via email to