# HG changeset patch # User atmos4 # Date 1024789790 0 # Node ID 3dcf7fe14bd39703493712a42067e8f7b04db9c2 # Parent 1704aa0247e898b8e495fe4f3e44fbef6c33d13f J¸«ärgen Hammelmann: I put a new option "-mpgonly" to the script, for those, who only want to create an mpeg 1/2 file. diff -r 1704aa0247e8 -r 3dcf7fe14bd3 TOOLS/mencvcd --- a/TOOLS/mencvcd Sat Jun 22 23:11:34 2002 +0000 +++ b/TOOLS/mencvcd Sat Jun 22 23:49:50 2002 +0000 @@ -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 output ratio size of frames, see yuvscaler (1)." echo "-size x 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 @@ -292,6 +299,9 @@ 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 [ -f $mpg ] || exit 1