[FFmpeg-devel] [PATCHv2 1/7] avformat/ip: factorize some IP filtering and resolving functions to a new file

2018-09-23 Thread Marton Balint
These are based on the very similar UDP and RTP protocol functions. Signed-off-by: Marton Balint --- libavformat/ip.c | 159 +++ libavformat/ip.h | 72 + 2 files changed, 231 insertions(+) create mode 100644 libavforma

Re: [FFmpeg-devel] [PATCH] avcodec: add an AV1 parser

2018-09-23 Thread James Almer
On 9/23/2018 9:12 PM, James Almer wrote: > +subsampling = seq->color_config.subsampling_x << 1 & > seq->color_config.subsampling_y; Changed the logical and into a logical or locally. > +bitdepth= 8 + seq->color_config.high_bitdepth * 2 + > seq->color_config.twelve_bit * 2; >

[FFmpeg-devel] [PATCH] avfilter/sr: process and output message when load_model is NULL

2018-09-23 Thread Steven Liu
fix ticket: 7455 Signed-off-by: Steven Liu --- libavfilter/dnn_interface.c | 4 libavfilter/vf_sr.c | 7 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/libavfilter/dnn_interface.c b/libavfilter/dnn_interface.c index 78d7c5cf22..792c280c53 100644 --- a/libavfi

[FFmpeg-devel] [PATCH] avformat/ivfenc: fix writing codec tag

2018-09-23 Thread James Almer
The value in AVCodecParameters->codec_tag may not be correct for IVF, as it's the case when remuxing AV1 streams from mp4, so ignore it and write the correct value based on codec ID instead. Signed-off-by: James Almer --- libavformat/ivfenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[FFmpeg-devel] [PATCH] avcodec: add an AV1 parser

2018-09-23 Thread James Almer
Simple parser to set keyframes, frame type, structure, width, height, and pixel format, plus stream profile and level. Signed-off-by: James Almer --- Missing Changelog entry and version bump. This depends on "[PATCH v2 2/3] lavc: Add coded bitstream read/write support for AV1" which should be co

Re: [FFmpeg-devel] [FFmpeg-cvslog] lavc/cbs: Add JPEG support

2018-09-23 Thread Carl Eugen Hoyos
2018-09-23 17:47 GMT+02:00, Mark Thompson : > +JPEG_MARKER_SOF0= 0xc0, > +JPEG_MARKER_SOF1= 0xc1, > +JPEG_MARKER_SOF2= 0xc2, > +JPEG_MARKER_SOF3= 0xc3, > + > +JPEG_MARKER_DHT = 0xc4, > +JPEG_MARKER_SOI = 0xd8, > +JPEG_MARKER_EOI = 0xd9, > +

Re: [FFmpeg-devel] [PATCH 1/7] avformat/ip: factorize some IP filtering and resolving functions to a new file

2018-09-23 Thread Michael Niedermayer
On Mon, Sep 24, 2018 at 12:04:12AM +0200, Marton Balint wrote: > > > On Sun, 23 Sep 2018, Michael Niedermayer wrote: > > >On Sat, Sep 22, 2018 at 11:53:22PM +0200, Marton Balint wrote: > >>These are based on the very similar UDP and RTP protocol functions. > >> > >>Signed-off-by: Marton Balint

Re: [FFmpeg-devel] [PATCH 1/7] avformat/ip: factorize some IP filtering and resolving functions to a new file

2018-09-23 Thread Marton Balint
On Sun, 23 Sep 2018, James Almer wrote: On 9/23/2018 7:04 PM, Marton Balint wrote: On Sun, 23 Sep 2018, Michael Niedermayer wrote: On Sat, Sep 22, 2018 at 11:53:22PM +0200, Marton Balint wrote: These are based on the very similar UDP and RTP protocol functions. Signed-off-by: Marton Bal

Re: [FFmpeg-devel] [PATCH v2 1/3] libaomenc: Add support for tiles

2018-09-23 Thread Mark Thompson
On 19/09/18 00:15, James Almer wrote: > On 9/18/2018 7:55 PM, Mark Thompson wrote: >> On 18/09/18 01:12, James Almer wrote: >>> On 9/17/2018 8:47 PM, Mark Thompson wrote: Adds an option to specify the number of tile rows and columns, then uses equal-sized tiles to fill the frame. ---

Re: [FFmpeg-devel] [PATCH v2 2/3] lavc: Add coded bitstream read/write support for AV1

