Re: [FFmpeg-devel] [PATCH] avfilter: Added siti filter

2021-01-14 Thread Lynne
Jan 15, 2021, 06:06 by borba...@fb.com: > > Calculate Spatial Info (SI) and Temporal Info (TI) scores for a video, as > defined > in ITU-T P.910: Subjective video quality assessment methods for multimedia > applications. > --- > Changelog| 1 + > doc/filters.texi | 25

Re: [FFmpeg-devel] [PATCH V2] libavfilter/dnn: add batch mode for async execution

2021-01-14 Thread Steven Liu
> 2021年1月10日 下午9:16,Guo, Yejun 写道: > > the default number of batch_size is 1 > > Signed-off-by: Xie, Lin > Signed-off-by: Wu Zhiwen > Signed-off-by: Guo, Yejun > --- > libavfilter/dnn/dnn_backend_openvino.c | 187 - > libavfilter/dnn/dnn_backend_openvino.h | 1 + > l

Re: [FFmpeg-devel] [PATCH V2] libavfilter/dnn: add batch mode for async execution

2021-01-14 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of Fu, > Ting > Sent: 2021年1月14日 22:45 > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH V2] libavfilter/dnn: add batch mode for > async execution > > > > > -Original Message- > > From: ff

[FFmpeg-devel] [PATCH 2/7] avformat/bfi: Check chunk_header

2021-01-14 Thread Michael Niedermayer
Fixes: signed integer overflow: -2147483648 - 3 cannot be represented in type 'int' Fixes: 26910/clusterfuzz-testcase-minimized-ffmpeg_dem_BFI_fuzzer-6665764123836416 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niede

[FFmpeg-devel] [PATCH 7/7] avformat/mccdec: Use av_sat_add64() for fs

2021-01-14 Thread Michael Niedermayer
Fixes: signed integer overflow: -9223372036854775808 + -242 cannot be represented in type 'long' Fixes: 26910/clusterfuzz-testcase-minimized-ffmpeg_dem_MCC_fuzzer-6723018395090944 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by:

[FFmpeg-devel] [PATCH 1/7] avformat/ads: Check size

2021-01-14 Thread Michael Niedermayer
Fixes: signed integer overflow: -2147483616 - 64 cannot be represented in type 'int' Fixes: 26910/clusterfuzz-testcase-minimized-ffmpeg_dem_ADS_fuzzer-6617769344892928 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Nied

[FFmpeg-devel] [PATCH 6/7] avformat/lxfdec: Fix multiple integer overflows related to track_size

2021-01-14 Thread Michael Niedermayer
Fixes: signed integer overflow: 538976288 * 8 cannot be represented in type 'int' Fixes: 26910/clusterfuzz-testcase-minimized-ffmpeg_dem_LXF_fuzzer-6634030636335104 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niederm

[FFmpeg-devel] [PATCH 5/7] avformat/flvdec: Use av_sat_add64() for pts computation

2021-01-14 Thread Michael Niedermayer
Fixes: signed integer overflow: -9223372036854767583 + -65536 cannot be represented in type 'long' Fixes: 26910/clusterfuzz-testcase-minimized-ffmpeg_dem_FLV_fuzzer-6734549467922432 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by

