[FFmpeg-devel] [PATCH] api-h264-slice-test: use av_be2ne16 instead of ntohs

2018-11-19 Thread Peter Ross
avformat/network.h is not required here. --- tests/api/api-h264-slice-test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/api/api-h264-slice-test.c b/tests/api/api-h264-slice-test.c index be03e80049..c6614da34d 100644 --- a/tests/api/api-h264-slice-test.c +++

[FFmpeg-devel] [PATCHv2] avfilter/graphmonitor: use SIZE_SPECIFIER for size_t type

2018-11-19 Thread Peter Ross
--- libavfilter/f_graphmonitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/f_graphmonitor.c b/libavfilter/f_graphmonitor.c index 7052c84d9b..c001835364 100644 --- a/libavfilter/f_graphmonitor.c +++ b/libavfilter/f_graphmonitor.c @@ -211,7 +211,7 @@ static

[FFmpeg-devel] [PATCH 3/3] lavc/libdavs2: fix function return value error

2018-11-19 Thread hwrenx
Signed-off-by: hwrenx --- libavcodec/libdavs2.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/libavcodec/libdavs2.c b/libavcodec/libdavs2.c index 3b8666f..b7f7d65 100644 --- a/libavcodec/libdavs2.c +++ b/libavcodec/libdavs2.c @@ -58,7 +58,7 @@ static

[FFmpeg-devel] [PATCH 1/3] libdavs2: update api version and enable avx option

2018-11-19 Thread hwrenx
Signed-off-by: hwrenx --- configure | 2 +- libavcodec/libdavs2.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/configure b/configure index b4f944c..1a9f874 100755 --- a/configure +++ b/configure @@ -6076,7 +6076,7 @@ enabled libcelt && require

[FFmpeg-devel] [PATCH 2/3] lavc/libdavs2: output delayed frames

2018-11-19 Thread hwrenx
Signed-off-by: hwrenx --- libavcodec/libdavs2.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/libavcodec/libdavs2.c b/libavcodec/libdavs2.c index 9a905b8..3b8666f 100644 --- a/libavcodec/libdavs2.c +++ b/libavcodec/libdavs2.c @@ -125,6 +125,23 @@ static

Re: [FFmpeg-devel] [PATCH v2] libavfilter: add transpose_vaapi filter

2018-11-19 Thread Zhou, Zachary
The patch optimized the ffmpeg transcode pipeline, it saves hwdownload/hwupload filters in the pipeline. It can get about 2.7x performance against software transpose filter as my test on 1080P. time ffmpeg -loglevel verbose -hwaccel vaapi -vaapi_device /dev/dri/renderD128

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/truemotion2: fix integer overflows in tm2_low_chroma()

2018-11-19 Thread Michael Niedermayer
On Mon, Nov 19, 2018 at 09:37:28AM +0100, Tomas Härdin wrote: > mån 2018-11-19 klockan 02:02 +0100 skrev Michael Niedermayer: > > On Sun, Nov 18, 2018 at 11:32:21PM +0100, Tomas Härdin wrote: > > > lör 2018-11-17 klockan 03:01 +0100 skrev Michael Niedermayer: > > > > Fixes: > > > >

[FFmpeg-devel] [PATCH] avcodec/truemotion2: Check huffman code max bits

2018-11-19 Thread Michael Niedermayer
Fixes: Timeout Fixes: 10984/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TRUEMOTION2_fuzzer-6643310750859264 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/truemotion2.c | 19

Re: [FFmpeg-devel] [PATCH] avcodec/mpeg_er: fix clearing chroma blocks for 422 and 444

2018-11-19 Thread Marton Balint
On Sun, 18 Nov 2018, Michael Niedermayer wrote: On Sat, Nov 17, 2018 at 11:39:08PM +0100, Marton Balint wrote: Fixes ticket #7494. Signed-off-by: Marton Balint --- libavcodec/mpeg_er.c | 2 ++ 1 file changed, 2 insertions(+) probably ok Thanks, applied and backported to 4.1. a fate

Re: [FFmpeg-devel] [PATCH] avfilter/vf_freezedetect: add filter to detect frozen input

2018-11-19 Thread Marton Balint
On Sun, 18 Nov 2018, Marton Balint wrote: On Sat, 17 Nov 2018, Paul B Mahol wrote: On 11/17/18, Marton Balint wrote: On Sun, 11 Nov 2018, Paul B Mahol wrote: On 11/11/18, Marton Balint wrote: Signed-off-by: Marton Balint --- Changelog | 1 + configure

Re: [FFmpeg-devel] [PATCH 2/5] fftools/ffprobe: fix max_bit_rate dump.

2018-11-19 Thread Michael Niedermayer
On Mon, Nov 19, 2018 at 08:40:07AM +0800, myp...@gmail.com wrote: > On Mon, Nov 19, 2018 at 6:03 AM Moritz Barsnick wrote: > > > > > +if (dec_ctx->rc_max_rate > 0) print_val ("max_bit_rate", > > > dec_ctx->rc_max_rate, unit_bit_per_second_str); > > > +else

