[FFmpeg-devel] [PATCH v3 2/2] avcodec/mfenc: add support for D3D11 input surfaces

2025-07-09 Thread Dash Santosh Sathyanarayanan
Adds D3D11 input surface support to the MediaFoundation encoder (mfenc), allowing direct encoding of GPU frames without readback to system memory. This improves performance and compatibility when used alongside scale_d3d11. Signed-off-by: Dash Santosh --- libavcodec/mf_utils.h | 7 ++ libavcod

[FFmpeg-devel] [PATCH v3 1/2] avfilter: add scale_d3d11 filter

2025-07-09 Thread Dash Santosh Sathyanarayanan
> This part is still not acceptable. You blindly set a flag based on > what you need, if special flags on the context are needed they should > be negotiated between the different components, guided by the users > use-case and input, and not hardcoded based on an arbitrary condition > of a pixel for

Re: [FFmpeg-devel] [PATCH v2 1/1] swscale/aarch64/output: Implement neon assembly for yuv2planeX_10_c_template()

2025-07-09 Thread Logaprakash Ramajayam
Hi, Could you please check and review this patch? From: Logaprakash Ramajayam Sent: Wednesday, July 2, 2025 2:57 PM To: FFmpeg development discussions and patches Subject: Re: [FFmpeg-devel] [PATCH v2 1/1] swscale/aarch64/output: Implement neon assembly for yuv2p

Re: [FFmpeg-devel] [PATCH] swscale/aarch64/output: Implement yuv2nv12cx neon assembly

2025-07-09 Thread Harshitha Sarangu Suresh
Hi, Can you please review the patch? Thanks. From: Harshitha Sarangu Suresh Sent: 04 July 2025 15:01 To: FFmpeg development discussions and patches Cc: Logaprakash Ramajayam ; Dash Santosh Sathyanarayanan Subject: [FFmpeg-devel] [PATCH] swscale/aarch64/output: Im

[FFmpeg-devel] [PATCH v2 3/3] swscale/graph: fix leak in adapt_colors()

2025-07-09 Thread Lidong Yan
In adapt_colors(), ff_sws_lut3d_generate() allocates memory in lut. However if add_legacy_sws_pass() failed, lut leaks. free lut before return ret. Signed-off-by: Lidong Yan <502024330...@smail.nju.edu.cn> --- libswscale/graph.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[FFmpeg-devel] [PATCH v2 2/3] avformat/iamf_writer: fix leaks of avio_open_dyn_buf() allocated memory

2025-07-09 Thread Lidong Yan
In iamf_write_codec_config(), if codec_id equals to AV_CODEC_ID_AAC, avio_open_dyn_buf() allocated memory would leak. Add ffio_free_dyn_buf() to free dyn_bc before return. In iamf_write_audio_element(), multiple places returns without free dyn_bc, replace return AVERROR* with goto cleanup and add

[FFmpeg-devel] [PATCH v2 1/3] avformat/sapenc: fix leak in sap_write_header()

2025-07-09 Thread Lidong Yan
In sap_write_header(), ff_format_set_url() assign new allocated new_url to contexts[i]->url but forgot to free it later. Add for loop to free contexts[i]->url before av_free(context). To prevent from writing free-for-loop in every return point, replace `return 0` with `ret = 0` so normal execution

[FFmpeg-devel] [PATCH v2 0/3] resend fixes for leaks

2025-07-09 Thread Lidong Yan
I am resending patches: https://ffmpeg.org/pipermail/ffmpeg-devel/2025-June/345974.html https://ffmpeg.org/pipermail/ffmpeg-devel/2025-June/345897.html Since these patches haven't been noticed for a long time. I also revised my patch in avformat/sapenc according to Michael's request. -BE

Re: [FFmpeg-devel] [PATCH 1/4] avformat/tls_openssl: add record trace function

2025-07-09 Thread Jack Lau
> On Jul 10, 2025, at 06:16, Michael Niedermayer wrote: > > On Wed, Jul 09, 2025 at 09:36:26PM +0800, Jack Lau wrote: >> Signed-off-by: Jack Lau >> --- >> libavformat/tls_openssl.c | 51 +-- >> 1 file changed, 49 insertions(+), 2 deletions(-) > > my git her

