Re: [FFmpeg-devel] [PATCH WIP 5/5] avcodec/hevc: Add alpha layer support

2024-12-14 Thread Zhao Zhili
> On Dec 14, 2024, at 17:43, Anton Khirnov wrote: > > Quoting Zhao Zhili (2024-12-11 05:23:33) >> From: Zhao Zhili >> >> --- >> libavcodec/hevc/hevcdec.c | 75 ++- >> libavcodec/hevc/hevcdec.h | 2 ++ >> libavcodec/hevc/refs.c| 10 +- >> 3 files chang

[FFmpeg-devel] [PATCH v2 3/3] avcodec/hevc: Add alpha layer support

2024-12-14 Thread Zhao Zhili
From: Zhao Zhili --- libavcodec/hevc/hevcdec.c | 72 ++- libavcodec/hevc/hevcdec.h | 2 ++ libavcodec/hevc/refs.c| 10 +- 3 files changed, 82 insertions(+), 2 deletions(-) diff --git a/libavcodec/hevc/hevcdec.c b/libavcodec/hevc/hevcdec.c index be35a

[FFmpeg-devel] [PATCH v2 2/3] avcodec/hevc/ps: Add basic HEVC_SCALABILITY_AUXILIARY support

2024-12-14 Thread Zhao Zhili
From: Zhao Zhili Only implementing what's needed for HEVC with alpha. --- libavcodec/hevc/hevc.h | 5 ++ libavcodec/hevc/ps.c | 126 + libavcodec/hevc/ps.h | 4 ++ 3 files changed, 98 insertions(+), 37 deletions(-) diff --git a/libavcodec/hevc/hev

[FFmpeg-devel] [PATCH v2 1/3] avcodec/hevc: Rewrite scalability_mask_flag parse in decode_vps_ext

2024-12-14 Thread Zhao Zhili
From: Zhao Zhili Remove a for loop and make it easy to extend to support other types of scalability. Move ScalabilityMask to hevc header file so it can be used in hevc decoder. --- libavcodec/hevc/hevc.h | 7 +++ libavcodec/hevc/ps.c | 33 +++-- libavcodec/hevc

[FFmpeg-devel] [PATCH v2 0/3] avcodec/hevc: Add alpha video decoding support

2024-12-14 Thread Zhao Zhili
From: Zhao Zhili v2: 1. It works with x265 streams 2. Remove the requirement on SEI. SEI alpha channel information is required on the producer side but not for decoder. Zhao Zhili (3): avcodec/hevc: Rewrite scalability_mask_flag parse in decode_vps_ext avcodec/hevc/ps: Add basic HEVC_SCALABI

Re: [FFmpeg-devel] [PATCH WIP 4/5] avcodec/hevc/sei: Add support for alpha channel information

2024-12-14 Thread Zhao Zhili
> On Dec 14, 2024, at 23:20, James Almer wrote: > > On 12/11/2024 1:23 AM, Zhao Zhili wrote: >> From: Zhao Zhili >> --- >> libavcodec/hevc/sei.c | 30 ++ >> libavcodec/hevc/sei.h | 14 ++ >> 2 files changed, 44 insertions(+) >> diff --git a/libavcodec/

[FFmpeg-devel] (no subject)

2024-12-14 Thread 阿儒
___ 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".

[FFmpeg-devel] [PATCH 2/2] libavcodec/v4l2: use libdrm

2024-12-14 Thread Scott Theisen
Based on patches by Lukas Rusak from https://github.com/lrusak/FFmpeg/commits/v4l2-drmprime-v4 libavcodec: v4l2m2m: output AVDRMFrameDescriptor https://github.com/lrusak/FFmpeg/commit/2cb8052ac65a56d8a3f347a1e6f12d4449a5a614 libavcodec: v4l2m2m: depends on libdrm https://github.com/lrusak/FFmpeg/

[FFmpeg-devel] [PATCH 1/2] libavcodec/v4l2_buffers.c: set AVFrame interlaced flags

2024-12-14 Thread Scott Theisen
Originally from: https://github.com/MythTV/mythtv/commit/669955c6cb29196b4b5120451b5b998d67a65749 --- libavcodec/v4l2_buffers.c | 38 ++ 1 file changed, 38 insertions(+) diff --git a/libavcodec/v4l2_buffers.c b/libavcodec/v4l2_buffers.c index 23474ee143..56a8f0

Re: [FFmpeg-devel] [PATCH WIP 4/5] avcodec/hevc/sei: Add support for alpha channel information

2024-12-14 Thread Zhao Zhili
> On Dec 14, 2024, at 23:20, James Almer wrote: > > On 12/11/2024 1:23 AM, Zhao Zhili wrote: >> From: Zhao Zhili >> --- >> libavcodec/hevc/sei.c | 30 ++ >> libavcodec/hevc/sei.h | 14 ++ >> 2 files changed, 44 insertions(+) >> diff --git a/libavcodec/h

