Jürgen Hammelmann: I put a new option "-mpgonly" to the script, for those, who only want to

create an mpeg 1/2 file.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6509 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
atmos4 2002-06-22 23:49:50 +00:00
parent 1ecec2dc5b
commit ffea152c83
1 changed files with 11 additions and 1 deletions

View File

@ -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 <s> output ratio size of frames, see yuvscaler (1)."
echo "-size <X>x<Y> 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