From ffea152c83cfc74831c86bc0c639c8370ed9ca71 Mon Sep 17 00:00:00 2001 From: atmos4 Date: Sat, 22 Jun 2002 23:49:50 +0000 Subject: =?UTF-8?q?J=C3=BCrgen=20Hammelmann:=20I=20put=20a=20new=20option?= =?UTF-8?q?=20"-mpgonly"=20to=20the=20script,=20for=20those,=20who=20only?= =?UTF-8?q?=20want=20to=20create=20an=20mpeg=201/2=20file.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6509 b3059339-0415-0410-9bf9-f77b7e298cf2 --- TOOLS/mencvcd | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'TOOLS/mencvcd') diff --git a/TOOLS/mencvcd b/TOOLS/mencvcd index d4bb7f91f1..1237d19003 100755 --- a/TOOLS/mencvcd +++ b/TOOLS/mencvcd @@ -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 @@ function usage() { 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 @@ blank=0 burn=1 burnonly=0 mp3=0 +mpgonly=0 mkstream=1 abr=224 abrset=0 @@ -193,6 +197,9 @@ while [ "$1"x != "x" ]; do -mpg) mkstream=0 ;; + -mpgonly) + mpgonly=1 + ;; -vnorm) yuvin="-n $2" shift 1 @@ -292,6 +299,9 @@ if [ $burnonly -eq 0 ]; then 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 -- cgit v1.2.3