[FFmpeg-devel] [PATCH] avcodec/codec_par: always free side data in the destination AVCodecContext

2023-07-20 Thread James Almer
Signed-off-by: James Almer --- libavcodec/codec_par.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/codec_par.c b/libavcodec/codec_par.c index 775c187073..a38a475dc7 100644 --- a/libavcodec/codec_par.c +++ b/libavcodec/codec_par.c @@ -253,8 +253,8 @@

[FFmpeg-devel] [PATCH v3 5/6] avcodec/webp: make init_canvas_frame static

2023-07-20 Thread Thilo Borgmann
--- libavcodec/webp.c | 143 +++--- 1 file changed, 71 insertions(+), 72 deletions(-) diff --git a/libavcodec/webp.c b/libavcodec/webp.c index 8cc417af36..277f2c58bb 100644 --- a/libavcodec/webp.c +++ b/libavcodec/webp.c @@ -1351,7 +1351,77 @@ static int

[FFmpeg-devel] [PATCH v3 6/6] libavformat/webp: add WebP demuxer

2023-07-20 Thread Thilo Borgmann
From: Josef Zlomek Adds the demuxer of animated WebP files. It supports non-animated, animated, truncated, and concatenated files. Reading from a pipe (and other non-seekable inputs) is also supported. The WebP demuxer splits the input stream into packets containing one frame. It also marks the

[FFmpeg-devel] [PATCH v3 3/6] avcodec/webp_parser: parse each frame into one packet

2023-07-20 Thread Thilo Borgmann
--- libavcodec/webp_parser.c | 130 +++ 1 file changed, 89 insertions(+), 41 deletions(-) diff --git a/libavcodec/webp_parser.c b/libavcodec/webp_parser.c index bd5f94dac5..da853bb1f5 100644 --- a/libavcodec/webp_parser.c +++ b/libavcodec/webp_parser.c @@

[FFmpeg-devel] [PATCH v3 4/6] libavcodec/webp: add support for animated WebP decoding

2023-07-20 Thread Thilo Borgmann
From: Josef Zlomek Fixes: 4907 Adds support for decoding of animated WebP. The WebP decoder adds the animation related features according to the specs: https://developers.google.com/speed/webp/docs/riff_container#animation The frames of the animation may be smaller than the image canvas.

[FFmpeg-devel] [PATCH v3 2/6] avcodec/webp: remove unused definitions

2023-07-20 Thread Thilo Borgmann
--- libavcodec/webp.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavcodec/webp.c b/libavcodec/webp.c index b0475c344a..6ba81a6a99 100644 --- a/libavcodec/webp.c +++ b/libavcodec/webp.c @@ -60,8 +60,6 @@ #define VP8X_FLAG_ALPHA 0x10 #define VP8X_FLAG_ICC

[FFmpeg-devel] [PATCH v3 1/6] avcodec/webp: move definitions into header

2023-07-20 Thread Thilo Borgmann
--- libavcodec/webp.c | 1 + libavcodec/webp.h | 38 ++ 2 files changed, 39 insertions(+) create mode 100644 libavcodec/webp.h diff --git a/libavcodec/webp.c b/libavcodec/webp.c index d35cb66f8d..b0475c344a 100644 --- a/libavcodec/webp.c +++

[FFmpeg-devel] [PATCH v3 0/6] webp: add support for animated WebP decoding

2023-07-20 Thread Thilo Borgmann
All issues of v2 fixed. Makes tsan happy now as well. Patch 5/6 is still there for making changes in lavc/webp reviewable but shall be stashed when pushing. -Thilo Josef Zlomek (2): libavcodec/webp: add support for animated WebP decoding libavformat/webp: add WebP demuxer Thilo Borgmann

Re: [FFmpeg-devel] [PATCH v2 5/5] libavformat/webp: add WebP demuxer

2023-07-20 Thread Thilo Borgmann
Am 12.07.23 um 03:22 schrieb James Zern: On Thu, Jul 6, 2023 at 4:28 AM Thilo Borgmann wrote: From: Josef Zlomek Adds the demuxer of animated WebP files. It supports non-animated, animated, truncated, and concatenated files. Reading from a pipe (and other non-seekable inputs) is also

Re: [FFmpeg-devel] [PATCH v2 3/5] libavcodec/webp: add support for animated WebP decoding

2023-07-20 Thread Thilo Borgmann
Am 12.07.23 um 02:20 schrieb James Zern: On Thu, Jul 6, 2023 at 4:28 AM Thilo Borgmann wrote: From: Josef Zlomek Fixes: 4907 Adds support for decoding of animated WebP. The WebP decoder adds the animation related features according to the specs:

