comparison TOOLS/mencvcd @ 10243:c3ff760a4660

10l
author faust3
date Tue, 03 Jun 2003 18:48:03 +0000
parents d96714e26280
children a5785a0b9ee1
comparison
equal deleted inserted replaced
10242:4e34d468f549 10243:c3ff760a4660
207 abrset=0 207 abrset=0
208 asr=44100 208 asr=44100
209 vbr=1152 209 vbr=1152
210 vbrset=0 210 vbrset=0
211 denoise="cat -" 211 denoise="cat -"
212 norm="VCD" 212 vnorm="VCD"
213 mplexnorm="-f $VCDMODE -m 1 -V -b 46" 213 mplexnorm="-f $VCDMODE -m 1 -V -b 46"
214 imaget="-t vcd2" 214 imaget="-t vcd2"
215 yuvin="" 215 yuvin=""
216 framerate="" 216 framerate=""
217 sync="" 217 sync=""
302 -size) 302 -size)
303 size=$2 303 size=$2
304 shift 1 304 shift 1
305 ;; 305 ;;
306 -svcdout) 306 -svcdout)
307 norm="SVCD" 307 vnorm="SVCD"
308 ;; 308 ;;
309 -sync) 309 -sync)
310 sync="-O $2" 310 sync="-O $2"
311 shift 1 311 shift 1
312 ;; 312 ;;
328 shift 1 328 shift 1
329 done 329 done
330 330
331 # some configs 331 # some configs
332 mpegnorm="-f $VCDMODE -b $vbr -B 260 -V 46" 332 mpegnorm="-f $VCDMODE -b $vbr -B 260 -V 46"
333 if [ "$norm" == "SVCD" ]; then 333 if [ "$vnorm" == "SVCD" ]; then
334 [ $vbrset -eq 0 ] && vbr=2500 334 [ $vbrset -eq 0 ] && vbr=2500
335 mplexnorm="-f $SVCDMODE -m 2 -V -b 230" 335 mplexnorm="-f $SVCDMODE -m 2 -V -b 230"
336 mpegnorm="-f $SVCDMODE -b $vbr -B 260 -V 230" 336 mpegnorm="-f $SVCDMODE -b $vbr -B 260 -V 230"
337 imaget="-t svcd" 337 imaget="-t svcd"
338 fi 338 fi
360 echo "$command" 360 echo "$command"
361 $command & 361 $command &
362 362
363 # mjpegtools 363 # mjpegtools
364 ($denoise < $VIDEO | \ 364 ($denoise < $VIDEO | \
365 yuvscaler -v 0 $wide -O $norm $size $yuvin | \ 365 yuvscaler -v 0 $wide -O $vnorm $size $yuvin | \
366 mpeg2enc -v 0 -s $mpegnorm $aratio -S $CDMAXSIZE -g 6 -G 15 -r 16 \ 366 mpeg2enc -v 0 -s $mpegnorm $aratio -S $CDMAXSIZE -g 6 -G 15 -r 16 \
367 $pd $framerate $yuvin -4 2 -2 1 -o $NAME.mpv) & 367 $pd $framerate $yuvin -4 2 -2 1 -o $NAME.mpv) &
368 368
369 # wait for finishing the subprocesses 369 # wait for finishing the subprocesses
370 wait 370 wait