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

2019-07-15 Thread Linjie Fu
Currently, ffmpeg inserts scale filter by default in the filter graph to force the whole decoded stream to scale into the same size with the first frame. It's not quite make sense in resolution changing cases if user wants the rawvideo without any scale. Using autoscale/noautoscale to indicate

[FFmpeg-devel] [PATCH 2/2] doc/ffmpeg.texi: update docs for autoscale/autorotate

2019-07-15 Thread Linjie Fu
Add docs for autoscale/noautoscale. Update information for autorotate according to ffplay. Signed-off-by: Linjie Fu --- doc/ffmpeg.texi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi index cd35eb49c8..040a2b53cf 100644 --- a/doc/ffmpeg.texi

Re: [FFmpeg-devel] [PATCH] fftools/ffmpeg_filter: use -reinit_filter to disable/enable auto scale

2019-07-15 Thread Fu, Linjie
> -Original Message- > From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf > Of Eoff, Ullysses A > Sent: Saturday, July 13, 2019 12:26 > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH] fftools/ffmpeg_filter: use

[FFmpeg-devel] [PATCH, v3 1/2] lavc/vaapi_encode: add support for maxframesize

2019-07-15 Thread Linjie Fu
Add support for max frame size: - max_frame_size (bytes) to indicate the max allowed size for frame. If the frame size exceeds the limitation, encoder will to control the frame size by adjusting QP value. - MFS_NUM_PASSES to indicate number of passes for QP adjust. - MFS_DELTA_QP to

[FFmpeg-devel] [PATCH 2/2] doc/vaapi_encode: add documentations for max_frame_size

2019-07-15 Thread Linjie Fu
Add docs for max_frame_size option. Signed-off-by: Linjie Fu --- doc/encoders.texi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/doc/encoders.texi b/doc/encoders.texi index eefd124751..ea43900e91 100644 --- a/doc/encoders.texi +++ b/doc/encoders.texi @@ -2899,6 +2899,12 @@ will

Re: [FFmpeg-devel] [PATCHv4] avcodec: Add librav1e encoder

2019-07-15 Thread James Almer
On 7/15/2019 11:23 AM, Derek Buitenhuis wrote: > On 13/07/2019 19:37, James Almer wrote: >> Just use av_reallocp(). Each call will make the buffer bigger, so you're >> not really making use the no-op benefits from av_fast_realloc(), which >> only trigger if newsize <= size. > > I'll wait for your

Re: [FFmpeg-devel] [PATCH 2/2] doc/ffmpeg.texi: update docs for autoscale/autorotate

2019-07-15 Thread Nicolas George
Linjie Fu (12019-07-15): > Add docs for autoscale/noautoscale. This belongs in the path that adds them. > > Update information for autorotate according to ffplay. > > Signed-off-by: Linjie Fu > --- > doc/ffmpeg.texi | 11 +++ > 1 file changed, 11 insertions(+) > > diff --git

Re: [FFmpeg-devel] [PATCH 2/2] doc/ffmpeg.texi: update docs for autoscale/autorotate

2019-07-15 Thread Fu, Linjie
> -Original Message- > From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf > Of Moritz Barsnick > Sent: Monday, July 15, 2019 20:02 > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH 2/2] doc/ffmpeg.texi: update docs

Re: [FFmpeg-devel] [PATCH v2] fate: add hls fmp4 segment type test case

2019-07-15 Thread Steven Liu
> 在 2019年7月15日,03:27,Michael Niedermayer 写道: > > On Sun, Jul 14, 2019 at 06:41:28AM +0800, Steven Liu wrote: >> Signed-off-by: Steven Liu >> --- >> tests/fate/hlsenc.mak | 12 +++ >> tests/ref/fate/hls-fmp4 | 198 >> >> 2 files changed, 210

[FFmpeg-devel] [PATCH] avcodec: list the allocation requirements for intra_matrix and inter_matrix fields

2019-07-15 Thread James Almer
Signed-off-by: James Almer --- See https://git.videolan.org/?p=vlc.git;a=commitdiff;h=d86c4c87aa78130a4fd00294e25df865d0e2b327 libavcodec/avcodec.h | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index

Re: [FFmpeg-devel] [PATCHv4] avcodec: Add librav1e encoder

2019-07-15 Thread Derek Buitenhuis
On 13/07/2019 19:37, James Almer wrote: > Just use av_reallocp(). Each call will make the buffer bigger, so you're > not really making use the no-op benefits from av_fast_realloc(), which > only trigger if newsize <= size. I'll wait for your reply to Nicholas and do whichevr people agree on. >>

