[FFmpeg-devel] [PATCH] avformat/dashenc: Skip writing trailer for MP4 output when in streaming mode

Liu Steven lq at chinaffmpeg.org
Thu Jan 24 09:16:37 EET 2019



> 在 2019年1月24日,下午2:01,Karthick J <kjeyapal at akamai.com> 写道:
> 
> In streaming mode mp4 trailer is not required for playout.
> ---
> libavformat/dashenc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
> index 9c90cf17e5..6299e179c2 100644
> --- a/libavformat/dashenc.c
> +++ b/libavformat/dashenc.c
> @@ -1210,7 +1210,7 @@ static int dash_init(AVFormatContext *s)
> 
>         if (os->segment_type == SEGMENT_TYPE_MP4) {
>             if (c->streaming)
> -                av_dict_set(&opts, "movflags", "frag_every_frame+dash+delay_moov+skip_sidx", 0);
> +                av_dict_set(&opts, "movflags", "frag_every_frame+dash+delay_moov+skip_sidx+skip_trailer", 0);
maybe you can merge this to hlsenc too.
>             else
>                 av_dict_set(&opts, "movflags", "frag_custom+dash+delay_moov", 0);
>         } else {
> -- 
> 2.17.1 (Apple Git-112)
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


Thanks
Steven



More information about the ffmpeg-devel mailing list