]> git.sesse.net Git - nageru/commit
Use the new libavformat functionality for marking keyframes.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 25 Jun 2016 21:08:11 +0000 (23:08 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 25 Jun 2016 21:08:11 +0000 (23:08 +0200)
commit61919d1071d4501106bfba9edef95a714b025c8e
tree10b363fc377061c9f16a6ae5857d95faa791bbc2
parentc502fec6557ba7c7e1947584d910fbc68f1be369
Use the new libavformat functionality for marking keyframes.

Note: This depends on code only recently in mainline avformat;
the commit in question is dbbaad3 in libav, 4e7a921 in ffmpeg,
merged Jun 23.

This removes our need for manually flushing before each keyframe
to to make sure we get the fragment boundaries correct. In turn,
this means we no longer need to interleave ourselves.

The lack of flushing (and that we start using libavformat's interleaving
queue again) also means that the muxer no longer has to guess at the
duration of the last frame in each fragment, which would sometimes
cause non-monotonic pts, which would confuse players in various ways.
README
mux.cpp
mux.h
quicksync_encoder.cpp
video_encoder.cpp
video_encoder.h