Re: [FFmpeg-devel] [PATCH 4/4] avformat/udp: fix udp server mode haven't dest_addr

2025-07-09 Thread Jack Lau
> On Jul 9, 2025, at 22:16, Timo Rothenpieler wrote: > > On 09/07/2025 15:36, Jack Lau wrote: >> If udp is in server mode(init local addr and port through url), >> then it maybe haven't dest_addr, so we should set it after udp_read >> get the client addr and port > > I'm also really not sure

Re: [FFmpeg-devel] [PATCH 2/4] avformat/tls_openssl: fix dtls_handshake return code

2025-07-09 Thread Jack Lau
> On Jul 9, 2025, at 22:14, Timo Rothenpieler wrote: > > On 09/07/2025 15:36, Jack Lau wrote: >> If the handshake is still in progress, dtls_handshake should >> return a positive status code. > > Shouldn't dtls_open/start also be calling it in a loop then? > I don't think it's expected that y

Re: [FFmpeg-devel] [RFC PATCH] avformat: remove HLS protocol

2025-07-09 Thread Steven Liu
Steven Liu 于2025年7月10日周四 04:42写道: > > > > Timo Rothenpieler 于2025年7月9日 周三23:33写道: >> >> On 7/9/2025 3:28 PM, Marvin Scholz wrote: >> > >> > >> > On 9 Jul 2025, at 11:18, Steven Liu wrote: >> > >> >> Marvin Scholz 于2025年7月9日周三 03:14写道: >> >> Hi Marvin, >> >> >> >>> >> >>> The use of this protocol

Re: [FFmpeg-devel] [PATCH] Whisper audio filter

2025-07-09 Thread Michael Niedermayer
Hi On Wed, Jul 09, 2025 at 09:23:48AM +0200, Vittorio Palmisano wrote: > It adds a new audio filter for running audio transcriptions with the whisper > model. > Documentation and examples are included into the patch. > > Signed-off-by: Vittorio Palmisano > --- > configure| 5

Re: [FFmpeg-devel] [PATCH] Whisper audio filter

2025-07-09 Thread Michael Niedermayer
Hi Vittorio On Wed, Jul 09, 2025 at 09:23:48AM +0200, Vittorio Palmisano wrote: > It adds a new audio filter for running audio transcriptions with the whisper > model. Iam happy to see someone contribute a whisper filter! [...] > +@example > +ffmpeg -i input.mp4 -vn -af > "aformat=sample_rat

Re: [FFmpeg-devel] [PATCH 1/4] avformat/tls_openssl: add record trace function

2025-07-09 Thread Michael Niedermayer
On Wed, Jul 09, 2025 at 09:36:26PM +0800, Jack Lau wrote: > Signed-off-by: Jack Lau > --- > libavformat/tls_openssl.c | 51 +-- > 1 file changed, 49 insertions(+), 2 deletions(-) my git here dislikes the encoding of this mail: error: cannot convert from y to

Re: [FFmpeg-devel] [RFC PATCH] avformat: remove HLS protocol

2025-07-09 Thread Steven Liu
Timo Rothenpieler 于2025年7月9日 周三23:33写道: > On 7/9/2025 3:28 PM, Marvin Scholz wrote: > > > > > > On 9 Jul 2025, at 11:18, Steven Liu wrote: > > > >> Marvin Scholz 于2025年7月9日周三 03:14写道: > >> Hi Marvin, > >> > >>> > >>> The use of this protocol was already discouraged and warned about > >>> for year

Re: [FFmpeg-devel] [PATCH 2/3] libavcodec: add NETINT Quadra HW decoders & encoders

2025-07-09 Thread Desmond Liu
Hi Kieran, > Roughly one year ago I tried to buy one of these and I was asked to sign an > NDA. That was a "bug". You do not need to sign an NDA. If you have difficulty obtaining our hardware, contact me. Desmond ___ ffmpeg-devel mailing list ffmpeg

Re: [FFmpeg-devel] [RFC PATCH] avformat: remove HLS protocol

2025-07-09 Thread Timo Rothenpieler
On 7/9/2025 3:28 PM, Marvin Scholz wrote: On 9 Jul 2025, at 11:18, Steven Liu wrote: Marvin Scholz 于2025年7月9日周三 03:14写道: Hi Marvin, The use of this protocol was already discouraged and warned about for years with the recommendation to use the HLS demuxer instead. What about make deprecat

