changeset 6008:c0b50929b2cd

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@gmx.de>
author jaf
date Tue, 07 May 2002 08:39:22 +0000
parents 908b25e41041
children bb1f3552f118
files TOOLS/mencvcd
diffstat 1 files changed, 12 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/TOOLS/mencvcd	Mon May 06 23:20:02 2002 +0000
+++ b/TOOLS/mencvcd	Tue May 07 08:39:22 2002 +0000
@@ -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) &