2018-09-23 Thread Mark Thompson
On 18/09/18 01:25, James Almer wrote: > On 9/17/2018 8:47 PM, Mark Thompson wrote: >> --- >> On 10/09/18 20:14, Michael Niedermayer wrote: >>> breaks build on mips: >>> CC libavcodec/av1_metadata_bsf.o >>> In file included from src/libavcodec/av1_metadata_bsf.c:25: >>> src/libavcodec/cbs_av1.h:364

Re: [FFmpeg-devel] [PATCH 1/7] avformat/ip: factorize some IP filtering and resolving functions to a new file

2018-09-23 Thread James Almer
On 9/23/2018 7:04 PM, Marton Balint wrote: > > > On Sun, 23 Sep 2018, Michael Niedermayer wrote: > >> On Sat, Sep 22, 2018 at 11:53:22PM +0200, Marton Balint wrote: >>> These are based on the very similar UDP and RTP protocol functions. >>> >>> Signed-off-by: Marton Balint >>> --- >>>  libavfor

Re: [FFmpeg-devel] [PATCH v4 30/38] vaapi_encode_h264: Enable multiple-slice support

2018-09-23 Thread Mark Thompson
On 19/09/18 02:33, myp...@gmail.com wrote:> > VA-API encoder can support multiple-frame reference too. That's loosely the intent, though it probably needs more information about similarities between frames for the feature to be of non-placebo use. In terms of the common implementation it should

Re: [FFmpeg-devel] [PATCH 1/7] avformat/ip: factorize some IP filtering and resolving functions to a new file

2018-09-23 Thread Marton Balint
On Sun, 23 Sep 2018, Michael Niedermayer wrote: On Sat, Sep 22, 2018 at 11:53:22PM +0200, Marton Balint wrote: These are based on the very similar UDP and RTP protocol functions. Signed-off-by: Marton Balint --- libavformat/ip.c | 165 +++

[FFmpeg-devel] [PATCH] configure: fix --disable-alsa after 247281e805

2018-09-23 Thread Jan Beich
1 && 2 || 3 is implicitly grouped as { 1 && 2; } || 3 as both && and || have equal precedence and are evaluated with left associativity. Signed-off-by: Jan Beich --- configure | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 1946bcb69c..ea6fa2c6d

[FFmpeg-devel] [PATCH v2 3/5] vaapi_encode_h264: Enable multiple-slice support

2018-09-23 Thread Mark Thompson
--- libavcodec/vaapi_encode_h264.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/libavcodec/vaapi_encode_h264.c b/libavcodec/vaapi_encode_h264.c index 8feae0d42f..7bb77cfba2 100644 --- a/libavcodec/vaapi_encode_h264.c +++ b/libavcodec/vaapi_encode_h264.c @@ -733

[FFmpeg-devel] [PATCH v2 4/5] vaapi_encode_h265: Enable multiple-slice support

2018-09-23 Thread Mark Thompson
--- libavcodec/vaapi_encode_h265.c | 26 +- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/libavcodec/vaapi_encode_h265.c b/libavcodec/vaapi_encode_h265.c index 1ada973dd3..ddda9165fa 100644 --- a/libavcodec/vaapi_encode_h265.c +++ b/libavcodec/vaapi_encode_

[FFmpeg-devel] [PATCH v2 5/5] vaapi_encode: Add flag to mark encoders supporting only constant-quality

2018-09-23 Thread Mark Thompson
And set it for MJPEG. --- libavcodec/vaapi_encode.c | 3 ++- libavcodec/vaapi_encode.h | 2 ++ libavcodec/vaapi_encode_mjpeg.c | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libavcodec/vaapi_encode.c b/libavcodec/vaapi_encode.c index 2d33aa5ec3..bc1cad7395 100644

[FFmpeg-devel] [PATCH v2 1/5] vaapi_encode: Support configurable slices

2018-09-23 Thread Mark Thompson
This adds common code to query driver support and set appropriate address/size information for each slice. It only supports rectangular slices for now, since that is the most common use-case. --- doc/encoders.texi | 2 + libavcodec/vaapi_encode.c | 151 ++

[FFmpeg-devel] [PATCH v2 2/5] vaapi_encode_mpeg2: Use common slice sizing code

2018-09-23 Thread Mark Thompson
--- libavcodec/vaapi_encode_mpeg2.c | 18 -- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/libavcodec/vaapi_encode_mpeg2.c b/libavcodec/vaapi_encode_mpeg2.c index 1377eeb9bb..99a8b43237 100644 --- a/libavcodec/vaapi_encode_mpeg2.c +++ b/libavcodec/vaapi_encode_mpeg