Re: [FFmpeg-devel] [PATCH v4 3/3] tests/fate/flvenc: add av1 in enhanced flv test case

2023-07-20 Thread Michael Niedermayer
On Thu, Jul 20, 2023 at 07:00:02PM +0800, Steven Liu wrote: > Signed-off-by: Steven Liu > --- > tests/fate/flvenc.mak | 4 > tests/ref/fate/enhanced-flv-av1 | 32 > 2 files changed, 36 insertions(+) > create mode 100644

Re: [FFmpeg-devel] [PATCH] avformat/rtmpproto: forward rw_timeout to tcp proto

2023-07-20 Thread Timo Rothenpieler
On 20.07.2023 23:09, Martin Storsjö wrote: Hmm, geez we have many similar-looking and randomly named timeout options here... The av_opt_copy() call in ffurl_open_whitelist() should only iterate over the options within the URLContext itself, not recurse into the protocol private options (as

Re: [FFmpeg-devel] [PATCH] avformat/rtmpproto: forward rw_timeout to tcp proto

2023-07-20 Thread Martin Storsjö
On Thu, 20 Jul 2023, Timo Rothenpieler wrote: On 20.07.2023 22:47, Martin Storsjö wrote: On Thu, 20 Jul 2023, Timo Rothenpieler wrote: --- libavformat/rtmpproto.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) Hmm, I would have somewhat expected that rw_timeout should be

Re: [FFmpeg-devel] [PATCH] avformat/rtmpproto: forward rw_timeout to tcp proto

2023-07-20 Thread Timo Rothenpieler
On 20.07.2023 22:47, Martin Storsjö wrote: On Thu, 20 Jul 2023, Timo Rothenpieler wrote: --- libavformat/rtmpproto.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) Hmm, I would have somewhat expected that rw_timeout should be honored here already... Note that URLContext

Re: [FFmpeg-devel] [PATCH] avformat/rtmpproto: forward rw_timeout to tcp proto

2023-07-20 Thread Martin Storsjö
On Thu, 20 Jul 2023, Timo Rothenpieler wrote: --- libavformat/rtmpproto.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) Hmm, I would have somewhat expected that rw_timeout should be honored here already... Note that URLContext already has got a rw_timeout field and

Re: [FFmpeg-devel] [PATCH 46/47] fftools/ffprobe: stop calling exit_program()

2023-07-20 Thread Marton Balint
On Sat, 15 Jul 2023, Anton Khirnov wrote: Inline the relevant part of ffprobe_cleanup() into main() and drop the rest. --- fftools/ffprobe.c | 22 -- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index

[FFmpeg-devel] [PATCH 10/13] fftools/ffplay: stop injecting stream side data in packets

2023-07-20 Thread James Almer
This is no longer needed as the side data is available for decoders in the AVCodecContext. Signed-off-by: James Almer --- fftools/ffplay.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fftools/ffplay.c b/fftools/ffplay.c index c123511027..e902ba0f6b 100644 --- a/fftools/ffplay.c +++

[FFmpeg-devel] [PATCH 09/13] fftools/ffmpeg: stop injecting stream side data in packets

2023-07-20 Thread James Almer
This is no longer needed as the side data is available for decoders in the AVCodecContext. The tests affected reflect the removal of useless CPB and Stereo 3D side data in packets. Signed-off-by: James Almer --- fftools/ffmpeg_demux.c| 22 ---

[FFmpeg-devel] [PATCH 13/13] fftools: stop propagating the encoder's coded_side_data

2023-07-20 Thread James Almer
It's no longer needed Signed-off-by: James Almer --- fftools/ffmpeg_enc.c | 14 -- 1 file changed, 14 deletions(-) diff --git a/fftools/ffmpeg_enc.c b/fftools/ffmpeg_enc.c index f12024dff5..7efbfdafb3 100644 --- a/fftools/ffmpeg_enc.c +++ b/fftools/ffmpeg_enc.c @@ -423,20 +423,6 @@

[FFmpeg-devel] [PATCH 08/13] avcodec/decode: check for global side data in AVCodecContext side data

2023-07-20 Thread James Almer
Signed-off-by: James Almer --- libavcodec/decode.c | 56 + libavcodec/decode.h | 2 +- 2 files changed, 47 insertions(+), 11 deletions(-) diff --git a/libavcodec/decode.c b/libavcodec/decode.c index f0e6acc03e..66506b6dfb 100644 ---

[FFmpeg-devel] [PATCH 12/13] avformat/demux: stop copying the internal AVCodecContext coded_side_data