Re: [FFmpeg-devel] [PATCH 2/2] doc/ffmpeg.texi: update docs for autoscale/autorotate

2019-07-15 Thread Moritz Barsnick
On Mon, Jul 15, 2019 at 18:39:14 +0800, Linjie Fu wrote: Nit: > +@item -noautoscale > +Disable automatically scale video based on first frame resolution. ^ scaling Cheers, Moritz ___ ffmpeg-devel mailing list

Re: [FFmpeg-devel] [PATCH v6] Fix integer parameters size check in SDP fmtp line

2019-07-15 Thread Reimar Döffinger
This seems reasonable to me, but I have not been involved in any rtp code. The commit message is maybe a bit on the verbose side, but I don't have any strong opinion. On 12.07.2019, at 08:40, Olivier Maignial wrote: > === PROBLEM === > > I was trying to record h264 + aac streams from an RTSP

Re: [FFmpeg-devel] [PATCHv4] avcodec: Add librav1e encoder

2019-07-15 Thread Derek Buitenhuis
On 15/07/2019 15:53, James Almer wrote: >>> AV_BASE64_DECODE_SIZE(strlen(avctx->stats_in)); >> >> I copied this directly from libtheoraenc.c which has had this for more than >> 10 >> years... is it wrong? Should it be changed too? > > It's not wrong, that helper macro was added three years ago

[FFmpeg-devel] [PATCH] libavformat/subfile: Fix SEEK_CUR and SEEK_END seeking

2019-07-15 Thread Andreas Rheinhardt
Up until now, when performing a SEEK_END seek, the subfile protocol ignored the desired position (relative to EOF) and used the current absolute offset in the input file instead. And when performing a SEEK_CUR seek, the current position has been ignored. Signed-off-by: Andreas Rheinhardt ---

Re: [FFmpeg-devel] [PATCH 2/2] doc/ffmpeg.texi: update docs for autoscale/autorotate

2019-07-15 Thread Fu, Linjie
> -Original Message- > From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf > Of Carl Eugen Hoyos > Sent: Monday, July 15, 2019 23:38 > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH 2/2] doc/ffmpeg.texi: update docs

[FFmpeg-devel] [PATCH] libavformat/subfile: Fix SEEK_END seeking

2019-07-15 Thread Andreas Rheinhardt
Up until now, when performing a SEEK_END seek, the subfile protocol ignored the desired position (relative to EOF) and used the current absolute offset in the input file instead. Signed-off-by: Andreas Rheinhardt --- A situation affected by this is a concatenation of concat and subfile: For some

Re: [FFmpeg-devel] [PATCH] lavf/vf_freezedetect: improve for the freeze frame detection

