[MPlayer-dev-eng] [PATCH] divx2svcd 0.4.9

VMiklos mamajom at axelero.hu
Wed Feb 11 20:35:46 CET 2004


hi

this patch is for divx2svcd (0.4.8->0.4.9)

changes:
- fix for burning more than one cd
 now you have to press a key before burning the next cd so you have time
to change the cd in the drive

- fix for wrong parameter help
the help was not correct as the parameters' format is '--parameter value'
and not '--parameter=value'

- changed the default bitrate to 1600 (as bitrate 1200 is almost shit)
(that's not important)

greetings

---
       __________     VMiklos / FapadOS & EL Team
  ____/__/___|___\__. E-mail: mamajom at axelero dot hu
O__O  _ |   |   _  |  Homepage: http://www.vmiklos.tk
'--`-(_)'---'--(_)-'  gpg --keyserver pgp.mit.edu --recv-keys 03915096
-------------- next part --------------
diff -Naur main.orig/TOOLS/divx2svcd main/TOOLS/divx2svcd
--- main.orig/TOOLS/divx2svcd	2004-02-11 20:28:43.000000000 +0100
+++ main/TOOLS/divx2svcd	2004-02-11 18:22:22.000000000 +0100
@@ -1,7 +1,7 @@
 #!/bin/bash
 
 # (c) 2003 Vajna Miklos <mainroot at 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 @@
 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 @@
 }
 
 #initializating constants
-version='0.4.8'
-bitrate=1200
+version='0.4.9'
+bitrate=1600
 cdsize=795
 burning=0
 cleaning=0
@@ -325,20 +330,22 @@
 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


More information about the MPlayer-dev-eng mailing list