[FFmpeg-devel] [PATCH 4/7] avformat/utils: Check dts - (1<

2021-01-14 Thread Michael Niedermayer
Fixes: signed integer overflow: -9223372036842389247 - 2147483648 cannot be represented in type 'long long' Fixes: 26910/clusterfuzz-testcase-minimized-ffmpeg_dem_FLV_fuzzer-4845007531671552 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Sign

[FFmpeg-devel] [PATCH 3/7] avutil/parseutils: Check sign in av_parse_time()

2021-01-14 Thread Michael Niedermayer
Fixes: signed integer overflow: -9223372053736 * 100 cannot be represented in type 'long' Fixes: 26910/clusterfuzz-testcase-minimized-ffmpeg_dem_CONCAT_fuzzer-6607924558430208 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by:

Re: [FFmpeg-devel] [vf_tonemap_cuda] VERY alpha ground work- implemented only reinhard

2021-01-14 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Lynne > Sent: Thursday, January 14, 2021 9:16 PM > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [vf_tonemap_cuda] VERY alpha ground work- > implemented only reinhard > > Could we

Re: [FFmpeg-devel] [vf_tonemap_cuda] VERY alpha ground work- implemented only reinhard

2021-01-14 Thread Felix LeClair
Not sure what you mean by that? On Thu, Jan 14, 2021 at 9:15 pm, Lynne wrote: Jan 14, 2021, 21:01 by felix.leclair...@hotmail.com : Hey everyone! Trying to wrap my mind around how to deal with cuda HW frames and how to implement them. The goal of

Re: [FFmpeg-devel] [vf_tonemap_cuda] VERY alpha ground work- implemented only reinhard

2021-01-14 Thread Lynne
Jan 14, 2021, 21:01 by felix.leclair...@hotmail.com: > Hey everyone! > > Trying to wrap my mind around how to deal with cuda HW frames and how to > implement them. > > The goal of this filter once completed will be to take in a cuda frame, > tonemap the value to a given specification using a use

[FFmpeg-devel] [vf_tonemap_cuda] VERY alpha ground work- implemented only reinhard

2021-01-14 Thread Felix LeClair
Hey everyone! Trying to wrap my mind around how to deal with cuda HW frames and how to implement them. The goal of this filter once completed will be to take in a cuda frame, tonemap the value to a given specification using a user requested algorithm (mobius, hable reinhard clip etc.) This

Re: [FFmpeg-devel] [PATCH v4] avcodec/libvpxenc: add a way to set VP9E_SET_SVC_REF_FRAME_CONFIG

2021-01-14 Thread James Zern
On Tue, Jan 12, 2021 at 3:28 PM James Zern wrote: > > On Fri, Jan 8, 2021 at 3:33 PM Wonkap Jang > wrote: > > > > In order to fine-control referencing schemes in VP9 encoding, there > > is a need to use VP9E_SET_SVC_REF_FRAME_CONFIG method. This commit > > provides a way to use the API through fr

Re: [FFmpeg-devel] Issue with ogg page termination on full last page with even last segment size

2021-01-14 Thread Peter Zebühr
Hi, I had a look at different options on how to fix the regression, though I am not sure what I arrived at is what you had in mind. I tried to read up a bit on opus as well and I assume you are talking about the frame length coding allowing coding of zero-byte frames? If so, my understanding

[FFmpeg-devel] [PATCH 2/2] avcodec/dolby_e: Split decoder/parser files

2021-01-14 Thread Nicolas Gaullier
--- libavcodec/Makefile | 1 + libavcodec/dolby_e.c | 149 +-- libavcodec/dolby_e.h | 598 +- libavcodec/dolby_e_parser.c | 227 ++ libavcodec/dolby_e_parser.h | 41 ++ libavcodec/dolby_e_pars

[FFmpeg-devel] [PATCH 1/2] avcodec/dolby_e: Add a parser

2021-01-14 Thread Nicolas Gaullier
--- Changelog| 1 + libavcodec/dolby_e.c | 254 +++ libavcodec/dolby_e.h | 38 ++- libavcodec/parsers.c | 1 + libavcodec/version.h | 2 +- 5 files changed, 198 insertions(+), 98 deletions(-) diff --git a/Changelog b/Changelog index d

[FFmpeg-devel] [PATCH 0/2] avcodec/dolby_e: Add a parser

2021-01-14 Thread Nicolas Gaullier
I have limited duplicated code by making the decoder calling the parser. An option would be to leave all common code to dolby_e.c and move decoding to dolby_edec.c, but that would require either to duplicate 3 "very-internal" functions (skip_input/parse_key/convert_input) 3x times instead of twic

Re: [FFmpeg-devel] [FFmpeg-user] Setup a rtmps server with nginx + ffmpeg.

2021-01-14 Thread Hongyi Zhao
On Thu, Jan 14, 2021 at 3:20 PM Vic Mortelmans wrote: > > Hi HY, > > looks like you should be ok. Did you give it a try? Till now, I only tried to stream a local mp4 media file to nginx rtmp server and replay the stream simultaneously. The steps are shown below: 1. Start the self-compiled nginx

[FFmpeg-devel] [PATCH] avformat/async: Use the correct return values

2021-01-14 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/async.c | 4 1 file changed, 4 insertions(+) diff --git a/libavformat/async.c b/libavformat/async.c index a0bdfa2..801b20e 100644 --- a/libavformat/async.c +++ b/libavformat/async.c @@ -263,24 +263,28 @@ static int async_open(URLC

Re: [FFmpeg-devel] [PATCH 3/5] avformat/mxfenc: prefer to use the existing metadata

2021-01-14 Thread lance . lmwang
On Thu, Jan 14, 2021 at 12:50:34PM +0100, Tomas Härdin wrote: > ons 2021-01-06 klockan 23:35 +0800 skrev lance.lmw...@gmail.com: > > From: Limin Wang > > > > Please check metadata with below command: > > ./ffmpeg -i ../fate-suite/mxf/Sony-1.mxf -c:v copy -c:a copy > > out.mxf > > ./ffmpeg -i

Re: [FFmpeg-devel] [PATCH 5/5] avformat/hlsenc: use AV_OPT_TYPE_DURATION

2021-01-14 Thread lance . lmwang
ping On Wed, Jan 06, 2021 at 11:35:31PM +0800, lance.lmw...@gmail.com wrote: > From: Limin Wang > > Signed-off-by: Limin Wang > --- > doc/muxers.texi | 4 ++-- > libavformat/hlsenc.c | 18 +- > 2 files changed, 11 insertions(+), 11 deletions(-) > > diff --git a/doc/muxe

[FFmpeg-devel] [PATCH] Moves yuv2yuvX_sse3 to yasm, unrolls main loop and other small optimizations for ~20% speedup.

2021-01-14 Thread Alan Kelly
--- Replaces cpuflag(mmx) with notcpuflag(sse3) for store macro Tests for multiple sizes in checkasm-sw_scale checkasm-sw_scale aligns memory on 8 bytes instad of 32 to catch aligned loads libswscale/x86/Makefile | 1 + libswscale/x86/swscale.c | 130 ---

Re: [FFmpeg-devel] [PATCH V2] libavfilter/dnn: add batch mode for async execution

2021-01-14 Thread Fu, Ting
> -Original Message- > From: ffmpeg-devel On Behalf Of Guo, > Yejun > Sent: Sunday, January 10, 2021 09:16 PM > To: ffmpeg-devel@ffmpeg.org > Cc: Guo, Yejun > Subject: [FFmpeg-devel] [PATCH V2] libavfilter/dnn: add batch mode for async > execution > > the default number of batch_size i

[FFmpeg-devel] [PATCH 1/2] avcodec/librav1e: Fix indentation

2021-01-14 Thread Derek Buitenhuis
Signed-off-by: Derek Buitenhuis --- Seems it got mangled at some point. --- libavcodec/librav1e.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/libavcodec/librav1e.c b/libavcodec/librav1e.c index e9b82a724a..46071bcdac 100644 --- a/libavcod

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/librav1e: Pass through timestamps as opaque user data

2021-01-14 Thread Derek Buitenhuis
On 14/01/2021 14:09, James Almer wrote: > Is the ownership of the opaque user data moved from the RaFrame to the > RaPacket to ensure this is safe? If so, why does > rav1e_frame_set_opaque() take a free callback argument? When does it > trigger? It's a bit of a weird API. The free callback that

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/librav1e: Pass through timestamps as opaque user data

2021-01-14 Thread James Almer
On 1/14/2021 10:55 AM, Derek Buitenhuis wrote: avcodec has no facilities to generate timestamps properly from output frame numbers (and it would be wrong for VFR anyway), so pass through the timestamps using rav1e's opaque user data feature, which was added in v0.4.0. This bumps the minimum libr

[FFmpeg-devel] [PATCH 2/2] avcodec/librav1e: Pass through timestamps as opaque user data

2021-01-14 Thread Derek Buitenhuis
avcodec has no facilities to generate timestamps properly from output frame numbers (and it would be wrong for VFR anyway), so pass through the timestamps using rav1e's opaque user data feature, which was added in v0.4.0. This bumps the minimum librav1e version to 0.4.0. Signed-off-by: Derek Buit

Re: [FFmpeg-devel] [PATCH 3/5] avformat/mxfenc: prefer to use the existing metadata

2021-01-14 Thread Tomas Härdin
ons 2021-01-06 klockan 23:35 +0800 skrev lance.lmw...@gmail.com: > From: Limin Wang > > Please check metadata with below command: > ./ffmpeg -i ../fate-suite/mxf/Sony-1.mxf -c:v copy -c:a copy > out.mxf > ./ffmpeg -i out.mxf > > company_name: FFmpeg > product_name: OP1a Muxer

Re: [FFmpeg-devel] [PATCH v2 1/3] avutil/{avstring, bprint}: add XML escaping from ffprobe to avutil

2021-01-14 Thread Jan Ekström
On Thu, Jan 14, 2021 at 1:40 PM Nicolas George wrote: > > Jan Ekström (12021-01-13): > > Yea, I actually noticed that one, but never got to responding to it. > > Sorry about that. > > No problem. > > > While I do agree that such modes could be useful, currently I have no > > need for the additiona

Re: [FFmpeg-devel] [PATCH v2 1/3] avutil/{avstring, bprint}: add XML escaping from ffprobe to avutil

2021-01-14 Thread Nicolas George
Jan Ekström (12021-01-13): > Yea, I actually noticed that one, but never got to responding to it. > Sorry about that. No problem. > While I do agree that such modes could be useful, currently I have no > need for the additional modes and thus the original code by Stefano > was just moved in avuti

Re: [FFmpeg-devel] [PATCH] Moves yuv2yuvX_sse3 to yasm, unrolls main loop and other small optimizations for ~20% speedup.

2021-01-14 Thread Alan Kelly
Apologies for this: when I added mmx to the yasm file, I added a macro for the stores selecting mova for mmx and movdqu for the others. if cpuflag(mmx) evaluates to true for all architectures so I replaced it with if notcpuflag(sse3). The alignment in the checkasm test has been changed to 8 from 3