Re: [FFmpeg-devel] [PATCH v2 2/2] avformat/hlsenc: avformat/hlsenc: reopen new http session for http_persistent

2019-09-03 Thread Ian Klassen
On Thu, Aug 29, 2019 at 6:15 PM Steven Liu wrote: > fix ticket: 7975 > > Signed-off-by: Steven Liu > --- > libavformat/hlsenc.c | 66 > +++- > 1 file changed, 55 insertions(+), 11 deletions(-) > > diff --git a/libavformat/hlsenc.c b/libavformat/hl

Re: [FFmpeg-devel] [PATCH] avformat/hlsenc: reopen new http session for http_persistent when upload file failed

2019-08-23 Thread Ian Klassen
On Fri, Aug 23, 2019 at 2:06 AM Steven Liu wrote: > fix ticket: 7975 > > Signed-off-by: Steven Liu > --- > libavformat/hlsenc.c | 67 > ++-- > 1 file changed, 54 insertions(+), 13 deletions(-) > > diff --git a/libavformat/hlsenc.c b/libavformat/hl

Re: [FFmpeg-devel] [PATCH v2] avformat/http: Fixes #7975. Before reusing the connection the headers are checked to see if the server is closing the connection.

2019-08-16 Thread Ian Klassen
Pasting it into an email may not have been a good idea... here it is as an attachment. Thanks. On Fri, Aug 16, 2019 at 4:35 AM Michael Niedermayer wrote: > On Thu, Aug 15, 2019 at 05:14:38PM -0500, Ian Klassen wrote: > > Hi, > > > > Sorry Moritz, I somehow missed you

[FFmpeg-devel] [PATCH v2] avformat/http: Fixes #7975. Before reusing the connection the headers are checked to see if the server is closing the connection.

2019-08-15 Thread Ian Klassen
Hi, Sorry Moritz, I somehow missed your feedback. Here's an updated patch with the fixed formatting. I also set up a server that you can test with. Try: ffmpeg -i test.mp4 -hls_flags +append_list -hls_time 6 -method PUT -http_persistent 1 http://45.33.124.115/stream.m3u8 The server has persisten

Re: [FFmpeg-devel] [PATCH v2] avformat/hlsenc: merge mpegts and fmp4 workflow to one workflow

2019-08-02 Thread Ian Klassen
On Fri, Aug 2, 2019 at 5:46 AM Michael Niedermayer wrote: > On Wed, Jul 31, 2019 at 04:07:22PM +0800, Steven Liu wrote: > > write mpegts or fmp4 context into buffer, and flush the buffer into > > output file when split fragment. merge two format split workflow into > > one workflow > > > > Signed

Re: [FFmpeg-devel] Fix for closed connection with http_persistent

2019-07-27 Thread Ian Klassen
Sorry, I manually changed the file... This one should work. On Sat, Jul 27, 2019 at 9:16 AM Michael Niedermayer wrote: On Fri, Jul 26, 2019 at 10:13:01PM +, Ian Klassen wrote: > Hi, > > Here is a potential fix for this bug: https://trac.ffmpeg.org/ticket/7975 > > Bef

[FFmpeg-devel] Fix for closed connection with http_persistent

2019-07-26 Thread Ian Klassen
Hi, Here is a potential fix for this bug: https://trac.ffmpeg.org/ticket/7975 Before reusing the connection the headers are checked to see if the server is closing the connection. Also, the server may respond with "Connection: Keep-alive, close" so the patch also handles this. Thanks. Ian