[FFmpeg-devel] [PATCH V6] lavfi/scale_vaapi: add denoise/sharpness support.

2017-08-04 Thread Jun Zhao
V6 : - Re-work with current scale_vaapi and double check i965 have fix the sharpness issue. https://bugs.freedesktop.org/show_bug.cgi?id=96988 v5 : - fix the commit message as review(Mark Thompson and Moritz Barsnick) - change the magic filter numbers 8 with VAProcFilterCount -

[FFmpeg-devel] [PATCH] avfilter/vf_overlay: fix alpha blending for planar formats with a transparent background

2017-08-04 Thread Marton Balint
When the background had an alpha channel, the old code in blend_plane calculated premultiplied alpha from the destination plane colors instead of the destination alpha. Also the calculation of the output alpha should only happen after the color planes are already finished. Fixes output of:

Re: [FFmpeg-devel] [PATCH] JPEG2000 encoding with variable codeblock size

2017-08-04 Thread Francesco, Cuzzocrea
The standard ISO/IEC FCD15444-1 specify limits for the exponent values and their sum. That is codeblock size xcb and ycb are defined as: xcb = 2^(xvalue+2) and ycb = 2^(yvalue+2) with values that ranges from a minimum of 2 and a maximum of 10. Moreover the sum should be less or equal to 12

Re: [FFmpeg-devel] [PATCHv3 4/4] libavcodec: v4l2: add support for v4l2 mem2mem codecs

2017-08-04 Thread Jorge Ramirez
On 08/03/2017 01:53 AM, Mark Thompson wrote: agree with all your previous comments up to here (will fix). +case V4L2_BUF_TYPE_VIDEO_OUTPUT: +case V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE: +pfd.events = POLLOUT | POLLERR | POLLWRNORM; +break; +default: +pfd.events =

Re: [FFmpeg-devel] [WIP] libcodec2 wrapper + de/muxer in FFmpeg

2017-08-04 Thread Tomas Härdin
On Thu, 2017-08-03 at 22:24 +0200, Reimar Döffinger wrote: > On Thu, Aug 03, 2017 at 12:40:04AM +0200, Tomas Härdin wrote: > > > > > +//statically assert the size of avpriv_codec2_header > > +//putting it here because all codec2 things depend on > > codec2utils > > +switch(0) { > > + 

Re: [FFmpeg-devel] [PATCH] lavf/movenc.c: Set sgpd and sbgp atoms to represent decoder delay for AAC.

2017-08-04 Thread Derek Buitenhuis
On 8/4/2017 7:46 PM, Sasi Inguva wrote: > According to > https://developer.apple.com/library/content/documentation/QuickTime/QTFF/QTFFAppenG/QTFFAppenG.html > > Signed-off-by: Sasi Inguva > --- > libavformat/movenc.c| 70 >

[FFmpeg-devel] [PATCH] avfilter/vf_premultiply: add inplace mode

2017-08-04 Thread Paul B Mahol
Hi, patch attached. 0001-avfilter-vf_premultiply-add-inplace-mode.patch Description: Binary data ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] [PATCH]v6 Opus Pyramid Vector Quantization Search in x86 SIMD asm

2017-08-04 Thread Henrik Gramner
On Thu, Aug 3, 2017 at 11:36 PM, Ivan Kalvachev wrote: >> 1234_1234_1234_123 >> VBROADCASTSS ym1, xm1 >> BLENDVPS m1, m2, m3 >> >> is the most commonly used alignment. > > I see that a lot of .asm files use different alignments. > I'll try to pick

[FFmpeg-devel] [PATCH] lavf/movenc.c: Set sgpd and sbgp atoms to represent decoder delay for AAC.

2017-08-04 Thread Sasi Inguva
According to https://developer.apple.com/library/content/documentation/QuickTime/QTFF/QTFFAppenG/QTFFAppenG.html and ISO-IEC-14496-12 Section 10.1.1.1 and 10.1.1.3 Signed-off-by: Sasi Inguva --- libavformat/movenc.c| 70 +

