Re: [FFmpeg-devel] [PATCH] HTTP: improve performance by reducing forward seeks

2017-02-14 Thread Joel Cunningham
Great thanks! Joel > On Feb 14, 2017, at 9:59 AM, Michael Niedermayer > wrote: > > On Mon, Feb 13, 2017 at 09:57:13AM -0600, Joel Cunningham wrote: >> Friendly ping! Any issues receiving this updated patch (submitted with git >> send-email)? Anyone try it out ye

Re: [FFmpeg-devel] [PATCH] HTTP: improve performance by reducing forward seeks

2017-02-13 Thread Joel Cunningham
Friendly ping! Any issues receiving this updated patch (submitted with git send-email)? Anyone try it out yet? Thanks, Joel > On Jan 30, 2017, at 10:00 AM, Joel Cunningham wrote: > > This commit optimizes HTTP performance by reducing forward seeks, instead > favoring a re

[FFmpeg-devel] [PATCH] HTTP: improve performance by reducing forward seeks

2017-01-30 Thread Joel Cunningham
, but it does if SO_RCVBUF was manually set (disabling auto-tuning). So we can only use this optimization on Windows in the later case Signed-off-by: Joel Cunningham --- libavformat/avio.c| 7 +++ libavformat/avio.h| 6 ++ libavformat/aviobuf.c | 19 ++- libavformat

Re: [FFmpeg-devel] [PATCH] HTTP: optimize forward seek performance

2017-01-26 Thread Joel Cunningham
Attached is a git format-patch file 0001-HTTP-improve-performance-by-reducing-forward-seeks.patch Description: Binary data > On Jan 26, 2017, at 6:52 PM, Michael Niedermayer wrote: > > On Thu, Jan 26, 2017 at 10:44:33AM -0600, Joel Cunningham wrote: >> Michael, >> >

Re: [FFmpeg-devel] [PATCH] HTTP: optimize forward seek performance

2017-01-26 Thread Joel Cunningham
> > >> +/* SO_RCVBUF with winsock only reports the actual TCP window size when >> +auto-tuning has been disabled via setting SO_RCVBUF */ >> +if (s->recv_buffer_size < 0) { >> +return AVERROR(ENOSYS); >> +} >> +#endif

Re: [FFmpeg-devel] [PATCH] tcp: set socket buffer sizes before listen/connect/accept

2017-01-25 Thread Joel Cunningham
Ping! Anyone have a chance to look at this issue/patch? Thanks, Joel > On Jan 9, 2017, at 2:54 PM, Joel Cunningham wrote: > > From e24d95c0e06a878d401ee34fd6742fcaddeeb95f Mon Sep 17 00:00:00 2001 > From: Joel Cunningham > Date: Mon, 9 Jan 2017 13:37:51 -0600 > Subject

Re: [FFmpeg-devel] [PATCH] HTTP: optimize forward seek performance

2017-01-25 Thread Joel Cunningham
Ping! Anyone have a chance to review my latest patch which leverages the read-ahead/discard logic in avio_seek? Thanks, Joel > On Jan 13, 2017, at 11:36 AM, Joel Cunningham wrote: > >> >> On Jan 12, 2017, at 10:59 AM, Joel Cunningham wrote: >> >> Nicolas, &g

Re: [FFmpeg-devel] [PATCH] HTTP: optimize forward seek performance

2017-01-13 Thread Joel Cunningham
> On Jan 12, 2017, at 10:59 AM, Joel Cunningham wrote: > > Nicolas, > > I’ve found existing “read-ahead logic” in avio_seek to do what I’ve > implemented in http_stream_forward(). This is controlled by > SHORT_SEEK_THRESHOLD, currently set to 4KB. I proto-typed incr

Re: [FFmpeg-devel] [PATCH] HTTP: optimize forward seek performance

2017-01-12 Thread Joel Cunningham
> On Jan 12, 2017, at 11:04 AM, Steinar H. Gunderson > wrote: > > On Thu, Jan 12, 2017 at 04:59:33PM +, Andy Furniss wrote: >> I've seen plenty of "legal" shrinks looking at tcpdumps - usually the >> app is throttling it's read speed. > > You're not really allowed to shrink by more than yo

Re: [FFmpeg-devel] [PATCH] HTTP: optimize forward seek performance

2017-01-12 Thread Joel Cunningham
it doesn’t appear to have access to the URLContext pointer. Any guidance on how I can plumb the protocol layer with aviobuf without a public API change? Thanks, Joel > On Jan 12, 2017, at 9:29 AM, Joel Cunningham wrote: > > >> On Jan 12, 2017, at 6:53 AM, Nicolas George wrote:

Re: [FFmpeg-devel] [PATCH] HTTP: optimize forward seek performance

2017-01-12 Thread Joel Cunningham
> On Jan 12, 2017, at 10:08 AM, Andy Furniss wrote: > > Joel Cunningham wrote: >> Hi, >> >> I’ve been working on optimizing HTTP forward seek performance for ffmpeg and >> would like to contribute this patch into mainline ffmpeg. Please see the >> belo

Re: [FFmpeg-devel] [PATCH] HTTP: optimize forward seek performance

2017-01-12 Thread Joel Cunningham
> On Jan 12, 2017, at 6:53 AM, Nicolas George wrote: > > Le duodi 22 nivôse, an CCXXV, Joel Cunningham a écrit : >> This commit optimizes HTTP forward seeks by advancing the stream on >> the current connection when the seek amount is within the current >> TCP win

Re: [FFmpeg-devel] [PATCH] HTTP: optimize forward seek performance

2017-01-12 Thread Joel Cunningham
> On Jan 12, 2017, at 6:47 AM, Ronald S. Bultje wrote: > > Hi Joel, > > On Wed, Jan 11, 2017 at 6:01 PM, Joel Cunningham > wrote: > >> Hi, >> >> I’ve been working on optimizing HTTP forward seek performance for ffmpeg >> and would like to contri

[FFmpeg-devel] [PATCH] HTTP: optimize forward seek performance

2017-01-11 Thread Joel Cunningham
From 89a3ed8aab9168313b4f7e83c00857f9b715ba4e Mon Sep 17 00:00:00 2001 From: Joel Cunningham Date: Wed, 11 Jan 2017 13:55:02 -0600 Subject: [PATCH] HTTP: optimize forward seek performance This commit optimizes HTTP forward seeks by advancing the stream on the current connection when the seek

[FFmpeg-devel] [PATCH] tcp: set socket buffer sizes before listen/connect/accept

2017-01-09 Thread Joel Cunningham
From e24d95c0e06a878d401ee34fd6742fcaddeeb95f Mon Sep 17 00:00:00 2001 From: Joel Cunningham Date: Mon, 9 Jan 2017 13:37:51 -0600 Subject: [PATCH] tcp: set socket buffer sizes before listen/connect/accept Attempting to set SO_RCVBUF and SO_SNDBUF on TCP sockets after connection establishment is