Re: [FFmpeg-devel] [PATCH] fftools/ffplay: fix YUV conversion mode

2022-06-27 Thread Jan Ekström
On Tue, Jun 21, 2022 at 10:46 PM Niklas Haas wrote: > > From: Niklas Haas > > GL and Metal cache the state at time of texture creation. GLES2 and > Direct3D 11 use the state at time of the render copy call. > > So the only way we can get the correct behavior consistently is by > making sure the s

Re: [FFmpeg-devel] [PATCH v4 5/7] avformat/movenc: utilize existing AC-3 parsing workflow for AC-3

2022-06-27 Thread Jan Ekström
On Thu, Jun 23, 2022 at 1:11 PM Jan Ekström wrote: > > On Thu, Jun 23, 2022 at 11:57 AM Andreas Rheinhardt > wrote: > > > > Jan Ekström: > > > From: Jan Ekström > > > > > > Signed-off-by: Jan Ekström > > > --- > > > libavcodec/Makefile | 1 + > > > libavformat/Makefile | 1

[FFmpeg-devel] [PATCH] libavcodec/qsvenc: Add support to qsv to encode external surface.

2022-06-27 Thread Wenbin Chen
Qsv encoder only encode the frame that are pre-allocated, so qsv encoder cannot encode the frame mapped from other components. In fact, MediaSDK can encode frame that are dynamically created. I add the support to qsv to encode external frame. Now the following command line works: ffmpeg -v verbose

Re: [FFmpeg-devel] [PATCH] fftools/ffprobe.c: Add new Function: The peak bit rate of video streams can be queried

2022-06-27 Thread Nicolas Gaullier
>Please review it! thks! > >Code Process >- Calculate the frame rate first >- Obtain the maximum value of the total bytes of all packets according to the >number of frames per second Nicolas George already answered you the 23th about required documentation. In my opinion, there is today a commonp

[FFmpeg-devel] [PATCH] avformat/aaxdec: Check for empty segments

2022-06-27 Thread Michael Niedermayer
Fixes: Timeout Fixes: 48154/clusterfuzz-testcase-minimized-ffmpeg_dem_AAX_fuzzer-5149094353436672 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavformat/aaxdec.c | 2 ++ 1 file changed, 2 insertions

[FFmpeg-devel] [PATCH] avcodec/libdavs2: workaround memory leak

2022-06-27 Thread Zhao Zhili
davs2_decoder_close doesn't free those on the fly frames which don't get output yet. It's a design bug, but easy to workaround. Before the patch: Direct leak of 1198606 byte(s) in 2 object(s) allocated from: #0 0x563af5e1e5f0 in malloc (ffmpeg+0x6675f0) #1 0x563af9765ef3 in davs2_malloc da

[FFmpeg-devel] [PATCH] lavf/sr: fix the segmentation fault caused by incorrect input frame free.

2022-06-27 Thread Ting Fu
This issue would cause segmetaion fault when running srcnn model with sr filter by TensorFlow backend. This filter would free the frame incorectly. Signed-off-by: Ting Fu --- libavfilter/vf_sr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_sr.c b/libavf

[FFmpeg-devel] [PATCH] lavf/dnn: refine the error log of OpenVINO incorrect input/output name.

2022-06-27 Thread Ting Fu
Refine the error report of OpenVINO backend incorrect input or output node name, help the users to locate issue. Signed-off-by: Ting Fu --- libavfilter/dnn/dnn_backend_openvino.c | 54 ++ 1 file changed, 47 insertions(+), 7 deletions(-) diff --git a/libavfilter/dnn/dnn_b

Re: [FFmpeg-devel] [PATCH] fftools/ffplay: fix YUV conversion mode

2022-06-27 Thread Niklas Haas
On Mon, 27 Jun 2022 10:03:55 +0300 Jan Ekström wrote: > On Tue, Jun 21, 2022 at 10:46 PM Niklas Haas wrote: > > > > From: Niklas Haas > > > > GL and Metal cache the state at time of texture creation. GLES2 and > > Direct3D 11 use the state at time of the render copy call. > > > > So the only way

Re: [FFmpeg-devel] [PATCH] lavf/sr: fix the segmentation fault caused by incorrect input frame free.

