avformat/dashenc: Reduce Muxing overhead for chunked CMAF format
authorKarthick Jeyapal <kjeyapal@akamai.com>
Fri, 14 Sep 2018 10:17:20 +0000 (15:47 +0530)
committerKarthick Jeyapal <kjeyapal@akamai.com>
Wed, 19 Sep 2018 12:01:56 +0000 (17:31 +0530)
SIDX atom being inserted for every MOOF atom increases the muxing overhead.
This behaviour can be disabled for chunked CMAF format by enabling Global SIDX option of mov muxer.

libavformat/dashenc.c

index df7a856..b0bb354 100644 (file)
@@ -1065,7 +1065,7 @@ static int dash_init(AVFormatContext *s)
 
         if (c->segment_type == SEGMENT_TYPE_MP4) {
             if (c->streaming)
-                av_dict_set(&opts, "movflags", "frag_every_frame+dash+delay_moov", 0);
+                av_dict_set(&opts, "movflags", "frag_every_frame+dash+delay_moov+global_sidx", 0);
             else
                 av_dict_set(&opts, "movflags", "frag_custom+dash+delay_moov", 0);
         } else {