summaryrefslogtreecommitdiffstats
path: root/TOOLS
diff options
context:
space:
mode:
authorattila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-02-17 13:32:22 +0000
committerattila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-02-17 13:32:22 +0000
commit6c2ea4dd45cc5982b3a574e95a4f41611690d1c1 (patch)
tree94b6456f1ef30514696edfe2a434b2a9f0f7f080 /TOOLS
parentaacd86d1f7fce9f6daab5b70b2e8454f3da59135 (diff)
downloadmpv-6c2ea4dd45cc5982b3a574e95a4f41611690d1c1.tar.bz2
mpv-6c2ea4dd45cc5982b3a574e95a4f41611690d1c1.tar.xz
update by VMiklos
note: he's quite impatient git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11971 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'TOOLS')
-rwxr-xr-xTOOLS/divx2svcd23
1 files changed, 15 insertions, 8 deletions
diff --git a/TOOLS/divx2svcd b/TOOLS/divx2svcd
index e013fc6da9..97ba6fc34b 100755
--- a/TOOLS/divx2svcd
+++ b/TOOLS/divx2svcd
@@ -1,7 +1,7 @@
#!/bin/bash
# (c) 2003 Vajna Miklos <mainroot@freemail.hu>
-# divx2svcd for MPlayer 1.0pre3+dumpvideo patch
+# divx2svcd for MPlayer+dumpvideo patch
# distributed under GPL License
# A simple utility that creates SvcD from a video which uses avi container
@@ -17,6 +17,11 @@
###changelog###
#nobody cares about it :-)
cat >/dev/null <<EOF
+0.4.9
+- changed default bitrate to 1600 for better quality
+- fix for burning more than one cd
+- fix for wrong parameter help
+
0.4.8
- small fixes
@@ -77,10 +82,10 @@ function usage()
Usage: `basename $0` input_avi [options]
Options:
--b|--bitrate=xx bitrate of mp2 video stream [1600]
--s|--cdsize=xx size of the cd we split the video to [795]
+-b|--bitrate xx bitrate of mp2 video stream [1600]
+-s|--cdsize xx size of the cd we split the video to [795]
-w|--writecd enables burning [disable]
--d|--device=xx scsi cd-recording device if you are using linux 2.4.x [0,0,0]
+-d|--device xx scsi cd-recording device if you are using linux 2.4.x [0,0,0]
-c|--clean clean up svcd images you just created
-h|--help this help screen
EOF
@@ -88,8 +93,8 @@ EOF
}
#initializating constants
-version='0.4.8'
-bitrate=1200
+version='0.4.9'
+bitrate=1600
cdsize=795
burning=0
cleaning=0
@@ -325,20 +330,22 @@ $tcbin -i "$nev.m2v" $tcopt "$nev.mp2" -o "$nev.mpg" -m s -F template
rm template
rm "$nev.m2v" "$nev.mp2"
-`which ls` -N "$nev"*mpg | while read i
+for i in *mpg
do
nev2=`basename "$i" .mpg`
#creating images
vcdimager -t svcd -c "$nev2.cue" -b "$nev2.bin" "$i"
#burning if needs
if [ "$burning" == 1 ]; then
- if ["$firstcd" != 1 ]; then
+ if [ "$firstcd" != 1 ]; then
cat <<EOF
Please insert an another blank cd in your cdwriter.
Press any key when your are ready.
EOF
read -n 1 i
+ else
+ firstcd=2
fi
$cdrbin -v -dao $dev speed=12 gracetime=2 driveropts=burnfree -eject cuefile="$nev2.cue"
fi