Re: [FFmpeg-devel] [PATCH] fftools/ffmpeg_filter: add -autoscale to disable/enable the default scale

2020-02-13 Thread Fu, Linjie
> -Original Message- > From: ffmpeg-devel On Behalf Of Fu, > Linjie > Sent: Tuesday, February 11, 2020 20:58 > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH] fftools/ffmpeg_filter: add -autoscale > to disable/enable the default scale

[FFmpeg-devel] [PATCH 1/3] avutil/frame: add use_last_roi

2020-02-13 Thread Guo, Yejun
For some cases, the regions of interest do not change, it is not convenient to always prepare the roi data for every frame. So, add use_last_roi to show it uses the same roi data as last frame. Since a new flag is added into AVFrame, the major version number of lavu is changed. Signed-off-by: Guo

[FFmpeg-devel] [PATCH 3/3] libavcodec/libx264.c: add support for use_last_roi

2020-02-13 Thread Guo, Yejun
Signed-off-by: Guo, Yejun --- libavcodec/libx264.c | 37 ++--- 1 file changed, 30 insertions(+), 7 deletions(-) diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index bad9351..b275cc2 100644 --- a/libavcodec/libx264.c +++ b/libavcodec/libx264.c @@ -107,6 +

[FFmpeg-devel] [PATCH 2/3] libavcodec/libx264.c: refine code to extract function x264_encode_set_roi

2020-02-13 Thread Guo, Yejun
Signed-off-by: Guo, Yejun --- libavcodec/libx264.c | 148 --- 1 file changed, 80 insertions(+), 68 deletions(-) diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index ca8f6c0..bad9351 100644 --- a/libavcodec/libx264.c +++ b/libavcodec/libx2

[FFmpeg-devel] Status and Plans for Subtitle Filters

2020-02-13 Thread Soft Works
Hi, I am looking for some guidance regarding future plans about processing subtitle streams in filter graphs. Please correct me where I'm wrong - this is the situation as I've understood it so far: - Currently, ffmpeg filter graphs do not support processing subtitle streams - This is why filte

Re: [FFmpeg-devel] [PATCH]lavc/mlp_parse: Read wordlength from 0xba streams

2020-02-13 Thread Hendrik Leppkes
On Fri, Feb 14, 2020 at 12:29 AM Carl Eugen Hoyos wrote: > > Hi! > > Attached patch allows detecting s16 truehd streams encoded with > FFmpeg, only tested with FFmpeg's encoder, I did not look into any > specification. > According to Dolbys Bitstream specification this read does not seem right. I

Re: [FFmpeg-devel] [PATCH v2] avcodec/cbs_av1: add missing value constrains to point_y_value, point_cb_value and point_cr_value

2020-02-13 Thread James Almer
On 2/13/2020 8:08 PM, Mark Thompson wrote: > On 13/02/2020 18:21, James Almer wrote: >> On 2/13/2020 2:45 PM, Andreas Rheinhardt wrote: >>> On Thu, Feb 13, 2020 at 4:08 PM James Almer wrote: >>> If i is greater than 0, it is a requirement of bitstream conformance that point_y_value[ i ]

[FFmpeg-devel] [PATCH]lavc/mlp_parse: Read wordlength from 0xba streams

2020-02-13 Thread Carl Eugen Hoyos
Hi! Attached patch allows detecting s16 truehd streams encoded with FFmpeg, only tested with FFmpeg's encoder, I did not look into any specification. Please comment, Carl Eugen From 1b98303ab87463037e05e66f3129112fc5c6e484 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Fri, 14 Feb 2020 00

Re: [FFmpeg-devel] [PATCH] avfilter: add pad opencl filter

2020-02-13 Thread Mark Thompson
On 10/02/2020 12:03, Paul B Mahol wrote: > Signed-off-by: Paul B Mahol > --- > configure | 1 + > doc/filters.texi| 77 +++ > libavfilter/Makefile| 1 + > libavfilter/allfilters.c| 1 + > libavfilter/opencl/pad.cl | 36 > libavfilter/op

[FFmpeg-devel] [PATCH 2/3] avformat/libsrt: fix name of timeout option

2020-02-13 Thread Marton Balint
rw_timeout is the generic URLcontext option, not the protocol specific timeout option, also ?rw_timeout never worked because ?timeout was parsed instead. Signed-off-by: Marton Balint --- doc/protocols.texi | 2 +- libavformat/libsrt.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) d