2022-06-27 Thread Paul B Mahol
lgtm ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH] avformat/mpegts: correct timestamp overflow on multiple pcr loopback

2022-06-27 Thread Sébastien Rossi
Hi, Ok, my goal was to eliminate all wraparound for live transport stream mainly. But as it seems hard to handle this particular case (long live stream) and cover all the other use cases (scaning, smart stuff etc), I will keep this patch on my side as an option for my personal usage. Thanks for you

Re: [FFmpeg-devel] [PATCH] avcodec/qpeldsp: copy less for the mc0x cases

2022-06-27 Thread Michael Niedermayer
On Mon, Jun 27, 2022 at 07:57:06AM +0200, Andreas Rheinhardt wrote: > Michael Niedermayer: > > Fixes: out of array access > > Fixes: > > 47936/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MPEG4_fuzzer-5745039940124672 > > > > Found-by: continuous fuzzing process > > https://github.com/googl

Re: [FFmpeg-devel] [PATCH] avformat/hlsenc: Add resend_headers option

2022-06-27 Thread hu heng
Your are right, I will send a new version of this patch. Thanks. Steven Liu 于2022年6月27日周一 10:25写道: > huheng 于2022年6月25日周六 23:36写道: > > > > Add pat and pmt table at start of each segment in single_file mode > enhanced > > compatibility of hls stream. Because some hls clients separate parsing >

Re: [FFmpeg-devel] [PATCH v2 2/2] ffmpeg: add option -isync

2022-06-27 Thread Gyan Doshi
Ping for the set. On 2022-06-25 01:59 pm, Gyan Doshi wrote: This is a per-file input option that adjusts an input's timestamps with reference to another input, so that emitted packet timestamps account for the difference between the start times of the two inputs. Typical use case is to sync two

[FFmpeg-devel] [PATCH v1] avformat/hlsenc: Add resend_headers option

2022-06-27 Thread huheng
Add pat and pmt table at start of each segment in single_file mode enhanced compatibility of hls stream. Because some hls clients separate parsing segment of hls stream, the absence of pat/pmt will cause parsing to fail. Signed-off-by: huheng --- libavformat/hlsenc.c | 3 +++ 1 file changed, 3 i

Re: [FFmpeg-devel] [PATCH] avformat/movenc: Support alpha channel for AVIF

