diff options
Diffstat (limited to 'rotord/src/libavwrapper.cpp')
| -rw-r--r-- | rotord/src/libavwrapper.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/rotord/src/libavwrapper.cpp b/rotord/src/libavwrapper.cpp index 5525c44..e439075 100644 --- a/rotord/src/libavwrapper.cpp +++ b/rotord/src/libavwrapper.cpp @@ -110,9 +110,11 @@ bool libav::audio_decoder::open(const std::string& filename){ } } -bool libav::exporter::setup(int w,int h, int bitRate, int frameRate, std::string container){ +bool libav::exporter::setup(int w,int h, int bitRate, int frameRate, std::string container, bool _fragmentation){ maybeInitFFMpegLib(); + + fragmentation=_fragmentation; this->w=w; this->h=h; @@ -212,7 +214,9 @@ bool libav::exporter::record(std::string filename){ //THIS DOES SEEM TO SET CONTAINER OPTS= AS MOOV_SIZE MAKES THE MOVIE BANJAXED //av_dict_set(&opts, "moov_size", "20000", 0); - av_dict_set(&opts, "movflags","frag_keyframe", 0); + if (fragmentation) { + av_dict_set(&opts, "movflags","frag_keyframe", 0); + } // Write the stream header, if any. // |
