X-Git-Url: http://git.pippins.net/embedvideo/.git/static/images/x.gif?a=blobdiff_plain;f=mkv_extract_chapter;h=142b8ecb496722677a64d561bed10dfe07827938;hb=f6479e5b73d7939b5efd03a85ac8cbee565c1f26;hp=9f5fd81a5949d6a70a0d71e4a712095bbd6a55c2;hpb=3a3bb78c7414ec15e6b557522792069eca34530a;p=videoscripts%2F.git diff --git a/mkv_extract_chapter b/mkv_extract_chapter index 9f5fd81..142b8ec 100755 --- a/mkv_extract_chapter +++ b/mkv_extract_chapter @@ -83,8 +83,11 @@ sub detect_ext { } } + # Quicktime/MOV if($h264 && $pcm_s16le) { return "mov"; } - if($h264_high && $ac3) { return "mts"; } + # MTS + if($h264_high && $ac3) { return "mp4"; } + # 3GP/MP4 if($h264 && $aac) { return "mp4"; } return "UNKNOWN"; @@ -130,6 +133,7 @@ foreach $line (@ffmpeg_info) { print "$cmd\n"; } else { print "\n"; + print "$cmd\n"; $errno = system("$cmd"); $errno = $errno >> 8; if($errno > 0) { die "-E- ffmpeg encountered some errors with exit code $errno\n"; }