[FFmpeg-devel] [PATCH] lavf/movenc.c: Set sgpd and sbgp atoms to represent decoder delay for AAC.

2017-08-04 Thread Sasi Inguva
According to https://developer.apple.com/library/content/documentation/QuickTime/QTFF/QTFFAppenG/QTFFAppenG.html Signed-off-by: Sasi Inguva --- libavformat/movenc.c| 70 + tests/ref/fate/adtstoasc_ticket3715 | 4 +--

Re: [FFmpeg-devel] [PATCH 07/14] lavfi/vf_overlay: use framesync2 options.

2017-08-04 Thread Paul B Mahol
On 8/4/17, Paul B Mahol wrote: > On 8/2/17, Nicolas George wrote: >> Le quintidi 15 thermidor, an CCXXV, Michael Niedermayer a écrit : >>> removing these elements causes command lines using them to fail >>> for example: >>> >>> ./ffmpeg -i matrixbench_mpeg2.mpg

[FFmpeg-devel] EVS

2017-08-04 Thread Bob Kirnum
Before I attempt to come up with and attempt to submit a patch only to be rejected and subsequently ignored, is there any interest in adding support for EVS? Specifically, EVS files and EVS coded audio in 3GP containers. This would not include the EVS codec as that costs $$. Thanks, Bob

Re: [FFmpeg-devel] [PATCH] lavf/movenc.c: Set sgpd and sbgp atoms to represent decoder delay for AAC.

2017-08-04 Thread Sasi Inguva
From ISO-IEC-14496-12 *10 Sample Groups* *10.1 Random Access Recovery Points* *10.1.1.1* *Definition* *class AudioRollRecoveryEntry() extends AudioSampleGroupEntry (’roll’)* *{* *signed int(16) roll_distance;* *}* *An AudioRollRecoveryEntry documents the pre‐roll distance required in audio

Re: [FFmpeg-devel] [PATCH 07/14] lavfi/vf_overlay: use framesync2 options.

2017-08-04 Thread Paul B Mahol
On 8/2/17, Nicolas George wrote: > Le quintidi 15 thermidor, an CCXXV, Michael Niedermayer a écrit : >> removing these elements causes command lines using them to fail >> for example: >> >> ./ffmpeg -i matrixbench_mpeg2.mpg -i lena.pnm -filter_complex >>

Re: [FFmpeg-devel] [PATCH] lavf/movenc.c: Set sgpd and sbgp atoms to represent decoder delay for AAC.

2017-08-04 Thread Derek Buitenhuis
On 8/4/2017 8:50 PM, Sasi Inguva wrote: > [...] Thanks for the reference, please add the section numbers alongside the QTFF doc in the commit message. > This patch sets the sgpd and sbgp atoms irrespective of whether it's > fragmented or not. So the byte addresses for some atoms will change for

Re: [FFmpeg-devel] [PATCH 07/14] lavfi/vf_overlay: use framesync2 options.

2017-08-04 Thread Michael Niedermayer
On Wed, Aug 02, 2017 at 08:06:37AM +0200, Nicolas George wrote: > Le quintidi 15 thermidor, an CCXXV, Michael Niedermayer a écrit : > > removing these elements causes command lines using them to fail > > for example: > > > > ./ffmpeg -i matrixbench_mpeg2.mpg -i lena.pnm -filter_complex > >

Re: [FFmpeg-devel] [PATCH] libaf/hlsenc: allow dynamic encryption key rotation

2017-08-04 Thread Steven Liu
2017-08-05 8:17 GMT+08:00 DeHackEd : > Signed-off-by: DHE > --- > doc/muxers.texi | 7 ++- > libavformat/hlsenc.c | 4 +++- > 2 files changed, 9 insertions(+), 2 deletions(-) > > diff --git a/doc/muxers.texi b/doc/muxers.texi > index

