Re: [FFmpeg-devel] [PATCH] libavcodec/cuviddec.c: increase CUVID_DEFAULT_NUM_SURFACES

2025-02-24 Thread Scott Theisen
On 2/22/25 08:16, Timo Rothenpieler wrote: On 22.02.2025 03:52, Scott Theisen wrote: On 2/21/25 08:26, Timo Rothenpieler wrote: On 20.02.2025 21:37, Scott Theisen wrote: The default value of CuvidContext::nb_surfaces was reduced from 25 to 5 (as (CUVID_MAX_DISPLAY_DELAY + 1)) in 402d98c9d467d

Re: [FFmpeg-devel] [PATCH] avcodec/ffv1_parser: Rename close to ffv1_close

2025-02-24 Thread Zhao Zhili
Ping. > On Feb 19, 2025, at 20:33, Zhao Zhili > wrote: > > From: Zhao Zhili > > This fixed wasm checkasm failure > > $ wasm-tools validate tests/checkasm/checkasm > error: > wasisdk://v25.0/build/sysroot/wasi-libc-wasm32-wasip1-threads/libc-top-half/musl/src/stdio/__stdio_close.c:24:9 > fu

Re: [FFmpeg-devel] [PATCH] libswscale/arm/swscale_unscaled: Fix function prototype

2025-02-24 Thread Zhao Zhili
> On Feb 25, 2025, at 05:07, Adam Lackorzynski wrote: > > Constify dstStrice argument of rgbx_to_nv12_neon_16_wrapper to be > compatible with other functions as used in function assignment. > > Signed-off-by: Adam Lackorzynski > --- > libswscale/arm/swscale_unscaled.c | 2 +- > 1 file changed

Re: [FFmpeg-devel] [PATCH v2 1/3] avformat/movenc: Add AVS3 support

2025-02-24 Thread Zhao Zhili
> On Feb 25, 2025, at 01:52, Michael Niedermayer wrote: > > On Mon, Feb 24, 2025 at 09:51:32PM +0800, Zhao Zhili wrote: >> From: Zhao Zhili >> >> 'avs3' is registered at mp4ra.org. The Avs3ConfigurationBox 'av3c' >> inside 'avs3' hasn't been registered yet, but is specified by the >> AVS3 spe

Re: [FFmpeg-devel] [PATCH v2 2/2] avformat/webvttdec: Add webvtt extension and MIME type

2025-02-24 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Michael Niedermayer > Sent: Dienstag, 25. Februar 2025 02:04 > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH v2 2/2] avformat/webvttdec: Add webvtt > extension and MIME type

Re: [FFmpeg-devel] [PATCH v2 2/2] avformat/webvttdec: Add webvtt extension and MIME type

2025-02-24 Thread Michael Niedermayer
On Fri, Feb 21, 2025 at 03:13:22PM +, softworkz wrote: > From: softworkz > > The webvtt extension is sometimes used in HLS playlists. > > Signed-off-by: softworkz > --- > libavformat/webvttdec.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/libavformat/webvttd

[FFmpeg-devel] [PATCH] libswscale/arm/swscale_unscaled: Fix function prototype

2025-02-24 Thread Adam Lackorzynski
Constify dstStrice argument of rgbx_to_nv12_neon_16_wrapper to be compatible with other functions as used in function assignment. Signed-off-by: Adam Lackorzynski --- libswscale/arm/swscale_unscaled.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libswscale/arm/swscale_unsc

[FFmpeg-devel] [PATCH 2/3] avcodec/utils: use new av_timecode_set_smpte function

2025-02-24 Thread Timo Rothenpieler
--- libavcodec/utils.c | 20 +++- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/libavcodec/utils.c b/libavcodec/utils.c index dd846b4ae9..1e1ad9a833 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -33,6 +33,7 @@ #include "libavutil/pixdesc.h" #include

Re: [FFmpeg-devel] [PATCH 7/9] avcodec/nvenc: add MV-HEVC encoding support

2025-02-24 Thread Timo Rothenpieler
On 24.02.2025 21:52, Jean-Baptiste Kempf wrote: Hello, On Thu, 30 Jan 2025, at 20:40, Timo Rothenpieler wrote: Added support for MV-HEVC encoding for stereoscopic videos (2 views only). Compatible with the framepack filter when using the AV_STEREO3D_FRAMESEQUENCE format. Curiosity: Which card

Re: [FFmpeg-devel] [PATCH 7/9] avcodec/nvenc: add MV-HEVC encoding support

