Re: [FFmpeg-devel] [PATCH v2 2/2] avformat/dashenc: Signal http end of chunk(http_shutdown) explicitly
On 1/2/18 1:49 PM, Karthick J wrote: > From: Karthick Jeyapal> > Currently http end of chunk is signalled implicitly in dashenc_io_open(). > This mean playlists http writes would have to wait upto a segment duration to > signal end of chunk causing delays. > This patch will fix that problem and improve performance. > --- > libavformat/dashenc.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c > index 2e4ff67..c9cc389 100644 > --- a/libavformat/dashenc.c > +++ b/libavformat/dashenc.c > @@ -149,7 +149,10 @@ static void dashenc_io_close(AVFormatContext *s, > AVIOContext **pb, char *filenam > ff_format_io_close(s, pb); > #if CONFIG_HTTP_PROTOCOL > } else { > +URLContext *http_url_context = ffio_geturlcontext(*pb); > +av_assert0(http_url_context); > avio_flush(*pb); > +ffurl_shutdown(http_url_context, AVIO_FLAG_WRITE); > #endif > } > } Patchset pushed. Regards, Karthick ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
[FFmpeg-devel] [PATCH v2 2/2] avformat/dashenc: Signal http end of chunk(http_shutdown) explicitly
From: Karthick JeyapalCurrently http end of chunk is signalled implicitly in dashenc_io_open(). This mean playlists http writes would have to wait upto a segment duration to signal end of chunk causing delays. This patch will fix that problem and improve performance. --- libavformat/dashenc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 2e4ff67..c9cc389 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -149,7 +149,10 @@ static void dashenc_io_close(AVFormatContext *s, AVIOContext **pb, char *filenam ff_format_io_close(s, pb); #if CONFIG_HTTP_PROTOCOL } else { +URLContext *http_url_context = ffio_geturlcontext(*pb); +av_assert0(http_url_context); avio_flush(*pb); +ffurl_shutdown(http_url_context, AVIO_FLAG_WRITE); #endif } } -- 1.9.1 ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel