Support reading keyframes files from ffmpeg/avconv

This commit is contained in:
Thomas Goyne 2013-07-13 08:40:57 -07:00
parent d0779e7ed7
commit c4dae9e783

View file

@ -93,6 +93,8 @@ std::vector<int> Load(agi::fs::path const& filename) {
if (header == "# keyframe format v1") return agi_keyframes(is);
if (boost::starts_with(header, "# XviD 2pass stat file")) return other_keyframes(is, xvid);
if (boost::starts_with(header, "# ffmpeg 2-pass log file, using xvid codec")) return other_keyframes(is, xvid);
if (boost::starts_with(header, "# avconv 2-pass log file, using xvid codec")) return other_keyframes(is, xvid);
if (boost::starts_with(header, "##map version")) return other_keyframes(is, divx);
if (boost::starts_with(header, "#options:")) return other_keyframes(is, x264);