[FFmpeg-devel] [PATCH 2/2] lavf/tcp.c: Free allocated client URLContext in case of error.

2017-04-10 Thread Stephan Holljes
--- libavformat/tcp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavformat/tcp.c b/libavformat/tcp.c index 3055e48..85e500d 100644 --- a/libavformat/tcp.c +++ b/libavformat/tcp.c @@ -203,8 +203,10 @@ static int tcp_accept(URLContext *s, URLContext **c) return

[FFmpeg-devel] [PATCH 1/2] lavf/http.c: Free allocated client URLContext in case of error.

2017-04-10 Thread Stephan Holljes
--- libavformat/http.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavformat/http.c b/libavformat/http.c index 293a8a7..f92549c 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -536,6 +536,9 @@ static int http_accept(URLContext *s, URLContext **c) cc->hd = cl; cc-

[FFmpeg-devel] [PATCH 2/2] lavf/tcp.c: Free allocated client URLContext in case of error.

2017-04-11 Thread Stephan Holljes
--- libavformat/tcp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavformat/tcp.c b/libavformat/tcp.c index 07b4ed9..f1a597d 100644 --- a/libavformat/tcp.c +++ b/libavformat/tcp.c @@ -203,8 +203,10 @@ static int tcp_accept(URLContext *s, URLContext **c) return

Re: [FFmpeg-devel] [PATCH 2/2] lavf/tcp.c: Free allocated client URLContext in case of error.