2025-02-24 Thread Jean-Baptiste Kempf
Hello, On Thu, 30 Jan 2025, at 20:40, Timo Rothenpieler wrote: > Added support for MV-HEVC encoding for stereoscopic videos (2 views > only). Compatible with the framepack filter when using the > AV_STEREO3D_FRAMESEQUENCE format. Curiosity: Which cards or SDK have that? -- Jean-Baptiste Kempf -

[FFmpeg-devel] [PATCH 3/3] avcodec/nvenc: add time code writing for h264

2025-02-24 Thread Timo Rothenpieler
--- libavcodec/nvenc.c | 62 +++-- libavcodec/nvenc.h | 1 + libavcodec/nvenc_h264.c | 3 ++ 3 files changed, 63 insertions(+), 3 deletions(-) diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index f9221174f0..900659f9e1 100644 --- a/libavcodec/

[FFmpeg-devel] [PATCH 1/3] avutil/timecode: add av_timecode_set_smpte

2025-02-24 Thread Timo Rothenpieler
--- doc/APIchanges | 3 +++ libavutil/timecode.c | 24 +++- libavutil/timecode.h | 17 + libavutil/version.h | 2 +- 4 files changed, 36 insertions(+), 10 deletions(-) diff --git a/doc/APIchanges b/doc/APIchanges index ac506f4b56..71240d39fd 100644 ---

Re: [FFmpeg-devel] [PATCH 2/2] lavc/vvc: Fix pps_single_slice_picture

2025-02-24 Thread Frank Plowman
On 24/02/2025 02:23, James Almer wrote: > On 2/23/2025 9:04 AM, Frank Plowman wrote: >> Signed-off-by: Frank Plowman >> --- >> libavcodec/vvc/ps.c | 3 ++- >> 1 file changed, 2 insertions(+), 1 deletion(-) >> >> diff --git a/libavcodec/vvc/ps.c b/libavcodec/vvc/ps.c >> index fae6655cc0..603a6d4

Re: [FFmpeg-devel] [PATCH v2 1/3] avformat/movenc: Add AVS3 support

2025-02-24 Thread Michael Niedermayer
On Mon, Feb 24, 2025 at 09:51:32PM +0800, Zhao Zhili wrote: > From: Zhao Zhili > > 'avs3' is registered at mp4ra.org. The Avs3ConfigurationBox 'av3c' > inside 'avs3' hasn't been registered yet, but is specified by the > AVS3 spec. > --- > libavformat/movenc.c | 35 +++

Re: [FFmpeg-devel] [PATCH] tools: Add binaries to .gitignore

2025-02-24 Thread Michael Niedermayer
On Sun, Feb 23, 2025 at 05:34:33AM -0800, Kieran Kunhya via ffmpeg-devel wrote: > On Sun, 23 Feb 2025, 04:11 Frank Plowman, wrote: > > > On 09/02/2025 10:58, Frank Plowman wrote: > > > Signed-off-by: Frank Plowman > > > --- > > > tools/.gitignore | 10 ++ > > > 1 file changed, 10 insert

Re: [FFmpeg-devel] [PATCH v6 3/9] libavformat/oggparsevorbis.c: Don't append new metadata.

2025-02-24 Thread Romain Beauxis
Le lun. 24 févr. 2025 à 09:34, Romain Beauxis a écrit : > > Le lun. 24 févr. 2025 à 00:19, Romain Beauxis > a écrit : > > > > Le dim. 23 févr. 2025 à 20:43, Michael Niedermayer > > a écrit : > > > > > > On Tue, Feb 18, 2025 at 11:24:39PM -0600, Romain Beauxis wrote: > > > > See before/after vorb

Re: [FFmpeg-devel] [BASIC QUESTION] Profiling tool for ffmpeg

2025-02-24 Thread Stone Chen
On Mon, Feb 24, 2025 at 9:54 AM Devin Heitmueller < devin.heitmuel...@ltnglobal.com> wrote: > On Mon, Feb 24, 2025 at 9:43 AM Cesar Matheus > wrote: > > > > Hi, I'm a CS student working on an optimisation of the ebur128 filter. > First I'm looking for the nicest way to get information on code per

Re: [FFmpeg-devel] [PATCH v6 3/9] libavformat/oggparsevorbis.c: Don't append new metadata.