Re: [FFmpeg-devel] [PATCH] libaf/hlsenc: allow dynamic encryption key rotation

2017-08-04 Thread DeHackEd
On 08/04/2017 10:36 PM, Steven Liu wrote: > 2017-08-05 8:17 GMT+08:00 DeHackEd : >> Signed-off-by: DHE >> --- >> doc/muxers.texi | 7 ++- >> libavformat/hlsenc.c | 4 +++- >> 2 files changed, 9 insertions(+), 2 deletions(-) >> >> diff --git

Re: [FFmpeg-devel] [mov] Fix trampling of ctts during seeks when sidx support is enabled.

2017-08-04 Thread Dale Curtis
Any comments here? +rodger who wrote the original sidx processing for review. - dale On Mon, Jul 31, 2017 at 3:01 PM, Dale Curtis wrote: > Whoops, that patch accidentally reverted to an earlier version. Here's the > fixed one that works with the mpg sample mentioned

Re: [FFmpeg-devel] [mov] Fix trampling of ctts during seeks when sidx support is enabled.

2017-08-04 Thread Michael Niedermayer
On Mon, Jul 31, 2017 at 02:29:29PM -0700, Dale Curtis wrote: > Here's an updated patch with a fate test attached. You'll need to add > http://storage.googleapis.com/dalecurtis/buck480p30_na.mp4 to the > fate-suite/mov for this test. This is licensed under creative commons > attribution, so it

[FFmpeg-devel] [PATCH] libaf/hlsenc: allow dynamic encryption key rotation

2017-08-04 Thread DeHackEd
Signed-off-by: DHE --- doc/muxers.texi | 7 ++- libavformat/hlsenc.c | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/doc/muxers.texi b/doc/muxers.texi index 94472ce..a7324a4 100644 --- a/doc/muxers.texi +++ b/doc/muxers.texi @@ -551,7 +551,7

[FFmpeg-devel] [PATCH v2] libaf/hlsenc: allow dynamic encryption key rotation

2017-08-04 Thread DeHackEd
Makes behaviour of 805ce25b1d2f optional, re-enables HLS key rotation feature Signed-off-by: DHE --- doc/muxers.texi | 7 ++- libavformat/hlsenc.c | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) v1->v2: Actually works this time diff --git

Re: [FFmpeg-devel] [PATCH v2] libaf/hlsenc: allow dynamic encryption key rotation

2017-08-04 Thread Steven Liu
2017-08-05 11:36 GMT+08:00 DeHackEd : > Makes behaviour of 805ce25b1d2f optional, re-enables > HLS key rotation feature > > Signed-off-by: DHE > --- > doc/muxers.texi | 7 ++- > libavformat/hlsenc.c | 4 +++- > 2 files changed, 9 insertions(+), 2

Re: [FFmpeg-devel] [PATCH]v6 Opus Pyramid Vector Quantization Search in x86 SIMD asm

2017-08-04 Thread Ivan Kalvachev
On 8/4/17, Henrik Gramner wrote: > On Thu, Aug 3, 2017 at 11:36 PM, Ivan Kalvachev > wrote: >>> 1234_1234_1234_123 >>> VBROADCASTSS ym1, xm1 >>> BLENDVPS m1, m2, m3 >>> >>> is the most commonly used alignment. >> >> I see that a

Re: [FFmpeg-devel] [PATCH 2/2] Inserted check on codeblock size, added limits on codeblock size Modified according to Niedermayer suggestions

2017-08-04 Thread Michael Niedermayer
On Fri, Aug 04, 2017 at 04:21:35PM +0200, france...@bltitalia.com wrote: > From: Francesco Cuzzocrea > > --- > libavcodec/j2kenc.c | 30 +- > 1 file changed, 17 insertions(+), 13 deletions(-) patches should be against git master not on top

