projects
/
rip_dvd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
fce9af6
)
Fixed bug in having -s override Handbrake preset bitrates
2_1
author
Alan J. Pippin
<ajp@pippins.net>
Thu, 11 Feb 2010 15:03:40 +0000
(08:03 -0700)
committer
Alan J. Pippin
<ajp@pippins.net>
Thu, 11 Feb 2010 15:03:40 +0000
(08:03 -0700)
rip_dvd
patch
|
blob
|
history
diff --git
a/rip_dvd
b/rip_dvd
index f58a00b0a6df9b4cef9a209ba79d5ad52eba3fe0..e68012a3f237df2190c5053bbb67477ef8885fd6 100755
(executable)
--- a/
rip_dvd
+++ b/
rip_dvd
@@
-1102,7
+1102,7
@@
function get_audio_track_from_vob {
track=`expr match "$stream" '^\([0-9]*\):'`
if [ -n "$track" ]; then
track=`expr match "$stream" '^\([0-9]*\):'`
if [ -n "$track" ]; then
- echo "
->
Setting the audio ID to $aid. Setting the audio track to $track." | tee -a "$logfile"
+ echo "
Setting the audio ID to $aid. Setting the audio track to $track." | tee -a "$logfile"
fi
}
fi
}
@@
-1239,6
+1239,7
@@
function calculate_bitrate_from_target_size {
if [ $target_size -ne 0 ]; then
vob_length=`mplayer -identify -v "$vobfile" -endpos 0 2>&1 | grep ID_LENGTH | awk -F '=' '{ print $2 }' | awk -F '.' '{ print $1 }'`
((target_bitrate = (target_size * 1024 * 8) / vob_length ))
if [ $target_size -ne 0 ]; then
vob_length=`mplayer -identify -v "$vobfile" -endpos 0 2>&1 | grep ID_LENGTH | awk -F '=' '{ print $2 }' | awk -F '.' '{ print $1 }'`
((target_bitrate = (target_size * 1024 * 8) / vob_length ))
+ custom_bitrate=1
echo " With a given target size of $target_size MB, the estimated bit rate will need to be $target_bitrate kbits/sec"
fi
}
echo " With a given target size of $target_size MB, the estimated bit rate will need to be $target_bitrate kbits/sec"
fi
}