[FFmpeg-devel] [PATCH 6/6] lavc/cbs: Add tests for VP9

2018-04-30 Thread Mark Thompson
Uses the same mechanism as other codecs - conformance test files are passed through the metadata filter (which, with no options, reads the input and writes it back) and the output verified to match the input. --- tests/fate/cbs.mak | 34 ++

[FFmpeg-devel] [PATCH 2/6] cbs_h2645: Simplify representation of fixed values

2018-04-30 Thread Mark Thompson
--- Mainly to avoid messing with them in the following patch. libavcodec/cbs_h2645.c| 5 + libavcodec/cbs_h264_syntax_template.c | 30 --- libavcodec/cbs_h265_syntax_template.c | 38 +++ 3 files changed, 34

[FFmpeg-devel] [PATCH 1/6] cbs: Fragment/unit data is always reference counted

2018-04-30 Thread Mark Thompson
Make this clear in the documentation and add some asserts to ensure that it is always true. --- As suggested earlier :) libavcodec/cbs.c | 18 -- libavcodec/cbs.h | 10 ++ 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/libavcodec/cbs.c

[FFmpeg-devel] [PATCH 4/6] lavc: Add coded bitstream read/write support for VP9

2018-04-30 Thread Mark Thompson
--- Main change since last time is including the array subscripts. Constants are also cleaned up a bit, but stay in the cbs header (vp9.h could probably be taken over for this purpose, but currently it's an unnamespaced header used by the decoder so I haven't touched it). configure

[FFmpeg-devel] [PATCH 5/6] lavc: Add VP9 metadata bitstream filter

2018-04-30 Thread Mark Thompson
Can adjust the colour information. --- configure | 1 + doc/bitstream_filters.texi | 26 +++ libavcodec/Makefile| 1 + libavcodec/bitstream_filters.c | 1 + libavcodec/vp9_metadata_bsf.c | 162 + 5 files

[FFmpeg-devel] [PATCH 3/6] cbs: Add support for array subscripts in trace output

2018-04-30 Thread Mark Thompson
This makes the trace output for arrays significantly nicer. --- libavcodec/cbs.c | 44 ++-- libavcodec/cbs_h2645.c | 83 --- libavcodec/cbs_h264_syntax_template.c | 101 +-- libavcodec/cbs_h265_syntax_template.c | 179

Re: [FFmpeg-devel] [PATCH] avcodec/cbs_mpeg2: create a reference to the existing buffer when decomposing slice units

2018-04-30 Thread Mark Thompson
On 27/04/18 23:36, James Almer wrote: > Signed-off-by: James Almer > --- > libavcodec/cbs_mpeg2.c | 9 ++--- > 1 file changed, 2 insertions(+), 7 deletions(-) > > diff --git a/libavcodec/cbs_mpeg2.c b/libavcodec/cbs_mpeg2.c > index 989daf0a4d..8ca47061fe 100644 > ---

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/cbs_h2645: create a reference to the existing buffer when decomposing slice units

2018-04-30 Thread Mark Thompson
On 28/04/18 15:52, James Almer wrote: > On 4/28/2018 5:02 AM, Xiang, Haihao wrote: >> On Fri, 2018-04-27 at 20:50 -0300, James Almer wrote: >>> Signed-off-by: James Almer >>> --- >>> libavcodec/cbs_h2645.c | 18 -- >>> 1 file changed, 4 insertions(+), 14

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/cbs_h2645: create a reference to the existing buffer when decomposing slice units

2018-04-30 Thread Mark Thompson
On 28/04/18 00:50, James Almer wrote: > Signed-off-by: James Almer > --- > libavcodec/cbs_h2645.c | 18 -- > 1 file changed, 4 insertions(+), 14 deletions(-) > > diff --git a/libavcodec/cbs_h2645.c b/libavcodec/cbs_h2645.c > index 5585831cf6..5e5598f377 100644

[FFmpeg-devel] [PATCH 1/2] libavformat/dashdec: Fix for ticket 7149 (Segfault when decoding dash streams)

2018-04-30 Thread Colin NG
- Add NULL pointer check for init_section --- libavformat/dashdec.c | 30 +++--- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 42202e0..c6f350d 100644 --- a/libavformat/dashdec.c +++

[FFmpeg-devel] [PATCH 2/2] libavformat/dashdec: Fix for ticket 7149 (Segfault when decoding dash streams)

2018-04-30 Thread Colin NG
- simplify the code to check common init section --- libavformat/dashdec.c | 48 +++- 1 file changed, 11 insertions(+), 37 deletions(-) diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index c6f350d..acaa1bf 100644 --- a/libavformat/dashdec.c

Re: [FFmpeg-devel] [PATCH 2/2] avdevice/decklink_dec: unref packets on avpacket_queue_put error