2025-02-24 Thread Romain Beauxis
Le lun. 24 févr. 2025 à 00:19, Romain Beauxis a écrit : > > Le dim. 23 févr. 2025 à 20:43, Michael Niedermayer > a écrit : > > > > On Tue, Feb 18, 2025 at 11:24:39PM -0600, Romain Beauxis wrote: > > > See before/after vorbis tests in following patch. > > > > > > --- > > > libavformat/oggparsevor

Re: [FFmpeg-devel] [BASIC QUESTION] Profiling tool for ffmpeg

2025-02-24 Thread Kieran Kunhya via ffmpeg-devel
On Mon, 24 Feb 2025, 06:43 Cesar Matheus, wrote: > Hi, I'm a CS student working on an optimisation of the ebur128 filter. > First I'm looking for the nicest way to get information on code performance. > I saw that the configuration flag "--enable-linux-perf" enables > Linux Performance Mo

Re: [FFmpeg-devel] [BASIC QUESTION] Profiling tool for ffmpeg

2025-02-24 Thread Devin Heitmueller
On Mon, Feb 24, 2025 at 9:43 AM Cesar Matheus wrote: > > Hi, I'm a CS student working on an optimisation of the ebur128 filter. First > I'm looking for the nicest way to get information on code performance. > I saw that the configuration flag "--enable-linux-perf" enables Linux > Perform

Re: [FFmpeg-devel] I've written a filter in Rust

2025-02-24 Thread Rémi Denis-Courmont
Hi, Le 23 février 2025 23:30:03 GMT+02:00, "Tomas Härdin" a écrit  : >lör 2025-02-22 klockan 14:57 +0200 skrev Rémi Denis-Courmont: >> Le perjantaina 21. helmikuuta 2025, 20.02.16 UTC+2 Tomas Härdin a écrit : >> > The above said, I'm not against Rust. It has some nice properties. But >> > it does

[FFmpeg-devel] [BASIC QUESTION] Profiling tool for ffmpeg

2025-02-24 Thread Cesar Matheus
Hi, I'm a CS student working on an optimisation of the ebur128 filter. First I'm looking for the nicest way to get information on code performance. I saw that the configuration flag "--enable-linux-perf" enables Linux Performance Monitor API, I've been using the perf tool with the followi

Re: [FFmpeg-devel] [PATCH] add tools/compare-cvelists.sh

2025-02-24 Thread Michael Niedermayer
On Sun, Feb 23, 2025 at 02:08:22PM +0100, Michael Niedermayer wrote: > This compares the MITRE CVE list with our webpage security list and > produces a diff, so people can investigate, fix, backport and correct > differences > > Signed-off-by: Michael Niedermayer > --- > tools/compare-cvelists.s

[FFmpeg-devel] [PATCH 1/9] avcodec/proresdec: Don't use LONG_BITSTREAM_READER

2025-02-24 Thread Andreas Rheinhardt
Patches attachedFrom d94e2667b7f3b907a127f93c8075f864071a52df Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sun, 23 Feb 2025 23:21:00 +0100 Subject: [PATCH 1/9] avcodec/proresdec: Don't use LONG_BITSTREAM_READER Using LONG_BITSTREAM_READER means that every get_bits() call uses an AV_RB6

[FFmpeg-devel] [PATCH v2 3/3] avcodec/libuavs3d: process extradata

2025-02-24 Thread Zhao Zhili
From: Zhao Zhili --- libavcodec/libuavs3d.c | 120 ++--- 1 file changed, 89 insertions(+), 31 deletions(-) diff --git a/libavcodec/libuavs3d.c b/libavcodec/libuavs3d.c index 53b5faafc5..a22494340c 100644 --- a/libavcodec/libuavs3d.c +++ b/libavcodec/libuavs3d

[FFmpeg-devel] [PATCH v2 2/3] avformat/isom_tags: Add tag for AVS3

2025-02-24 Thread Zhao Zhili
From: Zhao Zhili --- libavformat/isom_tags.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/isom_tags.c b/libavformat/isom_tags.c index a476efb8f1..f05762beec 100644 --- a/libavformat/isom_tags.c +++ b/libavformat/isom_tags.c @@ -297,6 +297,8 @@ const AVCodecTag ff_codec_movvi

[FFmpeg-devel] [PATCH v2 1/3] avformat/movenc: Add AVS3 support

2025-02-24 Thread Zhao Zhili
From: Zhao Zhili 'avs3' is registered at mp4ra.org. The Avs3ConfigurationBox 'av3c' inside 'avs3' hasn't been registered yet, but is specified by the AVS3 spec. --- libavformat/movenc.c | 35 +++ 1 file changed, 35 insertions(+) diff --git a/libavformat/movenc.c

