Updated scripts to support new version of HandBrake
[videoscripts/.git] / mkv_extract_chapter
index d8825ae2b7ed0f4f015e65840784730d4215a037..ca3321561205cff894acfc4917ff594b2c066164 100755 (executable)
@@ -129,7 +129,7 @@ if(!$progressive) {
 # For each chapter specified on the command line, use ffmpeg to extract a video clip from that chapter
 my @ffmpeg_info = `$ffmpeg -i $opt_i 2>&1`;
 foreach $line (@ffmpeg_info) {
-    if($line =~ /Chapter #\d+\.(\d+): start (\S+), end (\S+)/) {
+    if($line =~ /Chapter #\d+\:(\d+): start (\S+), end (\S+)/) {
        $chapter = $1;
        $start = $2;
         if($start > 0) { $start += 1; } # Add some margin to prevent taking a piece of the previous clip