Re: [FFmpeg-devel] [PATCH] [HLS] Add LANGUAGE attribute to #EXT-X-MEDIA tag for audio-only variant streams.

2018-11-19 Thread Philippe Symons
... I just noticed the langEntry var name. Here's an update. Sorry... Even after checking the guidelines twice, apparently I still miss things. I'll try to do better next time. I really expect this to be the last update. (at the very least concerning coding style issues) Sorry, Philippe Op ma

Re: [FFmpeg-devel] [PATCH] [HLS] Add LANGUAGE attribute to #EXT-X-MEDIA tag for audio-only variant streams.

2018-11-19 Thread Philippe Symons
Hello everyone, I've updated the patch based on the feedback from Moritz. Thanks, btw! I apologize if I wasted your time with this. I've updated the patch based on your feedback. I hope I got it right this time. Looking forward to your feedback, Best regards, Philippe Symons Op za 17 nov.

Re: [FFmpeg-devel] [PATCH 1/1] avcodec/vaapi_encode: add frame-skip func

2018-11-19 Thread Mark Thompson
On 19/11/18 09:04, Jing SUN wrote: > frame-skip is required to implement network > bandwidth self-adaptive vaapi encoding. > To make a frame skipped, allocate its frame > side data of AV_FRAME_DATA_SKIP_FRAME type > and set its value to 1. So if I'm reading this correctly the idea is to implement

Re: [FFmpeg-devel] [PATCH] avcodec/libvpxenc: add VP8 temporal scalability configuration options

2018-11-19 Thread James Zern
On Fri, Nov 16, 2018 at 8:59 PM James Zern wrote: > > On Wed, Nov 14, 2018 at 12:56 PM Ard Oerlemans > wrote: > > > > This commit adds configuration options to libvpxenc.c that can be used to > > enable VP8 temporal scalability. It also adds a way to programmatically set > > the > > per-frame

Re: [FFmpeg-devel] [PATCH 1/1] avcodec/vaapi_encode: add frame-skip func

