[FFmpeg-devel] [PATCH v3 3/7] lavf: APV demuxer

2025-04-23 Thread Mark Thompson
Demuxes raw streams as defined in draft spec section 10.2. --- libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/apvdec.c | 241 +++ 3 files changed, 243 insertions(+) create mode 100644 libavformat/apvdec.c diff --git a/libav

[FFmpeg-devel] [PATCH v3 4/7] lavc: APV decoder

2025-04-23 Thread Mark Thompson
--- configure| 1 + libavcodec/Makefile | 1 + libavcodec/allcodecs.c | 1 + libavcodec/apv_decode.c | 403 +++ libavcodec/apv_decode.h | 80 libavcodec/apv_dsp.c | 136 + libavcodec/apv_dsp.h | 37 ++

[FFmpeg-devel] [PATCH v3 2/7] lavc/cbs: APV support

2025-04-23 Thread Mark Thompson
--- configure| 1 + libavcodec/Makefile | 1 + libavcodec/apv.h | 89 libavcodec/cbs.c | 6 + libavcodec/cbs_apv.c | 408 ++ libavcodec/cbs_apv.h | 207 +

Re: [FFmpeg-devel] [PATCH v5 02/14] fftools/textformat: Apply quality improvements

2025-04-23 Thread softworkz .
> -Original Message- > From: Stefano Sabatini > Sent: Donnerstag, 24. April 2025 00:35 > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Cc: softworkz > Subject: Re: [FFmpeg-devel] [PATCH v5 02/14] fftools/textformat: Apply > quality improvements > > On date Tuesda

Re: [FFmpeg-devel] [PATCH v3 2/7] lavc/cbs: APV support

