[FFmpeg-devel] [PATCH 3/7] dashenc: set DASH related options for the subsequent matroska muxer when using webm

Peter Große pegro at friiks.de
Thu Oct 26 18:58:36 EEST 2017


Signed-off-by: Peter Große <pegro at friiks.de>
---
 libavformat/dashenc.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index 1b3acb7ac9..bde093646f 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -776,6 +776,9 @@ static int dash_init(AVFormatContext *s)
         } else {
             av_dict_set_int(&opts, "cluster_time_limit", c->min_seg_duration / 1000, 0);
             av_dict_set_int(&opts, "cluster_size_limit", 5 * 1024 * 1024, 0); // set a large cluster size limit
+            av_dict_set_int(&opts, "dash", 1, 0);
+            av_dict_set_int(&opts, "dash_track_number", i + 1, 0);
+            av_dict_set_int(&opts, "live", 1, 0);
         }
         if ((ret = avformat_write_header(ctx, &opts)) < 0)
             return ret;
-- 
2.13.6



More information about the ffmpeg-devel mailing list