DVD ripping with cmd:dvdrip 

sizing 

From video: MPEG2 720x576 (aspect 2) 25.000 fps

1st clipping:  Top: 16 Bottom: 16 => size 720x544
Zoom:          W: 480 H:360
2nd clipping:  Top: -60 Bottom: -60

fast resize ok

Problem: slightly distorted — 720x540 => 480x360 is the perfect zoom.

recommended way 

/usr/share/doc/transcode-doc/html/mpeg.html

MPEG (PAL) (S)VCD (480x576)

# mjpeg-tools interface:
transcode [...] -V -y mpeg2enc,mp2enc -F 4 -Z 480x576 -E 44100 -b 128 -o test

Replace slow zoom "-Z 480x576" by transcode's fast resizing option "-B" for speed improvements. Example: reduce 720x576 to 480x576 with "-B 0,15,16".

mplex -f 4 -S 680 -o test.mpg test.m2v test.mpa

MPEG (NTSC) (S)VCD (480x480)

Replace "-Z 480x480" by transcode's fast resizing option "-B" for speed improvements. Example: reduce 720x480 to 480x480 with "-B 0,15,16". Multiplexing the files:

mplex -f 4 -S 680 -o test.mpg test.m2v test.mpa

transcode 

keyframe interval: 50
acodec=mp2:abitrate=224
nice:5

log 

transcode only 

Starting job (1): Transcoding video - title #1, single pass
Executing command: mkdir -m 0775 -p '/lfs/cache11/my-caches/dvdrip/ys/tmp' && cd /lfs/cache11/my-caches/dvdrip/ys/tmp && `which nice` -n 5 dr_exec transcode -H 10 -a 0 -x vob -i /lfs/cache11/my-caches/dvdrip/ys/vob/001 -w 1666,50 -F 5,'-B 261 -I 0 -S 10000  -g 6 -G 15' --export_asr 2 -b 224 -s 1.000 --a52_drc_off -f 25 -j 16,0,16,0 -Y -60,0,-60,0 -B 23,30,8 -y mpeg2enc,mp2enc -E 44100 -o /lfs/cache11/my-caches/dvdrip/ys/avi/001/ys-001 --print_status 20 && echo DVDRIP_SUCCESS

transcode + split 

Starting job (1): Transcoding video - title #1, single pass
Executing command: mkdir -m 0775 -p '/lfs/cache11/my-caches/dvdrip/ys/tmp' && cd /lfs/cache11/my-caches/dvdrip/ys/tmp && `which nice` -n 5 dr_exec transcode -H 10 -a 0 -x vob -i /lfs/cache11/my-caches/dvdrip/ys/vob/001 -w 1666,50 -F 5,'-B 261 -I 0 -S 793  -g 6 -G 15' --export_asr 2 -b 224 -s 1.000 --a52_drc_off -f 25 -j 16,0,16,0 -Y -60,0,-60,0 -B 23,30,8 -y mpeg2enc,mp2enc -E 44100 -o /lfs/cache11/my-caches/dvdrip/ys/avi/001/ys-001 --print_status 20 && echo DVDRIP_SUCCESS

Difference:

1st: -F 5,'-B 261 -I 0 -S 10000  -g 6 -G 15'
2nd: -F 5,'-B 261 -I 0 -S 793  -g 6 -G 15'

do it 

Note, the transcoded result is vertically-squeezed.

cd /lfs/cache13/movies/tmp

$ time nice -n 5 transcode -H 10 -a 0 -x vob -i /lfs/cache11/my-caches/dvdrip/ys/vob/001 -w 1666,50 -F 5,'-B 261 -I 0 -S 793  -g 6 -G 15' --export_asr 2 -b 224 -s 1.000 --a52_drc_off -f 25 -j 16,0,16,0 -Y -60,0,-60,0 -B 23,30,8 -y mpeg2enc,mp2enc -E 44100 -o ys-
[transcode] auto-probing source /lfs/cache11/my-caches/dvdrip/ys/vob/001 (ok)
[transcode] V: import format    | MPEG-2  (V=vob|A=vob)
[transcode] V: AV demux/sync    | (1) sync AV at initial MPEG sequence
[transcode] V: import frame     | 720x576  1.25:1  encoded @ 4:3
[transcode] V: clip frame (<-)  | 720x544
[transcode] V: new aspect ratio | 480x360  1.26:1 (-B)
[transcode] V: clip frame (->)  | 480x480
[transcode] V: bits/pixel       | 0.289
[transcode] V: decoding fps,frc | 25.000,0
[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 [44100,16,2]  224 kbps
[transcode] V: encoding fps,frc | 25.000,3
[transcode] A: bytes per frame  | 7680 (7680.000000)
[transcode] A: adjustment       | 0@1000
[transcode] A: rescale stream   | 1.000
[transcode] V: IA32 accel mode  | sse2 (sse2 sse 3dnowext 3dnow mmxext mmx asm C)
[import_vob.so] tccat -i "/lfs/cache11/my-caches/dvdrip/ys/vob/001" -t vob -d 0 -S 0 | tcdemux -a 0 -x ac3 -S 0 -M 1 -d 0 | tcextract -t vob -a 0 -x ac3 -d 0 | tcdecode -x ac3 -d 0 -s 1.000000,1.000000,1.000000 -A 1
[import_vob.so] tccat -i "/lfs/cache11/my-caches/dvdrip/ys/vob/001" -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 yv12

[export_mpeg2enc.so] cmd=mpeg2enc -v 0 -I 0 -q 3 -f 5 -4 2 -2 3 -b 1666 -F 3 -n p  -a 2 -V 230 -o "ys-.m2v" -B 261 -I 0 -S 793  -g 6 -G 15
[export_mp2enc.so] (44/4096) cmd=mp2enc -v 0 -r 44100 -b 224 -s -o "ys-.mpa"

encoding frames [000000-005681],  25.34 fps, EMT: 0:03:47, ( 0| 0| 9)

ref:ripping log, from dvd to cache 

11:58:30 Starting job (1): Ripping - title #1
11:58:30 Executing command: rm -f /lfs/cache11/my-caches/dvdrip/ys/vob/001/ys-???.vob && dr_exec tccat -t dvd -T 1,-1,1 -i /dev/dvd | dr_splitpipe -f /lfs/cache11/my-caches/dvdrip/ys/tmp/ys-001-nav.log 1024 /lfs/cache11/my-caches/dvdrip/ys/vob/001/ys vob  | tcextract -a 0 -x ac3 -t vob | tcdecode -x ac3 | tcscan -x pcm && echo DVDRIP_SUCCESS
12:00:24 Ripping - title #1: 10 percent done.
[...]
12:13:55 Ripping - title #1: 90 percent done.
12:15:32 Executing command: dr_exec tcprobe -H 25 -i /lfs/cache11/my-caches/dvdrip/ys/vob/001 && echo DVDRIP_SUCCESS
12:15:36 Program stream units calculated
12:15:36 Successfully finished job (1): Ripping - title #1

ref:sizing method 1 

From video:  MPEG2  720x576  (aspect 2)  25.000 fps
1st clipping:  Top: 18 Bottom: 18 => size 720x540
Zoom:          W: 480 H:360
2nd clipping:  Top: -60 Bottom: -60
Problem: fast resize nok. Err: 8 boundary