[FFmpeg-devel] TCP socket descriptor leak on listen and interrupt

2015-09-10 Thread Alexander Drozdov
Hi all! We are found another descriptors leak :-) If we try to listen on TCP port and ff_listen() fails on interrupt callback, socket (bind) descriptor overwrites at the tcp_open() and does not closed at all. As a result, we can't rebind to the same port. Minimal sample for issue (sorry for C++

Re: [FFmpeg-devel] Proposed patches to mpjpeg demux

2015-09-10 Thread Alex Agranovsky
Quick update: format.c patch needs to be amended, to include a NULL check. --  Alex Agranovsky Sighthound, Inc www.sighthound.com On September 10, 2015 at 12:04:55 PM, Alex Agranovsky (a...@sighthound.com) wrote: Please look at the attached patches. They accomplish the following

Re: [FFmpeg-devel] [PATCH] Optimize nvenc parameters, add 3 more presets: fast, medium, slow

2015-09-10 Thread Agatha Hu
在 2015/9/10 17:48, Timo Rothenpieler 写道: @@ -770,7 +780,7 @@ static av_cold int nvenc_encode_init(AVCodecContext *avctx) avctx->qmin = -1; avctx->qmax = -1; } else if (ctx->cbr) { -if (!ctx->twopass) { +if (!ctx->twopass < 1) { This doesn't seem right a

Re: [FFmpeg-devel] IRC meeting on Saturday 2015-09-12, UTC 15:00

2015-09-10 Thread Ganesh Ajjanagadde
On Mon, Sep 7, 2015 at 5:37 AM, Stefano Sabatini wrote: > Hi, > > I propose to have an official IRC meeting on the next Saturday, and I > propose the tentative time of 15:00 UTC, but feel free to propose a > different time if this can't suit you. > > The IRC meeting channel will be public and the

Re: [FFmpeg-devel] [PATCHv2 2/2] all: do standards compliant absdiff computation

2015-09-10 Thread Ganesh Ajjanagadde
On Sun, Aug 23, 2015 at 6:11 PM, Ganesh Ajjanagadde wrote: > This resolves undefined behavior, and also silences -Wabsolute-value in clang > 3.5+. > > Signed-off-by: Ganesh Ajjanagadde > --- > libavcodec/flashsv2enc.c | 6 +++--- > libavfilter/vf_hqx.c | 6 +++--- > libavfilter/vf_xbr.c

Re: [FFmpeg-devel] [PATCH] Optimize nvenc parameters, add 3 more presets: fast, medium, slow

2015-09-10 Thread Agatha Hu
在 2015/9/10 17:48, Timo Rothenpieler 写道: * PGP Signed by an unknown key --- libavcodec/nvenc.c | 59 +- 1 file changed, 54 insertions(+), 5 deletions(-) diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index 5490652..7c683ea 100644 ---

[FFmpeg-devel] [PATCH] change flag of cuCtxCreate to avoid CPU spins

2015-09-10 Thread Agatha Hu
--- libavcodec/nvenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index 7c683ea..a20356f 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -580,7 +580,7 @@ static av_cold int nvenc_encode_init(AVCodecContext *avctx)

Re: [FFmpeg-devel] [PATCH] avutil: Add basic transfer functions for each AVColorTransferCharacteristic

2015-09-10 Thread Michael Niedermayer
On Tue, Sep 01, 2015 at 05:02:10PM +0100, Kevin Wheatley wrote: > Rather than rewrite history or anything like that people could either > apply this on top of my previous patches, or for a view of the whole > kit and kaboodle: > > https://github.com/FFmpeg/FFmpeg/compare/master...KevinJW:image_exr

Re: [FFmpeg-devel] [PATCH] avcodec/exr/c Add support for applying a transfer characteristic curve to OpenEXR inputs.

2015-09-10 Thread Michael Niedermayer
On Tue, Sep 01, 2015 at 12:46:21PM +0100, Kevin Wheatley wrote: > This actually marks up the buffers as having the state given by the applied > trc, > > Kevin > > On Tue, Sep 1, 2015 at 12:04 PM, Kevin Wheatley > wrote: > > This adds the actual usage and allows for command lines similar to this

Re: [FFmpeg-devel] [PATCH] avfilter/vf_transpose: use the name 's' for the pointer to the private context

2015-09-10 Thread Paul B Mahol
On 9/3/15, Ganesh Ajjanagadde wrote: > Signed-off-by: Ganesh Ajjanagadde > --- > libavfilter/vf_transpose.c | 46 > +++--- > 1 file changed, 23 insertions(+), 23 deletions(-) > applied ___ ffmpeg-devel mailing l

Re: [FFmpeg-devel] [PATCH] avfilter/f_perms: use the name 's' for the pointer to the private context

2015-09-10 Thread Paul B Mahol
On 9/9/15, Ganesh Ajjanagadde wrote: > Signed-off-by: Ganesh Ajjanagadde > --- > libavfilter/f_perms.c | 18 +- > 1 file changed, 9 insertions(+), 9 deletions(-) > applied ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ff

Re: [FFmpeg-devel] [PATCH] avutil: Add additional primaries and transfer characteristic enumerations from ITU-T Rec H.265

2015-09-10 Thread Michael Niedermayer
On Tue, Sep 01, 2015 at 12:45:03PM +0100, Kevin Wheatley wrote: > I noticed that the output from actually tagging buffers with the new > states needs patching as well, is there any other place I need to > update? yes, the docs, see doc/encoders.texi patches applied thanks [...] -- Michael

Re: [FFmpeg-devel] [PATCH] avfilter/avf_showcqt: draw text optionally

2015-09-10 Thread Michael Niedermayer
On Tue, Sep 01, 2015 at 12:33:51PM +, Paul B Mahol wrote: > Signed-off-by: Paul B Mahol > --- > libavfilter/avf_showcqt.c | 16 ++-- > 1 file changed, 14 insertions(+), 2 deletions(-) LGTM thanks [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Re: [FFmpeg-devel] IRC meeting on Saturday 2015-09-12, UTC 15:00

2015-09-10 Thread Ronald S. Bultje
Hi, On Thu, Sep 10, 2015 at 1:46 PM, Michael Niedermayer wrote: > On Mon, Sep 07, 2015 at 11:37:47AM +0200, Stefano Sabatini wrote: > > Hi, > > > > I propose to have an official IRC meeting on the next Saturday, and I > > propose the tentative time of 15:00 UTC, but feel free to propose a > > di

Re: [FFmpeg-devel] avfoundation AVMediaTypeMuxed device support

2015-09-10 Thread Michael Niedermayer
On Tue, Jul 28, 2015 at 01:32:16PM +0200, Thilo Borgmann wrote: > Hi, > > Am 27.07.15 um 18:08 schrieb Gianluigi Tiesi: > > Hi, with the attached patch, ffmpeg avfoundation device input > > is able to find my canopus dv firewire adapter. > > I only have 1 format 'muxed' and it's not possible to se

Re: [FFmpeg-devel] IRC meeting on Saturday 2015-09-12, UTC 15:00

2015-09-10 Thread Michael Niedermayer
On Mon, Sep 07, 2015 at 11:37:47AM +0200, Stefano Sabatini wrote: > Hi, > > I propose to have an official IRC meeting on the next Saturday, and I > propose the tentative time of 15:00 UTC, but feel free to propose a > different time if this can't suit you. > > The IRC meeting channel will be publ

[FFmpeg-devel] Proposed patches to mpjpeg demux

2015-09-10 Thread Alex Agranovsky
Please look at the attached patches. They accomplish the following: 1) change to format.c: allows the demux to be matched by Content-Type, even if the incoming Content-Type header contains parameters, such as 'multipart/x-mixed-replace;boundary=ffserver’. Currently the comparison seems to occur

Re: [FFmpeg-devel] [PATCH 3/3] avfilter/vf_stereo3d: add HDMI output format

2015-09-10 Thread Kirill Gavrilov
OK, On Thu, Sep 10, 2015 at 7:23 PM, Paul B Mahol wrote: > > See https://github.com/mpv-player/mpv/issues/1945 > thank you for the link to actual conversation! Although I believe that adding manually mode into /etc/X11/xorg.conf like that: > Modeline "1920x2205@24" 148.32 1920 2558 2602 2750 22

Re: [FFmpeg-devel] [PATCH 3/3] avfilter/vf_stereo3d: add HDMI output format

2015-09-10 Thread Paul B Mahol
On 9/10/15, Kirill Gavrilov wrote: > Hi Paul, > > On Sat, Sep 5, 2015 at 9:29 PM, Paul B Mahol wrote > >> +HDMI, // HDMI frame pack (left eye first, right eye >> second) >> > I'm wondering, how this output filter can be actually used? > > Packaging stereo pair into HDMI format a

[FFmpeg-devel] [PATCH] lavf/mov: add support for sidx fragment indexes

2015-09-10 Thread Rodger Combs
The logic in mov_seek_fragment for matching track_ids to AVStream ids is almost certainly wrong, and should be corrected (by someone who knows more about the relevant structures) before this is merged. Fixes trac #3842 --- libavformat/isom.h | 1 + libavformat/mov.c | 182 +

[FFmpeg-devel] [PATCH 6/6] FATE: fix tests modified by ass_split and XML escaping changes

2015-09-10 Thread Rodger Combs
--- tests/ref/fate/ffprobe_xml | 2 +- tests/ref/fate/sub-webvttenc | 22 +++--- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/ref/fate/ffprobe_xml b/tests/ref/fate/ffprobe_xml index 2fdd81b..443cc12 100644 --- a/tests/ref/fate/ffprobe_xml +++ b/tests/re

[FFmpeg-devel] [PATCH 5/6] lavc/webvttenc: XML-escape text output

2015-09-10 Thread Rodger Combs
--- libavcodec/webvttenc.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libavcodec/webvttenc.c b/libavcodec/webvttenc.c index 9f67a2e..555e7c7 100644 --- a/libavcodec/webvttenc.c +++ b/libavcodec/webvttenc.c @@ -112,7 +112,12 @@ static void webvtt_style_apply(WebVTTCon

[FFmpeg-devel] [PATCH 4/6] ffprobe: switch xml_escape_str to use av_bprint_escape; cleanup a bit

2015-09-10 Thread Rodger Combs
--- ffprobe.c | 25 ++--- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/ffprobe.c b/ffprobe.c index 4328b61..3c097bb 100644 --- a/ffprobe.c +++ b/ffprobe.c @@ -1543,21 +1543,10 @@ static av_cold int xml_init(WriterContext *wctx) return 0; } -static cons

[FFmpeg-devel] [PATCH 3/6] lavu/bprint: add XML escaping

2015-09-10 Thread Rodger Combs
--- libavutil/avstring.h | 28 libavutil/bprint.c | 43 +++ 2 files changed, 71 insertions(+) diff --git a/libavutil/avstring.h b/libavutil/avstring.h index 234c030..71a3179 100644 --- a/libavutil/avstring.h +++ b/libavutil/av

[FFmpeg-devel] [PATCH 2/6] lavu/avstring: switch AV_ESCAPE_FLAGs to shift-based formatting

2015-09-10 Thread Rodger Combs
--- libavutil/avstring.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavutil/avstring.h b/libavutil/avstring.h index 466edaf..234c030 100644 --- a/libavutil/avstring.h +++ b/libavutil/avstring.h @@ -300,14 +300,14 @@ enum AVEscapeMode { * characters lists, except it

[FFmpeg-devel] [PATCH 1/6] lavc/ass_split: Fix parser bugs

2015-09-10 Thread Rodger Combs
Specifically: - Skip writing drawings as text - Parse \h correctly - Handle comments and unknown tags correctly --- libavcodec/ass_split.c | 29 + 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/libavcodec/ass_split.c b/libavcodec/ass_split.c index 9bc7b

Re: [FFmpeg-devel] [PATCH 3/3] avfilter/vf_stereo3d: add HDMI output format

2015-09-10 Thread Kirill Gavrilov
Hi Paul, On Sat, Sep 5, 2015 at 9:29 PM, Paul B Mahol wrote > +HDMI, // HDMI frame pack (left eye first, right eye > second) > I'm wondering, how this output filter can be actually used? Packaging stereo pair into HDMI format at software level (e.g. without support by driver)

Re: [FFmpeg-devel] [PATCH v2] avformat/avienc: add muxer option "write_channel_mask"

2015-09-10 Thread Tobias Rapp
On 10.09.2015 15:28, Tobias Rapp wrote: On 10.09.2015 14:57, Derek Buitenhuis wrote: On 9/10/2015 1:25 PM, Tobias Rapp wrote: My use-case is handling recorded AVI files which have an unknown/empty/unsupported channel layout. Instead of writing the guessed channel layout into the output file, us

[FFmpeg-devel] Triple GET request while encoding remote JPEG image

2015-09-10 Thread Przemysław Sobala
Hi One question: Why does FFmpeg need to perform 3 GET requests to encode one remote JPEG image: $ ./ffmpeg -y -loglevel trace -i http://i.wp.pl/a/i/dppadmin/sport/wid_15524107.jpg -f mjpeg /dev/null ffmpeg version N-75159-g319898b Copyright (c) 2000-2015 the FFmpeg developers built with gcc 4.

Re: [FFmpeg-devel] [PATCH] avformat/avienc: add muxer option "write_channel_mask"

2015-09-10 Thread Tobias Rapp
On 10.09.2015 14:57, Derek Buitenhuis wrote: On 9/10/2015 1:25 PM, Tobias Rapp wrote: My use-case is handling recorded AVI files which have an unknown/empty/unsupported channel layout. Instead of writing the guessed channel layout into the output file, using "-write_channel_mask off" allows to w

Re: [FFmpeg-devel] IRC meeting on Saturday 2015-09-12, UTC 15:00

2015-09-10 Thread Clément Bœsch
On Mon, Sep 07, 2015 at 11:37:47AM +0200, Stefano Sabatini wrote: > Hi, > > I propose to have an official IRC meeting on the next Saturday, and I > propose the tentative time of 15:00 UTC, but feel free to propose a > different time if this can't suit you. > Being in CEST, it kind of blocks the

Re: [FFmpeg-devel] MP3 streaming/seeking broken in new Chrome release using newer ffmpeg

2015-09-10 Thread wm4
On Thu, 10 Sep 2015 20:35:21 +1000 Andrew Armstrong wrote: > Hello, > > A recent Chrome update today has caused seeking in audio files streamed on > the web (eg, via SoundCloud and others) to no longer work. Instead, the > file is slowly buffered until the required position in the data stream is

Re: [FFmpeg-devel] MP3 streaming/seeking broken in new Chrome release using newer ffmpeg

2015-09-10 Thread Ronald S. Bultje
Hi Andrew, On Thu, Sep 10, 2015 at 8:37 AM, Clément Bœsch wrote: > On Thu, Sep 10, 2015 at 08:35:21PM +1000, Andrew Armstrong wrote: > > Hello, > > > > A recent Chrome update today has caused seeking in audio files streamed > on > > the web (eg, via SoundCloud and others) to no longer work. Inst

Re: [FFmpeg-devel] [PATCH] avformat/avienc: add muxer option "write_channel_mask"

2015-09-10 Thread Derek Buitenhuis
On 9/10/2015 1:25 PM, Tobias Rapp wrote: > My use-case is handling recorded AVI files which have an > unknown/empty/unsupported channel layout. Instead of writing the guessed > channel layout into the output file, using "-write_channel_mask off" > allows to write an empty channel mask instead.

Re: [FFmpeg-devel] MP3 streaming/seeking broken in new Chrome release using newer ffmpeg

2015-09-10 Thread Clément Bœsch
On Thu, Sep 10, 2015 at 08:35:21PM +1000, Andrew Armstrong wrote: > Hello, > > A recent Chrome update today has caused seeking in audio files streamed on > the web (eg, via SoundCloud and others) to no longer work. Instead, the > file is slowly buffered until the required position in the data stre

[FFmpeg-devel] [PATCH] avformat/avienc: add muxer option "write_channel_mask"

2015-09-10 Thread Tobias Rapp
Attached patch adds support for writing an empty channel-mask into AVI files. My use-case is handling recorded AVI files which have an unknown/empty/unsupported channel layout. Instead of writing the guessed channel layout into the output file, using "-write_channel_mask off" allows to write

Re: [FFmpeg-devel] [PATCH] Use av_log() to log messages from the libopenh264 encoder.

2015-09-10 Thread Michael Niedermayer
On Wed, Sep 09, 2015 at 03:32:42PM -0400, Gregory J. Wolfe wrote: > File libopenh264enc.c has been modified so that the encoder uses av_log() > to log messages (error, warning, info, etc.) instead of logging them > directly to stderr. At the time the encoder is created, the current > libav log lev

[FFmpeg-devel] MP3 streaming/seeking broken in new Chrome release using newer ffmpeg

2015-09-10 Thread Andrew Armstrong
Hello, A recent Chrome update today has caused seeking in audio files streamed on the web (eg, via SoundCloud and others) to no longer work. Instead, the file is slowly buffered until the required position in the data stream is reached. I added some notes about this problem at the Chrome bug repo

Re: [FFmpeg-devel] [PATCH] avformat/aa: initialize "header_seed" and "header_key"

2015-09-10 Thread Michael Niedermayer
On Thu, Sep 10, 2015 at 09:10:17AM +0200, Vesselin Bontchev wrote: > From 8e28e0721c61cface6496fe4657ff5d3c3d2e6b8 Mon Sep 17 00:00:00 2001 > From: Vesselin Bontchev > Date: Thu, 10 Sep 2015 08:59:56 +0200 > Subject: [PATCH] avformat/aa: initialize "header_seed" and "header_key" > > Fixes CID 132

Re: [FFmpeg-devel] [PATCH] Optimize nvenc parameters, add 3 more presets: fast, medium, slow

2015-09-10 Thread Timo Rothenpieler
--- libavcodec/nvenc.c | 59 +- 1 file changed, 54 insertions(+), 5 deletions(-) diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index 5490652..7c683ea 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -610,8 +610,17 @@ static

[FFmpeg-devel] [PATCH] Optimize nvenc parameters, add 3 more presets: fast, medium, slow

2015-09-10 Thread Agatha Hu
--- libavcodec/nvenc.c | 59 +- 1 file changed, 54 insertions(+), 5 deletions(-) diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index 5490652..7c683ea 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -610,8 +610,17 @@ static av

[FFmpeg-devel] [PATCH] avformat/aa: initialize "header_seed" and "header_key"

2015-09-10 Thread Vesselin Bontchev
From 8e28e0721c61cface6496fe4657ff5d3c3d2e6b8 Mon Sep 17 00:00:00 2001 From: Vesselin Bontchev Date: Thu, 10 Sep 2015 08:59:56 +0200 Subject: [PATCH] avformat/aa: initialize "header_seed" and "header_key" Fixes CID 1322364, CID 1322363 Signed-off-by: Vesselin Bontchev --- libavformat/aadec.c |