Re: [FFmpeg-devel] [PATCH 6/8] lavf/http: Implement server side network code.

2015-07-24 Thread Stephan Holljes
Attached patch fixes a bug where a oneshot server would not finish a handshake, because s->handshake_finish was not set. Regards, Stephan From fb3cc42c64cc4f9e26dc305e2a3f6aacd6f7a001 Mon Sep 17 00:00:00 2001 From: Stephan Holljes Date: Fri, 3 Jul 2015 02:28:56 +0200 Subject: [PATCH 6/8] lavf/htt

Re: [FFmpeg-devel] [PATCH 7/8] tests: Add aac_fixed decoder test

2015-07-24 Thread James Almer
On 25/07/15 12:37 AM, Michael Niedermayer wrote: > On Mon, Jul 20, 2015 at 01:36:21PM +0200, Nedeljko Babic wrote: >> Signed-off-by: Nedeljko Babic >> --- >> tests/fate/aac.mak | 58 >> +- >> 1 file changed, 57 insertions(+), 1 deletion(-) > >

Re: [FFmpeg-devel] [libav-devel] FFV1/MKV IETF Session followup

2015-07-24 Thread Steve Lhomme
Count me in ;) On Fri, Jul 24, 2015 at 8:23 PM, Dave Rice wrote: > Hi all, > Further reporting on the IETF happenings below. > >> On Jul 22, 2015, at 7:44 PM, Dave Rice wrote: >> >> Hi all, >> >> An HTML5 presentation of today's IETF meeting on FFV1 and Matroska is >> available at >> http://re

[FFmpeg-devel] [PATCH] ffmpeg: check value of write syscall

2015-07-24 Thread Ganesh Ajjanagadde
This makes code slightly more robust and fixes a -Wunused-result Signed-off-by: Ganesh Ajjanagadde --- ffmpeg.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ffmpeg.c b/ffmpeg.c index 751c7d3..aab53e8 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -322,13 +322,15 @@ static i

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/texturedsp: fix undefined shift

2015-07-24 Thread Michael Niedermayer
On Fri, Jul 24, 2015 at 10:14:00PM -0300, James Almer wrote: > Silences warnings when using -Wshift-overflow (GCC 6+) > > Signed-off-by: James Almer > --- > libavcodec/texturedsp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) LGTM thanks [...] -- Michael GnuPG fingerprint: 9FF

Re: [FFmpeg-devel] [PATCH 7/8] tests: Add aac_fixed decoder test

2015-07-24 Thread Michael Niedermayer
On Mon, Jul 20, 2015 at 01:36:21PM +0200, Nedeljko Babic wrote: > Signed-off-by: Nedeljko Babic > --- > tests/fate/aac.mak | 58 > +- > 1 file changed, 57 insertions(+), 1 deletion(-) these tests fail on clang with -ftrapv see http://fate.ffmp

Re: [FFmpeg-devel] [PATCH] swscale/output: fix type annotation for yuv2ayuv64le_X_c

2015-07-24 Thread Michael Niedermayer
On Fri, Jul 24, 2015 at 10:00:19PM -0300, James Almer wrote: > Removes warnings about assignment from incompatible pointer type > > Signed-off-by: James Almer > --- > libswscale/output.c | 10 ++ > 1 file changed, 6 insertions(+), 4 deletions(-) oops, didnt see this i applied a similar

[FFmpeg-devel] [PATCH] x86/aacpsdsp: add SSE and SSE3 optimized functions

2015-07-24 Thread James Almer
Between 1.5 and 2.5 times faster Signed-off-by: James Almer --- There's a couple missing, like ps_stereo_interpolate_ipdopd which i wanted to write but couldn't test because it was not used by any of the samples i tried. libavcodec/aacps.c | 4 +- libavcodec/aacpsdsp.h |

Re: [FFmpeg-devel] [PATCH] Replace AV_PKT_DATA_QUALITY_FACTOR by AV_PKT_DATA_QUALITY_STATS

2015-07-24 Thread James Almer
On 23/07/15 7:28 AM, Nicolas George wrote: > Le quartidi 4 thermidor, an CCXXIII, James Almer a écrit : >> Both GCC and MSVC let you in theory deprecate enumerators >> >> https://gcc.gnu.org/onlinedocs/gcc/Enumerator-Attributes.html >> https://msdn.microsoft.com/en-us/library/c8xdzzhh.aspx >> >> I

[FFmpeg-devel] [PATCH 2/2] avcodec/texturedsp: fix undefined shift

