Re: [FFmpeg-devel] [PATCH 01/18] h264_sei: Add namespace prefix to all SEI values

2017-09-11 Thread James Almer
On 8/20/2017 7:41 PM, Mark Thompson wrote: > This avoids confusion with equivalent H.265 SEI values when both are > being used at the same time. > > (cherry picked from commit 6ea220cbeec8863e2006a03b73bed52db2b13ee7) > --- > libavcodec/h264_parser.c | 26 - >

[FFmpeg-devel] [PATCH] vf_fps: when reading EOF, using current_pts to duplicate the last frame if needed.

2017-09-11 Thread Thierry Foucu
Fix ticket #2674 Tested with examples from ticket 2674. --- Update the Patch with the correct number of duplicate showing. For exmaple, in case we up-sample one second video at 24fps by 2, we should be getting 24 duplicate frames. ffmpeg -loglevel verbose -i 24fps.avi -vf fps=48 -f null -

Re: [FFmpeg-devel] [PATCH] vf_fps: when reading EOF, using current_pts to duplicate the last frame if needed.

2017-09-11 Thread Thomas Mundt
Hi Thierry, 2017-09-11 23:00 GMT+02:00 Thierry Foucu : > Fix ticket #2674 > Tested with examples from ticket 2674. > --- > libavfilter/vf_fps.c| 40 +++- > tests/ref/fate/filter-fps | 6 ++ > tests/ref/fate/filter-fps-r | 4

[FFmpeg-devel] [PATCH 6/6] doc/indevs: Document kmsgrab input device

2017-09-11 Thread Mark Thompson
--- On 11/09/17 23:15, Paul B Mahol wrote: > On 9/12/17, Mark Thompson wrote: >> On 07/09/17 22:56, Mark Thompson wrote: >>> --- >>> Now sets the trusted packet flag; otherwise unchanged. >>> >>> >>> configure| 1 + >>> libavdevice/Makefile | 1 + >>>

Re: [FFmpeg-devel] [PATCH] libswscale/swscale_unscaled: fix DITHER_COPY macro

2017-09-11 Thread Mateusz
W dniu 2017-09-06 o 09:27, Mateusz pisze: > W dniu 2017-09-06 o 02:07, Michael Niedermayer pisze: >> On Wed, Sep 06, 2017 at 01:25:45AM +0200, Mateusz wrote: >>> W dniu 2017-09-05 o 23:37, Michael Niedermayer pisze: On Tue, Sep 05, 2017 at 04:42:06PM +0200, Mateusz wrote: > W dniu

Re: [FFmpeg-devel] [PATCH 1/3] avcodec/shorten: Move buffer allocation and offset init to end of read_header()

2017-09-11 Thread Michael Niedermayer
On Sun, Sep 10, 2017 at 09:18:37PM +0200, Paul B Mahol wrote: > On 9/10/17, Michael Niedermayer wrote: > > They are time consuming operations, performing them after the other checks > > improves the speed with damaged input dramatically. > > > > Fixes: Timeout > > Fixes:

Re: [FFmpeg-devel] [PATCH] MAINTAINERS: Add myself to maintainer of dashdec

2017-09-11 Thread Steven Liu
2017-09-11 18:27 GMT+08:00 Michael Niedermayer : > On Sat, Sep 09, 2017 at 08:43:29AM +0800, Steven Liu wrote: >> Add dash maintainer. >> Will invite SSS maintaining it together with me >> >> Signed-off-by: Steven Liu >> --- >>

Re: [FFmpeg-devel] [PATCH] avcodec/hevc_ps: improve check for missing default display window bitstream

2017-09-11 Thread James Almer
On 9/11/2017 7:52 PM, Michael Niedermayer wrote: > On Thu, Sep 07, 2017 at 09:49:54PM -0300, James Almer wrote: >> Fixes ticket #6644 >> >> Signed-off-by: James Almer >> --- >> libavcodec/hevc_ps.c | 33 +++-- >> 1 file changed, 27 insertions(+), 6

Re: [FFmpeg-devel] [PATCH] avcodec/hevc_ps: improve check for missing default display window bitstream

2017-09-11 Thread Michael Niedermayer
On Thu, Sep 07, 2017 at 09:49:54PM -0300, James Almer wrote: > Fixes ticket #6644 > > Signed-off-by: James Almer > --- > libavcodec/hevc_ps.c | 33 +++-- > 1 file changed, 27 insertions(+), 6 deletions(-) > > diff --git a/libavcodec/hevc_ps.c

Re: [FFmpeg-devel] [PATCH 5/5] lavd: Add KMS frame grabber

