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

Johannes Feigl jaf at mplayerhq.hu
Fri May 31 23:44:42 CEST 2002


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

Modified Files:
	mencvcd 
Log Message:
v0.1.8, - new option -sync, by Jürgen Hammelmann <juergen.hammelmann at gmx.de>

Index: mencvcd
===================================================================
RCS file: /cvsroot/mplayer/main/TOOLS/mencvcd,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- mencvcd	17 May 2002 05:45:30 -0000	1.7
+++ mencvcd	31 May 2002 21:44:39 -0000	1.8
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# Version:          0.1.7
+# Version:          0.1.8
 #
 # Licence:          GPL
 #
@@ -41,6 +41,8 @@
 # 2002/05/15        v0.1.7
 #                     - bugfixes
 #                     - more help
+# 2002/05/26        v0.1.8
+#                     - new option "-sync"
 #
 ################################################################################
 #
@@ -78,6 +80,8 @@
    echo "-ratio <s>    output ratio size of frames, see yuvscaler (1)."
    echo "-size <X>x<Y> sets output size of frames."
    echo "-svcdout      encode to SVCD format [VCD default]."
+   echo "-sync <n>     set the presentation timestamp offset of video"
+   echo "              stream w.r.t. audio stream (video-audio) in mSec."
    echo "-vbr <n>      output video bitrate in kbs [VCD:1152, SVCD:2500]."
    echo "-vfr <n>      sets the frame-rate of the output-stream. Currently"
    echo "              only the standard MPEG rates are supported."
@@ -145,6 +149,7 @@
 imaget="-t vcd2"
 yuvin=""
 framerate=""
+sync=""
 
 while [ "$1"x != "x" ]; do
    case $1 in
@@ -210,6 +215,10 @@
       -svcdout)
         norm="SVCD"
 	;;
+      -sync)
+        sync="-O $2"
+	shift 1
+	;;
       -vbr)
         vbr=$2
         vbrset=1
@@ -281,7 +290,7 @@
    # multiplex streams
    [ -f $NAME.mpv -a -f $NAME.mpa ] || exit 1
    rm -f ${NAME}*.mpg
-   mplex $mplexnorm $NAME.mpv $NAME.mpa -o ${NAME}%d.mpg
+   mplex $mplexnorm $sync $NAME.mpv $NAME.mpa -o ${NAME}%d.mpg
 
    # create cd images
    for mpg in ${NAME}*.mpg; do 




More information about the MPlayer-cvslog mailing list