Re: [FFmpeg-devel] [PATCH 2/3] fftools/ffmpeg_graphprint: Add options for filtergraph printing

2025-02-24 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Nicolas George > Sent: Montag, 24. Februar 2025 11:41 > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH 2/3] fftools/ffmpeg_graphprint: Add > options for filtergraph printing >

[FFmpeg-devel] [PATCH 1/2] avcodec/intrax8dsp: Constify DSP functions

2025-02-24 Thread Andreas Rheinhardt
Patches attachedFrom 43f03dc1890d4c7f584ce3a40884f46e843a1d32 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sun, 23 Feb 2025 20:44:48 +0100 Subject: [PATCH 1/2] avcodec/intrax8dsp: Constify DSP functions Also add restrict where possible. Signed-off-by: Andreas Rheinhardt --- libavcod

[FFmpeg-devel] [PATCH] avcodec/flacdsp: Remove leftover encoding function pointers

2025-02-24 Thread Andreas Rheinhardt
Patch attachedFrom 973bf385a34399ada6f2e38abf612229916f7809 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sun, 23 Feb 2025 21:33:51 +0100 Subject: [PATCH] avcodec/flacdsp: Remove leftover encoding function pointers Forgotten in 6c4595190e7ef5cc2a3652ed4a604e46f7e37ac6. Signed-off-by: A

Re: [FFmpeg-devel] [PATCH 2/3] fftools/ffmpeg_graphprint: Add options for filtergraph printing

2025-02-24 Thread Nicolas George
Soft Works (HE12025-02-21): > Yes, this is all true, but of course I did a diff to current ffprobe code and > the number of bugfixes is exactly zero. I did a diff to see if what I suspected was duplicated code was indeed, and I found it was, and I found failures of synchronization too. > Strictly

Re: [FFmpeg-devel] [PATCH] ffmpeg_demux: add option readrate_catchup

2025-02-24 Thread Gyan Doshi
On 2025-02-23 01:06 pm, Gyan Doshi wrote: On 2025-02-18 03:16 pm, Gyan Doshi wrote: At present, if reading from a readrate-limited input is stalled, then upon resumption, ffmpeg will read the input without any throttle till the average readrate matches the specified readrate. This new opti

Re: [FFmpeg-devel] [PATCH] fftools: notify user of flags upon loglevel parse failure

2025-02-24 Thread Gyan Doshi
On 2025-02-23 01:06 pm, Gyan Doshi wrote: On 2025-02-21 05:34 pm, Gyan Doshi wrote: On 2025-02-21 04:34 pm, Andreas Rheinhardt wrote: Gyan Doshi: On 2025-02-21 02:21 pm, Andreas Rheinhardt wrote: Gyan Doshi: ---    fftools/opt_common.c | 5 +    1 file changed, 5 insertions(+) dif

Re: [FFmpeg-devel] [PATCH 03/30] avcodec: remove deprecated FF_API_DROPCHANGED

2025-02-24 Thread Gyan Doshi
On 2025-02-24 03:36 am, James Almer wrote: Deprecated since 2023-07-15. Can you wait to push till I port this to ffmpeg_dec? Regards, Gyan Signed-off-by: James Almer --- libavcodec/avcodec.c | 4 --- libavcodec/avcodec.h | 9 --- libavcodec/decode.c| 52 --

[FFmpeg-devel] [PATCH v2 05/12] vulkan_decode: support multiple image views

2025-02-24 Thread Lynne
Enables non-monochrome video decoding using all our existing functions in the context of an SDR decoder. --- libavcodec/vulkan_av1.c| 4 +- libavcodec/vulkan_decode.c | 90 -- libavcodec/vulkan_decode.h | 12 ++--- libavcodec/vulkan_h264.c | 4 +- libavc

[FFmpeg-devel] [PATCH v2 12/12] ffv1dec_vulkan: add a Vulkan compute-based hardware decoding implementation

2025-02-24 Thread Lynne
This commit adds a Vulkan-based accelerated decoding of FFv1. Currently, arithmetic coding, version 3 and 4 are supported, without RGB. --- configure | 2 + libavcodec/Makefile | 1 + libavcodec/ffv1.h | 1 + libavcodec/ffv1de

[FFmpeg-devel] [PATCH v2 09/12] vulkan: unify handling of BGR and simplify ffv1_rct