[FFmpeg-devel] [PATCH 3/3] avformat/libsrt: fix checking connection result in non-blocking mode

2020-02-13 Thread Marton Balint
After f8990c5f414d4575415e2a3981c3b14ca3d4 we properly set non-blocking mode which makes the connect() call return always 0 even if no connection can be established. Fix this by always doing a poll after calling connect(). Also there was some leftover copy paste code which checks for various e

[FFmpeg-devel] [PATCH 1/3] avformat/libsrt: fix timeout unit confusion between milisec and microsec

2020-02-13 Thread Marton Balint
Signed-off-by: Marton Balint --- libavformat/libsrt.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavformat/libsrt.c b/libavformat/libsrt.c index d7faa603f5..1d748f0e81 100644 --- a/libavformat/libsrt.c +++ b/libavformat/libsrt.c @@ -210,7 +210,7 @@ static int li

Re: [FFmpeg-devel] [PATCH v2] avcodec/cbs_av1: add missing value constrains to point_y_value, point_cb_value and point_cr_value

2020-02-13 Thread Mark Thompson
On 13/02/2020 18:21, James Almer wrote: > On 2/13/2020 2:45 PM, Andreas Rheinhardt wrote: >> On Thu, Feb 13, 2020 at 4:08 PM James Almer wrote: >> >>> If i is greater than 0, it is a requirement of bitstream conformance that >>> point_y_value[ i ] is greater than point_y_value[ i - 1 ]. >>> If i i

[FFmpeg-devel] [PATCH 2/2] avcodec/dstdec: Check sample rate

2020-02-13 Thread Michael Niedermayer
Fixes: out of array access Fixes: 20659/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DST_fuzzer-5735812071424000 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/dstdec.c | 5 + 1 file

[FFmpeg-devel] [PATCH 1/2] avcodec/dstdec: Use local channels variable

2020-02-13 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavcodec/dstdec.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/libavcodec/dstdec.c b/libavcodec/dstdec.c index 880b838b0c..bdabced823 100644 --- a/libavcodec/dstdec.c +++ b/libavcodec/dstdec.c @@ -262,7 +262,7 @@ stati

Re: [FFmpeg-devel] [PATCH] lavu/tx: implement 32 bit fixed point FFT and MDCT

2020-02-13 Thread Lynne
Feb 8, 2020, 23:26 by d...@lynne.ee: > Patch attached. Commit message: > > Required minimal changes to the code so made sense to implement. > FFT and MDCT tested, the output of both was properly rounded. > Fun fact: the non-power-of-two fixed-point FFT and MDCT are the fastest ever > non-power-of-

Re: [FFmpeg-devel] [PATCH 1/3 v2] avcodec: add an AVCodecContext field to signal types of packet, frame, and coded stream side data to export

2020-02-13 Thread James Almer
On 2/10/2020 3:26 PM, James Almer wrote: > Add an initial mvs flag to is, analog to the export_mvs flags2 one. > > Signed-off-by: James Almer > --- > libavcodec/avcodec.h | 18 ++ > libavcodec/mpegpicture.c | 2 +- > libavcodec/mpegutils.c

Re: [FFmpeg-devel] [PATCH] avfilter: add pad opencl filter

2020-02-13 Thread Paul B Mahol
Will apply. On 2/10/20, Paul B Mahol wrote: > Signed-off-by: Paul B Mahol > --- > configure | 1 + > doc/filters.texi| 77 +++ > libavfilter/Makefile| 1 + > libavfilter/allfilters.c| 1 + > libavfilter/opencl/pad.cl | 36 > libavfilt

Re: [FFmpeg-devel] [PATCH] avfilter: add Contrast Adaptive Sharpen video filter

2020-02-13 Thread Paul B Mahol
Will apply. On 2/10/20, Paul B Mahol wrote: > Signed-off-by: Paul B Mahol > --- > libavfilter/Makefile | 1 + > libavfilter/allfilters.c | 1 + > libavfilter/vf_cas.c | 253 +++ > 3 files changed, 255 insertions(+) > create mode 100644 libavfilte

Re: [FFmpeg-devel] [PATCH v2] avcodec/cbs_av1: add missing value constrains to point_y_value, point_cb_value and point_cr_value

