summaryrefslogtreecommitdiffstats
path: root/TOOLS
diff options
context:
space:
mode:
authorjaf <jaf@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-09-21 21:54:42 +0000
committerjaf <jaf@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-09-21 21:54:42 +0000
commit740c1f103cd9738a023513d0af4861dc5d924a6a (patch)
tree7b9e0a0f80859a0c882a9f2982f9b760e61567bf /TOOLS
parente54a51d7c704de5f889919fdcd54b7014270ccdd (diff)
downloadmpv-740c1f103cd9738a023513d0af4861dc5d924a6a.tar.bz2
mpv-740c1f103cd9738a023513d0af4861dc5d924a6a.tar.xz
version 0.1.10 by Juergen Hammelmann <juergen.hammelmann@gmx.de>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7463 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'TOOLS')
-rwxr-xr-xTOOLS/mencvcd33
1 files changed, 25 insertions, 8 deletions
diff --git a/TOOLS/mencvcd b/TOOLS/mencvcd
index 1237d19003..8593296419 100755
--- a/TOOLS/mencvcd
+++ b/TOOLS/mencvcd
@@ -1,10 +1,10 @@
#!/bin/sh
#
-# Version: 0.1.9
+# Version: 0.1.10
#
# Licence: GPL
#
-# 2002/04/14 Jürgen Hammelmann <juergen.hammelmann@gmx.de>
+# 2002/09/21 Jürgen Hammelmann <juergen.hammelmann@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 @@ function usage() {
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 @@ vbrset=0
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 @@ if [ $burnonly -eq 0 ]; then
# 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 @@ if [ $burnonly -eq 0 ]; then
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
@@ -315,9 +335,6 @@ if [ $burnonly -eq 0 ]; then
# end of streaming/mastering
fi
-# remove pipe, won't need anymore!
-rm -f $VIDEO
-
# burn the (s)vcd's
[ $burn -eq 0 ] && exit 0