Re: [FFmpeg-devel] [PATCH] Whisper audio filter

2025-07-09 Thread Zhao Zhili
> On Jul 9, 2025, at 15:23, Vittorio Palmisano > wrote: > > It adds a new audio filter for running audio transcriptions with the whisper > model. > Documentation and examples are included into the patch. The patch doesn’t following ffmpeg coding style. Setting aside the coding style issues,

Re: [FFmpeg-devel] [PATCH 4/4] avformat/udp: fix udp server mode haven't dest_addr

2025-07-09 Thread Timo Rothenpieler
On 09/07/2025 15:36, Jack Lau wrote: If udp is in server mode(init local addr and port through url), then it maybe haven't dest_addr, so we should set it after udp_read get the client addr and port I'm also really not sure if this is correct, or what scenario it even fixes. The vast majority of

Re: [FFmpeg-devel] [PATCH 2/4] avformat/tls_openssl: fix dtls_handshake return code

2025-07-09 Thread Timo Rothenpieler
On 09/07/2025 15:36, Jack Lau wrote: If the handshake is still in progress, dtls_handshake should return a positive status code. Shouldn't dtls_open/start also be calling it in a loop then? I don't think it's expected that you might be needed to call the handshake function in a loop after a ur

Re: [FFmpeg-devel] what AVCodecID to use for copying full vanc data between .mxf and .mcc

2025-07-09 Thread Devin Heitmueller
On Tue, Jul 8, 2025 at 10:38 PM Jacob Lifshay wrote: > > Note that I took a look at the MCC demuxer last year, and it's got a > > bunch of issues where the parsing makes a bunch of assumptions (e.g. > > doesn't filter out other VANC types which might be present in an MCC > > such as AFD). And it

[FFmpeg-devel] [PATCH 4/4] avformat/udp: fix udp server mode haven't dest_addr

2025-07-09 Thread Jack Lau
If udp is in server mode(init local addr and port through url), then it maybe haven't dest_addr, so we should set it after udp_read get the client addr and port Signed-off-by: Jack Lau --- libavformat/udp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/udp.c b/libavformat/udp

[FFmpeg-devel] [PATCH 3/4] avformat/tls_openssl: remove all redundant "TLS: " in log with AVClass

2025-07-09 Thread Jack Lau
Signed-off-by: Jack Lau --- libavformat/tls_openssl.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/libavformat/tls_openssl.c b/libavformat/tls_openssl.c index ffd9cd51d2..a519c8c880 100644 --- a/libavformat/tls_openssl.c +++ b/libavformat/tls_openssl.

[FFmpeg-devel] [PATCH 2/4] avformat/tls_openssl: fix dtls_handshake return code

2025-07-09 Thread Jack Lau
If the handshake is still in progress, dtls_handshake should return a positive status code. Signed-off-by: Jack Lau --- libavformat/tls_openssl.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libavformat/tls_openssl.c b/libavformat/tls_openssl.c index 8639ac9758..ffd

[FFmpeg-devel] [PATCH 1/4] avformat/tls_openssl: add record trace function

2025-07-09 Thread Jack Lau
Signed-off-by: Jack Lau --- libavformat/tls_openssl.c | 51 +-- 1 file changed, 49 insertions(+), 2 deletions(-) diff --git a/libavformat/tls_openssl.c b/libavformat/tls_openssl.c index 2a01fb387d..8639ac9758 100644 --- a/libavformat/tls_openssl.c +++ b/libavf

[FFmpeg-devel] [PATCH 0/4] Fix some issues in tls_openssl and udp

2025-07-09 Thread Jack Lau
This patchset aims to fix some issues when i try to utilize DTLS using avio. I create a simple DTLS client and server case here https://github.com/JackLau1222/openssl-dtls-bio-example/tree/master/ffmpeg_case This patchset fix: 1. dtls_handshake can't return positive code when it still in progressi

Re: [FFmpeg-devel] [PATCH] Whisper audio filter

