From fce9af63c8b25a5b770721f2e2362a4b1cafe6b8 Mon Sep 17 00:00:00 2001 From: "Alan J. Pippin" Date: Thu, 11 Feb 2010 00:17:49 -0700 Subject: [PATCH] Fixed bug in the way the audio track was selected in HandBrake --- rip_dvd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rip_dvd b/rip_dvd index 94b96fc..f58a00b 100755 --- a/rip_dvd +++ b/rip_dvd @@ -1094,7 +1094,8 @@ function get_audio_track_from_vob { # find the stream that matches our aid #stream=`grep "Stream.*\[0x$aid_hex\]" $aidcheck` - stream=`grep "scan: audio" $aidcheck | grep -n "" | grep "scan: audio 0x$aid_hex"` + #stream=`grep "scan: audio" $aidcheck | grep -n "" | grep "scan: audio 0x$aid_hex"` + stream=`grep "add_audio_to_title:" $aidcheck | grep -n "" | grep "add_audio_to_title:.* stream 0x$aid_hex"` # extract the track number that handbrake uses #track=`expr match "$stream" '.*#[0-9]\.\([0-9]*\)'` -- 2.34.1