From 68330a49a6c2f169dd91381a818382572d94a585 Mon Sep 17 00:00:00 2001 From: jaf Date: Tue, 7 May 2002 08:39:22 +0000 Subject: Sometimes yuvscaler can't determine the output size/norm of pal/secam/ntsc, so new option "-norm" is implemented for such source files! by Juergen Hammelmann git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6009 b3059339-0415-0410-9bf9-f77b7e298cf2 --- TOOLS/mencvcd | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'TOOLS') diff --git a/TOOLS/mencvcd b/TOOLS/mencvcd index 1209b33c7d..ee5e79e8f1 100755 --- a/TOOLS/mencvcd +++ b/TOOLS/mencvcd @@ -1,6 +1,6 @@ #!/bin/sh # -# Version: 0.1.4 +# Version: 0.1.5 # # Licence: GPL # @@ -32,6 +32,9 @@ # 2002/04/22 v0.1.4 # - bugfixes / changes # - more options +# 2002/05/06 v0.1.5 +# - new option "-norm" +# # ################################################################################ # @@ -67,6 +70,8 @@ function usage() { echo "-mp3 outputs audio in mp3 instead of mp2 format" echo "-mpg don't encode from source, multiplex/burn" echo " only the encoded mpg stream" + echo "-norm sets the output norm p,n,s (pal, ntsc, secam)," + echo " sometimes needed for yuvscaler!" echo "-ratio output ratio size of frames, see yuvscaler (1)" echo "-size sets output size of frames" echo "-svcdout encode to SVCD format [VCD default]" @@ -112,6 +117,7 @@ mplexnorm="-f $VCDMODE -m 1 -V -b 46" max=646 mpegnorm="-f $VCDMODE -b $vbr -B 260 -V 46" imaget="-t vcd2" +yuvout="" while [ "$1"x != "x" ]; do case $1 in @@ -151,6 +157,10 @@ while [ "$1"x != "x" ]; do -mpg) mkstream=0 ;; + -norm) + yuvout="-n $2" + shift 1 + ;; -denoise) denoise="yuvdenoise" ;; @@ -218,7 +228,7 @@ if [ $burnonly -eq 0 ]; then # mjpegtools ($denoise < $VIDEO | \ - yuvscaler -v 0 $wide -O $norm $size | \ + yuvscaler -v 0 $wide -O $norm $size $yuvout | \ mpeg2enc -v 0 -s $mpegnorm -S $max -g 6 -G 15 -r 16 \ -4 2 -2 1 -o $NAME.mpv) & -- cgit v1.2.3