2019-07-15 Thread Marton Balint
On Mon, 15 Jul 2019, Limin Wang wrote: [...] >>>if (s->width[plane]) { >>>uint64_t plane_sad; >>>s->sad(frame->data[plane], frame->linesize[plane], >>>@@ -140,8 +146,12 @@ static int is_frozen(FreezeDetectContext *s, AVFrame *reference, AVFrame *frame) >>>

[FFmpeg-devel] [PATCH] avcodec: add IMM5 decoder

2019-07-15 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- configure | 1 + libavcodec/Makefile | 1 + libavcodec/allcodecs.c | 1 + libavcodec/avcodec.h| 1 + libavcodec/codec_desc.c | 7 ++ libavcodec/imm5.c | 234 libavformat/riff.c |

Re: [FFmpeg-devel] [PATCH] avcodec: add IMM5 decoder

2019-07-15 Thread James Almer
On 7/15/2019 6:20 PM, Paul B Mahol wrote: > Signed-off-by: Paul B Mahol > --- > configure | 1 + > libavcodec/Makefile | 1 + > libavcodec/allcodecs.c | 1 + > libavcodec/avcodec.h| 1 + > libavcodec/codec_desc.c | 7 ++ > libavcodec/imm5.c | 234

Re: [FFmpeg-devel] [PATCH] avcodec: add IMM5 decoder

2019-07-15 Thread Andreas Rheinhardt
Paul B Mahol: > Signed-off-by: Paul B Mahol > --- > configure | 1 + > libavcodec/Makefile | 1 + > libavcodec/allcodecs.c | 1 + > libavcodec/avcodec.h| 1 + > libavcodec/codec_desc.c | 7 ++ > libavcodec/imm5.c | 234

[FFmpeg-devel] [PATCH 2/2] avcodec/fitsdec: Prevent division by 0 with huge data_max

2019-07-15 Thread Michael Niedermayer
Fixes: division by 0 Fixes: 15657/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FITS_fuzzer-5738154838982656 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/fitsdec.c | 2 +- 1 file

[FFmpeg-devel] [PATCH 1/2] avcodec/sanm: Check extradata_size before allocations

2019-07-15 Thread Michael Niedermayer
Fixes: Leaks Fixes: 15349/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SANM_fuzzer-5102530557640704 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/sanm.c | 9 - 1 file changed,

[FFmpeg-devel] [PATCH 2/3] fate: change the scenecut fate threshold for one more scenecut scenes

2019-07-15 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- tests/fate/filter-video.mak| 2 +- tests/ref/fate/filter-metadata-scenedetect | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak index 1042e96..60c6be1

[FFmpeg-devel] [PATCH 1/3] lavf/f_select: support scenecut with more pixel formats

2019-07-15 Thread lance . lmwang
From: Limin Wang This patch haven't make other pixel format usable yet to make sure the test result is same with rgb format. Signed-off-by: Limin Wang --- libavfilter/f_select.c | 34 ++ 1 file changed, 30 insertions(+), 4 deletions(-) diff --git

[FFmpeg-devel] [PATCH 3/3] lavf/f_select: make the more pixel format usable to avoid autoscale to rgb

2019-07-15 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/f_select.c | 6 ++ tests/ref/fate/filter-metadata-scenedetect | 16 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/libavfilter/f_select.c b/libavfilter/f_select.c index

Re: [FFmpeg-devel] [PATCH] lavf/vf_freezedetect: improve for the freeze frame detection

2019-07-15 Thread Limin Wang
On Mon, Jul 15, 2019 at 11:07:32PM +0200, Marton Balint wrote: > > > On Mon, 15 Jul 2019, Limin Wang wrote: > > [...] > > >if (s->width[plane]) { > >uint64_t plane_sad; > >s->sad(frame->data[plane], frame->linesize[plane], > >@@ -140,8 +146,12 @@

Re: [FFmpeg-devel] [PATCH 2/2] doc/ffmpeg.texi: update docs for autoscale/autorotate

2019-07-15 Thread Fu, Linjie
> -Original Message- > From: Nicolas George [mailto:geo...@nsup.org] > Sent: Monday, July 15, 2019 22:00 > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Cc: Fu, Linjie > Subject: Re: [FFmpeg-devel] [PATCH 2/2] doc/ffmpeg.texi: update docs for > autoscale/autorotate >

Re: [FFmpeg-devel] [PATCH 1/2] dnn: add layer pad which is equivalent to tf.pad

2019-07-15 Thread Guo, Yejun
> > -Original Message- > > From: Guo, Yejun > > Sent: Monday, July 01, 2019 4:08 PM > > To: ffmpeg-devel@ffmpeg.org > > Cc: Guo, Yejun > > Subject: [PATCH 1/2] dnn: add layer pad which is equivalent to tf.pad > > > > the reason to add this layer first is that vf_sr uses it in its > >

[FFmpeg-devel] [PATCH 1/4] libavfilter/dnn: move dnn files from libavfilter to libavfilter/dnn

2019-07-15 Thread Guo, Yejun
it is expected that there will be more files to support native mode, so put all the dnn codes under libavfilter/dnn The main change of this patch is to move the file location, see below: modified: libavfilter/Makefile new file: libavfilter/dnn/Makefile renamed:

[FFmpeg-devel] [PATCH 2/4] dnn: add layer pad which is equivalent to tf.pad

2019-07-15 Thread Guo, Yejun
the reason to add this layer first is that vf_sr uses it in its tensorflow model, and the next plan is to update the python script to convert tf.pad into native model. Signed-off-by: Guo, Yejun --- libavfilter/dnn/Makefile | 1 +

[FFmpeg-devel] [PATCH 3/4] fate: add unit test for dnn-layer-pad

2019-07-15 Thread Guo, Yejun
'make fate-dnn-layer-pad' to run the test Signed-off-by: Guo, Yejun --- tests/Makefile | 5 +- tests/dnn/Makefile | 11 +++ tests/dnn/dnn-layer-pad-test.c | 201 + tests/fate/dnn.mak | 8 ++ 4 files changed,

Re: [FFmpeg-devel] [PATCH 2/2] doc/ffmpeg.texi: update docs for autoscale/autorotate

2019-07-15 Thread Carl Eugen Hoyos
Am Mo., 15. Juli 2019 um 12:39 Uhr schrieb Linjie Fu : > > Add docs for autoscale/noautoscale. > > Update information for autorotate according to ffplay. > > Signed-off-by: Linjie Fu > --- > doc/ffmpeg.texi | 11 +++ > 1 file changed, 11 insertions(+) > > diff --git a/doc/ffmpeg.texi