[FFmpeg-cvslog] dashenc: set DASH related options for the subsequent matroska muxer when using webm

Peter Große git at videolan.org
Sun Oct 29 19:30:14 EET 2017


ffmpeg | branch: master | Peter Große <pegro at friiks.de> | Sun Oct 29 16:10:36 2017 +0100| [44ede215b6623eb5e24bac013ea668366e2f258a] | committer: Michael Niedermayer

dashenc: set DASH related options for the subsequent matroska muxer when using webm

This patch is inspired by the ffmpeg webm_chunk muxer and fixes that all resulting
tracks have the same track number.

Signed-off-by: Peter Große <pegro at friiks.de>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=44ede215b6623eb5e24bac013ea668366e2f258a
---

 libavformat/dashenc.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index e25a660fbe..0ca7cf5aa3 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -778,6 +778,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;



More information about the ffmpeg-cvslog mailing list