2017-04-11 Thread Stephan Holljes
In fact the http patch introduces a bug where it closes the URLContext regardless of ret. New patches shortly. (Also rebased on Simon's patches fixing tcp return codes.) Regards On Tue, Apr 11, 2017 at 11:35 AM, Nicolas George wrote: > Le primidi 21 germinal, an CCXXV, Stephan Holljes

[FFmpeg-devel] [PATCH 1/2] lavf/http.c: Free allocated client URLContext in case of error.

2017-04-11 Thread Stephan Holljes
--- libavformat/http.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavformat/http.c b/libavformat/http.c index 293a8a7..f364f1b 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -536,6 +536,9 @@ static int http_accept(URLContext *s, URLContext **c) cc->hd = cl; cc-

[FFmpeg-devel] [PATCH 2/2] lavf/tcp.c: Free allocated client URLContext in case of error.

2017-04-11 Thread Stephan Holljes
--- This version is rebased on Simon's tcp return fix. libavformat/tcp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavformat/tcp.c b/libavformat/tcp.c index 07b4ed9..f1a597d 100644 --- a/libavformat/tcp.c +++ b/libavformat/tcp.c @@ -203,8 +203,10 @@ static int tcp_

[FFmpeg-devel] [PATCH 1/2] lavf/http.c: Free allocated client URLContext in case of error.

2017-04-11 Thread Stephan Holljes
--- This version returns 0 in case of success and does not fallthrough to fail:. libavformat/http.c | 4 1 file changed, 4 insertions(+) diff --git a/libavformat/http.c b/libavformat/http.c index 293a8a7..2917b6e 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -535,7 +535,11 @@

Re: [FFmpeg-devel] [PATCH 2/2] lavf/tcp.c: Free allocated client URLContext in case of error.

2017-04-11 Thread Stephan Holljes
On Tue, Apr 11, 2017 at 7:24 PM, Nicolas George wrote: > Le duodi 22 germinal, an CCXXV, Stephan Holljes a écrit : >> In fact the http patch introduces a bug where it closes the URLContext >> regardless of ret. New patches shortly. (Also rebased on Simon's >> patch

Re: [FFmpeg-devel] [PATCH 1/2] lavf/http.c: Free allocated client URLContext in case of error.

2017-04-21 Thread Stephan Holljes
On Tue, Apr 11, 2017 at 8:05 PM, Stephan Holljes wrote: > --- > > This version returns 0 in case of success and does not fallthrough to fail:. > > libavformat/http.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/libavformat/http.c b/libavformat/http.c

Re: [FFmpeg-devel] [PATCH 1/2] lavf/http.c: Free allocated client URLContext in case of error.

2017-05-19 Thread Stephan Holljes
On Sat, Apr 22, 2017 at 3:18 AM, Stephan Holljes wrote: > On Tue, Apr 11, 2017 at 8:05 PM, Stephan Holljes > wrote: >> --- >> >> This version returns 0 in case of success and does not fallthrough to fail:. >> >> libavformat/http.c | 4 >> 1 file c

[FFmpeg-devel] [PATCH] lavf/http.c: Add listen_timeout option.

2016-10-17 Thread Stephan Holljes
--- libavformat/http.c | 5 + 1 file changed, 5 insertions(+) diff --git a/libavformat/http.c b/libavformat/http.c index d48958d..3b0d6ab 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -115,6 +115,7 @@ typedef struct HTTPContext { int reconnect_delay; int reconnect_dela

Re: [FFmpeg-devel] [PATCH] lavf/http.c: Add listen_timeout option.

2016-10-17 Thread Stephan Holljes
On Tue, Oct 18, 2016 at 2:09 AM, Stephan Holljes wrote: > --- > libavformat/http.c | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/libavformat/http.c b/libavformat/http.c > index d48958d..3b0d6ab 100644 > --- a/libavformat/http.c > +++ b/libavformat/h

[FFmpeg-devel] [PATCH] lavf/aviobuf.c: Adapt avio_accept and avio_handshake to new AVIOContext API

2016-09-30 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- libavformat/aviobuf.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) This fixes doc/examples/http_multiclient.c from segfaulting. Seems like these functions were forgotten during the white- and blacklisting update. diff --git a/libavformat

Re: [FFmpeg-devel] ffserver: current status and future plans

2016-10-06 Thread Stephan Holljes
org > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel > Hi all, this is a bit off-topic, but ubitux encouraged me to share this with you since you are working on ffserver. I wrote a small application "showcasing" how one could implement live streaming over http with the ffmpeg librari

Re: [FFmpeg-devel] [PATCH 2/2] lavf/tcp.c: Free allocated client URLContext in case of error.

2018-03-30 Thread Stephan Holljes
On Fri, Jan 12, 2018 at 8:47 PM, Michael Niedermayer wrote: > On Fri, Jan 12, 2018 at 07:16:30PM +0100, Stephan Holljes wrote: >> Signed-off-by: Stephan Holljes >> --- >> libavformat/tcp.c | 4 +++- >> 1 file changed, 3 insertions(+), 1 deletion(-)

[FFmpeg-devel] [PATCH] lavf/http.c: Don't write chunked-transfer-trailer to listening server context.

2018-04-11 Thread Stephan Holljes
--- I found this bug while working on my qualification task. When closing a listening HTTP AVIOContext http_shutdown() tries to write the chunked-transfer-encoding trailer to the listening Context. libavformat/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/

[FFmpeg-devel] [GSoC] Qualification task, simple ffserver implementation.

2018-04-12 Thread Stephan Holljes
This patchset is a new simple implementation of ffserver for a new repository. It is basically a port of https://github.com/klaxa/mkvserver_mk2 The self-implemented fifo buffers have been replaced by AVFifoBuffer. Documentation on the architecture is present in a separate file. Currently only matro

[FFmpeg-devel] [PATCH 3/4] ffserver: Implement ffserver and add Makefile

2018-04-12 Thread Stephan Holljes
--- Makefile | 15 ++ ffserver.c | 451 + 2 files changed, 466 insertions(+) create mode 100644 Makefile create mode 100644 ffserver.c diff --git a/Makefile b/Makefile new file mode 100644 index 000..a57393a --- /dev/null +++ b/

[FFmpeg-devel] [PATCH 1/4] ffserver: Implement refcounted segments.

2018-04-12 Thread Stephan Holljes
--- segment.c | 143 ++ segment.h | 104 + 2 files changed, 247 insertions(+) create mode 100644 segment.c create mode 100644 segment.h diff --git a/segment.c b/segment.c new file mode 100644

[FFmpeg-devel] [PATCH 4/4] ffserver: Add basic documentation of the architecture

2018-04-12 Thread Stephan Holljes
--- Documentation.txt | 30 ++ 1 file changed, 30 insertions(+) create mode 100644 Documentation.txt diff --git a/Documentation.txt b/Documentation.txt new file mode 100644 index 000..de7b522 --- /dev/null +++ b/Documentation.txt @@ -0,0 +1,30 @@ +Documentation +-

[FFmpeg-devel] [PATCH 2/4] ffserver: Implement publisher

2018-04-12 Thread Stephan Holljes
--- publisher.c | 278 publisher.h | 134 + 2 files changed, 412 insertions(+) create mode 100644 publisher.c create mode 100644 publisher.h diff --git a/publisher.c b/publisher.c new file mode 100644 index

Re: [FFmpeg-devel] [GSoC] Qualification task, simple ffserver implementation.

2018-04-12 Thread Stephan Holljes
On Thu, Apr 12, 2018 at 6:59 PM, wm4 wrote: > On Thu, 12 Apr 2018 15:35:45 +0200 > Stephan Holljes wrote: > >> This patchset is a new simple implementation of ffserver for a new >> repository. It is basically a port of https://github.com/klaxa/mkvserver_mk2 >> The se

[FFmpeg-devel] [PATCH 4/4] ffserver: Add basic documentation

2018-04-16 Thread Stephan Holljes
--- Documentation.txt | 64 +++ 1 file changed, 64 insertions(+) create mode 100644 Documentation.txt diff --git a/Documentation.txt b/Documentation.txt new file mode 100644 index 000..0f7485c --- /dev/null +++ b/Documentation.txt @@ -0,0 +

[FFmpeg-devel] [PATCH 2/4] ffserver: Implement publisher

2018-04-16 Thread Stephan Holljes
--- publisher.c | 301 publisher.h | 156 +++ 2 files changed, 457 insertions(+) create mode 100644 publisher.c create mode 100644 publisher.h diff --git a/publisher.c b/publisher.c new file mode 100644 ind

[FFmpeg-devel] [PATCH 1/4] ffserver: Implement refcounted segments.

2018-04-16 Thread Stephan Holljes
--- segment.c | 161 ++ segment.h | 114 2 files changed, 275 insertions(+) create mode 100644 segment.c create mode 100644 segment.h diff --git a/segment.c b/segment.c new file mode 100644

[FFmpeg-devel] [PATCH 3/4] ffserver: Implement ffserver and add Makefile

2018-04-16 Thread Stephan Holljes
--- Makefile | 15 ++ ffserver.c | 477 + 2 files changed, 492 insertions(+) create mode 100644 Makefile create mode 100644 ffserver.c diff --git a/Makefile b/Makefile new file mode 100644 index 000..b077039 --- /dev/null +++ b/

[FFmpeg-devel] [GSoC] Qualification task, simple ffserver implementation.

2018-04-16 Thread Stephan Holljes
I have made the proposed changes: - AVFifoBuffer mutex-locking - Added license header to files - Use avio for segment_save() instead of FILE * - Use av_malloc()/av_free() consistently - Add context to logging (where possible) - Simplified client_log() to print without buffer - Simplif

Re: [FFmpeg-devel] [PATCH] lavf/http.c: Don't write chunked-transfer-trailer to listening server context.

2018-04-17 Thread Stephan Holljes
On Thu, Apr 12, 2018 at 2:07 AM, Stephan Holljes wrote: > --- > I found this bug while working on my qualification task. When closing > a listening HTTP AVIOContext http_shutdown() tries to write the > chunked-transfer-encoding trailer to the listening Context. > > libavformat/

Re: [FFmpeg-devel] [PATCH 2/2] lavf/tcp.c: Free allocated client URLContext in case of error.

2018-04-17 Thread Stephan Holljes
On Fri, Mar 30, 2018 at 3:13 PM, Stephan Holljes wrote: > On Fri, Jan 12, 2018 at 8:47 PM, Michael Niedermayer > wrote: >> On Fri, Jan 12, 2018 at 07:16:30PM +0100, Stephan Holljes wrote: >>> Signed-off-by: Stephan Holljes >>> --- >>> libavforma

Re: [FFmpeg-devel] [PATCH 1/2] lavf/http.c: Free allocated client URLContext in case of error.

2018-04-19 Thread Stephan Holljes
On Fri, Jan 12, 2018 at 7:16 PM, Stephan Holljes wrote: > Signed-off-by: Stephan Holljes > --- > libavformat/http.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/libavformat/http.c b/libavformat/http.c > index 4806b1e59b..537d0a4773 100644 > --- a/li

[FFmpeg-devel] [GSoC] FFserver further development direction

2018-04-24 Thread Stephan Holljes
Hi all, I've discussed this on IRC a bit, but I don't want to exclude those views that are not present there. The consensus seems to be that there are more disadvantages in using the http server of libavformat than there are advantages. This arose partly out of the discussion that there is no wa

Re: [FFmpeg-devel] [GSoC] FFserver further development direction

2018-04-24 Thread Stephan Holljes
Thank you for your replies so far. On Tue, Apr 24, 2018 at 11:46 PM, Nicolas George wrote: > Stephan Holljes (2018-04-24): >> The consensus seems to be that there are more disadvantages in using >> the http server of libavformat than there are advantages. > > I completely

Re: [FFmpeg-devel] [GSoC] FFserver further development direction

2018-04-26 Thread Stephan Holljes
Thank you all for taking the time to reply! While I may have seemed inactive, I have read each and every reply multiple times to make sure I understood the points made correctly. It has really been food for thought and exactly what I hoped for, so thanks again! I think it would be best to be inde

Re: [FFmpeg-devel] [PATCH 1/2] lavf/http.c: Free allocated client URLContext in case of error.

2018-01-09 Thread Stephan Holljes
On Sat, May 20, 2017 at 2:50 AM, Stephan Holljes wrote: > On Sat, Apr 22, 2017 at 3:18 AM, Stephan Holljes > wrote: >> On Tue, Apr 11, 2017 at 8:05 PM, Stephan Holljes >> wrote: >>> --- >>> >>> This version returns 0 in case of success and does n

[FFmpeg-devel] [PATCH 1/2] lavf/http.c: Free allocated client URLContext in case of error.

2018-01-12 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- libavformat/http.c | 4 1 file changed, 4 insertions(+) diff --git a/libavformat/http.c b/libavformat/http.c index 4806b1e59b..537d0a4773 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -574,7 +574,11 @@ static int http_accept(URLContext *s

[FFmpeg-devel] [PATCH 2/2] lavf/tcp.c: Free allocated client URLContext in case of error.

2018-01-12 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- libavformat/tcp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavformat/tcp.c b/libavformat/tcp.c index 8773493df1..b0289f854f 100644 --- a/libavformat/tcp.c +++ b/libavformat/tcp.c @@ -208,8 +208,10 @@ static int tcp_accept

[FFmpeg-devel] GSoC

2018-02-25 Thread Stephan Holljes
Hi, seeing that people are already applying for projects, I think I should as well. My name is Stephan Holljes, on IRC I go by klaxa. Some may remember me from GSoC 2015 where I implemented the (how I later found out controversly debated) HTTP-Server API. Since someone else already applied for

Re: [FFmpeg-devel] GSoC

2018-02-27 Thread Stephan Holljes
On Tue, Feb 27, 2018 at 8:13 PM, Nicolas George wrote: > Hi, and welcome back. Thanks you, and thanks for the feedback. > > Stephan Holljes (2018-02-26): >> seeing that people are already applying for projects, I think I should as >> well. >> >> My name is Step

[FFmpeg-devel] [PATCH][GSoC] lavf/http: Parse and set HTTP method when listening on HTTP(S)

2015-05-28 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- libavformat/http.c | 8 1 file changed, 8 insertions(+) diff --git a/libavformat/http.c b/libavformat/http.c index 4f6716a..3fad43d 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -556,6 +556,14 @@ static int process_line(URLContext *h

Re: [FFmpeg-devel] [PATCH][GSoC] lavf/http: Parse and set HTTP method when listening on HTTP(S)

2015-05-29 Thread Stephan Holljes
Hi, On Fri, May 29, 2015 at 11:54 AM, Michael Niedermayer wrote: > On Fri, May 29, 2015 at 05:05:08AM +0200, Stephan Holljes wrote: >> Signed-off-by: Stephan Holljes >> --- >> libavformat/http.c | 8 >> 1 file changed, 8 insertions(+) >> >

Re: [FFmpeg-devel] [PATCH][GSoC] lavf/http: Parse and set HTTP method when listening on HTTP(S)

2015-05-29 Thread Stephan Holljes
On Fri, May 29, 2015 at 4:19 PM, wm4 wrote: > On Fri, 29 May 2015 16:12:27 +0200 > Stephan Holljes wrote: > >> Hi, >> >> On Fri, May 29, 2015 at 11:54 AM, Michael Niedermayer >> wrote: >> > On Fri, May 29, 2015 at 05:05:08AM +0200, Stephan Holljes w

Re: [FFmpeg-devel] [PATCH][GSoC] lavf/http: Parse and set HTTP method when listening on HTTP(S)

2015-05-29 Thread Stephan Holljes
On Fri, May 29, 2015 at 4:34 PM, Stephan Holljes wrote: > On Fri, May 29, 2015 at 4:19 PM, wm4 wrote: >> On Fri, 29 May 2015 16:12:27 +0200 >> Stephan Holljes wrote: >> >>> Hi, >>> >>> On Fri, May 29, 2015 at 11:54 AM, Michael Niedermayer >

Re: [FFmpeg-devel] [PATCH][GSoC] lavf/http: Parse and set HTTP method when listening on HTTP(S)

2015-05-29 Thread Stephan Holljes
On Fri, May 29, 2015 at 7:10 PM, Nicolas George wrote: > Le decadi 10 prairial, an CCXXIII, Stephan Holljes a écrit : >> From 33a479200b9a941d0783d941c6ea68f8b85cc4de Mon Sep 17 00:00:00 2001 >> From: Stephan Holljes >> Date: Fri, 29 May 2015 16:47:11 +0200 >> Subjec

Re: [FFmpeg-devel] [PATCH][GSoC] lavf/http: Parse and set HTTP method when listening on HTTP(S)

2015-06-01 Thread Stephan Holljes
On Sat, May 30, 2015 at 10:13 AM, Nicolas George wrote: > Le decadi 10 prairial, an CCXXIII, Stephan Holljes a écrit : >> Should method be reassigned or should the set value be kept? As far as >> I can tell the only way to set method is by specifying it as an option >> in t

Re: [FFmpeg-devel] [PATCH][GSoC] lavf/http: Parse and set HTTP method when listening on HTTP(S)

2015-06-01 Thread Stephan Holljes
On Mon, Jun 1, 2015 at 10:52 PM, Nicolas George wrote: > Le tridi 13 prairial, an CCXXIII, Stephan Holljes a écrit : >> After looking at the ffserver code, I'm wondering if maintaining a >> list of clients as HTTPContext or custom wrapper structs would make >> sense

Re: [FFmpeg-devel] [PATCH][GSoC] lavf/http: Parse and set HTTP method when listening on HTTP(S)

2015-06-03 Thread Stephan Holljes
On Tue, Jun 2, 2015 at 10:56 AM, Nicolas George wrote: > Le quartidi 14 prairial, an CCXXIII, Stephan Holljes a écrit : >> I agree, I have probably thought a little bit too far ahead. >> >> I hope the attached patches are okay. >> I'm somewhat unsure about the fi

Re: [FFmpeg-devel] [PATCH][GSoC] lavf/http: Parse and set HTTP method when listening on HTTP(S)

2015-06-03 Thread Stephan Holljes
nderstood what you meant. >> From 3af5c5867672624d45de447d11c2107b3c77742c Mon Sep 17 00:00:00 2001 >> From: Stephan Holljes >> Date: Wed, 3 Jun 2015 20:57:53 +0200 >> Subject: [PATCH 5/5] lavf/http: Indent else-clause. >> >> Signed-off-by: Stepha

[FFmpeg-devel] [PATCH][GSoC] lavf/http: Add simple autodetection for client HTTP method, based on AVIO_FLAG_READ.

2015-06-04 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- libavformat/http.c | 9 + 1 file changed, 9 insertions(+) diff --git a/libavformat/http.c b/libavformat/http.c index 90e88ad..32fc1ce 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -563,6 +563,7 @@ static int process_line(URLContext *h

Re: [FFmpeg-devel] [PATCH][GSoC] lavf/http: Add simple autodetection for client HTTP method, based on AVIO_FLAG_READ.

2015-06-06 Thread Stephan Holljes
On Sat, Jun 6, 2015 at 9:47 AM, Nicolas George wrote: > Le septidi 17 prairial, an CCXXIII, Stephan Holljes a écrit : >> Signed-off-by: Stephan Holljes >> --- >> libavformat/http.c | 9 + >> 1 file changed, 9 insertions(+) > > LGTM. > > Michael,

[FFmpeg-devel] [PATCH][GSoC] lavf/http: Correctly terminate session with HTTP POST client.

2015-06-09 Thread Stephan Holljes
Send a footer to correctly close client sockets. This fixes network errors in client applications. Signed-off-by: Stephan Holljes --- libavformat/http.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavformat/http.c b/libavformat/http.c index 2db2dea..676bfd5 100644

Re: [FFmpeg-devel] GSoC update

2015-06-23 Thread Stephan Holljes
Thank you for the detailed reply. It has helped me understand the structures a lot better than before. Comments inline. On Tue, Jun 23, 2015 at 5:25 PM, Nicolas George wrote: > This has better go to the mailing list. > > Le quintidi 5 messidor, an CCXXIII, Stephan Holljes a écrit : &g

Re: [FFmpeg-devel] GSoC update

2015-06-25 Thread Stephan Holljes
On Thu, Jun 25, 2015 at 11:12 AM, Nicolas George wrote: > Le sextidi 6 messidor, an CCXXIII, Stephan Holljes a écrit : >> > * Creating and preparing the server socket: avio_open2() with various >> > options for the address and the "listen" option set. >> Am

Re: [FFmpeg-devel] GSoC update

2015-06-26 Thread Stephan Holljes
On Fri, Jun 26, 2015 at 10:51 AM, Nicolas George wrote: > Le septidi 7 messidor, an CCXXIII, Stephan Holljes a écrit : >> Thanks, I understand the datastructures and their interaction a lot >> better now. I discussed it with a friend yesterday too and there a lot >> of the t

Re: [FFmpeg-devel] GSoC update

2015-06-27 Thread Stephan Holljes
00:00 2001 From: Stephan Holljes Date: Sun, 28 Jun 2015 06:06:16 +0200 Subject: [PATCH 01/10] lavf/network: split ff_listen_bind into ff_listen and ff_accept Signed-off-by: Stephan Holljes --- libavformat/network.c | 27 +-- libavformat/network.h | 4 2 files ch

Re: [FFmpeg-devel] GSoC update

2015-06-30 Thread Stephan Holljes
Hi, On Sun, Jun 28, 2015 at 10:06 PM, Nicolas George wrote: > Le decadi 10 messidor, an CCXXIII, Stephan Holljes a écrit : >> Hi, >> attached patches are the current state of work. >> It's probably still a bit rough around the edges, but I think I made >> some pro

[FFmpeg-devel] [PATCH 1/9] lavf/network: split ff_listen_bind into ff_listen and ff_accept

2015-07-02 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- libavformat/network.c | 27 +-- libavformat/network.h | 20 2 files changed, 41 insertions(+), 6 deletions(-) diff --git a/libavformat/network.c b/libavformat/network.c index 47ade8c..7a326d2 100644 --- a

[FFmpeg-devel] [PATCH 3/9] lavf/avio: add avio_accept and avio_handshake

2015-07-02 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- libavformat/avio.h| 16 libavformat/aviobuf.c | 17 + 2 files changed, 33 insertions(+) diff --git a/libavformat/avio.h b/libavformat/avio.h index d3d9bbd..b7a4fa8 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h

[FFmpeg-devel] [PATCH 2/9] lavf/avio: add ffurl_accept and ffurl_handshake

2015-07-02 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- libavformat/avio.c | 19 +++ libavformat/url.h | 18 ++ 2 files changed, 37 insertions(+) diff --git a/libavformat/avio.c b/libavformat/avio.c index c188adc..1182336 100644 --- a/libavformat/avio.c +++ b/libavformat/avio.c

[FFmpeg-devel] [PATCH 5/9] lavf/tcp: increase range for listen and call the underlying socket operations accordingly

2015-07-02 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- libavformat/tcp.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/libavformat/tcp.c b/libavformat/tcp.c index 875da50..91c70d4 100644 --- a/libavformat/tcp.c +++ b/libavformat/tcp.c @@ -45,7 +45,7 @@ typedef struct

[FFmpeg-devel] [PATCH 6/9] lavf/http: add http_accept

2015-07-02 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- libavformat/http.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/libavformat/http.c b/libavformat/http.c index 676bfd5..d9c3624 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -25,6 +25,7 @@ #include #endif

[FFmpeg-devel] [PATCH 8/9] doc/protocols: document experimental mutli-client api

2015-07-02 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- doc/protocols.texi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/protocols.texi b/doc/protocols.texi index 453dbcf..39a132a 100644 --- a/doc/protocols.texi +++ b/doc/protocols.texi @@ -292,6 +292,8 @@ autodetection in the future. If set to 1

[FFmpeg-devel] [PATCH 4/9] lavf/tcp: add tcp_accept

2015-07-02 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- libavformat/tcp.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/libavformat/tcp.c b/libavformat/tcp.c index f24cad2..875da50 100644 --- a/libavformat/tcp.c +++ b/libavformat/tcp.c @@ -19,6 +19,7 @@ * Foundation, Inc., 51 Franklin

Re: [FFmpeg-devel] GSoC update

2015-07-02 Thread Stephan Holljes
On Wed, Jul 1, 2015 at 4:10 PM, Nicolas George wrote: > Le duodi 12 messidor, an CCXXIII, Stephan Holljes a écrit : >> This might be a stupid question, but how would I go about that? Just >> use open() and read() from stdio.h or are there structs that allow me >> to do

[FFmpeg-devel] [PATCH 7/9] lavf/http: increase range for listen, handle connection closing accordingly, add http_handshake and move handshake logic there

2015-07-02 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- libavformat/http.c | 45 - 1 file changed, 32 insertions(+), 13 deletions(-) diff --git a/libavformat/http.c b/libavformat/http.c index d9c3624..95065f5 100644 --- a/libavformat/http.c +++ b/libavformat/http.c

[FFmpeg-devel] [PATCH 9/9] Add http multi-client example code

2015-07-02 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- doc/examples/Makefile | 1 + doc/examples/http_multiclient.c | 101 2 files changed, 102 insertions(+) create mode 100644 doc/examples/http_multiclient.c diff --git a/doc/examples/Makefile b/doc/examples

Re: [FFmpeg-devel] [PATCH 7/9] lavf/http: increase range for listen, handle connection closing accordingly, add http_handshake and move handshake logic there

2015-07-03 Thread Stephan Holljes
On Fri, Jul 3, 2015 at 4:18 PM, Nicolas George wrote: > Le quintidi 15 messidor, an CCXXIII, Stephan Holljes a écrit : >> Signed-off-by: Stephan Holljes >> --- >> libavformat/http.c | 45 - >> 1 file changed, 32

[FFmpeg-devel] [PATCH 1/9] lavf/network: split ff_listen_bind into ff_listen and ff_accept

2015-07-03 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- libavformat/network.c | 27 +-- libavformat/network.h | 20 2 files changed, 41 insertions(+), 6 deletions(-) diff --git a/libavformat/network.c b/libavformat/network.c index 47ade8c..7a326d2 100644 --- a

[FFmpeg-devel] [PATCH 4/9] lavf/tcp: add tcp_accept

2015-07-03 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- libavformat/tcp.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/libavformat/tcp.c b/libavformat/tcp.c index f24cad2..71dff7a 100644 --- a/libavformat/tcp.c +++ b/libavformat/tcp.c @@ -19,6 +19,7 @@ * Foundation, Inc., 51 Franklin

[FFmpeg-devel] [PATCH 5/9] lavf/tcp: increase range for listen and call the underlying socket operations accordingly

2015-07-03 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- libavformat/tcp.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/libavformat/tcp.c b/libavformat/tcp.c index 71dff7a..9a8e46e 100644 --- a/libavformat/tcp.c +++ b/libavformat/tcp.c @@ -45,7 +45,7 @@ typedef struct

[FFmpeg-devel] [PATCH 2/9] lavf/avio: add ffurl_accept and ffurl_handshake

2015-07-03 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- libavformat/avio.c | 19 +++ libavformat/url.h | 18 ++ 2 files changed, 37 insertions(+) diff --git a/libavformat/avio.c b/libavformat/avio.c index c188adc..1182336 100644 --- a/libavformat/avio.c +++ b/libavformat/avio.c

[FFmpeg-devel] [PATCH 3/9] lavf/avio: add avio_accept and avio_handshake

2015-07-03 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- libavformat/avio.h| 16 libavformat/aviobuf.c | 17 + 2 files changed, 33 insertions(+) diff --git a/libavformat/avio.h b/libavformat/avio.h index d3d9bbd..b7a4fa8 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h

[FFmpeg-devel] [PATCH 7/9] lavf/http: increase range for listen, handle connection closing accordingly, add http_handshake and move handshake logic there

2015-07-03 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- libavformat/http.c | 44 +++- 1 file changed, 31 insertions(+), 13 deletions(-) diff --git a/libavformat/http.c b/libavformat/http.c index 3c1ec35..6338d80 100644 --- a/libavformat/http.c +++ b/libavformat/http.c

[FFmpeg-devel] [PATCH 6/9] lavf/http: add http_accept

2015-07-03 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- libavformat/http.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/libavformat/http.c b/libavformat/http.c index 676bfd5..3c1ec35 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -25,6 +25,7 @@ #include #endif

[FFmpeg-devel] [PATCH 8/9] doc/protocols: document experimental mutli-client api

2015-07-03 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- doc/protocols.texi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/protocols.texi b/doc/protocols.texi index 453dbcf..39a132a 100644 --- a/doc/protocols.texi +++ b/doc/protocols.texi @@ -292,6 +292,8 @@ autodetection in the future. If set to 1

Re: [FFmpeg-devel] [PATCH 9/9] Add http multi-client example code

2015-07-03 Thread Stephan Holljes
On Fri, Jul 3, 2015 at 12:32 PM, Nicolas George wrote: > Le quintidi 15 messidor, an CCXXIII, Stephan Holljes a écrit : >> Signed-off-by: Stephan Holljes >> --- >> doc/examples/Makefile | 1 + >> doc/exampl

[FFmpeg-devel] [PATCH 9/9] doc/example: Add http multi-client example code

2015-07-03 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- doc/examples/Makefile | 1 + doc/examples/http_multiclient.c | 111 2 files changed, 112 insertions(+) create mode 100644 doc/examples/http_multiclient.c diff --git a/doc/examples/Makefile b/doc/examples

Re: [FFmpeg-devel] [PATCH 7/9] lavf/http: increase range for listen, handle connection closing accordingly, add http_handshake and move handshake logic there

2015-07-05 Thread Stephan Holljes
On Sat, Jul 4, 2015 at 7:47 AM, Stephan Holljes wrote: > Signed-off-by: Stephan Holljes > --- > libavformat/http.c | 44 +++- > 1 file changed, 31 insertions(+), 13 deletions(-) > > diff --git a/libavformat/http.c b/libavformat/http

Re: [FFmpeg-devel] [PATCH 4/9] lavf/tcp: add tcp_accept

2015-07-06 Thread Stephan Holljes
On Mon, Jul 6, 2015 at 7:58 PM, Nicolas George wrote: > Le sextidi 16 messidor, an CCXXIII, Stephan Holljes a écrit : >> Signed-off-by: Stephan Holljes >> --- >> libavformat/tcp.c | 18 ++ >> 1 file changed, 18 insertions(+) >> >> diff

[FFmpeg-devel] [PATCH 1/9] lavf/network: split ff_listen_bind into ff_listen and ff_accept

2015-07-08 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- libavformat/network.c | 27 +-- libavformat/network.h | 20 2 files changed, 41 insertions(+), 6 deletions(-) Changes since first version: - Added documentation - Restore previous behaviour of not

[FFmpeg-devel] [PATCH 3/9] lavf/avio: add avio_accept and avio_handshake

2015-07-08 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- libavformat/avio.h| 16 libavformat/aviobuf.c | 17 + 2 files changed, 33 insertions(+) Changes since first version: - Add documentation diff --git a/libavformat/avio.h b/libavformat/avio.h index d3d9bbd..b7a4fa8

[FFmpeg-devel] [PATCH 4/9] lavf/tcp: add tcp_accept

2015-07-08 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- libavformat/tcp.c | 18 ++ 1 file changed, 18 insertions(+) Changes since first version: - Add av_assert0() check for sc->listen - Add bitmask for s->flags in ffurl_alloc - Use ff_accept() instead of accept() diff -

[FFmpeg-devel] [PATCH 5/9] lavf/tcp: increase range for listen and call the underlying socket operations accordingly

2015-07-08 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- libavformat/tcp.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) Changes since first version: - Set ret when ff_listen_bind() fails diff --git a/libavformat/tcp.c b/libavformat/tcp.c index 6f5e175..5505945 100644 --- a

[FFmpeg-devel] [PATCH 6/9] lavf/http: add http_accept

2015-07-08 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- libavformat/http.c | 19 +++ 1 file changed, 19 insertions(+) Changes since first version: - Add av_assert0() check for sc->listen - Add bitmask for s->flags in ffurl_alloc diff --git a/libavformat/http.c b/libavformat/

[FFmpeg-devel] [PATCH 7/9] lavf/http: increase range for listen, handle connection closing accordingly, add http_handshake and move handshake logic there

2015-07-08 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- libavformat/http.c | 39 --- 1 file changed, 28 insertions(+), 11 deletions(-) Changes since first version: - Return from http_handshake() if no errors occured instead of falling through fail label

[FFmpeg-devel] [PATCH 8/9] doc/protocols: document experimental mutli-client api

2015-07-08 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- doc/protocols.texi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/protocols.texi b/doc/protocols.texi index 453dbcf..39a132a 100644 --- a/doc/protocols.texi +++ b/doc/protocols.texi @@ -292,6 +292,8 @@ autodetection in the future. If set to 1

[FFmpeg-devel] [PATCH 9/9] doc/example: Add http multi-client example code

2015-07-08 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- doc/examples/Makefile | 1 + doc/examples/http_multiclient.c | 120 2 files changed, 121 insertions(+) create mode 100644 doc/examples/http_multiclient.c Changes since first version: - Move client

Re: [FFmpeg-devel] GSoC update

2015-07-08 Thread Stephan Holljes
Hi, I have moved the client code in the sample application into a separate function, I hope I did this correctly. I also annotated the patch files with the changes that occurred over the past few iterations of these exchanges. They will be sent shortly as git send-email patches. I also tested the

[FFmpeg-devel] [PATCH 2/9] lavf/avio: add ffurl_accept and ffurl_handshake

2015-07-08 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- libavformat/avio.c | 19 +++ libavformat/url.h | 18 ++ 2 files changed, 37 insertions(+) Changes since first version: - Add documentation - Let url_accept() allocate contexts - ffurl_handshake only takes

Re: [FFmpeg-devel] [PATCH 4/9] lavf/tcp: add tcp_accept

2015-07-09 Thread Stephan Holljes
On Thu, Jul 9, 2015 at 3:31 PM, Nicolas George wrote: > Le decadi 20 messidor, an CCXXIII, Stephan Holljes a écrit : >> Signed-off-by: Stephan Holljes >> --- >> libavformat/tcp.c | 18 ++ >> 1 file changed, 18 insertions(+) >> Changes si

Re: [FFmpeg-devel] [PATCH 6/9] lavf/http: add http_accept

2015-07-09 Thread Stephan Holljes
On Thu, Jul 9, 2015 at 3:41 PM, Nicolas George wrote: > Le decadi 20 messidor, an CCXXIII, Stephan Holljes a écrit : >> Signed-off-by: Stephan Holljes >> --- >> libavformat/http.c | 19 +++ >> 1 file changed, 19 insertions(+) > >> Changes

Re: [FFmpeg-devel] [PATCH 7/9] lavf/http: increase range for listen, handle connection closing accordingly, add http_handshake and move handshake logic there

2015-07-09 Thread Stephan Holljes
On Thu, Jul 9, 2015 at 3:42 PM, Nicolas George wrote: > Le decadi 20 messidor, an CCXXIII, Stephan Holljes a écrit : >> Signed-off-by: Stephan Holljes >> --- >> libavformat/http.c | 39 --- >> 1 file changed, 28 insertions(+), 11

Re: [FFmpeg-devel] [PATCH 9/9] doc/example: Add http multi-client example code

2015-07-09 Thread Stephan Holljes
On Thu, Jul 9, 2015 at 3:47 PM, Nicolas George wrote: > Le decadi 20 messidor, an CCXXIII, Stephan Holljes a écrit : >> Signed-off-by: Stephan Holljes >> --- >> doc/examples/Makefile | 1 + >> doc/examples/http_multiclient.c | 120 >> +

Re: [FFmpeg-devel] Controlling the server reply (was: 9/9] doc/example: Add http multi-client) example code

2015-07-12 Thread Stephan Holljes
On Sat, Jul 11, 2015 at 11:55 AM, Nicolas George wrote: > Le primidi 21 messidor, an CCXXIII, Stephan Holljes a écrit : >> Good question, I haven't thought about that myself. Adding a 404 error >> to handle_http_errors() and calling it with AVERROR_HTTP_NOT_FOUND >> c

Re: [FFmpeg-devel] Controlling the server reply (was: 9/9] doc/example: Add http multi-client) example code

2015-07-15 Thread Stephan Holljes
Hello, sorry for the delayed response, I somehow overlooked it and also just entered my exam preparation period. On Mon, Jul 13, 2015 at 2:13 PM, Nicolas George wrote: > Le quartidi 24 messidor, an CCXXIII, Stephan Holljes a écrit : >> the best thing I thought of was some kind o

Re: [FFmpeg-devel] Controlling the server reply (was: 9/9] doc/example: Add http multi-client) example code

2015-07-19 Thread Stephan Holljes
Hi, I'm having trouble accessing a client's private data in my sample application. After forking I have an AVIOContext client, but how do I access its HTTPContext's AVOption fields? For example, how do I get the method or how do I set the http_code? Regards, Stephan __

[FFmpeg-devel] [PATCH 1/8] lavf/network: split ff_listen_bind into ff_listen and ff_accept

2015-07-20 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- libavformat/network.c | 27 +-- libavformat/network.h | 20 2 files changed, 41 insertions(+), 6 deletions(-) diff --git a/libavformat/network.c b/libavformat/network.c index 47ade8c..7a326d2 100644 --- a

[FFmpeg-devel] [PATCH 2/8] lavf/avio: add ffurl_accept and ffurl_handshake

2015-07-20 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- libavformat/avio.c | 19 +++ libavformat/url.h | 18 ++ 2 files changed, 37 insertions(+) diff --git a/libavformat/avio.c b/libavformat/avio.c index c188adc..1182336 100644 --- a/libavformat/avio.c +++ b/libavformat/avio.c

[FFmpeg-devel] [PATCH 3/8] lavf/avio: add avio_accept and avio_handshake

2015-07-20 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- libavformat/avio.h| 16 libavformat/aviobuf.c | 17 + 2 files changed, 33 insertions(+) diff --git a/libavformat/avio.h b/libavformat/avio.h index d3d9bbd..b7a4fa8 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h

[FFmpeg-devel] [PATCH 5/8] lavf/tcp: increase range for listen and call the underlying socket operations accordingly

2015-07-20 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- libavformat/tcp.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/libavformat/tcp.c b/libavformat/tcp.c index 6f5e175..5505945 100644 --- a/libavformat/tcp.c +++ b/libavformat/tcp.c @@ -45,7 +45,7 @@ typedef struct

[FFmpeg-devel] [PATCH 4/8] lavf/tcp: add tcp_accept

2015-07-20 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- libavformat/tcp.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/libavformat/tcp.c b/libavformat/tcp.c index f24cad2..6f5e175 100644 --- a/libavformat/tcp.c +++ b/libavformat/tcp.c @@ -19,6 +19,7 @@ * Foundation, Inc., 51 Franklin

  1   2   3   >