Re: [FFmpeg-devel] [ANNOUNCE] upcoming vote: TC election

2024-12-14 Thread Anton Khirnov
Hi all, this is a reminder that the vote closes some time after Sunday midnight (CET). So far we have just 24 votes out of 52, so please vote ASAP if you have not done so yet. Cheers, -- Anton Khirnov ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.or

Re: [FFmpeg-devel] [PATCH] libavformat/prompeg.c: Add parameters to control FEC ports.

2024-12-14 Thread Romain Beauxis
Le ven. 13 déc. 2024 à 18:07, Kieran Kunhya via ffmpeg-devel a écrit : > > On Fri, 13 Dec 2024, 16:38 Romain Beauxis, wrote: > > > Le ven. 13 déc. 2024 à 16:42, Romain Beauxis > > a écrit : > > > > > > This patch adds parameters to pick specific ports for the two FEC error- > > > correction stre

Re: [FFmpeg-devel] [ANNOUNCE] upcoming vote: TC election

2024-12-14 Thread Gyan Doshi
On 2024-12-14 06:00 pm, Anton Khirnov wrote: Hi all, this is a reminder that the vote closes some time after Sunday midnight (CET). So far we have just 24 votes out of 52, so please vote ASAP if you have not done so yet. The CIVS email says, "The poll has been announced to end 2024-12-17."

Re: [FFmpeg-devel] [ANNOUNCE] upcoming vote: TC election

2024-12-14 Thread Anton Khirnov
Quoting Gyan Doshi (2024-12-14 13:43:52) > > > On 2024-12-14 06:00 pm, Anton Khirnov wrote: > > Hi all, > > this is a reminder that the vote closes some time after Sunday midnight > > (CET). So far we have just 24 votes out of 52, so please vote ASAP if > > you have not done so yet. > > The CIVS

Re: [FFmpeg-devel] [PATCH 0/2] Animated JPEG XL Encoder

2024-12-14 Thread Leo Izen
On 12/11/24 5:32 PM, Marth64 wrote: Hi Leo, In libjxl_anim_encode_frame(): +if (!ctx->prev) { +ret = AVERROR(ENOMEM); +goto end; +} +ret = ff_encode_get_frame(avctx, ctx->prev); +if (ret == AVERROR(EAGAIN) || ret == AVERROR_EOF) +

Re: [FFmpeg-devel] [PATCH WIP 4/5] avcodec/hevc/sei: Add support for alpha channel information

2024-12-14 Thread James Almer
On 12/11/2024 1:23 AM, Zhao Zhili wrote: From: Zhao Zhili --- libavcodec/hevc/sei.c | 30 ++ libavcodec/hevc/sei.h | 14 ++ 2 files changed, 44 insertions(+) diff --git a/libavcodec/hevc/sei.c b/libavcodec/hevc/sei.c index e11a33773c..56983fe96e 1006

Re: [FFmpeg-devel] [PATCH v2 0/3] Make fate tests succeed with zlib-ng

2024-12-14 Thread James Almer
On 12/14/2024 7:09 AM, Anton Khirnov wrote: Quoting Alexander Strasser via ffmpeg-devel (2024-12-01 21:13:56) This is a fixed up version of the series I sent before. This worked for me on Ubuntu 20.04 but probably will break with older zlib versions as Hendrik pointed out in the previous thread

Re: [FFmpeg-devel] [PATCH] checkasm: Print benchmarks of C-only functions

2024-12-14 Thread Alexander Strasser via ffmpeg-devel
Hi Martin! On 2024-12-11 10:47 +0200, Martin Storsjö wrote: > On Wed, 23 Oct 2024, Martin Storsjö wrote: > > > This corresponds to commit 9278a14cf406f8edb5052c42b83750112bf5b515 > > in dav1d. > > > > Omitting the C-only functions doesn't speed up benchmarking > > anyway (as those has to be benchm

Re: [FFmpeg-devel] [PATCH v2 0/3] Make fate tests succeed with zlib-ng

2024-12-14 Thread Alexander Strasser via ffmpeg-devel
On 2024-12-14 11:09 +0100, Anton Khirnov wrote: > Quoting Alexander Strasser via ffmpeg-devel (2024-12-01 21:13:56) > > This is a fixed up version of the series I sent before. > > > > This worked for me on Ubuntu 20.04 but probably will break > > with older zlib versions as Hendrik pointed out in t

Re: [FFmpeg-devel] [PATCH 01/14] avformat/flvenc: implement support for multi-track video

2024-12-14 Thread Anton Khirnov
Quoting Timo Rothenpieler (2024-12-13 20:17:07) > I intend to push this series soon. > It's been tested to work, and no major changes to the spec have happened. Some tests sure would be nice. -- Anton Khirnov ___ ffmpeg-devel mailing list ffmpeg-devel@

