Mercurial > mplayer.hg
changeset 6508:3dcf7fe14bd3
J¸«ärgen Hammelmann: I put a new option "-mpgonly" to the script, for those, who only want to
create an mpeg 1/2 file.
author | atmos4 |
---|---|
date | Sat, 22 Jun 2002 23:49:50 +0000 |
parents | 1704aa0247e8 |
children | 762d3cf8da36 |
files | TOOLS/mencvcd |
diffstat | 1 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 <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 @@ -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