2023-07-20 Thread James Almer
It's no longer needed Signed-off-by: James Almer --- libavformat/demux.c | 16 1 file changed, 16 deletions(-) diff --git a/libavformat/demux.c b/libavformat/demux.c index 7253196a82..24bc8fce2a 100644 --- a/libavformat/demux.c +++ b/libavformat/demux.c @@ -2432,19 +2432,6 @@

[FFmpeg-devel] [PATCH 07/13] avcodec/hevcdec: check for DOVI configuration record in AVCodecContext side data

2023-07-20 Thread James Almer
Signed-off-by: James Almer --- libavcodec/hevcdec.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c index fcf19b4eb6..0d659e4c55 100644 --- a/libavcodec/hevcdec.c +++ b/libavcodec/hevcdec.c @@ -3403,8 +3403,12 @@ static

[FFmpeg-devel] [PATCH 11/13] avcodec/avcodec: deprecate coded_side_data

2023-07-20 Thread James Almer
In favor of AVCodecContext.side_data_set Signed-off-by: James Almer --- libavcodec/avcodec.c | 34 ++ libavcodec/avcodec.h | 7 ++- libavcodec/utils.c | 24 +--- libavcodec/version_major.h | 1 + 4 files changed, 50

[FFmpeg-devel] [PATCH 06/13] fftools/ffprobe: stop using AVStream.side_data

2023-07-20 Thread James Almer
Signed-off-by: James Almer --- fftools/ffprobe.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index a39185f6fe..b60fd8eb1f 100644 --- a/fftools/ffprobe.c +++ b/fftools/ffprobe.c @@ -3186,8 +3186,9 @@ static int

[FFmpeg-devel] [PATCH 05/13] fftools/ffplay: stop using AVStream.side_data

2023-07-20 Thread James Almer
Signed-off-by: James Almer --- fftools/ffplay.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/fftools/ffplay.c b/fftools/ffplay.c index 5212ad053e..c123511027 100644 --- a/fftools/ffplay.c +++ b/fftools/ffplay.c @@ -1904,8 +1904,12 @@ static int

[FFmpeg-devel] [PATCH 04/13] fftools/ffmpeg: stop using AVStream.side_data

2023-07-20 Thread James Almer
Signed-off-by: James Almer --- fftools/ffmpeg_demux.c| 11 +++ fftools/ffmpeg_enc.c | 25 + fftools/ffmpeg_filter.c | 5 - fftools/ffmpeg_mux_init.c | 16 4 files changed, 32 insertions(+), 25 deletions(-) diff --git

[FFmpeg-devel] [PATCH 03/13] avformat/avformat: use the side data from AVStream.codecpar

2023-07-20 Thread James Almer
Signed-off-by: James Almer --- libavdevice/android_camera.c | 6 +-- libavformat/avformat.c | 42 - libavformat/avformat.h | 28 ++ libavformat/concatdec.c | 1 - libavformat/dashdec.c| 11 -- libavformat/demux.c | 40

[FFmpeg-devel] [PATCH 02/13] avcodec/codec_par: add side data to AVCodecParameters

2023-07-20 Thread James Almer
Signed-off-by: James Almer --- libavcodec/codec_par.c | 36 libavcodec/codec_par.h | 6 ++ 2 files changed, 42 insertions(+) diff --git a/libavcodec/codec_par.c b/libavcodec/codec_par.c index 775c187073..c113cfcd80 100644 --- a/libavcodec/codec_par.c

[FFmpeg-devel] [PATCH 01/13] avcodec/avcodec: add side data to AVCodecContext

2023-07-20 Thread James Almer
Signed-off-by: James Almer --- libavcodec/avcodec.c | 2 ++ libavcodec/avcodec.h | 8 + libavcodec/avpacket.c | 84 +++ libavcodec/packet.h | 54 4 files changed, 148 insertions(+) diff --git a/libavcodec/avcodec.c

Re: [FFmpeg-devel] [PATCH 5/5] fftools/ffmpeg: support applying container level cropping

2023-07-20 Thread James Almer
On 7/20/2023 4:31 PM, Anton Khirnov wrote: Quoting James Almer (2023-07-20 21:25:02) On 7/20/2023 4:08 PM, Anton Khirnov wrote: Quoting James Almer (2023-07-20 00:20:43) diff --git a/fftools/ffmpeg_enc.c b/fftools/ffmpeg_enc.c index 8b750de4e5..3cf29c8b2c 100644 --- a/fftools/ffmpeg_enc.c +++

Re: [FFmpeg-devel] [PATCH 5/5] fftools/ffmpeg: support applying container level cropping