Re: [FFmpeg-devel] [mov] Bail when invalid sample data is present.

2017-08-04 Thread Dale Curtis
Sample sent privately. I didn't find any non-fuzzer samples that no longer demux in our Chrome test corpus or in fate. - dale On Wed, Aug 2, 2017 at 1:43 PM, Carl Eugen Hoyos wrote: > 2017-07-31 23:40 GMT+02:00 Dale Curtis : > > [mov] Bail when

Re: [FFmpeg-devel] [mov] Fix trampling of ctts during seeks when sidx support is enabled.

2017-08-04 Thread Rodger Combs
+sc->ctts_data = av_fast_realloc(sc->ctts_data, >ctts_allocated_size, request_size); ^ this line is incorrect; setting realloc's first arg to its return value leaks the existing allocation in the OOM case. Since you're doing your own calculation for the desired new size here, you

Re: [FFmpeg-devel] [PATCH]v6 Opus Pyramid Vector Quantization Search in x86 SIMD asm

2017-08-04 Thread Rostislav Pehlivanov
On 4 August 2017 at 23:58, Ivan Kalvachev wrote: > > >> I had it mixed before, but I changed it to be consistent. > >> Some new avx instruction are not overloaded or > >> available without their "v-" prefix. > >> e.g. x86util uses vpbroadcastw in SPLATW. > > > > Every

Re: [FFmpeg-devel] [PATCHv3 4/4] libavcodec: v4l2: add support for v4l2 mem2mem codecs

2017-08-04 Thread Mark Thompson
On 04/08/17 09:46, Jorge Ramirez wrote: > On 08/03/2017 01:53 AM, Mark Thompson wrote: >>> +} >>> + >>> +ret = poll(, 1, timeout); >> Can this poll be interrupted? > yes. when that happens, we indicate no buffer available. > I think the main program should set the necessary masks. I was

Re: [FFmpeg-devel] [PATCHv3 4/4] libavcodec: v4l2: add support for v4l2 mem2mem codecs

2017-08-04 Thread Mark Thompson
On 02/08/17 08:32, Jorge Ramirez-Ortiz wrote: > diff --git a/configure b/configure > index ed94de0..650c8fb 100755 > --- a/configure > +++ b/configure > @@ -10,7 +10,6 @@ > # Prevent locale nonsense from breaking basic text processing. > LC_ALL=C > export LC_ALL > - > # make sure we are

Re: [FFmpeg-devel] [PATCH] libavcodec/mips: Improve avc idct8 msa function

2017-08-04 Thread Kaustubh Raste
Ping. -Original Message- From: Manojkumar Bhosale Sent: Monday, July 31, 2017 3:43 PM To: FFmpeg development discussions and patches Cc: Kaustubh Raste Subject: RE: [FFmpeg-devel] [PATCH] libavcodec/mips: Improve avc idct8 msa function LGTM thx -Original Message- From:

Re: [FFmpeg-devel] [PATCH v2] avformat/hlsenc: support fmp4 single file mode

2017-08-04 Thread Derek Buitenhuis
On 8/1/2017 4:57 PM, Steven Liu wrote: > add byterange mode of the hls fmp4 > > Signed-off-by: Steven Liu > --- > libavformat/hlsenc.c | 83 > +--- > 1 file changed, 53 insertions(+), 30 deletions(-) [...] > +if

Re: [FFmpeg-devel] [PATCHv3 4/4] libavcodec: v4l2: add support for v4l2 mem2mem codecs