2015-07-24 Thread James Almer
Silences warnings when using -Wshift-overflow (GCC 6+) Signed-off-by: James Almer --- libavcodec/texturedsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/texturedsp.c b/libavcodec/texturedsp.c index 7a706b4..19aa353 100644 --- a/libavcodec/texturedsp.c +++ b/li

[FFmpeg-devel] [PATCH 1/2] avcodec/movtextenc: fix undefined shift

2015-07-24 Thread James Almer
Silences warnings when using -Wshift-overflow (GCC 6+) Signed-off-by: James Almer --- libavcodec/movtextenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/movtextenc.c b/libavcodec/movtextenc.c index 3219858..144e6d7 100644 --- a/libavcodec/movtextenc.c +++ b/li

[FFmpeg-devel] [PATCH] swscale/output: fix type annotation for yuv2ayuv64le_X_c

2015-07-24 Thread James Almer
Removes warnings about assignment from incompatible pointer type Signed-off-by: James Almer --- libswscale/output.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/libswscale/output.c b/libswscale/output.c index ca60bf2..a6f3d55 100644 --- a/libswscale/output.c +++

Re: [FFmpeg-devel] [PATCH 4/4] avformat/async: wake up main thread before exit background thread

2015-07-24 Thread Michael Niedermayer
On Wed, Jul 22, 2015 at 02:47:26AM +0800, Zhang Rui wrote: > --- > libavformat/async.c | 1 + > 1 file changed, 1 insertion(+) applied thanks [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Why not whip the teacher when the pupil misbehaves? -- Diogenes of Sin

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

2015-07-24 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 f152f5a..905bc09 100644 --- a/doc/protocols.texi +++ b/doc/protocols.texi @@ -304,6 +304,8 @@ autodetection in the future. If set to 1 enables

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

2015-07-24 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- doc/examples/Makefile | 1 + doc/examples/http_multiclient.c | 163 2 files changed, 164 insertions(+) create mode 100644 doc/examples/http_multiclient.c Changes since last version: - Changed license - Us

[FFmpeg-devel] [PATCH 6/8] lavf/http: Implement server side network code.

2015-07-24 Thread Stephan Holljes
add http_accept, add http_handshake and move handshake logic there, handle connection closing. Signed-off-by: Stephan Holljes --- libavformat/http.c | 184 ++--- 1 file changed, 161 insertions(+), 23 deletions(-) Changes since last version: - Add

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

2015-07-24 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- libavformat/tcp.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/libavformat/tcp.c b/libavformat/tcp.c index c559b80..bee349e 100644 --- a/libavformat/tcp.c +++ b/libavformat/tcp.c @@ -45,7 +45,7 @@ typedef struct TCPContext

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

2015-07-24 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- libavformat/tcp.c | 18 ++ 1 file changed, 18 insertions(+) Changes since last version: - Pass s->flags without filtering to ffurl_alloc() diff --git a/libavformat/tcp.c b/libavformat/tcp.c index f24cad2..c559b80 100644 --- a/libavformat/tcp.c

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

2015-07-24 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- libavformat/avio.h| 27 +++ libavformat/aviobuf.c | 17 + 2 files changed, 44 insertions(+) Changes since last version: - Add doxy. - Properly initialize *cc in avio_accept() diff --git a/libavformat/avio.h b/liba

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

2015-07-24 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/libavformat

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

2015-07-24 Thread Stephan Holljes
Signed-off-by: Stephan Holljes --- libavformat/avio.c | 20 libavformat/url.h | 25 + 2 files changed, 45 insertions(+) Changes since last version: - Add av_assert0(!*c) - return AVERROR(EBADF) instead of 0 in ffurl_accept() diff --git a/libavfor

Re: [FFmpeg-devel] [PATCH 3/4] avformat/async: move more code into locked area in background thread

2015-07-24 Thread Michael Niedermayer
On Wed, Jul 22, 2015 at 02:47:25AM +0800, Zhang Rui wrote: > --- > libavformat/async.c | 9 + > 1 file changed, 5 insertions(+), 4 deletions(-) applied thanks [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB No great genius has ever existed without some

Re: [FFmpeg-devel] [PATCH] avfilter: add framerate video filter

2015-07-24 Thread Michael Niedermayer
On Fri, Jul 24, 2015 at 07:09:16AM +, Paul B Mahol wrote: [..] > +static av_cold void uninit(AVFilterContext *ctx) > +{ > +FrameRateContext *s = ctx->priv; > +int i; > + > +for (i = s->frst + 1; i > s->last; i++) { > +if (s->srce[i] && (s->srce[i] != s->srce[i + 1])) > +

Re: [FFmpeg-devel] [PATCH 3/3] avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for VP9 intra functions

2015-07-24 Thread Michael Niedermayer
On Thu, Jul 23, 2015 at 10:36:37AM -0400, Ronald S. Bultje wrote: > Hi, > > On Thu, Jul 23, 2015 at 8:55 AM, wrote: > > > From: Shivraj Patil > > > > Signed-off-by: Shivraj Patil > > --- > > libavcodec/mips/Makefile |3 +- > > libavcodec/mips/vp9_intra_msa.c| 533 > > ++

Re: [FFmpeg-devel] [libav-devel] FFV1/MKV IETF Session followup

2015-07-24 Thread Michael Niedermayer
On Fri, Jul 24, 2015 at 02:23:52PM -0400, Dave Rice wrote: > Hi all, > Further reporting on the IETF happenings below. > > > On Jul 22, 2015, at 7:44 PM, Dave Rice wrote: > > > > Hi all, > > > > An HTML5 presentation of today's IETF meeting on FFV1 and Matroska is > > available at > > http://

Re: [FFmpeg-devel] [PATCH] libavcodec/qsvdec_h264.c bug fixed: decoder fails after restart on non-annex-b content.

2015-07-24 Thread Michael Niedermayer
On Fri, Jul 24, 2015 at 03:28:22PM +0300, Ivan Uskov wrote: > Hello Hendrik, > > Friday, July 24, 2015, 2:37:11 PM, you wrote: > >> The attached patch solves this issue. The corresponded code was taken > >> from \libavcodec\crystalhd.c which also uses the h264_mp4toannexb_bsf > >> filter. > > HL>

Re: [FFmpeg-devel] [PATCH] configure: fix LARGEADDRESSAWARE flag with MSVC

2015-07-24 Thread Michael Niedermayer
On Fri, Jul 24, 2015 at 01:16:43PM +0200, Hendrik Leppkes wrote: > Otherwise it would get translated like a library path (-L option), > which breaks setting the flag. > --- > configure | 1 + > 1 file changed, 1 insertion(+) applied thanks [...] -- Michael GnuPG fingerprint: 9FF2128B147EF67

[FFmpeg-devel] [PATCH 2/2] mcfps filter WIP

2015-07-24 Thread Michael Niedermayer
Works well with some scenes, works really not well with others More work needed if you can improve it, i would not be unhappy this should not be optimized yet except trivial things, first the code should work well then it should be made to work fast Signed-off-by: Michael Niedermayer --- libavc

[FFmpeg-devel] [PATCH 1/2] avcodec/snowenc: Support setting the iterative dia size separately

2015-07-24 Thread Michael Niedermayer
From: Michael Niedermayer Signed-off-by: Michael Niedermayer --- doc/encoders.texi|9 + libavcodec/snow.h|1 + libavcodec/snowenc.c |4 +++- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/doc/encoders.texi b/doc/encoders.texi index 6e50a90..f9fe331 10

Re: [FFmpeg-devel] [libav-devel] FFV1/MKV IETF Session followup

2015-07-24 Thread Dave Rice
Hi all, Further reporting on the IETF happenings below. > On Jul 22, 2015, at 7:44 PM, Dave Rice wrote: > > Hi all, > > An HTML5 presentation of today's IETF meeting on FFV1 and Matroska is > available at > http://recordings.conf.meetecho.com/Playout/watch.jsp?recording=IETF93_DISPATCH&chapte

Re: [FFmpeg-devel] [PATCH] [RFC] use a wrapper script to call MS link.exe to avoid mixing with /usr/bin/link.exe

2015-07-24 Thread Michael Niedermayer
On Fri, Jul 24, 2015 at 09:38:04AM +0200, Steve Lhomme wrote: > -- > favor link over link.exe in case some wrapper script already exists > fallback to "link" in the path if the one next to cl is not found > moved mslink next to makedef in compat/windows > --- > compat/windows/mslink | 9 +

[FFmpeg-devel] Invitation to VDD 2015

2015-07-24 Thread Jean-Baptiste Kempf
My dear friends of the FFmpeg community, I'd like to invite you to the VideoLAN Dev Days 2015, the 3rd week-end of September (19-20 September 2015), in Paris, France. This technical conference about open source multimedia, will see developers from VLC, libav, FFmpeg, x26*, Phonon, DVBlast, PulseA

[FFmpeg-devel] [PATCH] avfilter: add framerate video filter

2015-07-24 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- doc/filters.texi | 45 libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/vf_framerate.c | 632 + 4 files changed, 679 insertions(+) create mode 100644 libavfilter/vf_fram

[FFmpeg-devel] New Server

2015-07-24 Thread Michael Niedermayer
Hi all as you all probably know FFmpeg/Mplayer/... is searching for a new free server & hosting ... We received the following offers for a new server and hosting. If you think any of them are a bad choice then please speak now! i ommited one non free offer and one unspecific offer from a company

Re: [FFmpeg-devel] [PATCH] configure: force -nologo- when detecting MSVC

2015-07-24 Thread Matt Oliver
On 24 July 2015 at 17:47, Steve Lhomme wrote: > On Fri, Jul 24, 2015 at 12:55 AM, Michael Niedermayer > wrote: > > On Thu, Jul 23, 2015 at 07:25:44PM +0200, Steve Lhomme wrote: > >> The -nologo- option is the inverse of -nologo, reenabling printing the > >> "logo" version header. This is useful

Re: [FFmpeg-devel] [PATCH] libavcodec/qsvdec_h264.c bug fixed: decoder fails after restart on non-annex-b content.

2015-07-24 Thread Ivan Uskov
Hello Hendrik, Friday, July 24, 2015, 2:37:11 PM, you wrote: >> The attached patch solves this issue. The corresponded code was taken >> from \libavcodec\crystalhd.c which also uses the h264_mp4toannexb_bsf >> filter. HL> I don't think this is safe. avctx->extradata is user-managed and HL> alloca

[FFmpeg-devel] [PATCH] avfilter: add acrossfade filter

2015-07-24 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- doc/filters.texi | 40 + libavfilter/Makefile | 1 + libavfilter/af_afade.c | 395 +-- libavfilter/allfilters.c | 1 + 4 files changed, 390 insertions(+), 47 deletions(-) diff --git a/doc/filters.t

Re: [FFmpeg-devel] [PATCH] libavcodec/qsvdec_h264.c bug fixed: decoder fails after restart on non-annex-b content.

2015-07-24 Thread Hendrik Leppkes
On Fri, Jul 24, 2015 at 1:34 PM, Ivan Uskov wrote: > Hello All, > > The current implementation of libavcodec/qsvdec_h264.c does not store > original extradata buffer. At the same time the > \libavcodec\h264_mp4toannexb_bsf filter does modify extradata buffer > inplace and fails to process it next

[FFmpeg-devel] [PATCH] libavcodec/qsvdec_h264.c bug fixed: decoder fails after restart on non-annex-b content.

2015-07-24 Thread Ivan Uskov
Hello All, The current implementation of libavcodec/qsvdec_h264.c does not store original extradata buffer. At the same time the \libavcodec\h264_mp4toannexb_bsf filter does modify extradata buffer inplace and fails to process it next time if decoder reinitializes. So it is not possible to decode

Re: [FFmpeg-devel] Windows deprecated stdin reading method

2015-07-24 Thread Hendrik Leppkes
On Sun, Mar 8, 2015 at 12:09 PM, Peter wrote: > alright, that table didn't work out, just imagine this: > > .\test.exe type a.txt | .\test.exe works > .\test.exe cat a.txt | .\test.exeworks > Get-Content input-file.txt | .\test.exe works > .\test.exe cat

[FFmpeg-devel] [PATCH] configure: fix LARGEADDRESSAWARE flag with MSVC

2015-07-24 Thread Hendrik Leppkes
Otherwise it would get translated like a library path (-L option), which breaks setting the flag. --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index 7b8815f..98bfbc6 100755 --- a/configure +++ b/configure @@ -3382,6 +3382,7 @@ msvc_common_flags(){

Re: [FFmpeg-devel] [PATCH 4/4] libavcodec/qsvdec_h264.c: packet buffering has been removed since qsvdec.c does maintain own data buffering now.

2015-07-24 Thread Michael Niedermayer
On Tue, Jul 21, 2015 at 04:12:19PM +0300, Ivan Uskov wrote: > Hello all, > > Since after [PATCH 3/4] the ff_qsv_decode() always consume whole packet > payload buffering of packets into qsvdec_h264.c is need not more. > Suggested patch makes qsvdec_h264.c simple as far as it possible. > Please revi

Re: [FFmpeg-devel] [PATCH 3/4] libavcodec/qsvdec.c: The ff_qsv_decode() now guarantees the consumption of whole packet.

2015-07-24 Thread Michael Niedermayer
On Fri, Jul 24, 2015 at 01:30:56PM +0300, Ivan Uskov wrote: > Hello Michael, > > > Friday, July 24, 2015, 12:26:27 PM, you wrote: > > MN> yes, it seems simpler, > MN> and its only structs, not bitmaps so space wise it should not be a > MN> problem > Ok, really makes sense. > > There is modified

Re: [FFmpeg-devel] [PATCH 3/4] libavcodec/qsvdec.c: The ff_qsv_decode() now guarantees the consumption of whole packet.

2015-07-24 Thread Ivan Uskov
Hello Michael, Friday, July 24, 2015, 12:26:27 PM, you wrote: MN> yes, it seems simpler, MN> and its only structs, not bitmaps so space wise it should not be a MN> problem Ok, really makes sense. There is modified patch attached with following changes: 1. static pre-allocation for 17 elements u

Re: [FFmpeg-devel] [PATCH 3/4] libavcodec/qsvdec.c: The ff_qsv_decode() now guarantees the consumption of whole packet.

2015-07-24 Thread Michael Niedermayer
On Fri, Jul 24, 2015 at 11:56:54AM +0300, Ivan Uskov wrote: > Hello Michael, > > Friday, July 24, 2015, 2:48:45 AM, you wrote: > > > >> +/* A decoder's latency depends not only by async_depth > >> + but by DPB size too. The latency may acheve 16 frames. > >> +

[FFmpeg-devel] [PATCH] configure: force -nologo- when detecting Intel compilers

2015-07-24 Thread Michael Niedermayer
From: Michael Niedermayer The -nologo- option is the inverse of -nologo, reenabling printing the "logo" version header. This is useful if the compiler actually is a wrapper that forces -nologo. Based-on: a54e720e0289433d6bc3f7ba0a37fa5cabfaeea9 by Steve Lhomme Signed-off-by: Michael Niedermayer

[FFmpeg-devel] [PATCH] movtextdec.c: Add support for fontsize

2015-07-24 Thread Niklesh Lalwani
From: Niklesh Add support for fontsize in style records. The patch uses reset to directly change back to default style instead of using closing tags, since we are not handling the default styles right now. Signed-off-by: Niklesh --- libavcodec/movtextdec.c | 14 ++ 1 file changed

Re: [FFmpeg-devel] [PATCH 3/4] libavcodec/qsvdec.c: The ff_qsv_decode() now guarantees the consumption of whole packet.

2015-07-24 Thread Ivan Uskov
Hello Michael, Friday, July 24, 2015, 2:50:49 AM, you wrote: >> The reason of replacing of av_usleep(1) to av_usleep(500) is >> following: I believe it is bad idea to ask hardware 100 times per >> second if it is busy, especially in main decoding loop. >> Peak qsv decoding performance is about

Re: [FFmpeg-devel] [PATCH 3/4] libavcodec/qsvdec.c: The ff_qsv_decode() now guarantees the consumption of whole packet.

2015-07-24 Thread Ivan Uskov
Hello Michael, Friday, July 24, 2015, 2:48:45 AM, you wrote: >> +/* A decoder's latency depends not only by async_depth >> + but by DPB size too. The latency may acheve 16 frames. >> + So it is necessary to handle the size of async_fifo >> dynamically: >> +

Re: [FFmpeg-devel] [PATCH] configure: force -nologo- when detecting MSVC

2015-07-24 Thread Steve Lhomme
On Fri, Jul 24, 2015 at 12:55 AM, Michael Niedermayer wrote: > On Thu, Jul 23, 2015 at 07:25:44PM +0200, Steve Lhomme wrote: >> The -nologo- option is the inverse of -nologo, reenabling printing the >> "logo" version header. This is useful if the compiler actually is a >> wrapper that forces -nolo

[FFmpeg-devel] [PATCH] [RFC] use a wrapper script to call MS link.exe to avoid mixing with /usr/bin/link.exe

2015-07-24 Thread Steve Lhomme
-- favor link over link.exe in case some wrapper script already exists fallback to "link" in the path if the one next to cl is not found moved mslink next to makedef in compat/windows --- compat/windows/mslink | 9 + configure | 2 +- 2 files changed, 10 insertions(+), 1 deleti