2025-02-24 Thread Lynne
--- libavcodec/ffv1_vulkan.h| 1 + libavcodec/ffv1enc_vulkan.c | 2 ++ libavcodec/vulkan/ffv1_enc_rct.comp | 17 ++--- libavutil/vulkan.c | 38 + libavutil/vulkan.h | 6 + 5 files changed, 54 insertion

[FFmpeg-devel] [PATCH v2 11/12] ffv1dec: reference the current packet into the main context

2025-02-24 Thread Lynne
--- libavcodec/ffv1.h| 3 +++ libavcodec/ffv1dec.c | 19 +-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/libavcodec/ffv1.h b/libavcodec/ffv1.h index 22acac35e4..9af17326b3 100644 --- a/libavcodec/ffv1.h +++ b/libavcodec/ffv1.h @@ -169,6 +169,9 @@ typedef st

[FFmpeg-devel] [PATCH v2 10/12] ffv1dec: add support for hwaccels

2025-02-24 Thread Lynne
This commit adds support for hardware accelerated decoding to the decoder. The previous commits already refactored the decoder, this commit simply adds calls to hooks to decode. --- libavcodec/ffv1.h| 1 + libavcodec/ffv1dec.c | 65 2 files changed

[FFmpeg-devel] [PATCH v2 08/12] ffv1enc_vulkan: refactor shaders slightly to support sharing

2025-02-24 Thread Lynne
The shaders were written to support sharing, but needed slight tweaking. --- libavcodec/Makefile | 2 +- libavcodec/ffv1_vulkan.c | 123 ++ libavcodec/ffv1_vulkan.h | 60 +++ libavcodec/ffv1enc_vulkan.c | 234 +---

[FFmpeg-devel] [PATCH v2 07/12] vulkan: workaround BGR storage image undefined behaviour

2025-02-24 Thread Lynne
--- libavutil/vulkan.c | 25 + 1 file changed, 25 insertions(+) diff --git a/libavutil/vulkan.c b/libavutil/vulkan.c index 4d60ac1b3a..40ca737422 100644 --- a/libavutil/vulkan.c +++ b/libavutil/vulkan.c @@ -1735,6 +1735,29 @@ static VkFormat map_fmt_to_rep(VkFormat fmt, en

[FFmpeg-devel] [PATCH v2 06/12] hwcontext_vulkan: enable read/write without storage

2025-02-24 Thread Lynne
--- libavutil/hwcontext_vulkan.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c index ec6459712b..11d9e987b0 100644 --- a/libavutil/hwcontext_vulkan.c +++ b/libavutil/hwcontext_vulkan.c @@ -244,6 +244,8 @@ static void device_featu

[FFmpeg-devel] [PATCH v2 03/12] vulkan: copy host-mapping buffer code from hwcontext

2025-02-24 Thread Lynne
This is useful elsewhere. --- libavutil/vulkan.c | 153 - libavutil/vulkan.h | 17 - 2 files changed, 167 insertions(+), 3 deletions(-) diff --git a/libavutil/vulkan.c b/libavutil/vulkan.c index de6260b2f8..4d60ac1b3a 100644 --- a/libavutil/vulkan.

[FFmpeg-devel] [PATCH v2 04/12] vulkan_decode: support software-defined decoders

2025-02-24 Thread Lynne
--- libavcodec/vulkan_decode.c | 191 +++-- libavcodec/vulkan_decode.h | 10 ++ 2 files changed, 150 insertions(+), 51 deletions(-) diff --git a/libavcodec/vulkan_decode.c b/libavcodec/vulkan_decode.c index c57998108c..084563e8e9 100644 --- a/libavcodec/vulkan_dec

[FFmpeg-devel] [PATCH v2 01/12] ffv1enc_vulkan: disable autodetection of async_depth

2025-02-24 Thread Lynne
The issue is that this could consume gigabytes of VRAM at higher resolutions for not that much of a speedup. Automatic detection was not a good idea as we can't know how much VRAM is actually free. Just remove it. --- libavcodec/ffv1enc_vulkan.c | 7 +-- 1 file changed, 1 insertion(+), 6 delet

[FFmpeg-devel] [PATCH v2 02/12] vulkan: add ff_vk_create_imageview

2025-02-24 Thread Lynne
--- libavutil/vulkan.c | 51 ++ libavutil/vulkan.h | 7 +++ 2 files changed, 58 insertions(+) diff --git a/libavutil/vulkan.c b/libavutil/vulkan.c index 31610e2d94..de6260b2f8 100644 --- a/libavutil/vulkan.c +++ b/libavutil/vulkan.c @@ -1586,6 +158