Re: [FFmpeg-devel] [PATCH WIP 0/5] avcodec/hevc: Add alpha video decoding support

2024-12-14 Thread Anton Khirnov
Quoting Zhao Zhili (2024-12-11 05:23:20) > From: Zhao Zhili > > What works: > > 1. Create a sample with macOS videotoolbox > ffmpeg -i base.mp4 -i alpha.mp4 \ > -c:v hevc_videotoolbox -alpha_quality 0.5 -b:v 2M \ >-filter_complex > '[0:v]scale,format=bgra[v0];[1:v]scale=640x480,fo

Re: [FFmpeg-devel] [PATCH WIP 5/5] avcodec/hevc: Add alpha layer support

2024-12-14 Thread Anton Khirnov
Quoting Zhao Zhili (2024-12-11 05:23:33) > From: Zhao Zhili > > --- > libavcodec/hevc/hevcdec.c | 75 ++- > libavcodec/hevc/hevcdec.h | 2 ++ > libavcodec/hevc/refs.c| 10 +- > 3 files changed, 85 insertions(+), 2 deletions(-) > > diff --git a/libavc

Re: [FFmpeg-devel] [PATCH] libavcodec/mpeg12dec.c: append CC data to a53_buf_ref

2024-12-14 Thread Anton Khirnov
Quoting Scott Theisen (2024-12-14 04:06:45) > On 12/13/24 17:39, Marth64 wrote: > > Hi Scott, > > > > Thanks for sharing this. I had read your original email also > > ([RFC] libavcodec/mpeg12dec.c: CC data from skipped frames) > > and was thinking about the statement. The patch helps > > visualize

Re: [FFmpeg-devel] [PATCH 04/14] avformat/flvenc: remove !size check for audio packets

2024-12-14 Thread Anton Khirnov
This could use some explanation. -- Anton Khirnov ___ 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 "unsubscrib

Re: [FFmpeg-devel] [PATCH 02/14] avformat/flvdec: add support for demuxing multi-track FLV

2024-12-14 Thread Anton Khirnov
Quoting Timo Rothenpieler (2024-12-12 20:55:27) > From: Dennis Sädtler > > Based on enhanced-rtmp v2 spec published by Veovera: > https://veovera.github.io/enhanced-rtmp/docs/enhanced/enhanced-rtmp-v2 > > Signed-off-by: Dennis Sädtler > --- > libavformat/flvdec.c | 117

Re: [FFmpeg-devel] [PATCH WIP 4/5] avcodec/hevc/sei: Add support for alpha channel information