2025-07-09 Thread Marvin Scholz
On 9 Jul 2025, at 9:23, Vittorio Palmisano wrote: > It adds a new audio filter for running audio transcriptions with the whisper > model. > Documentation and examples are included into the patch. > > Signed-off-by: Vittorio Palmisano > --- > configure| 5 + > doc/filters.tex

Re: [FFmpeg-devel] [RFC PATCH] avformat: remove HLS protocol

2025-07-09 Thread Marvin Scholz
On 9 Jul 2025, at 11:18, Steven Liu wrote: > Marvin Scholz 于2025年7月9日周三 03:14写道: > Hi Marvin, > >> >> The use of this protocol was already discouraged and warned about >> for years with the recommendation to use the HLS demuxer instead. > What about make deprecated warning to users and remove i

Re: [FFmpeg-devel] [PATCH 2/2] swscale: add support for new 10/12 bit MSB formats

2025-07-09 Thread Timo Rothenpieler
On 05/07/2025 00:17, Timo Rothenpieler wrote: --- libswscale/format.c | 8 + libswscale/input.c | 240 +++ libswscale/loongarch/output_lasx.c | 1 + libswscale/loongarch/output_lsx.c| 1 + libswsc

Re: [FFmpeg-devel] [PATCH v2 0/8] WHIP + TLS + UDP fixes and SChannel DTLS support

2025-07-09 Thread Timo Rothenpieler
On 06/07/2025 20:36, Timo Rothenpieler wrote: Second version of the series, with a bunch of the more trivial already merged it reduced in size a bit. Remaining patches have been revised after comments, and some further fixes have been added. Original Cover-Letter was: This was originally just m

Re: [FFmpeg-devel] [PATCH] avfilter/overlay_cuda: add timeline editing support

2025-07-09 Thread Timo Rothenpieler
On 08/07/2025 00:53, Jorge Estrada wrote: Enables timeline editing options for overlay_cuda similar to what overlay allows Example overlaying an image on a video between 30 to 60 seconds: ffmpeg -hwaccel cuda -hwaccel_output_format cuda -i sample-video.mp4 -i sample-image.jpg -filter_complex

Re: [FFmpeg-devel] [PATCH 2/3] libavcodec: add NETINT Quadra HW decoders & encoders

2025-07-09 Thread Timo Rothenpieler
On 09/07/2025 04:11, Desmond Liu wrote: Hi Ronald, thanks for your response. We previously had a similar debate regarding realmedia (search for "Codec wrapper for librv11 and RMHD muxer/demuxer"). I couldn't find much in the way of debate when I searched for this except for a patch submission

Re: [FFmpeg-devel] [PATCH 2/2] avformat/concatdec: Check recursion depth

2025-07-09 Thread Nicolas George
Michael Niedermayer (HE12025-07-07): > a file called self_ref.ffconcat, containing: > > ffconcat version 1.0 > file self_ref.ffconcat Oh, that. Thanks for explaining. I am not sure it is our responsibility to protect from this, there are many instance of similar pitfalls, for example a shell wrap

Re: [FFmpeg-devel] [RFC PATCH] avformat: remove HLS protocol

2025-07-09 Thread Steven Liu
Marvin Scholz 于2025年7月9日周三 03:14写道: Hi Marvin, > > The use of this protocol was already discouraged and warned about > for years with the recommendation to use the HLS demuxer instead. What about make deprecated warning to users and remove it next major version? > --- > doc/protocols.texi |

[FFmpeg-devel] [PATCH] avcodec/aarch64/vvc: optimised alf_classify function 8/10/12bit of vvc codec for aarch64

2025-07-09 Thread Georgii Zagoruiko
- vvc_alf.alf_classify [OK] vvc_alf_classify_8x8_8_c: 1314.4 ( 1.00x) vvc_alf_classify_8x8_8_neon: 794.3 ( 1.65x) vvc_alf_classify_8x8_10_c:1154.7 ( 1.00x) vvc_alf_classify_8x8_10_neon: 770.

[FFmpeg-devel] [PATCH] Whisper audio filter

2025-07-09 Thread Vittorio Palmisano
It adds a new audio filter for running audio transcriptions with the whisper model. Documentation and examples are included into the patch. Signed-off-by: Vittorio Palmisano --- configure| 5 + doc/filters.texi | 101 libavfilter/Makefile | 2 + libavfil