[Mplayer-cvslog] CVS: main/TOOLS mencvcd,1.8,1.9

Atmosfear atmos4 at mplayerhq.hu
Sun Jun 23 01:49:53 CEST 2002


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

Modified Files:
	mencvcd 
Log Message:
Jürgen Hammelmann: I put a new option "-mpgonly" to the script, for those, who only want to 
create an mpeg 1/2 file.



Index: mencvcd
===================================================================
RCS file: /cvsroot/mplayer/main/TOOLS/mencvcd,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- mencvcd	31 May 2002 21:44:39 -0000	1.8
+++ mencvcd	22 Jun 2002 23:49:50 -0000	1.9
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# Version:          0.1.8
+# Version:          0.1.9
 #
 # Licence:          GPL
 #
@@ -43,6 +43,8 @@
 #                     - more help
 # 2002/05/26        v0.1.8
 #                     - new option "-sync"
+# 2002/06/19        v0.1.9
+#                     - new option "-mpgonly"
 #
 ################################################################################
 #
@@ -76,6 +78,7 @@
    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 "-mpgonly      do only encoding to mpeg 1/2 format."
    echo "-noburn       disables burning."
    echo "-ratio <s>    output ratio size of frames, see yuvscaler (1)."
    echo "-size <X>x<Y> sets output size of frames."
@@ -135,6 +138,7 @@
 burn=1
 burnonly=0
 mp3=0
+mpgonly=0
 mkstream=1
 abr=224
 abrset=0
@@ -193,6 +197,9 @@
       -mpg)
       	mkstream=0
 	;;
+      -mpgonly)
+        mpgonly=1
+	;;
       -vnorm)
         yuvin="-n $2"
 	shift 1
@@ -291,6 +298,9 @@
    [ -f $NAME.mpv -a -f $NAME.mpa ] || exit 1
    rm -f ${NAME}*.mpg
    mplex $mplexnorm $sync $NAME.mpv $NAME.mpa -o ${NAME}%d.mpg
+
+   # should i create only the mpeg file?
+   [ $mpgonly -eq 1 ] && exit 0
 
    # create cd images
    for mpg in ${NAME}*.mpg; do 




More information about the MPlayer-cvslog mailing list