2018-04-30 Thread James Almer
On 4/22/2018 6:18 PM, Marton Balint wrote: > Signed-off-by: Marton Balint > --- > libavdevice/decklink_dec.cpp | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/libavdevice/decklink_dec.cpp b/libavdevice/decklink_dec.cpp > index 10535dc388..510637676c 100644 > ---

Re: [FFmpeg-devel] [PATCH] fftools/ffmpeg: fix mixed code and declarations

2018-04-30 Thread James Almer
On 4/30/2018 12:53 PM, Michael Niedermayer wrote: > On Sun, Apr 29, 2018 at 08:09:40PM -0300, James Almer wrote: >> Signed-off-by: James Almer >> --- >> fftools/ffmpeg.c | 10 +- >> 1 file changed, 5 insertions(+), 5 deletions(-) > > LGTM > > thx Pushed.

Re: [FFmpeg-devel] [PATCH 1/2] avdevice/decklink_dec: do not copy video data

2018-04-30 Thread Marton Balint
On Sun, 22 Apr 2018, Marton Balint wrote: Create a buffer from the data instead and use the buffer destructor to free the DeckLink frame. This avoids a memcpy of the frame data. Signed-off-by: Marton Balint --- libavdevice/decklink_dec.cpp | 12 1 file changed,

Re: [FFmpeg-devel] [PATCH 4/5] avutil/pixdesc: add AV_PIX_FMT_FLAG_ALPHA to AV_PIX_FMT_PAL8

2018-04-30 Thread Marton Balint
On Mon, 30 Apr 2018, Carl Eugen Hoyos wrote: 2018-04-30 14:42 GMT+02:00, Marton Balint : On Wed, 25 Apr 2018, Michael Niedermayer wrote: On Tue, Apr 24, 2018 at 09:05:00PM +0200, Marton Balint wrote: Signed-off-by: Marton Balint --- doc/APIchanges

Re: [FFmpeg-devel] [PATCH] avfilter/vf_overlay: add x86 SIMD for yuv444 format when main stream has no alpha