2020-02-13 Thread James Almer
On 2/13/2020 2:45 PM, Andreas Rheinhardt wrote: > On Thu, Feb 13, 2020 at 4:08 PM James Almer wrote: > >> If i is greater than 0, it is a requirement of bitstream conformance that >> point_y_value[ i ] is greater than point_y_value[ i - 1 ]. >> If i is greater than 0, it is a requirement of bitst

Re: [FFmpeg-devel] [PATCH v2] avcodec/cbs_av1: add missing value constrains to point_y_value, point_cb_value and point_cr_value

2020-02-13 Thread Andreas Rheinhardt
On Thu, Feb 13, 2020 at 4:08 PM James Almer wrote: > If i is greater than 0, it is a requirement of bitstream conformance that > point_y_value[ i ] is greater than point_y_value[ i - 1 ]. > If i is greater than 0, it is a requirement of bitstream conformance that > point_cb_value[ i ] is greater

[FFmpeg-devel] [PATCH v2] avcodec/cbs_av1: add missing value constrains to point_y_value, point_cb_value and point_cr_value

2020-02-13 Thread James Almer
If i is greater than 0, it is a requirement of bitstream conformance that point_y_value[ i ] is greater than point_y_value[ i - 1 ]. If i is greater than 0, it is a requirement of bitstream conformance that point_cb_value[ i ] is greater than point_cb_value[ i - 1 ]. If i is greater than 0, it is

Re: [FFmpeg-devel] [PATCH v2] HEVC: Export motion vectors to frame side data.

2020-02-13 Thread Paul B Mahol
On 2/13/20, Asaf Kave wrote: > On Wed, Feb 12, 2020 at 4:02 PM Paul B Mahol wrote: > >> On 2/12/20, Asaf Kave wrote: >> > On Wed, Feb 12, 2020 at 11:35 AM Paul B Mahol wrote: >> > >> >> On 2/12/20, Asaf Kave wrote: >> >> > On Sun, Feb 9, 2020 at 10:59 AM Asaf Kave wrote: >> >> > >> >> >> >> >

Re: [FFmpeg-devel] [PATCH v4] avfilter/vf_zoompan: fix shaking when zooming

2020-02-13 Thread Robert Deibel
On 07.02.20 21:23, Paul B Mahol wrote: On 2/6/20, Robert Deibel wrote: Would appreciate further review or info. Are you sure this change does not break older scripts? You were right, it did break older scripts. Clips that were upscaled in a previous filter would be transformed in a worse wa

Re: [FFmpeg-devel] [PATCH v2] HEVC: Export motion vectors to frame side data.

2020-02-13 Thread Asaf Kave
On Wed, Feb 12, 2020 at 4:02 PM Paul B Mahol wrote: > On 2/12/20, Asaf Kave wrote: > > On Wed, Feb 12, 2020 at 11:35 AM Paul B Mahol wrote: > > > >> On 2/12/20, Asaf Kave wrote: > >> > On Sun, Feb 9, 2020 at 10:59 AM Asaf Kave wrote: > >> > > >> >> > >> >> > >> >> On Thu, Feb 6, 2020 at 4:10

Re: [FFmpeg-devel] Getting Started :: Need for render API

2020-02-13 Thread Timo Rothenpieler
Vulkan is the new standard API for interfacing with GPUs. A video decode API in on the horizon, and shaders can be used as filters. FFmpeg is primarily a library, the command line tool is pretty much only an example implementation. ___ ffmpeg-devel mai

[FFmpeg-devel] [PATCH] lavc/qsvenc: add support for external bitrate control for HEVC

2020-02-13 Thread Linjie Fu
Enables option for hevc_qsv encoder: -extbrc Improvements in BD-Rate could be observed with extbrc on. Signed-off-by: Linjie Fu --- Details for extbrc: https://github.com/Intel-Media-SDK/MediaSDK/blob/master/doc/mediasdk-man.md#external-bit-rate-control The improvement differs depending on

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/midivid: Check dimensions to be the multiple assumed by the implementation

2020-02-13 Thread Paul B Mahol
On 2/13/20, Reino Wijnsma wrote: > On 2020-02-12T23:17:09+0100, Paul B Mahol wrote: >> This is incorrect. >> >> On 2/12/20, Michael Niedermayer wrote: >>> Fixes: out of array access >>> Fixes: >>> 20626/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MVDV_fuzzer-6279905350516736 >>> >>> Found-