2017-08-04 Thread Jorge Ramirez
On 08/04/2017 01:51 PM, Mark Thompson wrote: +REGISTER_ENCDEC (VP8_V4L2M2M, vp8_v4l2m2m); REGISTER_DECODER(VP9, vp9); +REGISTER_DECODER(VP9_V4L2M2M, vp9_v4l2m2m); REGISTER_DECODER(VQA, vqa); REGISTER_DECODER(BITPACKED,

Re: [FFmpeg-devel] [PATCHv3 4/4] libavcodec: v4l2: add support for v4l2 mem2mem codecs

2017-08-04 Thread Jorge Ramirez
On 08/04/2017 01:51 PM, Mark Thompson wrote: +if (ret) +return 0; + +return avpriv_v4l_dequeue(cap_pool, frame, NULL, timeout); +} What happens to the decoder if some parameters like resolution change mid-stream? (Try the stream h264/reinit-large_420_8-to-small_420_8.h264 in

Re: [FFmpeg-devel] [PATCH] JPEG2000 encoding with variable codeblock size

2017-08-04 Thread Francesco, Cuzzocrea
Sorry. I intend 32x128 On 04/08/2017 10.21, Francesco, Cuzzocrea wrote: The standard ISO/IEC FCD15444-1 specify limits for the exponent values and their sum. That is codeblock size xcb and ycb are defined as: xcb = 2^(xvalue+2) and ycb = 2^(yvalue+2) with values that ranges from a

Re: [FFmpeg-devel] [PATCH v2] doc/libav-merge: remove the hls merge TODO

2017-08-04 Thread Steven Liu
2017-07-27 18:25 GMT+08:00 Steven Liu : > This TODO is done. > See 5caaa3a49e76b084ff8a9840d541bad64d96d7f7 > > Signed-off-by: Steven Liu > --- > doc/libav-merge.txt | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/doc/libav-merge.txt

[FFmpeg-devel] [PATCH 2/2] Inserted check on codeblock size, added limits on codeblock size Modified according to Niedermayer suggestions

2017-08-04 Thread francesco
From: Francesco Cuzzocrea --- libavcodec/j2kenc.c | 30 +- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/libavcodec/j2kenc.c b/libavcodec/j2kenc.c index 1bd4fbd..20dda87 100644 --- a/libavcodec/j2kenc.c +++

Re: [FFmpeg-devel] [PATCHv3 4/4] libavcodec: v4l2: add support for v4l2 mem2mem codecs

2017-08-04 Thread Mark Thompson
On 04/08/17 14:06, Jorge Ramirez wrote: > On 08/04/2017 01:51 PM, Mark Thompson wrote: >>> +if (ret) >>> +return 0; >>> + >>> +return avpriv_v4l_dequeue(cap_pool, frame, NULL, timeout); >>> +} >> What happens to the decoder if some parameters like resolution change >> mid-stream?

Re: [FFmpeg-devel] [PATCH v2] avformat/hlsenc: support fmp4 single file mode

2017-08-04 Thread Steven Liu
2017-08-04 20:49 GMT+08:00 Derek Buitenhuis : > On 8/1/2017 4:57 PM, Steven Liu wrote: >> add byterange mode of the hls fmp4 >> >> Signed-off-by: Steven Liu >> --- >> libavformat/hlsenc.c | 83 >> +---

Re: [FFmpeg-devel] [PATCH] JPEG2000 encoding with variable codeblock size

2017-08-04 Thread Aaron Boxer
On Fri, Aug 4, 2017 at 12:23 PM, Francesco, Cuzzocrea < france...@bltitalia.com> wrote: > Sorry. I intend 32x128 OK, that sounds better :) > > > On 04/08/2017 10.21, Francesco, Cuzzocrea wrote: > >> The standard ISO/IEC FCD15444-1 specify limits for the exponent values >> and their

Re: [FFmpeg-devel] [DISCUSSION] Motion Estimation API/Library

2017-08-04 Thread Alex Giladi
I like the idea -- it will be then possible to link to hardware acceleration. I don't think R-D optimization (including taking VLC / CABAC into account) belongs to the library -- this, as well as figuring out partitions, should be up to the actual encoder. On Thu, Aug 3, 2017 at 4:09 PM, Ronald