2024-12-14 Thread Anton Khirnov
Quoting Zhao Zhili (2024-12-11 05:23:31) > @@ -95,6 +96,18 @@ typedef struct HEVCSEITDRDI { > uint8_t three_dimensional_reference_displays_extension_flag; > } HEVCSEITDRDI; > > +typedef struct HEVCSEIAlphaChannelInfo { > +bool has_alpha_channel_info; > +uint8_t alpha_channel_ca

Re: [FFmpeg-devel] [PATCH] avutil/file: fix av_file_map file mapping on Windows

2024-12-14 Thread Anton Khirnov
Quoting Kacper Michajłow (2024-12-09 20:20:02) > This makes the behavior of av_file_map() the same on Windows as it is on > other platforms. The file is opened as read-only, but the mapping is > copy-on-write, allowing the user to write to the memory pages returned > by av_file_map(). > > This com

Re: [FFmpeg-devel] [PATCH] libavfilter/af_amix: fixed amix format when graph load

2024-12-14 Thread Anton Khirnov
> libavfilter/af_amix: fixed amix format when graph load This needs a better explanation of what is being done and why. -- Anton Khirnov ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscr

Re: [FFmpeg-devel] [PATCH v2 0/3] Make fate tests succeed with zlib-ng

2024-12-14 Thread Anton Khirnov
Quoting Alexander Strasser via ffmpeg-devel (2024-12-01 21:13:56) > This is a fixed up version of the series I sent before. > > This worked for me on Ubuntu 20.04 but probably will break > with older zlib versions as Hendrik pointed out in the > previous thread. Either we must update zlib on affec

Re: [FFmpeg-devel] [PATCH] libavcodec/mpeg12dec.c: append CC data to a53_buf_ref

2024-12-14 Thread Scott Theisen
On 12/14/24 04:12, Anton Khirnov wrote: Quoting Scott Theisen (2024-12-14 04:06:45) On 12/13/24 17:39, Marth64 wrote: Hi Scott, Thanks for sharing this. I had read your original email also ([RFC] libavcodec/mpeg12dec.c: CC data from skipped frames) and was thinking about the statement. The pat

Re: [FFmpeg-devel] [PATCH 04/14] avformat/flvenc: remove !size check for audio packets

2024-12-14 Thread Timo Rothenpieler
On 14.12.2024 10:16, Anton Khirnov wrote: This could use some explanation. I unfortunately don't remember the exact reason, but it ran into this check in normal operation, and empty audio packets are a perfectly valid thing to package. I think Opus or something generates them? __

Re: [FFmpeg-devel] [PATCH] libavcodec/mpeg12dec.c: append CC data to a53_buf_ref

2024-12-14 Thread Scott Theisen
On 12/14/24 00:39, Marth64 wrote: This makes sense to me now. I think it makes more sense to follow the A53 approach and be consistent. May I suggest the following in the patch to also improve readability in this crowded area of code: - SCTE-20 section: as you are declaring `cap` to be `s1->a53

Re: [FFmpeg-devel] [PATCH 02/14] avformat/flvdec: add support for demuxing multi-track FLV

2024-12-14 Thread Timo Rothenpieler
On 14.12.2024 10:17, Anton Khirnov wrote: Quoting Timo Rothenpieler (2024-12-12 20:55:27) From: Dennis Sädtler Based on enhanced-rtmp v2 spec published by Veovera: https://veovera.github.io/enhanced-rtmp/docs/enhanced/enhanced-rtmp-v2 Signed-off-by: Dennis Sädtler --- libavformat/flvdec.c

[FFmpeg-devel] [PATCH v2] libavcodec/mpeg12dec.c: append CC data to a53_buf_ref

2024-12-14 Thread Scott Theisen
In mpeg_decode_a53_cc() only the A/53 part 4 CC data ("GA94") is saved between frames. The other formats incorrectly created a larger buffer than they use since a705bcd763e344fac191e157ffeddc285388b7fa because they did not append to the previous data. A/53 and SCTE-20 specify a maximum of one CC

[FFmpeg-devel] [PATCH v2 1/2] libavcodec: add AV_CODEC_ID_IVTV_VBI

2024-12-14 Thread Scott Theisen
--- doc/APIchanges | 3 +++ libavcodec/codec_desc.c | 6 ++ libavcodec/codec_id.h | 1 + libavcodec/version.c| 2 +- 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/doc/APIchanges b/doc/APIchanges index b9af3de933..8fc55ad80b 100644 --- a/doc/APIchanges +++ b/doc/

[FFmpeg-devel] [PATCH v2 2/2] libavcodec/mpeg.c: demux ivtv captions

2024-12-14 Thread Scott Theisen
The packet starts 'IVT0' or 'ivt0'; for more details see https://github.com/MythTV/mythtv/blob/master/mythtv/libs/libmythtv/decoders/avformatdecoder.cpp 'I' = 0x49, 'i' = 0x69 --- libavformat/mpeg.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c inde

[FFmpeg-devel] [PATCH 2/4] avcodec: set AV_FRAME_FLAG_LOSSLESS where supported

2024-12-14 Thread Marton Balint
Signed-off-by: Marton Balint --- libavcodec/jpeg2000dec.c | 4 libavcodec/mjpegdec.c| 2 ++ libavcodec/vp9.c | 4 libavcodec/webp.c| 1 + 4 files changed, 11 insertions(+) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index 84eebfd1b2..df13bea815

[FFmpeg-devel] [PATCH 1/4] avcodec/frame: add AV_FRAME_FLAG_LOSSLESS

2024-12-14 Thread Marton Balint
Signed-off-by: Marton Balint --- doc/APIchanges | 3 +++ libavcodec/version.h | 2 +- libavutil/frame.h| 4 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/APIchanges b/doc/APIchanges index 3a75b803a9..bfba0946d3 100644 --- a/doc/APIchanges +++ b/doc/APIchanges @@

[FFmpeg-devel] [PATCH 4/4] avcodec: deprecate AVCodecContext properties

2024-12-14 Thread Marton Balint
These properties are unreliable because they depend on the frames decoded so far, users should check directly the presence of the decoded AVFrame side data or AVFrame flags. Signed-off-by: Marton Balint --- doc/APIchanges | 3 +++ libavcodec/av1dec.c| 8 libavcodec/a

Re: [FFmpeg-devel] [PATCH 1/4] avcodec/frame: add AV_FRAME_FLAG_LOSSLESS

2024-12-14 Thread 阿儒
a0909518...@gmail.com 於 2024年12月15日 週日,08:03寫道: > Signed-off-by: Marton Balint > --- > doc/APIchanges | 3 +++ > libavcodec/version.h | 2 +- > libavutil/frame.h| 4 > 3 files changed, 8 insertions(+), 1 deletion(-) > > diff --git a/doc/APIchanges b/doc/APIchanges > index 3a75b803