2025-04-23 Thread James Almer
On 4/23/2025 5:45 PM, Mark Thompson wrote: +static int cbs_apv_split_fragment(CodedBitstreamContext *ctx, + CodedBitstreamFragment *frag, + int header) +{ +uint8_t *data = frag->data; +size_t size = frag->data_size; +

Re: [FFmpeg-devel] [PATCH v3 3/7] lavf: APV demuxer

2025-04-23 Thread James Almer
On 4/23/2025 5:45 PM, Mark Thompson wrote: +static int apv_read_header(AVFormatContext *s) +{ +AVStream *st; +GetByteContext gbc; +APVHeaderInfo header; +uint8_t buffer[28]; +uint32_t au_size, signature, pbu_size; +int err, size; + +err = ffio_ensure_seekback(s->pb, si

Re: [FFmpeg-devel] [PATCH v2 5/6] lavc/apv: AVX2 transquant for x86-64

2025-04-23 Thread Michael Niedermayer
Hi On Mon, Apr 21, 2025 at 04:24:36PM +0100, Mark Thompson wrote: > Typical checkasm result on Alder Lake: > > decode_transquant_8_c: 461.1 ( 1.00x) > decode_transquant_8_avx2: 97.5 ( 4.73x) > decode_transquant_10_c:

Re: [FFmpeg-devel] [PATCH v1 2/8] avcodec/apv_parser: Added parser implementation for APV format

2025-04-23 Thread Mark Thompson
On 23/04/2025 15:12, Dawid Kozinski wrote: > - Added constants definitions for APV parser > - Provided parsing following APV RFC > - APV parser registration > > Signed-off-by: Dawid Kozinski > --- > configure | 2 + > libavcodec/Makefile | 2 + > libavcodec/apv.h|

Re: [FFmpeg-devel] [PATCH] avutil/map: [WIP] Introduction

2025-04-23 Thread Michael Niedermayer
Hi Nicolas On Wed, Apr 23, 2025 at 10:46:17PM +0200, Michael Niedermayer wrote: > Hi Nicolas > > On Mon, Apr 21, 2025 at 05:01:19PM +0200, Nicolas George wrote: > > Michael Niedermayer (HE12025-04-20): [...] > > > + * > > > + * > > > + * --- Retrieving an entry -- > > > + * >

Re: [FFmpeg-devel] [PATCH v2] avformat/dump: Stream start offsets: change precision and label

2025-04-23 Thread Marton Balint
On Tue, 22 Apr 2025, softworkz wrote: From: softworkz - Change precision to 6 digits to align with other printed times - Change label to just "Start" - Add 's' unit to format 'start' value for consistency Please make it consistent by removing the 's'. Chapter start/end times also omit th

Re: [FFmpeg-devel] [PATCH 1/1] libavfilter/volume: do fade when adjusting the volume.

2025-04-23 Thread Marton Balint
On Wed, 23 Apr 2025, cenzhanqu...@gmail.com wrote: From: zhanquan cen 1. add simple fade when volume. 2. do fade when adjust volume to maximal. when to adjust volume we hope that the audio sample is smooth we need to calculate the gradient step between each sample based on the total change

Re: [FFmpeg-devel] [PATCH v5 02/14] fftools/textformat: Apply quality improvements

2025-04-23 Thread Stefano Sabatini
On date Tuesday 2025-04-22 21:55:31 +, softworkz wrote: > From: softworkz > > Perform multiple improvements to increase code robustness. > In particular: > - favor unsigned counters for loops > - add missing checks > - avoid possibly leaks my typo: possible leaks > - move variable declarat

Re: [FFmpeg-devel] [PATCH v4 04/11] fftools/tf_internal: Use ac_default_item_name

2025-04-23 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of > softworkz . > Sent: Dienstag, 22. April 2025 23:11 > To: Stefano Sabatini ; FFmpeg development > discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH v4 04/11] fftools/tf_internal: Use > ac_default_item_name > > > > >

Re: [FFmpeg-devel] [PATCH] avformat/mov: Reduce seek when interleaved_read is disabled

2025-04-23 Thread Zhao Zhili
> On Apr 17, 2025, at 20:12, Zhao Zhili wrote: > > From: Zhao Zhili > > Don't select sample with small dts when interleaved_read is disabled. > --- > libavformat/mov.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavformat/mov.c b/libavformat/mov.c > index 45269

Re: [FFmpeg-devel] [PATCH] avcodec/bsf/h264_mp4toannexb.c: change extradata to annexb if this is avcc.

2025-04-23 Thread Zhao Zhili
> On Apr 24, 2025, at 13:18, jie jiang wrote: > > fmpeg -i rtmp://xxx/live/xxx -bsf:v > "h264_mp4toannexb,h264_metadata=aud=remove" -c copy -f null - > > For h264_mp4toannexb, input 264 is avcc, output is annexb. and for > h264_metadata, both input and output are annexb. > If the sps/pps head

[FFmpeg-devel] [PATCH 1/3] avformat/hls: Fix get key file error

2025-04-23 Thread Zhao Zhili
From: Zhao Zhili The offset and end_offset options are meant for segment, not for key. --- libavformat/hls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/hls.c b/libavformat/hls.c index c02add99c0..6623c80309 100644 --- a/libavformat/hls.c +++ b/libavformat/hls

[FFmpeg-devel] [PATCH 3/3] avformat/http: Ensure same protocol in ff_http_do_new_request2

2025-04-23 Thread Zhao Zhili
From: Zhao Zhili This can happen for HLS with AES-128 at the middle of m3u8, so old protocol is https while new protocol is crypt+https. And change the log level from ERROR to INFO when protocol/host/port don't match. User should prepared for this function to fail and retry with new connection.

[FFmpeg-devel] [PATCH v1 1/8] avcodec: APV codec registration

2025-04-23 Thread Dawid Kozinski
Added prerequisites that must be met before providing support for the APV codec - Added new entry to codec IDs list - Added new entry to the codec descriptor list - Bumped libavcodec minor version - Added profiles for APV codec Signed-off-by: Dawid Kozinski --- doc/APIchanges | 3 +++

[FFmpeg-devel] [PATCH v1 5/8] avformat/mov_muxer: Extended MOV muxer to handle APV video content

2025-04-23 Thread Dawid Kozinski
- Changes in mov_write_video_tag function to handle APV elementary stream - Provided structure APVDecoderConfigurationRecord that specifies the decoder configuration information for APV video content Signed-off-by: Dawid Kozinski --- libavformat/Makefile| 2 +- libavformat/apv.c | 8

[FFmpeg-devel] [PATCH v1 3/8] avformat/apv_muxer: Added muxer to handle writing APV encoded data into file or output bytestream

2025-04-23 Thread Dawid Kozinski
- Provided AVOutputFormat structure describing APV output format (ff_apv_muxer) - Added documentation for APV muxer Signed-off-by: Dawid Kozinski --- doc/muxers.texi | 3 +++ libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/rawenc.c | 14 ++

[FFmpeg-devel] [PATCH v1 4/8] avformat/apv_demuxer: Added demuxer to handle reading APV video files

2025-04-23 Thread Dawid Kozinski
- Provided AVInputFormat struct describing APV input format (ff_apv_demuxer) Signed-off-by: Dawid Kozinski --- libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/apvdec.c | 441 +++ 3 files changed, 443 insertions(+) create mo

[FFmpeg-devel] [PATCH v1 6/8] avformat/mov_demuxer: Extended MOV demuxer to handle APV video content

2025-04-23 Thread Dawid Kozinski
- Added evc extension to the list of extensions for ff_mov_demuxer Signed-off-by: Dawid Kozinski --- libavformat/demux.c | 1 + libavformat/mov.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/libavformat/demux.c b/libavformat/demux.c index 2795863567..4e76de0629 100644 --- a/libavform

[FFmpeg-devel] [PATCH v1 7/8] avcodec/apv_encoder: Provided support for APV encoder

2025-04-23 Thread Dawid Kozinski
- Added APV encoder wrapper - Changes in project configuration file and libavcodec Makefile - Added documentation for oapv wrapper Signed-off-by: Dawid Kozinski --- configure | 4 + doc/encoders.texi | 41 +++ doc/general_contents.texi | 11 + libavcodec/Makefile

[FFmpeg-devel] [PATCH v1 8/8] avcodec/apv_decoder: Provided support for APV decoder

2025-04-23 Thread Dawid Kozinski
- Added APV decoder wrapper - Changes in project configuration file and libavcodec Makefile - Added documentation for APV decoder wrapper Signed-off-by: Dawid Kozinski --- configure | 1 + doc/decoders.texi | 27 ++ libavcodec/Makefile| 1 + libavcodec/libapvdec.c | 56

[FFmpeg-devel] [PATCH v1 2/8] avcodec/apv_parser: Added parser implementation for APV format

2025-04-23 Thread Dawid Kozinski
- Added constants definitions for APV parser - Provided parsing following APV RFC - APV parser registration Signed-off-by: Dawid Kozinski --- configure | 2 + libavcodec/Makefile | 2 + libavcodec/apv.h| 93 libavcodec/apv_parse.c | 32 +++ libavcodec/ap

[FFmpeg-devel] [PATCH 1/1] libavfilter/volume: do fade when adjusting the volume.

2025-04-23 Thread cenzhanquan2
From: zhanquan cen 1. add simple fade when volume. 2. do fade when adjust volume to maximal. when to adjust volume we hope that the audio sample is smooth we need to calculate the gradient step between each sample based on the total change of the gradient (i.e. dst_volume - src_volume) and the n

[FFmpeg-devel] [PATCH 2/3] avformat/hls: Show error info when read key file failed

2025-04-23 Thread Zhao Zhili
From: Zhao Zhili --- libavformat/hls.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/libavformat/hls.c b/libavformat/hls.c index 6623c80309..45c1b283c9 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -1353,16 +1353,18 @@ static int open_input(HLSConte

Re: [FFmpeg-devel] [PATCH v1 5/8] avformat/mov_muxer: Extended MOV muxer to handle APV video content

2025-04-23 Thread James Almer
On 4/23/2025 11:13 AM, Dawid Kozinski wrote: @@ -2757,6 +2789,8 @@ static int mov_write_video_tag(AVFormatContext *s, AVIOContext *pb, MOVMuxContex } else if (track->par->codec_id ==AV_CODEC_ID_EVC) { mov_write_evcc_tag(pb, track); +} else if (track->par->codec_id ==AV_

Re: [FFmpeg-devel] [PATCH v1 2/8] avcodec/apv_parser: Added parser implementation for APV format

2025-04-23 Thread James Almer
On 4/23/2025 11:12 AM, Dawid Kozinski wrote: - Added constants definitions for APV parser - Provided parsing following APV RFC - APV parser registration Signed-off-by: Dawid Kozinski --- configure | 2 + libavcodec/Makefile | 2 + libavcodec/apv.h| 93

Re: [FFmpeg-devel] 回复: [PATCH v1 17/19] avcodec/vvc: support fields

2025-04-23 Thread Nuo Mi
Hi Andreas, Thank you for the review. Hi Jianhua, Thank you for the patches. I will merge this weekend if there are no objections. On Wed, Apr 2, 2025 at 2:11 AM Wu Jianhua wrote: > Andreas Rheinhardt : > > toq...@gmail.com: > >> From: Wu Jianhua > >> > >> passed files: > >> FIELD_A_Panas

Re: [FFmpeg-devel] [PATCH v5 02/14] fftools/textformat: Apply quality improvements

2025-04-23 Thread softworkz .
Hi Stefano, > > > if (ret < 0) { > > AVBPrint bp; > > -av_bprint_init(&bp, 0, AV_BPRINT_SIZE_AUTOMATIC); > > +av_bprint_init(&bp, 0, AV_BPRINT_SIZE_UNLIMITED); > > bprint_bytes(&bp, p0, p - p0), > > Is this really ne

Re: [FFmpeg-devel] [PATCH v1 5/8] avformat/mov_muxer: Extended MOV muxer to handle APV video content

2025-04-23 Thread Mark Thompson
On 23/04/2025 15:13, Dawid Kozinski wrote: > - Changes in mov_write_video_tag function to handle APV elementary stream > - Provided structure APVDecoderConfigurationRecord that specifies the decoder > configuration information for APV video content > > Signed-off-by: Dawid Kozinski > --- > liba

[FFmpeg-devel] [PATCH v6 05/13] fftools/textformat: Introduce common header and deduplicate code

2025-04-23 Thread softworkz
From: softworkz Also change writer_printf signature in AVTextWriter to use va_list, so that it can be called by the new function writer_printf() in tf_internal.h. Reviewed-by: Stefano Sabatini Signed-off-by: softworkz --- fftools/textformat/avtextwriters.h | 2 +- fftools/textformat/tf_compa

Re: [FFmpeg-devel] [PATCH 2/3] avformat/hls: Show error info when read key file failed

2025-04-23 Thread Steven Liu
> On Apr 23, 2025, at 20:59, Zhao Zhili > wrote: Hi Zhili, > > From: Zhao Zhili > > --- > libavformat/hls.c | 12 +++- > 1 file changed, 7 insertions(+), 5 deletions(-) > > diff --git a/libavformat/hls.c b/libavformat/hls.c > index 6623c80309..45c1b283c9 100644 > --- a/libavformat/h

[FFmpeg-devel] [PATCH v6 02/13] fftools/textformat: Apply quality improvements

2025-04-23 Thread softworkz
From: softworkz Perform multiple improvements to increase code robustness. In particular: - favor unsigned counters for loops - add missing checks - avoid possible leaks - move variable declarations to inner scopes when feasible - provide explicit type-casting when needed Signed-off-by: softwork

Re: [FFmpeg-devel] [PATCH 2/3] avformat/hls: Show error info when read key file failed

2025-04-23 Thread Zhao Zhili
> On Apr 24, 2025, at 10:24, Steven Liu wrote: > > >> On Apr 23, 2025, at 20:59, Zhao Zhili >> wrote: > Hi Zhili, >> >> From: Zhao Zhili >> >> --- >> libavformat/hls.c | 12 +++- >> 1 file changed, 7 insertions(+), 5 deletions(-) >> >> diff --git a/libavformat/hls.c b/libavformat

Re: [FFmpeg-devel] [PATCH v3 5/7] lavc/apv: AVX2 transquant for x86-64

2025-04-23 Thread James Almer
On 4/23/2025 5:45 PM, Mark Thompson wrote: Typical checkasm result on Alder Lake: decode_transquant_8_c: 464.2 ( 1.00x) decode_transquant_8_avx2: 86.2 ( 5.38x) decode_transquant_10_c:481.6 ( 1.00x) deco

Re: [FFmpeg-devel] [PATCH v3 4/7] lavc: APV decoder

2025-04-23 Thread James Almer
On 4/23/2025 5:45 PM, Mark Thompson wrote: --- configure| 1 + libavcodec/Makefile | 1 + libavcodec/allcodecs.c | 1 + libavcodec/apv_decode.c | 403 +++ libavcodec/apv_decode.h | 80 libavcodec/apv_dsp.c | 1

[FFmpeg-devel] [PATCH v3 1/7] lavc: APV codec ID and descriptor

2025-04-23 Thread Mark Thompson
--- libavcodec/codec_desc.c | 7 +++ libavcodec/codec_id.h | 1 + 2 files changed, 8 insertions(+) diff --git a/libavcodec/codec_desc.c b/libavcodec/codec_desc.c index 9fb190e35a..88fed478a3 100644 --- a/libavcodec/codec_desc.c +++ b/libavcodec/codec_desc.c @@ -1985,6 +1985,13 @@ static con

[FFmpeg-devel] [PATCH v3 5/7] lavc/apv: AVX2 transquant for x86-64

2025-04-23 Thread Mark Thompson
Typical checkasm result on Alder Lake: decode_transquant_8_c: 464.2 ( 1.00x) decode_transquant_8_avx2: 86.2 ( 5.38x) decode_transquant_10_c:481.6 ( 1.00x) decode_transquant_10_avx2:

[FFmpeg-devel] [PATCH v3 0/7] APV support

2025-04-23 Thread Mark Thompson
v3: * Updated to match specification v4 (released a week ago). Main change is the bitstream signature which is mandatory and helpfully makes probing a lot easier. * Demuxer changed to use bytestream (thanks to Andreas for his comments). * Improvements to AVX2 code (thanks to James for his comment

Re: [FFmpeg-devel] [PATCH] avutil/map: [WIP] Introduction

2025-04-23 Thread Michael Niedermayer
Hi Nicolas On Mon, Apr 21, 2025 at 05:01:19PM +0200, Nicolas George wrote: > Michael Niedermayer (HE12025-04-20): > > theres no real reason > > to hurry here > > (This is me applauding.) > > > except that i seem to keep workig on it when > > peop

[FFmpeg-devel] [PATCH v3 7/7] lavf: APV muxer

2025-04-23 Thread Mark Thompson
--- libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/apvenc.c | 40 3 files changed, 42 insertions(+) create mode 100644 libavformat/apvenc.c diff --git a/libavformat/Makefile b/libavformat/Makefile index ef96c2762e..6c999

Re: [FFmpeg-devel] [PATCH v2 5/6] lavc/apv: AVX2 transquant for x86-64

2025-04-23 Thread Mark Thompson
On 23/04/2025 20:52, Michael Niedermayer wrote: > Hi > > On Mon, Apr 21, 2025 at 04:24:36PM +0100, Mark Thompson wrote: >> Typical checkasm result on Alder Lake: >> >> decode_transquant_8_c: 461.1 ( 1.00x) >> decode_transquant_8_avx2: 9

[FFmpeg-devel] [PATCH v6 04/13] fftools/textformat: Introduce AVTextFormatOptions for avtext_context_open()

2025-04-23 Thread softworkz
From: softworkz This allows future addition of options without changes to the signature of avtext_context_open(). Reviewed-by: Stefano Sabatini Signed-off-by: softworkz --- fftools/ffprobe.c | 13 + fftools/textformat/avtextformat.c | 21 - ffto

[FFmpeg-devel] [PATCH v6 08/13] fftools/ffmpeg_filter: Move some declaration to new header file

2025-04-23 Thread softworkz
From: softworkz to allow filtergraph printing to access the information. Signed-off-by: softworkz --- fftools/ffmpeg_filter.c | 190 +--- fftools/ffmpeg_filter.h | 234 2 files changed, 235 insertions(+), 189 deletions(-) cr

[FFmpeg-devel] [PATCH v6 07/13] fftools/textformat: Add function avtext_print_integer_flags()

2025-04-23 Thread softworkz
From: softworkz This function works analog to the avtext_print_string() which already has a flags parameter. Signed-off-by: softworkz --- fftools/textformat/avtextformat.c | 25 + fftools/textformat/avtextformat.h | 2 ++ 2 files changed, 23 insertions(+), 4 deletions(

[FFmpeg-devel] [PATCH v6 06/13] fftools/tf_internal: Use av_default_item_name

2025-04-23 Thread softworkz
From: softworkz Reviewed-by: Stefano Sabatini Signed-off-by: softworkz --- fftools/textformat/tf_internal.h | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/fftools/textformat/tf_internal.h b/fftools/textformat/tf_internal.h index 362a4cbc38..484886b7a7 100644 --- a/fft

[FFmpeg-devel] [PATCH v6 11/13] fftools/ffmpeg_mux: Make ms_from_ost() inline

2025-04-23 Thread softworkz
From: softworkz Signed-off-by: softworkz --- fftools/ffmpeg_mux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fftools/ffmpeg_mux.h b/fftools/ffmpeg_mux.h index f41f2c18fa..4ca8ab73a4 100644 --- a/fftools/ffmpeg_mux.h +++ b/fftools/ffmpeg_mux.h @@ -123,7 +123,7 @@ typedef

[FFmpeg-devel] [PATCH v6 12/13] fftools/graphprint: Add execution graph printing

2025-04-23 Thread softworkz
From: softworkz The key benefits are: - Different to other graph printing methods, this is outputting: - all graphs with runtime state (including auto-inserted filters) - each graph with its inputs and outputs - all filters with their in- and output pads - all connections between all

[FFmpeg-devel] [PATCH v6 10/13] fftools/resources: Add resource manager files

2025-04-23 Thread softworkz
From: softworkz Signed-off-by: softworkz --- ffbuild/common.mak | 28 ++- fftools/Makefile | 3 +- fftools/resources/.gitignore | 4 + fftools/resources/Makefile | 27 +++ fftools/resources/graph.css | 353 +++ fftools/resources/gra

[FFmpeg-devel] [PATCH v6 13/13] fftools/graphprint: Now, make it a Killer-Feature!

2025-04-23 Thread softworkz
From: softworkz remember this: -sg <= show-graph Signed-off-by: softworkz --- doc/ffmpeg.texi | 4 + fftools/Makefile | 1 + fftools/ffmpeg.c | 2 +- fftools/ffmpeg.h | 1 + fftools/ffmpeg_filter.c | 2 +- fftools/ffmpeg_opt.c

[FFmpeg-devel] [PATCH v6 00/13] Execution Graph Printing

2025-04-23 Thread ffmpegagent
Shortest cover letter for my longest-running FFmpeg patchset: * Apply * Build * Add the "-sg" switch to any FFmpeg command line * Press 'q' when you don't want to wait SG = Show Graph Documentation and examples can be found here: https://github.com/softworkz/ffmpeg_output_apis/wiki Versio

[FFmpeg-devel] [PATCH v6 01/13] fftools/textformat: Formatting and whitespace changes

2025-04-23 Thread softworkz
From: softworkz Reviewed-by: Stefano Sabatini Signed-off-by: softworkz --- fftools/textformat/avtextformat.c | 86 ++-- fftools/textformat/avtextformat.h | 16 +++--- fftools/textformat/avtextwriters.h | 11 ++-- fftools/textformat/tf_compact.c| 91 +++

[FFmpeg-devel] [PATCH v6 03/13] fftools/avtextformat: Re-use BPrint in loop

2025-04-23 Thread softworkz
From: softworkz Instead of initializing a new BPrint in each iteration of the loop, re-use the same BPrint struct and just clear it for each iteration. Signed-off-by: softworkz --- fftools/textformat/avtextformat.c | 23 ++- 1 file changed, 14 insertions(+), 9 deletions(-)

[FFmpeg-devel] [PATCH v6 09/13] avfilter/avfilter: Add avfilter_link_get_hw_frames_ctx()

2025-04-23 Thread softworkz
From: softworkz Signed-off-by: softworkz --- doc/APIchanges | 3 +++ libavfilter/avfilter.c | 9 + libavfilter/avfilter.h | 12 3 files changed, 24 insertions(+) diff --git a/doc/APIchanges b/doc/APIchanges index 75d66f87f3..d0869561f3 100644 --- a/doc/APIchanges

Re: [FFmpeg-devel] [PATCH v5 05/14] fftools/textformat: Introduce common header and deduplicate code

2025-04-23 Thread Stefano Sabatini
On date Tuesday 2025-04-22 21:55:34 +, softworkz wrote: > From: softworkz > > Signed-off-by: softworkz > --- > fftools/textformat/tf_compact.c | 32 +--- > fftools/textformat/tf_default.c | 27 +++--- > fftools/textformat/tf_flat.c | 25 +++--- > fftools/textformat/tf_

Re: [FFmpeg-devel] [PATCH v5 07/14] fftools/tf_internal: Use av_default_item_name

2025-04-23 Thread Stefano Sabatini
On date Tuesday 2025-04-22 21:55:36 +, softworkz wrote: > From: softworkz > > Signed-off-by: softworkz > --- > fftools/textformat/tf_internal.h | 6 +- > 1 file changed, 1 insertion(+), 5 deletions(-) > > diff --git a/fftools/textformat/tf_internal.h > b/fftools/textformat/tf_internal

Re: [FFmpeg-devel] [PATCH v5 04/14] fftools/textformat: Introduce AVTextFormatOptions for avtext_context_open()

2025-04-23 Thread Stefano Sabatini
On date Tuesday 2025-04-22 21:55:33 +, softworkz wrote: > From: softworkz > > This allows future addition of options without > changes to the signature of avtext_context_open(). > > Signed-off-by: softworkz > --- > fftools/ffprobe.c | 13 + > fftools/textformat/

Re: [FFmpeg-devel] [PATCH v5 04/14] fftools/textformat: Introduce AVTextFormatOptions for avtext_context_open()

2025-04-23 Thread softworkz .
> -Original Message- > From: Stefano Sabatini > Sent: Donnerstag, 24. April 2025 00:49 > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Cc: softworkz > Subject: Re: [FFmpeg-devel] [PATCH v5 04/14] fftools/textformat: > Introduce AVTextFormatOptions for avtext_conte

Re: [FFmpeg-devel] [PATCH v4 05/11] fftools/textformat: Add function avtext_print_integer_flags()

2025-04-23 Thread Stefano Sabatini
On date Sunday 2025-04-20 22:59:08 +, softworkz wrote: > From: softworkz > > This function works analog to the avtext_print_string() which already > has a flags parameter. > > Signed-off-by: softworkz > --- > fftools/textformat/avtextformat.c | 21 + > fftools/textforma

Re: [FFmpeg-devel] [PATCH v5 06/14] fftools/textformat: AVTextWriter change writer_printf signature

2025-04-23 Thread Stefano Sabatini
On date Tuesday 2025-04-22 21:55:35 +, softworkz wrote: > From: softworkz > > Using va_list provides greater flebility flebility typo Also this looks more about factorization than flexibility (for an API used directly by users the ... format is better). > > Signed-off-by: softworkz > --

Re: [FFmpeg-devel] [PATCH v5 03/14] fftools/avtextformat: Re-use BPrint in loop

2025-04-23 Thread Stefano Sabatini
On date Tuesday 2025-04-22 21:55:32 +, softworkz wrote: > From: softworkz > > Instead of initializing a new BPrint in each iteration of > the loop, re-use the same BPrint struct and just clear it > for each iteration. > > Signed-off-by: softworkz > --- > fftools/textformat/avtextformat.c |

Re: [FFmpeg-devel] [PATCH v5 02/14] fftools/textformat: Apply quality improvements

2025-04-23 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of > Nicolas George > Sent: Donnerstag, 24. April 2025 00:57 > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH v5 02/14] fftools/textformat: Apply > quality improvements > > softwo

Re: [FFmpeg-devel] [PATCH v2 1/2] avformat: add avformat_query_seekable

2025-04-23 Thread Stefano Sabatini
On date Tuesday 2025-04-22 10:24:01 +0530, Gyan Doshi wrote: > On 2025-04-21 11:59 pm, Stefano Sabatini wrote: > > On date Tuesday 2025-04-15 16:09:56 +0530, Gyan Doshi wrote: > > > Utility function to report seekability features for a given input. > > > > > > Useful for ffprobe and to extend seek

Re: [FFmpeg-devel] [PATCH v5 02/14] fftools/textformat: Apply quality improvements

2025-04-23 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of > softworkz . > Sent: Donnerstag, 24. April 2025 01:05 > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH v5 02/14] fftools/textformat: Apply > quality improvements > > > > > -

Re: [FFmpeg-devel] [PATCH v5 02/14] fftools/textformat: Apply quality improvements

2025-04-23 Thread Nicolas George
softworkz . (HE12025-04-23): > Despite its name, there's automatism for anything. Look for the word “automatic” in the C standard. -- Nicolas George ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-deve

[FFmpeg-devel] [PATCH v3 6/7] lavc: APV metadata bitstream filter

2025-04-23 Thread Mark Thompson
--- libavcodec/bitstream_filters.c | 1 + libavcodec/bsf/Makefile| 1 + libavcodec/bsf/apv_metadata.c | 134 + 3 files changed, 136 insertions(+) create mode 100644 libavcodec/bsf/apv_metadata.c diff --git a/libavcodec/bitstream_filters.c b/libavcodec

Re: [FFmpeg-devel] [PATCH v5 01/14] fftools/textformat: Formatting and whitespace changes

2025-04-23 Thread Stefano Sabatini
On date Tuesday 2025-04-22 21:55:30 +, softworkz wrote: > From: softworkz > > Signed-off-by: softworkz > --- > fftools/textformat/avtextformat.c | 86 ++-- > fftools/textformat/avtextformat.h | 16 +++--- > fftools/textformat/avtextwriters.h | 11 ++-- > fftools/te

Re: [FFmpeg-devel] [PATCH] avutil/map: [WIP] Introduction

2025-04-23 Thread Marton Balint
On Wed, 23 Apr 2025, Michael Niedermayer wrote: Hi On Mon, Apr 21, 2025 at 09:55:33PM +0200, Marton Balint wrote: On Sun, 20 Apr 2025, Michael Niedermayer wrote: Note, help is welcome. Time i spend on this, i cannot spend on other things Note2: i intend to push AVMap after the release

Re: [FFmpeg-devel] [PATCH 2/3] avformat/hls: Show error info when read key file failed

2025-04-23 Thread Zhao Zhili
> On Apr 24, 2025, at 11:08, Marvin Scholz wrote: > > > On 23 Apr 2025, at 14:59, Zhao Zhili wrote: > >> From: Zhao Zhili >> >> --- >> libavformat/hls.c | 12 +++- >> 1 file changed, 7 insertions(+), 5 deletions(-) >> >> diff --git a/libavformat/hls.c b/libavformat/hls.c >> index 66

[FFmpeg-devel] [PATCH] avcodec/bsf/h264_mp4toannexb.c: change extradata to annexb if this is avcc.

2025-04-23 Thread jiangjie
if get AV_PKT_DATA_NEW_EXTRADATA in AVPacket, this bitstream filter will return an error. ffmpeg -i rtmp://xxx/live/xxx -bsf:v "h264_mp4toannexb,h264_metadata=aud=remove" -c copy -f null - --- libavcodec/bsf/h264_mp4toannexb.c | 26 -- 1 file changed, 20 insertions(+), 6

[FFmpeg-devel] [PATCH v2 2/3] avformat/hls: Show error info when read key file failed

2025-04-23 Thread Zhao Zhili
From: Zhao Zhili --- libavformat/hls.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/libavformat/hls.c b/libavformat/hls.c index 6623c80309..6139b8525e 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -1353,16 +1353,22 @@ static int open_input(HLS

Re: [FFmpeg-devel] [PATCH 1/1] libavfilter/volume: do fade when adjusting the volume.

2025-04-23 Thread Gyan Doshi
On 2025-04-24 02:05 am, Marton Balint wrote: On Wed, 23 Apr 2025, cenzhanqu...@gmail.com wrote: From: zhanquan cen 1. add simple fade when volume. 2. do fade when adjust volume to maximal. when to adjust volume we hope that the audio sample is smooth we need to calculate the gradient st

Re: [FFmpeg-devel] [PATCH] avcodec/bsf/h264_mp4toannexb.c: change extradata to annexb if this is avcc.

2025-04-23 Thread Zhao Zhili
> On Apr 24, 2025, at 11:38, jiangjie wrote: > > if get AV_PKT_DATA_NEW_EXTRADATA in AVPacket, this bitstream filter will > return an error. > ffmpeg -i rtmp://xxx/live/xxx -bsf:v > "h264_mp4toannexb,h264_metadata=aud=remove" -c copy -f null - H.264 in FLV is avcc. Which service provider use

Re: [FFmpeg-devel] [PATCH 2/3] avformat/hls: Show error info when read key file failed

2025-04-23 Thread Marvin Scholz
On 23 Apr 2025, at 14:59, Zhao Zhili wrote: > From: Zhao Zhili > > --- > libavformat/hls.c | 12 +++- > 1 file changed, 7 insertions(+), 5 deletions(-) > > diff --git a/libavformat/hls.c b/libavformat/hls.c > index 6623c80309..45c1b283c9 100644 > --- a/libavformat/hls.c > +++ b/libavf

Re: [FFmpeg-devel] [PATCH] avcodec/bsf/h264_mp4toannexb.c: change extradata to annexb if this is avcc.

2025-04-23 Thread jie jiang
fmpeg -i rtmp://xxx/live/xxx -bsf:v "h264_mp4toannexb,h264_metadata=aud=remove" -c copy -f null - For h264_mp4toannexb, input 264 is avcc, output is annexb. and for h264_metadata, both input and output are annexb. If the sps/pps header is updated, flvdec module will insert AV_PKT_DATA_NEW_EXTRAD