[Mplayer-cvslog] CVS: main/TOOLS mencvcd,1.4,1.5

Johannes Feigl jaf at mplayerhq.hu
Tue May 7 10:39:40 CEST 2002


Update of /cvsroot/mplayer/main/TOOLS
In directory mail:/var/tmp.root/cvs-serv7589

Modified Files:
	mencvcd 
Log Message:
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 <juergen.hammelmann at gmx.de>




Index: mencvcd
===================================================================
RCS file: /cvsroot/mplayer/main/TOOLS/mencvcd,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- mencvcd	22 Apr 2002 09:42:34 -0000	1.4
+++ mencvcd	7 May 2002 08:39:22 -0000	1.5
@@ -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 @@
    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 <p|n|s> sets the output norm p,n,s (pal, ntsc, secam),"
+   echo "              sometimes needed for yuvscaler!"
    echo "-ratio <s>    output ratio size of frames, see yuvscaler (1)"
    echo "-size  <XxY>  sets output size of frames"
    echo "-svcdout      encode to SVCD format [VCD default]"
@@ -112,6 +117,7 @@
 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 @@
       -mpg)
       	mkstream=0
 	;;
+      -norm)
+        yuvout="-n $2"
+	shift 1
+	;;
       -denoise)
         denoise="yuvdenoise"
         ;;
@@ -218,7 +228,7 @@
 
       # 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) &
    




More information about the MPlayer-cvslog mailing list