[MPlayer-dev-eng] [PATCH] mencvcd 0.1.10: checking now for the needed tools and bug fixes.
Johannes Feigl
jaf.corporation at gmx.at
Mon Sep 23 12:56:05 CEST 2002
sorry, i forgot to tell you, but i commited some days ago.
mfg johannes
Am Sam, 2002-09-21 um 15.17 schrieb Juergen Hammelmann:
>
> Hi all,
>
> I made now a update to the mencvcd script, it is now checking the needed
> commands and give error/warning messages. Some big fixes.
>
> Please take the patch file at the bottom and put the changes to the source
> code.
>
> Ciao, Jürgen Hammelmann
> --
> I wonder if I ought to tell them about my PREVIOUS LIFE as a COMPLETE
> STRANGER?
>
> system: 3:13pm up 9 days, 19:33, 1 user, load average: 1.31, 0.60, 0.32
> --
> email: juergen.hammelmann at gmx.de | Dipl.-Inf. Juergen Hammelmann,
> mobile: +49-7034-259041, +49-179-2178869 | Bruehlstr. 6,
> home: +49-7034-61578, fax: +49-7034-652189 | D-71157 Hildrizhausen,
> www: http://hammelmann.gmxhome.de | Germany
> ----
>
> Index: TOOLS/mencvcd
> ===================================================================
> RCS file: /cvsroot/mplayer/main/TOOLS/mencvcd,v
> retrieving revision 1.9
> diff -a -u -r1.9 mencvcd
> --- TOOLS/mencvcd 22 Jun 2002 23:49:50 -0000 1.9
> +++ TOOLS/mencvcd 21 Sep 2002 13:32:56 -0000
> @@ -1,10 +1,10 @@
> #!/bin/sh
> #
> -# Version: 0.1.9
> +# Version: 0.1.10
> #
> # Licence: GPL
> #
> -# 2002/04/14 Jürgen Hammelmann <juergen.hammelmann at gmx.de>
> +# 2002/09/21 Jürgen Hammelmann <juergen.hammelmann at gmx.de>
> #
> # Script: MPlayer Sources (DVD) to (S)VCD ripping and burning
> #
> @@ -14,6 +14,19 @@
> # cdrdao
> # lame
> #
> +
> +for exe in mplayer mpeg2enc mp2enc mplex yuvscaler ; do
> + if [ -z "`which $exe`" ]; then
> + echo "ERROR: $exe must be in your path $PATH!"
> + exit 1
> + fi
> +done
> +for exe in vcdimager lame cdrdao yuvdenoise ; do
> + if [ -z "`which $exe`" ]; then
> + echo "WARNING: $exe is not found in your path $PATH!"
> + fi
> +done
> +
> ################################################################################
> #
> # 2002/04/11 v0.1.0: first version
> @@ -45,6 +58,10 @@
> # - new option "-sync"
> # 2002/06/19 v0.1.9
> # - new option "-mpgonly"
> +# 2002/09/21 v0.1.10
> +# - bug fixes
> +# - tests now, if the commands are in path and give warnings
> +# and errors.
> #
> ################################################################################
> #
> @@ -73,7 +90,7 @@
> echo "-asr <n> output audio sample rate in Hz [44100]."
> echo "-blank cleans cd-rw before burning."
> echo "-burnonly burn only the premastered <name>*.cue/<name>*.bin images."
> - echo "-cdsize <n> maximal size of cd images [646]."
> + echo "-cdsize <n> maximal size of cd images [700]."
> echo "-denoise denoises mpeg stream."
> echo "-mp3 outputs audio in mp3 instead of mp2 format."
> echo "-mpg don't encode from source, multiplex/burn."
> @@ -148,7 +165,7 @@
> denoise="cat -"
> norm="VCD"
> mplexnorm="-f $VCDMODE -m 1 -V -b 46"
> -max=646
> +max=700
> mpegnorm="-f $VCDMODE -b $vbr -B 260 -V 46"
> imaget="-t vcd2"
> yuvin=""
> @@ -270,7 +287,7 @@
> # encode streams
> if [ $mkstream -eq 1 ]; then
> # start mplayer
> - mplayer -noframedrop -vo yuv4mpeg -ao pcm -waveheader \
> + mplayer -noframedrop -vo yuv4mpeg -ao pcm -waveheader -benchmark \
> -v -osdlevel 0 $sub $params &
>
> # mjpegtools
> @@ -299,6 +316,9 @@
> rm -f ${NAME}*.mpg
> mplex $mplexnorm $sync $NAME.mpv $NAME.mpa -o ${NAME}%d.mpg
>
> + # remove pipe, won't need anymore!
> + rm -f $VIDEO
> +
> # should i create only the mpeg file?
> [ $mpgonly -eq 1 ] && exit 0
>
> @@ -314,9 +334,6 @@
>
> # end of streaming/mastering
> fi
> -
> -# remove pipe, won't need anymore!
> -rm -f $VIDEO
>
> # burn the (s)vcd's
> [ $burn -eq 0 ] && exit 0
More information about the MPlayer-dev-eng
mailing list