[FFmpeg-devel] avformat/dashenc: Reduce Muxing overhead for chunked CMAF format

Submitted by kjeyapal@akamai.com on Sept. 14, 2018, 10:17 a.m.

Details

Message ID 1536920240-18203-1-git-send-email-kjeyapal@akamai.com
State Accepted
Commit 49c67e79ca761c43c1310a7e81f8607195a631b9
Headers show

Commit Message

kjeyapal@akamai.com Sept. 14, 2018, 10:17 a.m.
From: Karthick Jeyapal <kjeyapal@akamai.com>

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index 87e31e2..9a33321 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -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 {