Re: [FFmpeg-devel] [PATCH 1/7] avformat/ip: factorize some IP filtering and resolving functions to a new file

2018-09-23 Thread Michael Niedermayer
On Sat, Sep 22, 2018 at 11:53:22PM +0200, Marton Balint wrote: > These are based on the very similar UDP and RTP protocol functions. > > Signed-off-by: Marton Balint > --- > libavformat/ip.c | 165 > +++ > libavformat/ip.h | 74 ++

Re: [FFmpeg-devel] libavdevice/decklink trivial patch for SDI input/output

2018-09-23 Thread Marton Balint
On Thu, 6 Sep 2018, Baldur Gislason wrote: Sending this again as the mime type was wrong for the patch on the last message. I have prepared a patch that adds two things. On the Decklink input side, it adds a parameter called 'passthrough' which makes it possible to change from the default beha

Re: [FFmpeg-devel] cache: read ahead to avoid excessive small requests

2018-09-23 Thread Robert Nagy
On Sun, Sep 23, 2018 at 1:40 PM Michael Niedermayer wrote: > > On Sat, Sep 22, 2018 at 07:32:28PM +0200, Robert Nagy wrote: > > diff --git a/libavformat/cache.c b/libavformat/cache.c > > index 66bbbf54c9..48ff5ab363 100644 > > --- a/libavformat/cache.c > > +++ b/libavformat/cache.c > > @@ -153,6 +

Re: [FFmpeg-devel] [PATCH] avdevice/decklink: add support for selecting devices based on their unique ID

2018-09-23 Thread Marton Balint
On Sat, 22 Sep 2018, Jeyapal, Karthick wrote: On 9/21/18 5:10 PM, Marton Balint wrote: On Fri, 21 Sep 2018, Jeyapal, Karthick wrote: On 9/21/18 3:35 AM, Marton Balint wrote: Also bump the API version requirement to 10.9.5, because on olders versions there were some reports of crashes u

Re: [FFmpeg-devel] [PATCH V2] avcodec/vaapi:free slice_buffers when decoding failed

2018-09-23 Thread Mark Thompson
On 19/09/18 03:01, Linjie Fu wrote: > If vaEndPicture failed in ff_vaapi_decode_issue, free > the pic->slice_buffer. > > Fix the memory leak issue in ticket #7385 > > [V2] unit the return paths under the "exit" tag at > the end of the function. > > Signed-off-by: Linjie Fu > --- > libavcodec/v

Re: [FFmpeg-devel] [PATCH v4 00/38] VAAPI encode and related stuff

2018-09-23 Thread Mark Thompson
On 18/09/18 23:30, Mark Thompson wrote: > 1-28 should be complete and had only a few very minor changes since last > time. I'll push them this weekend if there are no further comments. (17 is > new but hopefully obvious.) These applied. Thanks, - Mark

Re: [FFmpeg-devel] cache: read ahead to avoid excessive small requests

2018-09-23 Thread Michael Niedermayer
On Sat, Sep 22, 2018 at 07:32:28PM +0200, Robert Nagy wrote: > diff --git a/libavformat/cache.c b/libavformat/cache.c > index 66bbbf54c9..48ff5ab363 100644 > --- a/libavformat/cache.c > +++ b/libavformat/cache.c > @@ -153,6 +153,38 @@ fail: > return ret; > } > > +static int cache_read_ahead(

Re: [FFmpeg-devel] [PATCH 01/11] avcodec/prosumer: Remove dead code

2018-09-23 Thread Michael Niedermayer
On Sun, Sep 23, 2018 at 01:30:29PM +0200, Paul B Mahol wrote: > On 9/22/18, Michael Niedermayer wrote: > > On Sat, Sep 22, 2018 at 06:24:14PM +0200, Paul B Mahol wrote: > >> On 9/22/18, Michael Niedermayer wrote: > >> > Signed-off-by: Michael Niedermayer > >> > --- > >> > libavcodec/prosumer.c

Re: [FFmpeg-devel] [PATCH 01/11] avcodec/prosumer: Remove dead code

2018-09-23 Thread Paul B Mahol
On 9/22/18, Michael Niedermayer wrote: > On Sat, Sep 22, 2018 at 06:24:14PM +0200, Paul B Mahol wrote: >> On 9/22/18, Michael Niedermayer wrote: >> > Signed-off-by: Michael Niedermayer >> > --- >> > libavcodec/prosumer.c | 3 --- >> > 1 file changed, 3 deletions(-) >> > >> > diff --git a/libavc