2023-07-20 Thread Anton Khirnov
Quoting James Almer (2023-07-20 21:25:02) > On 7/20/2023 4:08 PM, Anton Khirnov wrote: > > Quoting James Almer (2023-07-20 00:20:43) > >> diff --git a/fftools/ffmpeg_enc.c b/fftools/ffmpeg_enc.c > >> index 8b750de4e5..3cf29c8b2c 100644 > >> --- a/fftools/ffmpeg_enc.c > >> +++

Re: [FFmpeg-devel] [PATCH 5/5] fftools/ffmpeg: support applying container level cropping

2023-07-20 Thread James Almer
On 7/20/2023 4:08 PM, Anton Khirnov wrote: Quoting James Almer (2023-07-20 00:20:43) diff --git a/fftools/ffmpeg_enc.c b/fftools/ffmpeg_enc.c index 8b750de4e5..3cf29c8b2c 100644 --- a/fftools/ffmpeg_enc.c +++ b/fftools/ffmpeg_enc.c @@ -441,14 +441,16 @@ int enc_open(OutputStream *ost, AVFrame

Re: [FFmpeg-devel] [PATCH] configure: use just the pkg-config for sndio

2023-07-20 Thread Brad Smith
On 7/7/2023 3:16 PM, Brad Smith wrote: On 2023-07-01 2:58 p.m., Brad Smith wrote: On 2023-06-23 7:36 p.m., Brad Smith wrote: On 2023-06-23 7:35 p.m., Michael Niedermayer wrote: On Fri, Jun 23, 2023 at 06:56:30PM -0400, Brad Smith wrote: On 2023-06-23 6:55 p.m., Michael Niedermayer wrote: On

Re: [FFmpeg-devel] [PATCH 5/5] fftools/ffmpeg: support applying container level cropping

2023-07-20 Thread Anton Khirnov
Quoting James Almer (2023-07-20 00:20:43) > diff --git a/fftools/ffmpeg_enc.c b/fftools/ffmpeg_enc.c > index 8b750de4e5..3cf29c8b2c 100644 > --- a/fftools/ffmpeg_enc.c > +++ b/fftools/ffmpeg_enc.c > @@ -441,14 +441,16 @@ int enc_open(OutputStream *ost, AVFrame *frame) > int i; >

Re: [FFmpeg-devel] [PATCH 0/3] avcodec: move HDR10 (MDCV/CLL) SEI handling to h2645_sei

2023-07-20 Thread Anton Khirnov
Quoting Jan Ekström (2023-07-12 20:32:44) > This allows parsing code to be re-utilized from H.264, as well as probably > from VVC in the future. > > This additionally eases verification of the AVCodecContext side data patch > set, which includes libx264 integration for HDR10 side data. > >

Re: [FFmpeg-devel] [PATCH 01/47] fftools/ffmpeg_mux_init: handle pixel format endianness

2023-07-20 Thread Anton Khirnov
Pushed the set except for deprecating the "smart" pixfmt selection, on which there is no consensus yet. -- Anton Khirnov ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link

[FFmpeg-devel] [PATCH] avformat/rtmpproto: forward rw_timeout to tcp proto

2023-07-20 Thread Timo Rothenpieler
--- libavformat/rtmpproto.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c index f0ef223f05..a18cc78eac 100644 --- a/libavformat/rtmpproto.c +++ b/libavformat/rtmpproto.c @@ -127,6 +127,7 @@ typedef struct

[FFmpeg-devel] [PATCH] libavcodec/amfenc: add smart access video option

2023-07-20 Thread Evgeny Pavlov
This commit adds option for enabling SmartAccess Video (SAV) in AMF encoders. SAV is an AMD hardware-specific feature which enables the parallelization of encode and decode streams across multiple Video Codec Engine (VCN) hardware instances. Signed-off-by: Evgeny Pavlov --- libavcodec/amfenc.h

[FFmpeg-devel] [PATCH] libavcodec/amfenc: add smart access video option

2023-07-20 Thread Evgeny Pavlov
This commit adds option for enabling SmartAccess Video (SAV) in AMF encoders. SmartAccess video - AMD hardware-specific feature which enables the parallelization of encode and decode streams across multiple Video Codec Engine (VCN) hardware instances. Signed-off-by: Evgeny Pavlov ---

Re: [FFmpeg-devel] [PATCH 1/3] avfilter/vf_overlay: Add support for yuv444p10 pixel format

2023-07-20 Thread Tobias Rapp
On 17/07/2023 08:47, Tobias Rapp wrote: On 07/07/2023 14:44, Tobias Rapp wrote: ---   doc/filters.texi |  3 +++   libavfilter/vf_overlay.c | 36 +++-   libavfilter/vf_overlay.h |  1 +   3 files changed, 39 insertions(+), 1 deletion(-) [...] Would like

[FFmpeg-devel] [PATCH 1/1] avfilter/buffersink: Add video frame allocation callback

2023-07-20 Thread John Cox
Add a callback to enable user allocation of video frames on the final stage of a filter chain. Signed-off-by: John Cox --- libavfilter/buffersink.c | 21 + libavfilter/buffersink.h | 27 +++ libavfilter/version.h| 2 +- 3 files changed, 49

[FFmpeg-devel] [PATCH 0/1] avfilter/buffersink: Add user video frame allocation

2023-07-20 Thread John Cox
This patch adds the ability for the user to allocate frames rather than being forced to use avfilters default allocator. This useful for applications like Kodi that wish to be able to control how the final filter stage frame is allocated so that it is compatible with whatever it wishes to do next

[FFmpeg-devel] [PATCH v4 3/3] tests/fate/flvenc: add av1 in enhanced flv test case

2023-07-20 Thread Steven Liu
Signed-off-by: Steven Liu --- tests/fate/flvenc.mak | 4 tests/ref/fate/enhanced-flv-av1 | 32 2 files changed, 36 insertions(+) create mode 100644 tests/ref/fate/enhanced-flv-av1 diff --git a/tests/fate/flvenc.mak b/tests/fate/flvenc.mak index

[FFmpeg-devel] [PATCH v4 2/3] tests/fate/flvenc: add vp9 in enhanced flv test case

2023-07-20 Thread Steven Liu
Signed-off-by: Steven Liu --- tests/fate/flvenc.mak | 4 tests/ref/fate/enhanced-flv-vp9 | 18 ++ 2 files changed, 22 insertions(+) create mode 100644 tests/ref/fate/enhanced-flv-vp9 diff --git a/tests/fate/flvenc.mak b/tests/fate/flvenc.mak index

[FFmpeg-devel] [PATCH v4 1/3] tests/fate/flvenc: add hevc in enhanced flv test case

2023-07-20 Thread Steven Liu
Signed-off-by: Steven Liu --- tests/fate/flvenc.mak| 7 +- tests/ref/fate/enhanced-flv-hevc | 258 +++ 2 files changed, 264 insertions(+), 1 deletion(-) create mode 100644 tests/ref/fate/enhanced-flv-hevc diff --git a/tests/fate/flvenc.mak

[FFmpeg-devel] [PATCH v4 0/3] Add test cases of hevc, vp9, av1 in enhanced flv

2023-07-20 Thread Steven Liu
Steven Liu (3): tests/fate/flvenc: add hevc in enhanced flv test case tests/fate/flvenc: add vp9 in enhanced flv test case tests/fate/flvenc: add av1 in enhanced flv test case tests/fate/flvenc.mak| 15 +- tests/ref/fate/enhanced-flv-av1 | 32

Re: [FFmpeg-devel] [PATCH v3 1/3] tests/fate/flvenc: add hevc in enhanced flv test case

2023-07-20 Thread Andreas Rheinhardt
Steven Liu: > Andreas Rheinhardt 于2023年7月20日周四 16:41写道: >> >> Steven Liu: >>> Andreas Rheinhardt 于2023年7月19日周三 18:32写道: Steven Liu: > Signed-off-by: Steven Liu > --- > tests/fate/flvenc.mak| 7 ++- > tests/ref/fate/enhanced-flv-hevc | 8 >

Re: [FFmpeg-devel] [PATCH v3 1/3] tests/fate/flvenc: add hevc in enhanced flv test case

2023-07-20 Thread Steven Liu
Andreas Rheinhardt 于2023年7月20日周四 16:41写道: > > Steven Liu: > > Andreas Rheinhardt 于2023年7月19日周三 18:32写道: > >> > >> Steven Liu: > >>> Signed-off-by: Steven Liu > >>> --- > >>> tests/fate/flvenc.mak| 7 ++- > >>> tests/ref/fate/enhanced-flv-hevc | 8 > >>> 2 files

Re: [FFmpeg-devel] [PATCH v3 1/3] tests/fate/flvenc: add hevc in enhanced flv test case

2023-07-20 Thread Andreas Rheinhardt
Steven Liu: > Andreas Rheinhardt 于2023年7月19日周三 18:32写道: >> >> Steven Liu: >>> Signed-off-by: Steven Liu >>> --- >>> tests/fate/flvenc.mak| 7 ++- >>> tests/ref/fate/enhanced-flv-hevc | 8 >>> 2 files changed, 14 insertions(+), 1 deletion(-) >>> create mode 100644