2018-11-19 Thread Carl Eugen Hoyos
2018-11-19 10:04 GMT+01:00, Jing SUN : > diff --git a/libavutil/frame.h b/libavutil/frame.h > index 66f27f4..8ef6475 100644 > --- a/libavutil/frame.h > +++ b/libavutil/frame.h > @@ -166,6 +166,11 @@ enum AVFrameSideDataType { > * function in libavutil/timecode.c. > */ >

Re: [FFmpeg-devel] Add 16-bit Depth pixel format

2018-11-19 Thread Carl Eugen Hoyos
2018-11-19 18:41 GMT+01:00, Carl Eugen Hoyos : > 2018-11-19 18:21 GMT+01:00, Pablo Rubio Fernández : > >> It's my first time here. I want to create a patch to add Z16 pixel >> format. >> I have did some changes, and I want to know if I'll need change any other >> file. > > Isn't attached poc

Re: [FFmpeg-devel] Add 16-bit Depth pixel format

2018-11-19 Thread Carl Eugen Hoyos
2018-11-19 18:21 GMT+01:00, Pablo Rubio Fernández : > It's my first time here. I want to create a patch to add Z16 pixel format. > I have did some changes, and I want to know if I'll need change any other > file. Isn't attached poc sufficient? Carl Eugen diff --git a/libavdevice/v4l2-common.c

Re: [FFmpeg-devel] Add 16-bit Depth pixel format

2018-11-19 Thread Paul B Mahol
On 11/19/18, Pablo Rubio Fernández wrote: > Hi all! > It's my first time here. I want to create a patch to add Z16 pixel format. > I have did some changes, and I want to know if I'll need change any other > file. > I attach my current patch. > Thanks in advance. > Isn't this same as gray16?

[FFmpeg-devel] Add 16-bit Depth pixel format

2018-11-19 Thread Pablo Rubio Fernández
Hi all! It's my first time here. I want to create a patch to add Z16 pixel format. I have did some changes, and I want to know if I'll need change any other file. I attach my current patch. Thanks in advance. From 7f3e028198c510fd8cf14c087d4a223bd7e94422 Mon Sep 17 00:00:00 2001 From: prubio

Re: [FFmpeg-devel] [PATCH v2 1/3] configure: update api version of libxavs2

2018-11-19 Thread Carl Eugen Hoyos
2018-11-18 8:19 GMT+01:00, hwrenx : > From: hwrenx > > abolish parameter IntraPeriod && > replaced by IntraPeriodMax/Min > ... > > more detials could be found in xavs2-git > https://github.com/pkuvcl/xavs2 > > Signed-off-by: hwrenx > --- > configure | 2 +- > 1 file changed, 1 insertion(+), 1

Re: [FFmpeg-devel] [PATCH v2 3/3] lavc/libdavs2: add disable_avx into decoder parameter

2018-11-19 Thread Carl Eugen Hoyos
2018-11-18 8:19 GMT+01:00, hwrenx : > From: hwrenx > > Signed-off-by: hwrenx > --- > libavcodec/libdavs2.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/libavcodec/libdavs2.c b/libavcodec/libdavs2.c > index cadf995..8cef49d 100644 > --- a/libavcodec/libdavs2.c > +++

Re: [FFmpeg-devel] [PATCH] avfilter/graphmonitor: use %z when printing size_t

2018-11-19 Thread Hendrik Leppkes
On Mon, Nov 19, 2018 at 3:38 PM James Almer wrote: > > On 11/19/2018 9:34 AM, Hendrik Leppkes wrote: > > On Mon, Nov 19, 2018 at 12:27 PM Peter Ross wrote: > >> > >> --- > >> 32-bit target compiler warning. > >> > >> libavfilter/f_graphmonitor.c | 2 +- > >> 1 file changed, 1 insertion(+), 1

Re: [FFmpeg-devel] [PATCH] avfilter/graphmonitor: use %z when printing size_t

2018-11-19 Thread Nicolas George
Carl Eugen Hoyos (2018-11-19): > This happened when you (and others) agreed to a patch adding a > function that returns size_t. ff_inlink_queued_frames() is not public > so the alternative to this patch is to change the return type or make > frames 64bit which seems less straight-forward. > (Or it

Re: [FFmpeg-devel] [PATCH] avfilter/graphmonitor: use %z when printing size_t

2018-11-19 Thread James Almer
On 11/19/2018 9:34 AM, Hendrik Leppkes wrote: > On Mon, Nov 19, 2018 at 12:27 PM Peter Ross wrote: >> >> --- >> 32-bit target compiler warning. >> >> libavfilter/f_graphmonitor.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/libavfilter/f_graphmonitor.c

Re: [FFmpeg-devel] [PATCH] avfilter/graphmonitor: use %z when printing size_t

2018-11-19 Thread Carl Eugen Hoyos
2018-11-19 12:34 GMT+01:00, Paul B Mahol : > On 11/19/18, Peter Ross wrote: >> --- >> 32-bit target compiler warning. >> >> libavfilter/f_graphmonitor.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) > > Not acceptable. Where this happens? This happened when you (and others) agreed to

[FFmpeg-devel] [PATCH] avfilter: add maskfun filter

2018-11-19 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- doc/filters.texi | 27 libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/vf_maskfun.c | 279 +++ 4 files changed, 308 insertions(+) create mode 100644 libavfilter/vf_maskfun.c diff

Re: [FFmpeg-devel] [PATCH] avfilter/graphmonitor: use %z when printing size_t

2018-11-19 Thread Hendrik Leppkes
On Mon, Nov 19, 2018 at 12:27 PM Peter Ross wrote: > > --- > 32-bit target compiler warning. > > libavfilter/f_graphmonitor.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavfilter/f_graphmonitor.c b/libavfilter/f_graphmonitor.c > index 7052c84d9b..3cb8f73dd3 100644

Re: [FFmpeg-devel] [PATCH] avfilter/graphmonitor: use %z when printing size_t

2018-11-19 Thread Paul B Mahol
On 11/19/18, Peter Ross wrote: > --- > 32-bit target compiler warning. > > libavfilter/f_graphmonitor.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Not acceptable. Where this happens? ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org

[FFmpeg-devel] [PATCH] avfilter/graphmonitor: use %z when printing size_t

2018-11-19 Thread Peter Ross
--- 32-bit target compiler warning. libavfilter/f_graphmonitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/f_graphmonitor.c b/libavfilter/f_graphmonitor.c index 7052c84d9b..3cb8f73dd3 100644 --- a/libavfilter/f_graphmonitor.c +++

Re: [FFmpeg-devel] [FFmpeg-cvslog] lavu: add locale-independent sscanf implementation

2018-11-19 Thread Nicolas George
Paul B Mahol (2018-11-16): > +off_t shlim, shcnt; All these off_t should have been size_t, or possibly ptrdiff_t. off_t is for offsets in files. Regards, -- Nicolas George ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org

Re: [FFmpeg-devel] [PATCH] avfilter: add chromashift filter

2018-11-19 Thread Paul B Mahol
On 11/17/18, Paul B Mahol wrote: > Signed-off-by: Paul B Mahol > --- > doc/filters.texi | 17 +++ > libavfilter/Makefile | 1 + > libavfilter/allfilters.c | 1 + > libavfilter/vf_chromashift.c | 251 +++ > 4 files changed, 270

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/truemotion2: fix integer overflows in tm2_low_chroma()

2018-11-19 Thread Tomas Härdin
mån 2018-11-19 klockan 02:02 +0100 skrev Michael Niedermayer: > On Sun, Nov 18, 2018 at 11:32:21PM +0100, Tomas Härdin wrote: > > lör 2018-11-17 klockan 03:01 +0100 skrev Michael Niedermayer: > > > Fixes: > > >

[FFmpeg-devel] [PATCH 1/1] avcodec/vaapi_encode: add frame-skip func

2018-11-19 Thread Jing SUN
frame-skip is required to implement network bandwidth self-adaptive vaapi encoding. To make a frame skipped, allocate its frame side data of AV_FRAME_DATA_SKIP_FRAME type and set its value to 1. Signed-off-by: Jing SUN --- libavcodec/vaapi_encode.c | 142