2017-09-11 Thread Paul B Mahol
On 9/12/17, Mark Thompson wrote: > On 07/09/17 22:56, Mark Thompson wrote: >> --- >> Now sets the trusted packet flag; otherwise unchanged. >> >> >> configure| 1 + >> libavdevice/Makefile | 1 + >> libavdevice/alldevices.c | 1 + >>

Re: [FFmpeg-devel] [PATCH 5/5] lavd: Add KMS frame grabber

2017-09-11 Thread Mark Thompson
On 07/09/17 22:56, Mark Thompson wrote: > --- > Now sets the trusted packet flag; otherwise unchanged. > > > configure| 1 + > libavdevice/Makefile | 1 + > libavdevice/alldevices.c | 1 + > libavdevice/kmsgrab.c| 455 >

Re: [FFmpeg-devel] [PATCH 10/14] lavfi: Add filter to run an arbitrary OpenCL program on frames

2017-09-11 Thread Mark Thompson
On 11/09/17 22:04, Michael Niedermayer wrote: > On Sun, Sep 10, 2017 at 09:53:34PM +0100, Mark Thompson wrote: >> --- >> See example in first mail. >> >> > [...] >> +static av_cold void program_opencl_uninit(AVFilterContext *avctx) >> +{ >> +ProgramOpenCLContext *ctx = avctx->priv; >> +

Re: [FFmpeg-devel] [PATCH] frame_thread_encoder: make 'exit' member atomic.

2017-09-11 Thread Michael Niedermayer
On Mon, Sep 11, 2017 at 09:58:55AM -0400, Ronald S. Bultje wrote: > Should fix the following tsan warning: > > WARNING: ThreadSanitizer: data race (pid=19806) > Read of size 4 at 0x7b8412f0 by thread T9: > #0 worker src/libavcodec/frame_thread_encoder.c:66 (ffmpeg+0x007f349e) > [..]

Re: [FFmpeg-devel] [PATCH] vf_fps: when reading EOF, using current_pts to duplicate the last frame if needed.

2017-09-11 Thread Thierry Foucu
See new patch. Getting 12 frame out when down-sample (instead of 13) === I tried it against ticket 2674 and here is the output: ffmpeg -loglevel verbose -i 24fps.avi -vf fps=12 -y 12fps.avi ffmpeg version N-87234-g9a32769f5e Copyright (c) 2000-2017 the FFmpeg

[FFmpeg-devel] (no subject)

2017-09-11 Thread Thierry Foucu
Please find attached new patch. I tried it against ticket 2674 and it seems to work Here are the output: For the up-sample, getting 48 frames out, instead of 47 -- ./ffmpeg -loglevel verbose -i 24fps.avi -vf fps=48 -y 48fps.avi ffmpeg version N-87234-g9a32769f5e

Re: [FFmpeg-devel] [PATCH 10/14] lavfi: Add filter to run an arbitrary OpenCL program on frames

2017-09-11 Thread Michael Niedermayer
On Sun, Sep 10, 2017 at 09:53:34PM +0100, Mark Thompson wrote: > --- > See example in first mail. > > [...] > +static av_cold void program_opencl_uninit(AVFilterContext *avctx) > +{ > +ProgramOpenCLContext *ctx = avctx->priv; > +cl_int cle; > + > +if (ctx->kernel) { > +cle =

[FFmpeg-devel] [PATCH] vf_fps: when reading EOF, using current_pts to duplicate the last frame if needed.

2017-09-11 Thread Thierry Foucu
Fix ticket #2674 Tested with examples from ticket 2674. --- libavfilter/vf_fps.c| 40 +++- tests/ref/fate/filter-fps | 6 ++ tests/ref/fate/filter-fps-r | 4 tests/ref/fate/m4v-cfr | 1 - 4 files changed, 45 insertions(+), 6

Re: [FFmpeg-devel] [PATCH] vp9: assert -> av_assert and fix associated compile error.

2017-09-11 Thread Ronald S. Bultje
Hi, On Mon, Sep 11, 2017 at 3:58 PM, James Almer wrote: > On 9/11/2017 4:41 PM, Ronald S. Bultje wrote: > > --- > > libavcodec/vp9.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c > > index f626f81..66ccb6c

Re: [FFmpeg-devel] [PATCH] vp9: assert -> av_assert and fix associated compile error.

2017-09-11 Thread James Almer
On 9/11/2017 4:41 PM, Ronald S. Bultje wrote: > --- > libavcodec/vp9.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c > index f626f81..66ccb6c 100644 > --- a/libavcodec/vp9.c > +++ b/libavcodec/vp9.c > @@ -1603,7 +1603,7 @@

[FFmpeg-devel] [PATCH] vp9: assert -> av_assert and fix associated compile error.

2017-09-11 Thread Ronald S. Bultje
--- libavcodec/vp9.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c index f626f81..66ccb6c 100644 --- a/libavcodec/vp9.c +++ b/libavcodec/vp9.c @@ -1603,7 +1603,7 @@ FF_ENABLE_DEPRECATION_WARNINGS if (avctx->active_thread_type ==

Re: [FFmpeg-devel] [PATCH 12/14] lavfi: Add OpenCL overlay filter

2017-09-11 Thread James Almer
On 9/11/2017 2:29 PM, Nicolas George wrote: > Le quintidi 25 fructidor, an CCXXV, James Almer a écrit : >> Cleaner Makefile, removing a lot of repeated objects on every filter >> dependency entry. > > If I understand correctly, it only moves the complexity from Makefile to > configure. But

Re: [FFmpeg-devel] [PATCH 12/14] lavfi: Add OpenCL overlay filter

2017-09-11 Thread Nicolas George
Le quintidi 25 fructidor, an CCXXV, James Almer a écrit : > Cleaner Makefile, removing a lot of repeated objects on every filter > dependency entry. If I understand correctly, it only moves the complexity from Makefile to configure. But configure and shell scripts are for what cannot be achieved

Re: [FFmpeg-devel] [PATCH 12/14] lavfi: Add OpenCL overlay filter

2017-09-11 Thread James Almer
On 9/11/2017 1:59 PM, Nicolas George wrote: > Le quartidi 24 fructidor, an CCXXV, James Almer a écrit : >> Maybe it should be its own subsystem entry with the filters stating the >> dependency in configure instead? It's used by enough filters by now to >> justify that. > > I do not oppose, but

Re: [FFmpeg-devel] [FFmpeg-drdevel] [Patch] CUDA Thumbnail Filter

2017-09-11 Thread Vahagn Tumanyan
F On Aug 30, 2017 8:20 AM, "Yogender Gupta" wrote: > Attached is a CUDA version of the thumbnail filter, this helps accelerate > thumbnails generations significantly, when using the GPU pipeline. > > Regards, > Yogender > >

Re: [FFmpeg-devel] [PATCH 12/14] lavfi: Add OpenCL overlay filter

2017-09-11 Thread Nicolas George
Le quartidi 24 fructidor, an CCXXV, James Almer a écrit : > Maybe it should be its own subsystem entry with the filters stating the > dependency in configure instead? It's used by enough filters by now to > justify that. I do not oppose, but what would be the benefit? Regards, -- Nicolas

Re: [FFmpeg-devel] libavcodec/als: remove check for predictor order of a block

2017-09-11 Thread Ronald S. Bultje
Hi Umair, On Mon, Sep 11, 2017 at 4:06 AM, Umair Khan wrote: > On Sun, Sep 10, 2017 at 10:30 PM, Paul B Mahol wrote: > > On 9/10/17, Umair Khan wrote: > >> On Sun, Sep 10, 2017 at 9:52 PM, Thilo Borgmann > >

Re: [FFmpeg-devel] [PATCH] avcodec/hevc_ps: improve check for missing default display window bitstream

2017-09-11 Thread James Almer
On 9/7/2017 9:49 PM, James Almer wrote: > Fixes ticket #6644 > > Signed-off-by: James Almer > --- > libavcodec/hevc_ps.c | 33 +++-- > 1 file changed, 27 insertions(+), 6 deletions(-) > > diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c >

[FFmpeg-devel] [PATCHv12] libavcodec: v4l2: add support for v4l2 mem2mem codecs

2017-09-11 Thread Jorge Ramirez-Ortiz
This patchset enhances Alexis Ballier's original patch and validates it using Qualcomm's Venus hardware (driver recently landed upstream [1]). This has been tested on Qualcomm's DragonBoard 410c and 820c Configure/make scripts have been validated on Ubuntu 10.04 and 16.04.

[FFmpeg-devel] V4L2 M2M v12

2017-09-11 Thread Jorge Ramirez-Ortiz
Improvements on v12: - fixes error detection during context configuration. - closes the driver properly on exit. - removes lazy_init field from V4L2Context. - add more clarity to the context initialization API. Patch applies on top of: 86eb505 Changelog: add vp9 tile threading support

[FFmpeg-devel] [PATCH] frame_thread_encoder: make 'exit' member atomic.

2017-09-11 Thread Ronald S. Bultje
Should fix the following tsan warning: WARNING: ThreadSanitizer: data race (pid=19806) Read of size 4 at 0x7b8412f0 by thread T9: #0 worker src/libavcodec/frame_thread_encoder.c:66 (ffmpeg+0x007f349e) [..] Previous write of size 4 at 0x7b8412f0 by main thread (mutexes: write

Re: [FFmpeg-devel] [PATCH] Changelog: add vp9 tile threading support

2017-09-11 Thread Ronald S. Bultje
Hi, On Sun, Sep 10, 2017 at 2:18 PM, Ilia Valiakhmetov wrote: > Signed-off-by: Ilia Valiakhmetov > --- > Changelog | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Changelog b/Changelog > index 22928de..ca0758a 100644 > --- a/Changelog > +++

Re: [FFmpeg-devel] [PATCH] vp9: fix compilation with threading disabled.

2017-09-11 Thread Ronald S. Bultje
Hi, On Sun, Sep 10, 2017 at 10:22 AM, Michael Niedermayer < mich...@niedermayer.cc> wrote: > On Sat, Sep 09, 2017 at 11:24:39PM -0400, Ronald S. Bultje wrote: > > --- > > libavcodec/vp9.c| 15 +-- > > libavcodec/vp9dec.h | 2 ++ > > 2 files changed, 11 insertions(+), 6

Re: [FFmpeg-devel] [Patch] CUDA Thumbnail Filter

2017-09-11 Thread Timo Rothenpieler
It would be nice, yes, but I'm not sure there is actually that much need with the current setup. The use-cases for the two as currently written don't really overlap - CUDA is useful in the cases you describe with (possibly multiple) high-power GPUs trying to squeeze as much performance as

Re: [FFmpeg-devel] [PATCH] MAINTAINERS: Add myself to maintainer of dashdec

2017-09-11 Thread Michael Niedermayer
On Sat, Sep 09, 2017 at 08:43:29AM +0800, Steven Liu wrote: > Add dash maintainer. > Will invite SSS maintaining it together with me > > Signed-off-by: Steven Liu > --- > MAINTAINERS | 1 + > 1 file changed, 1 insertion(+) LGTM thanks [...] -- Michael

Re: [FFmpeg-devel] [PATCH 1/3] avcodec/diracdec: Fix overflow in DC computation

2017-09-11 Thread Michael Niedermayer
On Sun, Sep 10, 2017 at 01:32:50AM +0200, Michael Niedermayer wrote: > Fixes: runtime error: signed integer overflow: 11896 + 2147483646 cannot be > represented in type 'int' > Fixes: 3053/clusterfuzz-testcase-minimized-6355082062856192 > > Found-by: continuous fuzzing process >

Re: [FFmpeg-devel] [Patch] CUDA Thumbnail Filter

2017-09-11 Thread Mark Thompson
On 11/09/17 10:18, Timo Rothenpieler wrote: > Am 11.09.2017 um 07:40 schrieb Yogender Gupta: Only 3 to 4 times? This is easily doable with SIMD. >> >> The problem is not with the thumbnail filter at all. The problem is doing >> the transfers from vidmem to sysmem or vice-versa. You will

Re: [FFmpeg-devel] [PATCH 12/14] lavfi: Add OpenCL overlay filter

2017-09-11 Thread Mark Thompson
On 10/09/17 21:53, Mark Thompson wrote: > Input and output formats must be the same, the overlay format must be > the same as the input except possibly with an additional alpha component. > --- > configure | 1 + > libavfilter/Makefile| 2 + >

Re: [FFmpeg-devel] [Patch] CUDA Thumbnail Filter

2017-09-11 Thread Timo Rothenpieler
Am 11.09.2017 um 07:40 schrieb Yogender Gupta: Only 3 to 4 times? This is easily doable with SIMD. The problem is not with the thumbnail filter at all. The problem is doing the transfers from vidmem to sysmem or vice-versa. You will observe if we use a transcoder pipeline with and without

Re: [FFmpeg-devel] [PATCH] Add support for RockChip Media Process Platform

2017-09-11 Thread LongChair .
Le 10/09/2017 à 19:13, James Almer a écrit : On 9/9/2017 4:00 AM, LongChair . wrote: From: LongChair This adds hardware decoding for h264 / HEVC / VP8 using MPP Rockchip API. Will return frames holding an AVDRMFrameDescriptor struct in

Re: [FFmpeg-devel] libavcodec/als: remove check for predictor order of a block

2017-09-11 Thread Umair Khan
On Sun, Sep 10, 2017 at 10:30 PM, Paul B Mahol wrote: > On 9/10/17, Umair Khan wrote: >> On Sun, Sep 10, 2017 at 9:52 PM, Thilo Borgmann >> wrote: >>> >>> Hi, >>> >>> > This patch fixes this bug - https://trac.ffmpeg.org/ticket/5297