diff mbox

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

Message ID 20171029151036.16579-3-pegro@friiks.de
State New
Headers show

Commit Message

Peter Große Oct. 29, 2017, 3:10 p.m. UTC
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@friiks.de>
---
v2: extended commit message

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

Comments

Michael Niedermayer Oct. 29, 2017, 5:06 p.m. UTC | #1
On Sun, Oct 29, 2017 at 04:10:36PM +0100, Peter Große wrote:
> 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@friiks.de>
> ---
> v2: extended commit message
> 
>  libavformat/dashenc.c | 3 +++
>  1 file changed, 3 insertions(+)

will apply

thx

[...]
diff mbox

Patch

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;