2022-06-27 Thread Vignesh Venkatasubramanian
On Tue, Jun 21, 2022 at 10:12 AM Vignesh Venkatasubramanian wrote: > > On Mon, Jun 13, 2022 at 10:17 AM James Zern > wrote: > > > > On Wed, Jun 1, 2022 at 11:06 AM Vignesh Venkatasubramanian > > wrote: > > > > > > AVIF specification allows for alpha channel as an auxiliary item (in > > > case of

Re: [FFmpeg-devel] [PATCH] avformat/mov: Only read the primary item for AVIF

2022-06-27 Thread Vignesh Venkatasubramanian
On Tue, Jun 21, 2022 at 10:12 AM Vignesh Venkatasubramanian wrote: > > On Mon, Jun 13, 2022 at 9:32 AM Vignesh Venkatasubramanian > wrote: > > > > On Fri, Jun 10, 2022 at 10:34 AM Vignesh Venkatasubramanian > > wrote: > > > > > > On Thu, Jun 9, 2022 at 12:50 AM Gyan Doshi wrote: > > > > > > > >

Re: [FFmpeg-devel] [PATCH] avformat/movenc: Support alpha channel for AVIF

2022-06-27 Thread James Almer
On 6/27/2022 1:43 PM, Vignesh Venkatasubramanian wrote: On Tue, Jun 21, 2022 at 10:12 AM Vignesh Venkatasubramanian wrote: On Mon, Jun 13, 2022 at 10:17 AM James Zern wrote: On Wed, Jun 1, 2022 at 11:06 AM Vignesh Venkatasubramanian wrote: AVIF specification allows for alpha channel as a

Re: [FFmpeg-devel] [PATCH] avformat/movenc: Support alpha channel for AVIF

2022-06-27 Thread Vignesh Venkatasubramanian
On Mon, Jun 27, 2022 at 9:48 AM James Almer wrote: > > On 6/27/2022 1:43 PM, Vignesh Venkatasubramanian wrote: > > On Tue, Jun 21, 2022 at 10:12 AM Vignesh Venkatasubramanian > > wrote: > >> > >> On Mon, Jun 13, 2022 at 10:17 AM James Zern > >> wrote: > >>> > >>> On Wed, Jun 1, 2022 at 11:06 AM

Re: [FFmpeg-devel] [PATCH 2/2] avformat/mov: read PCM audio configuration box ('pcmC') if available

2022-06-27 Thread Marton Balint
On Sun, 19 Jun 2022, Marton Balint wrote: From: Ivan Baykalov <4ru...@gmail.com> For ipcm and fpcm streams, big-endian format is the default, but it can be changed with additional 'pcmC' sub-atom of audio sample description. Details can be found in ISO/IEC 23003-5:2020 Fixes ticket #9763.

Re: [FFmpeg-devel] [PATCH] fftools/ffmpeg: change frame counters to 64 bit

2022-06-27 Thread Marton Balint
On Mon, 20 Jun 2022, Marton Balint wrote: Frame counters can overflow relatively easily (INT_MAX number of frames is slightly more than 1 year for 60 fps content), so make sure we are always using 64 bit values for them. A live stream can easily run for more than a year and the framedup logi

Re: [FFmpeg-devel] [PATCH] avformat/movenc: Support alpha channel for AVIF

2022-06-27 Thread James Zern
On Mon, Jun 27, 2022 at 9:48 AM James Almer wrote: > > On 6/27/2022 1:43 PM, Vignesh Venkatasubramanian wrote: > > On Tue, Jun 21, 2022 at 10:12 AM Vignesh Venkatasubramanian > > wrote: > >> > >> On Mon, Jun 13, 2022 at 10:17 AM James Zern > >> wrote: > >>> > >>> On Wed, Jun 1, 2022 at 11:06 AM

[FFmpeg-devel] [PATCH 1/3] Revert "avformat/demux: Count EAGAIN as 100 bytes in relation to read limit in avformat_find_stream_info()"

2022-06-27 Thread Marton Balint
Modifying avformat_find_stream_info() behaviour based on the number of EAGAINs it encounters is a hack which usually only hides the real issue if such thing happen. This reverts commit b0cac7082d8a3ff2d4f039af01b45c48bb578de7. --- libavformat/demux.c | 4 +--- 1 file changed, 1 insertion(+), 3 de

[FFmpeg-devel] [PATCH 2/3] Revert "avformat/demux: Make read_frame_internal() return AVERREOR(EAGAIN) on stuck empty input parser"

2022-06-27 Thread Marton Balint
Hides the underlying real problem with a demuxer returning 0 sized packets. This reverts commit 02699490c14e86105104940c009953081f69432c. --- libavformat/demux.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/libavformat/demux.c b/libavformat/demux.c index 57720f4311..1620716716 100644

[FFmpeg-devel] [PATCH 3/3] avformat/mov: disallow a zero sample size in trun atoms

2022-06-27 Thread Marton Balint
In order to not generate 0 sized packets or create a huge index table needlessly. Fixes: Timeout Fixes: 43717/clusterfuzz-testcase-minimized-ffmpeg_IO_DEMUXER_fuzzer-5206008287330304 Fixes: 45738/clusterfuzz-testcase-minimized-ffmpeg_IO_DEMUXER_fuzzer-6142535657979904 Signed-off-by: Marton Bali

Re: [FFmpeg-devel] [PATCH] libavcodec/hevc_mp4toannexb_bsf: insert extradata before non-AUD unit

2022-06-27 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Andreas Rheinhardt > Sent: Tuesday, March 22, 2022 10:30 AM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH] libavcodec/hevc_mp4toannexb_bsf: > insert extradata before non-AUD unit > > Xiang, Haihao: > > From:

Re: [FFmpeg-devel] [PATCH v4 1/1] lavc/aarch64: motion estimation functions in neon