2018-04-30 Thread James Almer
On 4/30/2018 3:57 PM, Paul B Mahol wrote: > On 4/30/18, Henrik Gramner wrote: >> On Mon, Apr 30, 2018 at 6:17 PM, Paul B Mahol wrote: >>> +.loop0: >>> +movu m1, [dq + xq] >>> +movu m2, [aq + xq] >>> +movu m3, [sq +

Re: [FFmpeg-devel] [PATCH] avfilter/vf_overlay: add x86 SIMD for yuv444 format when main stream has no alpha

2018-04-30 Thread Paul B Mahol
On 4/30/18, Henrik Gramner wrote: > On Mon, Apr 30, 2018 at 6:17 PM, Paul B Mahol wrote: >> +.loop0: >> +movu m1, [dq + xq] >> +movu m2, [aq + xq] >> +movu m3, [sq + xq] >> + >> +pshufb m1, [pb_b2dw]

Re: [FFmpeg-devel] [PATCH] avfilter/vf_overlay: add x86 SIMD for yuv444 format when main stream has no alpha

2018-04-30 Thread Henrik Gramner
On Mon, Apr 30, 2018 at 6:17 PM, Paul B Mahol wrote: > +.loop0: > +movu m1, [dq + xq] > +movu m2, [aq + xq] > +movu m3, [sq + xq] > + > +pshufb m1, [pb_b2dw] > +pshufb m2, [pb_b2dw] > +pshufb

Re: [FFmpeg-devel] [PATCH 4/5] avutil/pixdesc: add AV_PIX_FMT_FLAG_ALPHA to AV_PIX_FMT_PAL8

2018-04-30 Thread Carl Eugen Hoyos
2018-04-30 14:42 GMT+02:00, Marton Balint : > > On Wed, 25 Apr 2018, Michael Niedermayer wrote: > >> On Tue, Apr 24, 2018 at 09:05:00PM +0200, Marton Balint wrote: >>> Signed-off-by: Marton Balint >>> --- >>> doc/APIchanges| 3 +++ >>>

Re: [FFmpeg-devel] [PATCH] avformat/mxfenc: add h264 profiles

2018-04-30 Thread Thomas Mundt
2018-04-30 19:27 GMT+02:00 Paul B Mahol : > On 4/30/18, Thomas Mundt wrote: > > Hi, > > > > attached patch adds some h264 profiles to the mxf encoder. > > *muxer, not encoder. > Right. I was writing mxfenc short before and seem to switched of my brain. > >

Re: [FFmpeg-devel] [PATCH] avformat/mxfenc: add h264 profiles

2018-04-30 Thread Paul B Mahol
On 4/30/18, Thomas Mundt wrote: > Hi, > > attached patch adds some h264 profiles to the mxf encoder. *muxer, not encoder. > Please comment. > > Thomas > ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org

[FFmpeg-devel] [PATCH] avformat/mxfenc: add h264 profiles

2018-04-30 Thread Thomas Mundt
Hi, attached patch adds some h264 profiles to the mxf encoder. Please comment. Thomas 0001-avformat-mxfenc-add-h264-profiles.patch Description: Binary data ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org

Re: [FFmpeg-devel] cuda-gl

2018-04-30 Thread Philip Langdale
On 2018-04-30 08:20, Daniel Oberhoff wrote: On 30. Apr 2018, at 15:52, Daniel Oberhoff wrote: Hello All, I am fighting since a few days to get the frames from the cuvid decoder using the cuda pixel format transfered to opengl. What i have done is create

Re: [FFmpeg-devel] [PATCH 1/5] avcodec/mpeg4videodec: Move decode_studiovisualobject() parsing in the branch for visual object parsing

2018-04-30 Thread Michael Niedermayer
On Sun, Apr 29, 2018 at 08:23:39PM +, Kieran Kunhya wrote: > On Sun, 29 Apr 2018 at 20:20 Michael Niedermayer > wrote: > > > Fixes: runtime error: shift exponent -1 is negative > > Fixes: > >

Re: [FFmpeg-devel] [PATCH] avfilter/vf_overlay: add x86 SIMD for yuv444 format when main stream has no alpha

2018-04-30 Thread Paul B Mahol
On 4/30/18, Paul B Mahol wrote: > Signed-off-by: Paul B Mahol > --- > libavfilter/vf_overlay.c | 76 --- > libavfilter/vf_overlay.h | 84 ++ > libavfilter/x86/Makefile | 2

[FFmpeg-devel] [PATCH] avfilter/vf_overlay: add x86 SIMD for yuv444 format when main stream has no alpha

2018-04-30 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavfilter/vf_overlay.c | 76 --- libavfilter/vf_overlay.h | 84 ++ libavfilter/x86/Makefile | 2 + libavfilter/x86/vf_overlay.asm| 94

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/mpeg4video_parser: Fix incorrect spliting of MPEG-4 studio frames

2018-04-30 Thread Michael Niedermayer
On Sun, Apr 29, 2018 at 11:22:42PM +, Kieran Kunhya wrote: > On Sun, 29 Apr 2018 at 22:57 Michael Niedermayer > wrote: > > > Signed-off-by: Michael Niedermayer > > --- > > libavcodec/mpeg4video_parser.c | 2 ++ > > 1 file changed, 2

Re: [FFmpeg-devel] [PATCH 1/3] avformat/m4vdec: Fix detection of raw MPEG-4 ES Studio

2018-04-30 Thread Michael Niedermayer
On Sun, Apr 29, 2018 at 11:23:17PM +, Kieran Kunhya wrote: > On Sun, 29 Apr 2018 at 22:57 Michael Niedermayer > wrote: > > > Signed-off-by: Michael Niedermayer > > --- > > libavformat/m4vdec.c | 6 ++ > > 1 file changed, 6 insertions(+) >

Re: [FFmpeg-devel] [PATCH] fftools/ffmpeg: fix mixed code and declarations

2018-04-30 Thread Michael Niedermayer
On Sun, Apr 29, 2018 at 08:09:40PM -0300, James Almer wrote: > Signed-off-by: James Almer > --- > fftools/ffmpeg.c | 10 +- > 1 file changed, 5 insertions(+), 5 deletions(-) LGTM thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

[FFmpeg-devel] [PATCH] libavfilter/vf_libvmaf.c The libvmaf filter tried to join on an invalid thread id

2018-04-30 Thread Kevin Wheatley
Following on from my report in the user list here is a better than a quick hack suggestion to avoid trying to join on an invalid thread id. This may not be the best solution, but it does avoid the SEGV on linux when calling pthread_join() Kevin From a94d0cb7ff4202487ea980a029fa613c58d6d7c3 Mon

Re: [FFmpeg-devel] cuda-gl

2018-04-30 Thread Daniel Oberhoff
> On 30. Apr 2018, at 15:52, Daniel Oberhoff > wrote: > > Hello All, > > I am fighting since a few days to get the frames from the cuvid decoder using > the cuda pixel format transfered to opengl. > > What i have done is create textures on gl using

[FFmpeg-devel] cuda-gl

2018-04-30 Thread Daniel Oberhoff
Hello All, I am fighting since a few days to get the frames from the cuvid decoder using the cuda pixel format transfered to opengl. What i have done is create textures on gl using glGenTextures and glTexStorage2D. The actual format is NV12 in my case, and i properly allocate two planes with

Re: [FFmpeg-devel] [PATCH 4/5] avutil/pixdesc: add AV_PIX_FMT_FLAG_ALPHA to AV_PIX_FMT_PAL8

2018-04-30 Thread Marton Balint
On Wed, 25 Apr 2018, Michael Niedermayer wrote: On Tue, Apr 24, 2018 at 09:05:00PM +0200, Marton Balint wrote: Signed-off-by: Marton Balint --- doc/APIchanges| 3 +++ libavcodec/tests/imgconvert.c | 4 libavutil/pixdesc.c | 3 +--