projects
/
videoscripts
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added some comments to describe what each extension was being used for
[videoscripts/.git]
/
mkv_extract_chapter
diff --git
a/mkv_extract_chapter
b/mkv_extract_chapter
index 9f5fd81a5949d6a70a0d71e4a712095bbd6a55c2..142b8ecb496722677a64d561bed10dfe07827938 100755
(executable)
--- 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 && $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";
if($h264 && $aac) { return "mp4"; }
return "UNKNOWN";
@@
-130,6
+133,7
@@
foreach $line (@ffmpeg_info) {
print "$cmd\n";
} else {
print "\n";
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"; }
$errno = system("$cmd");
$errno = $errno >> 8;
if($errno > 0) { die "-E- ffmpeg encountered some errors with exit code $errno\n"; }