Re: [FFmpeg-devel] [RFC/PATCH] MV-HEVC decoding

2024-09-14 Thread Anton Khirnov
Quoting Danny Hong (2024-09-13 19:58:53) > Quoting Anton Khirnov (2024-09-13 12:44:55) > > Note that -view_ids is a decoder option and does nothing with > > streamcopy. > > Also, that option is intended for API users, with ffmpeg CLI you should > > be using view specifiers instead. > > Thanks! T

Re: [FFmpeg-devel] [PATCH v2 00/14] aarch64/vvc: Add SIMD

2024-09-14 Thread Nuo Mi
On Thu, Sep 12, 2024 at 6:59 PM Martin Storsjö wrote: > On Thu, 12 Sep 2024, Zhao Zhili wrote: > > > From: Zhao Zhili > > > > Patches 1~9 has been updated according to Martin's review. > > > > Patches 10~14 are new. > > > > I have created a PR on github: > > https://github.com/quink-black/FFmpeg

[FFmpeg-devel] [PATCH] MV-HEVC decoding

2024-09-14 Thread Anton Khirnov
Hi, this second round of the MV-HEVC decoding set should be good enough for inclusion. Changes since the previous set [1] are: * Rebased against master. * Addressed all the review comments. * Now using C23 stdc_trailing_zeros() instead of POSIX-only ffs() (with a fallback for systems lacking stdb

[FFmpeg-devel] [PATCH 02/23] compat: add a fallback implementation of C23 stdbit.h

2024-09-14 Thread Anton Khirnov
From: Rémi Denis-Courmont Header contents taken from VLC commit 7a970a33329c9836d169727ddbaf49a33240d587. Signed-off-by: Anton Khirnov --- compat/stdbit/stdbit.h | 594 + configure | 4 + tests/ref/fate/source | 1 + 3 files changed, 59

[FFmpeg-devel] [PATCH 07/23] lavc/hevc/ps: drop a warning for sps_multilayer_extension_flag

2024-09-14 Thread Anton Khirnov
SPS multilayer extension contains a single flag that we are free to ignore, no reason to print a warning. --- libavcodec/hevc/ps.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavcodec/hevc/ps.c b/libavcodec/hevc/ps.c index 35de26644c..81b3f9cd09 100644 --- a/libavcodec/hevc/ps.c +++ b/l

[FFmpeg-devel] [PATCH 05/23] avcodec/hevc/sei: add support for 3D Reference Displays Information SEI

2024-09-14 Thread Anton Khirnov
From: James Almer Signed-off-by: James Almer Signed-off-by: Anton Khirnov --- libavcodec/hevc/sei.c | 55 +++ libavcodec/hevc/sei.h | 17 + 2 files changed, 72 insertions(+) diff --git a/libavcodec/hevc/sei.c b/libavcodec/hevc/sei.c index b5

[FFmpeg-devel] [PATCH 01/23] compat: drop gcc, suncc, and pthreads stdatomic emulation

2024-09-14 Thread Anton Khirnov
Since we now require a C11-compliant compiler, there should be no supported configurations where any of these is used. --- compat/atomics/gcc/stdatomic.h | 173 - compat/atomics/pthread/stdatomic.c | 39 -- compat/atomics/pthread/stdatomic.h | 197 -

[FFmpeg-devel] [PATCH 10/23] lavc/hevcdec/parse: process NALUs with nuh_layer_id>0

2024-09-14 Thread Anton Khirnov
Otherwise parameter sets from extradata with nuh_layer_id>0 would be ignored. Needed for upcoming MV-HEVC support. --- libavcodec/hevc/parse.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libavcodec/hevc/parse.c b/libavcodec/hevc/parse.c index ad84b7b152..29f21a5966 100644 --- a/libavcode

[FFmpeg-devel] [PATCH 14/23] avcodec/decode: split ProgressFrame allocator into two functions

2024-09-14 Thread Anton Khirnov
From: James Almer Signed-off-by: James Almer Signed-off-by: Anton Khirnov --- libavcodec/decode.c| 11 +++ libavcodec/progressframe.h | 16 ++-- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/libavcodec/decode.c b/libavcodec/decode.c index 27dba8a1f

[FFmpeg-devel] [PATCH 16/23] avcodec/hevc/refs: export Stereo 3D side data

2024-09-14 Thread Anton Khirnov
From: James Almer Use the 3D Reference Displays Info SEI message to link a view_id with an eye. Signed-off-by: James Almer --- libavcodec/hevc/hevcdec.c | 1 + libavcodec/hevc/refs.c| 19 +++ 2 files changed, 20 insertions(+) diff --git a/libavcodec/hevc/hevcdec.c b/libav

[FFmpeg-devel] [PATCH 19/23] fftools/ffmpeg: add support for multiview video

2024-09-14 Thread Anton Khirnov
This extends the syntax for specifying input streams in -map and complex filtergraph labels, to allow selecting a view by view ID, index, or position. The corresponding decoder is then set up to decode the appropriate view and send frames for that view to the correct filtergraph input(s). --- doc/

[FFmpeg-devel] [PATCH 08/23] lavc/hevc/ps: implement SPS parsing for nuh_layer_id>0

2024-09-14 Thread Anton Khirnov
Cf. F.7.3.2.2 "Sequence parameter set RBSP syntax", which extends normal SPS parsing with special clauses depending on MultiLayerExtSpsFlag. --- libavcodec/hevc/hevcdec.c | 2 +- libavcodec/hevc/parse.c | 3 +- libavcodec/hevc/parser.c | 2 +- libavcodec/hevc/ps.c | 65 +

[FFmpeg-devel] [PATCH 06/23] lavc/hevc_ps: parse VPS extension

2024-09-14 Thread Anton Khirnov
From: Niklas Haas Only implementing what's needed for MV-HEVC with two views. Signed-off-by: Anton Khirnov --- libavcodec/hevc/hevc.h | 9 +- libavcodec/hevc/ps.c | 307 +++-- libavcodec/hevc/ps.h | 62 + 3 files changed, 364 insertions(+), 14

[FFmpeg-devel] [PATCH 09/23] lavc/hevc/ps: reindent

2024-09-14 Thread Anton Khirnov
--- libavcodec/hevc/ps.c | 178 +-- 1 file changed, 89 insertions(+), 89 deletions(-) diff --git a/libavcodec/hevc/ps.c b/libavcodec/hevc/ps.c index 2d09500278..f18b88489b 100644 --- a/libavcodec/hevc/ps.c +++ b/libavcodec/hevc/ps.c @@ -1185,10 +1185,10 @@

[FFmpeg-devel] [PATCH 11/23] lavc/hevc/parser: only split packets on NALUs with nuh_layer_id=0

2024-09-14 Thread Anton Khirnov
A packet should contain a full access unit, which for multilayer video should contain all the layers. --- libavcodec/hevc/parser.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libavcodec/hevc/parser.c b/libavcodec/hevc/parser.c index 8c7444a162..16b40e2b10 100644 --- a

[FFmpeg-devel] [PATCH 03/23] lavu/frame: add side data storing view ID for multi-view video

2024-09-14 Thread Anton Khirnov
--- doc/APIchanges| 3 +++ fftools/ffprobe.c | 2 ++ libavfilter/vf_showinfo.c | 2 ++ libavutil/frame.c | 1 + libavutil/frame.h | 9 + libavutil/version.h | 2 +- 6 files changed, 18 insertions(+), 1 deletion(-) diff --git a/doc/APIchanges b/doc

[FFmpeg-devel] [PATCH 15/23] lavc/hevcdec: implement decoding MV-HEVC

2024-09-14 Thread Anton Khirnov
At most two layers are supported. Aspects of this work were sponsored by Vimeo and Meta. --- Changelog | 1 + doc/decoders.texi | 45 ++ libavcodec/hevc/hevcdec.c | 332 ++ libavcodec/hevc/hevcdec.h | 34 +++- libavcodec/hevc/ref

[FFmpeg-devel] [PATCH 12/23] lavc/hevcdec: implement slice header parsing for nuh_layer_id>0

2024-09-14 Thread Anton Khirnov
Cf. F.7.3.6.1 "General slice segment header syntax" --- libavcodec/hevc/hevcdec.c | 36 libavcodec/hevc/hevcdec.h | 1 + 2 files changed, 33 insertions(+), 4 deletions(-) diff --git a/libavcodec/hevc/hevcdec.c b/libavcodec/hevc/hevcdec.c index ebe2f5ad11..d3a

[FFmpeg-devel] [PATCH 13/23] lavc/hevc/hevcdec: implement MV-HEVC inter-layer prediction

2024-09-14 Thread Anton Khirnov
The per-frame reference picture set contains two more lists - INTER_LAYER[01]. Assuming at most two layers, INTER_LAYER1 is always empty, but is added anyway for completeness. When inter-layer prediction is enabled, INTER_LAYER0 for the second-layer frame will contain the base-layer frame from the

[FFmpeg-devel] [PATCH 23/23] tests/fate/hevc: add a test for selecting view by position

2024-09-14 Thread Anton Khirnov
Using a real-world iPhone-recorded file. --- tests/fate/hevc.mak | 5 + tests/ref/fate/hevc-mv-position | 32 2 files changed, 37 insertions(+) create mode 100644 tests/ref/fate/hevc-mv-position diff --git a/tests/fate/hevc.mak b/tests/fate/hevc.

[FFmpeg-devel] [PATCH 17/23] fftools/cmdutils: tighten condition for media type stream specifiers

2024-09-14 Thread Anton Khirnov
Require the character indicating media type to be followed by a non-alphanumeric character (or end of string). Needed by future syntax extensions. --- fftools/cmdutils.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c index a

[FFmpeg-devel] [PATCH 20/23] tests/fate/hevc: add MV-HEVC conformance sample tests

2024-09-14 Thread Anton Khirnov
Only those that can be decoded with our implementation, so excluding * C and D - independent layers * G, H, I - more than 2 layers Frame hashes verified against the reference implementation from https://hevc.hhi.fraunhofer.de/svn/svn_3DVCSoftware/ --- tests/fate/hevc.mak |

[FFmpeg-devel] [PATCH 21/23] tests/fate/hevc: add a test for nontrivial values of nuh_layer_id

2024-09-14 Thread Anton Khirnov
Typical files use 0 for the base layer and 1 for the secondary one, but any value for the secondary layer should be supported. --- tests/fate/hevc.mak | 4 tests/ref/fate/hevc-mv-nuh-layer-id | 15 +++ 2 files changed, 19 insertions(+) create mode 100644 tests/re

[FFmpeg-devel] [PATCH 22/23] tests/fate/hevc: add a test for switching between single and multi-view

2024-09-14 Thread Anton Khirnov
--- tests/fate/hevc.mak | 10 ++ tests/ref/fate/hevc-mv-switch | 172 ++ 2 files changed, 182 insertions(+) create mode 100644 tests/ref/fate/hevc-mv-switch diff --git a/tests/fate/hevc.mak b/tests/fate/hevc.mak index df827d821f..2511730edf 100644 --- a

[FFmpeg-devel] [PATCH 18/23] fftools/ffmpeg_sched: allow decoders to have multiple outputs

2024-09-14 Thread Anton Khirnov
Will be useful for multilayer video. --- fftools/ffmpeg_dec.c | 10 ++-- fftools/ffmpeg_demux.c| 2 +- fftools/ffmpeg_filter.c | 4 +- fftools/ffmpeg_mux_init.c | 2 +- fftools/ffmpeg_sched.c| 102 -- fftools/ffmpeg_sched.h| 21 ++-

[FFmpeg-devel] [PATCH 04/23] lavfi/f_select: allow selection based on view ID

2024-09-14 Thread Anton Khirnov
Can be used together with the split filter to decompose multiview video into individual views. --- doc/filters.texi | 3 +++ libavfilter/f_select.c | 9 + 2 files changed, 12 insertions(+) diff --git a/doc/filters.texi b/doc/filters.texi index db2f4b7ea7..428986a1e9 100644 --- a/doc

Re: [FFmpeg-devel] is libswscale maintained?

2024-09-14 Thread Andrew Randrianasulu
ср, 11 сент. 2024 г., 05:44 Stephen Hutchinson : > On 9/10/24 7:45 PM, Andrew Randrianasulu wrote: > > I often saw suggestion to use -vf zscale but this is not default, and > z.img > > upstream seems to be in suspended animation: > > > > https://github.com/sekrit-twc/zimg/issues/207 > > Because th

Re: [FFmpeg-devel] [PATCH 02/23] compat: add a fallback implementation of C23 stdbit.h

2024-09-14 Thread James Almer
On 9/14/2024 7:45 AM, Anton Khirnov wrote: From: Rémi Denis-Courmont Header contents taken from VLC commit 7a970a33329c9836d169727ddbaf49a33240d587. Signed-off-by: Anton Khirnov --- compat/stdbit/stdbit.h | 594 + configure | 4 + tes

Re: [FFmpeg-devel] is libswscale maintained?

2024-09-14 Thread Andrew Randrianasulu
On Wed, Sep 11, 2024 at 12:20 PM Niklas Haas wrote: > > On Wed, 11 Sep 2024 02:45:59 +0300 Andrew Randrianasulu > wrote: > > I can't find entry about it in ffmpeg/MAINTAINERS > > > > bugs meanwhile exist > > > > https://trac.ffmpeg.org/ticket/3345 > > https://trac.ffmpeg.org/ticket/7978 > > Ther

Re: [FFmpeg-devel] [PATCH] lavc/vvc_mc: R-V V avg w_avg

2024-09-14 Thread Rémi Denis-Courmont
Hi, LGTM for the RISC-V side. No clue about the VVC side. ___ 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 "uns

[FFmpeg-devel] [PATCH v2 02/23] compat: add a fallback implementation of C23 stdbit.h

2024-09-14 Thread Anton Khirnov
From: Rémi Denis-Courmont Header contents taken from VLC commit 7a970a33329c9836d169727ddbaf49a33240d587. Signed-off-by: Anton Khirnov --- compat/stdbit/stdbit.h | 596 + configure | 4 + tests/ref/fate/source | 1 + 3 files changed, 60

Re: [FFmpeg-devel] Procedure to enable the Windows on ARM64 FFMPEG Libraries

2024-09-14 Thread Kacper Michajlow
On Thu, 12 Sept 2024 at 09:21, Niranjan Kshatriya (QUIC) wrote: > > Hi team, > > I am working on Windows on ARM application development and wants to execute > FFMPEG on my device. > On FFMPEG download page (Releases * BtbN/FFmpeg-Builds > (github.com)

Re: [FFmpeg-devel] Procedure to enable the Windows on ARM64 FFMPEG Libraries

2024-09-14 Thread Timo Rothenpieler
On 12.09.2024 09:21, Niranjan Kshatriya (QUIC) wrote: Hi team, I am working on Windows on ARM application development and wants to execute FFMPEG on my device. On FFMPEG download page (Releases * BtbN/FFmpeg-Builds (github.com)) "windows on Ar

Re: [FFmpeg-devel] [PATCH 16/23] avcodec/hevc/refs: export Stereo 3D side data

2024-09-14 Thread James Almer
On 9/14/2024 7:45 AM, Anton Khirnov wrote: From: James Almer Use the 3D Reference Displays Info SEI message to link a view_id with an eye. Signed-off-by: James Almer --- libavcodec/hevc/hevcdec.c | 1 + libavcodec/hevc/refs.c| 19 +++ 2 files changed, 20 insertions(+)

Re: [FFmpeg-devel] [PATCH v2] avcodec/vvc: Fix output and unref a frame which isn't decoding yet

2024-09-14 Thread Nuo Mi
Hi Zhili Thank you for the patch. On Fri, Sep 13, 2024 at 2:35 PM Zhao Zhili wrote: > From: Zhao Zhili > > ff_vvc_output_frame is called before actually decoding. It's possible > for ff_vvc_output_frame to select current frame to output. If current > frame is nonref frame, it will be released

Re: [FFmpeg-devel] [PATCH 16/23] avcodec/hevc/refs: export Stereo 3D side data

2024-09-14 Thread James Almer
On 9/14/2024 7:12 PM, James Almer wrote: On 9/14/2024 7:45 AM, Anton Khirnov wrote: From: James Almer Use the 3D Reference Displays Info SEI message to link a view_id with an eye. Signed-off-by: James Almer ---   libavcodec/hevc/hevcdec.c |  1 +   libavcodec/hevc/refs.c    | 19 +

[FFmpeg-devel] [PATCH v3 1/2] avcodec/vvc: Fix output and unref a frame which isn't decoding yet

2024-09-14 Thread Zhao Zhili
From: Zhao Zhili ff_vvc_output_frame is called before actually decoding. It's possible for ff_vvc_output_frame to select current frame to output. If current frame is nonref frame, it will be released by ff_vvc_unref_frame. Fix this by always marking the current frame with VVC_FRAME_FLAG_SHORT_RE

[FFmpeg-devel] [PATCH v3 2/2] fate/vvc: Add a sample which lose frames before b02b411

2024-09-14 Thread Zhao Zhili
From: Zhao Zhili --- sample: 8054b4b8e62c0171476b40206d044590 Hierarchical.bit https://drive.google.com/file/d/1U5WGWeSsMFiEkhsl_vL4NiMma-LLh02t/view?usp=sharing tests/fate/vvc.mak | 1 + tests/ref/fate/vvc-conformance-Hierarchical | 35 + 2 files

Re: [FFmpeg-devel] [PATCH v2] avcodec/vvc: Fix output and unref a frame which isn't decoding yet

2024-09-14 Thread Zhao Zhili
> On Sep 15, 2024, at 08:46, Nuo Mi wrote: > > Hi Zhili > Thank you for the patch. > > > On Fri, Sep 13, 2024 at 2:35 PM Zhao Zhili > wrote: > >> From: Zhao Zhili >> >> ff_vvc_output_frame is called before actually decoding. It's possible >> for ff_vvc_outpu

[FFmpeg-devel] [PATCH v3] libavutil/ppc: Make use of getauxval() and elf_aux_info() on ppc

2024-09-14 Thread Brad Smith
libavutil/ppc: Make use of getauxval() and elf_aux_info() on ppc Modern Linux has getauxval() and FreeBSD/OpenBSD ppc have elf_aux_info(). Signed-off-by: Brad Smith --- v2: adjust to build with older glibc. v3: freebsd/ppc requires machine/cpu.h header for feature flags. libavutil/ppc/cpu.c |