2022-06-27 Thread Martin Storsjö
On Sun, 26 Jun 2022, Swinney, Jonathan wrote: - ff_pix_abs16_neon - ff_pix_abs16_xy2_neon In direct micro benchmarks of these ff functions verses their C implementations, these functions performed as follows on AWS Graviton 3. ff_pix_abs16_neon: pix_abs_0_0_c: 141.1 pix_abs_0_0_neon: 19.6 ff_

Re: [FFmpeg-devel] [PATCH 3/3] avformat/mov: disallow a zero sample size in trun atoms

2022-06-27 Thread zhilizhao(赵志立)
> On Jun 28, 2022, at 4:02 AM, Marton Balint wrote: > > In order to not generate 0 sized packets or create a huge index table > needlessly. > > Fixes: Timeout > Fixes: > 43717/clusterfuzz-testcase-minimized-ffmpeg_IO_DEMUXER_fuzzer-5206008287330304 > Fixes: > 45738/clusterfuzz-testcase-mini

Re: [FFmpeg-devel] [PATCH v4 6/6] avcodec/qsvdec: Implement SEI parsing for QSV decoders

2022-06-27 Thread Andreas Rheinhardt
softworkz: > From: softworkz > > Signed-off-by: softworkz > --- > libavcodec/qsvdec.c | 234 > 1 file changed, 234 insertions(+) > > diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c > index 5fc5bed4c8..e854f363ec 100644 > --- a/libavcodec/qsvd

[FFmpeg-devel] [PATCH] avutil/wchar_filename: Make the header C++ compatible

2022-06-27 Thread Andreas Rheinhardt
When compiling decklink, this header is included from a C++ file (albeit inside 'extern "C"') and this causes compilation failures because of an implicit void* -> char* conversion. So add an explicit cast. Should fix ticket #9819. Signed-off-by: Andreas Rheinhardt --- If we didn't include os_supp

Re: [FFmpeg-devel] [PATCH v2 1/2] avformat: add AVFormatContext.first_pkt_wallclock

2022-06-27 Thread Anton Khirnov
Quoting Gyan Doshi (2022-06-25 10:29:50) > Stores wallclock time for the first packet received. > Used for crude sync offset among inputs. > --- > doc/APIchanges | 3 +++ > libavformat/avformat.h | 10 ++ > libavformat/demux.c| 3 +++ > libavformat/options.c | 1 + > libavf

Re: [FFmpeg-devel] [PATCH 1/3] Revert "avformat/demux: Count EAGAIN as 100 bytes in relation to read limit in avformat_find_stream_info()"

2022-06-27 Thread Anton Khirnov
Quoting Marton Balint (2022-06-27 22:02:39) > Modifying avformat_find_stream_info() behaviour based on the number of EAGAINs > it encounters is a hack which usually only hides the real issue if such thing > happen. > > This reverts commit b0cac7082d8a3ff2d4f039af01b45c48bb578de7. > --- > libavfor

Re: [FFmpeg-devel] [PATCH] avformat/aaxdec: Check for empty segments

2022-06-27 Thread Anton Khirnov
Quoting Michael Niedermayer (2022-06-27 10:43:47) > Fixes: Timeout > Fixes: > 48154/clusterfuzz-testcase-minimized-ffmpeg_dem_AAX_fuzzer-5149094353436672 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed-off-by: Michael Niedermayer

Re: [FFmpeg-devel] [PATCH v4 6/6] avcodec/qsvdec: Implement SEI parsing for QSV decoders

2022-06-27 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Andreas Rheinhardt > Sent: Tuesday, June 28, 2022 6:17 AM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v4 6/6] avcodec/qsvdec: Implement > SEI parsing for QSV decoders > > softworkz: > > From: softworkz > >

Re: [FFmpeg-devel] [PATCH v2 1/2] avformat: add AVFormatContext.first_pkt_wallclock

2022-06-27 Thread Gyan Doshi
On 2022-06-28 10:43 am, Anton Khirnov wrote: Quoting Gyan Doshi (2022-06-25 10:29:50) Stores wallclock time for the first packet received. Used for crude sync offset among inputs. --- doc/APIchanges | 3 +++ libavformat/avformat.h | 10 ++ libavformat/demux.c| 3 +++