diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2009-07-16 16:16:49 -0400 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2009-07-16 16:16:49 -0400 |
commit | 1c4d78aff02f7870916b5aaefbbb908e56eb8435 (patch) | |
tree | eefe316bdefe7358bb83a80186f70a0957be6756 | |
parent | Path sanatizing. (diff) | |
download | OldSchoolRipper-1c4d78aff02f7870916b5aaefbbb908e56eb8435.tar.xz OldSchoolRipper-1c4d78aff02f7870916b5aaefbbb908e56eb8435.zip |
Added audio fixing script.
-rwxr-xr-x | fixAudio.sh | 15 | ||||
-rw-r--r-- | updatescript.txt | 2 | ||||
-rwxr-xr-x | upload.sh | 1 |
3 files changed, 18 insertions, 0 deletions
diff --git a/fixAudio.sh b/fixAudio.sh new file mode 100755 index 0000000..0947cfe --- /dev/null +++ b/fixAudio.sh @@ -0,0 +1,15 @@ +#!/bin/bash +vob=`zenity --file-selection` +size=`stat -c %s "$vob"` +twentypercent=`echo $size \* .2 | bc | xargs printf "%1.0f"` +(( twentypercent++ )) +directory=`dirname "$vob"` +outvob="$directory/out.vob" +audiotrack="$directory/audiotrack.txt" +tail -c +$twentypercent "$vob" | head -c 164857600 > "$outvob" +vlc "$outvob" +rm "$outvob" +zenity --entry --text="Please enter the correct audio track number. This must be a digit." --entry-text=1 > "$audiotrack" +track=`cat $audiotrack` +zenity --info --text="You've set the audio track for $vob to $track." + diff --git a/updatescript.txt b/updatescript.txt index ea41552..57fd61f 100644 --- a/updatescript.txt +++ b/updatescript.txt @@ -11,5 +11,7 @@ fi cd ~/Desktop eject /dev/dvd wget -O rip.py http://anyclip.zx2c4.com/rip.txt +wget -O fixAudio.sh http://anyclip.zx2c4.com/fixAudio.txt chmod +x rip.py +chmod +x fixAudio.sh ./rip.py @@ -1,3 +1,4 @@ #scp rip.py anyclip@192.168.99.25:/home/anyclip/Desktop/ scp rip.py zx2c4.com:anyclip.zx2c4.com/rip.txt +scp fixAudio.sh zx2c4.com:anyclip.zx2c4.com/fixAudio.txt scp updatescript.txt zx2c4.com:anyclip.zx2c4.com |