# Description: Extract the given chapter(s) from an mkv file into separate video files
# Requires: Newer version of ffmpeg to be installed that supports MKV chapters
+# Howto compile the latest FFMPEG from src under Linux
+# FFMPEG - http://ubuntuforums.org/showthread.php?t=786095
+
+# Howto eliminate the non-monotonically increasing dts to muxer error
+# Comment out the error message in ffmpeg src tree in libavformat/utils.c
+# http://ffmpeg.zeranoe.com/forum/viewtopic.php?f=7&t=49
+
# MOV:
# major_brand : qt
# Video: h264 (avc1 / 0x31637661)
}
}
+ # Quicktime/MOV
if($h264 && $pcm_s16le) { return "mov"; }
+ # MTS
if($h264_high && $ac3) { return "mp4"; }
+ # 3GP/MP4
if($h264 && $aac) { return "mp4"; }
return "UNKNOWN";