Re: [FFmpeg-devel] [PATCH] lavd/opengl_enc: fix a compiler error

2023-07-19 Thread Xiang, Haihao
On Wo, 2023-07-19 at 15:54 +0800, Xiang, Haihao wrote: > From: Haihao Xiang > > glcontext was added under CONFIG_SDL2 > > libavdevice/opengl_enc.c: In function ‘opengl_draw’: > libavdevice/opengl_enc.c:1204:15: error: ‘OpenGLContext’ has no member > named ‘glcontext’ > > Signed-off-by: Haihao X

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

2023-07-19 Thread 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 tests/ref/fate/enhance

Re: [FFmpeg-devel] [PATCH 1/3] avcodec: move mastering display colour volume SEI handling to h2645_sei

2023-07-19 Thread Leo Izen
On 7/12/23 14:32, Jan Ekström wrote: This allows this common H.274 SEI to be parsed from both H.264 as well as HEVC, as well as probably from VVC in the future. Generally attempts to keep the original code as similar as possible. FATE test refererence changes only change the order of side data

Re: [FFmpeg-devel] [PATCH 2/2] configure: bump minimum AviSynth+ header version

2023-07-19 Thread Stephen Hutchinson
On 7/16/23 1:12 AM, Stephen Hutchinson wrote: AVISYNTH_INTERFACE_VERSION 10 fell in-between the releases of 3.7.2 and 3.7.3, and is required to be able to read the channel layout information. --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/conf

Re: [FFmpeg-devel] [PATCH 1/2] avisynth: pass audio channel layout

2023-07-19 Thread Stephen Hutchinson
On 7/16/23 1:12 AM, Stephen Hutchinson wrote: --- libavformat/avisynth.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c index b426ac343e..027e8c63f6 100644 --- a/libavformat/avisynth.c +++ b/libavformat/avisynth.c @@ -62,6 +62,7 @@ typ

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

2023-07-19 Thread James Almer
Signed-off-by: James Almer --- fftools/ffmpeg.h | 3 +++ fftools/ffmpeg_dec.c | 33 + fftools/ffmpeg_demux.c | 6 ++ fftools/ffmpeg_enc.c | 6 -- fftools/ffmpeg_opt.c | 3 +++ 5 files changed, 49 insertions(+), 2 deletions(-) diff --git a/f

[FFmpeg-devel] [PATCH 4/5] avformat/matroskaenc: support writing cropping values

2023-07-19 Thread James Almer
Signed-off-by: James Almer --- libavformat/matroskaenc.c | 45 +-- 1 file changed, 38 insertions(+), 7 deletions(-) diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index 41e13b273d..7bfe7b002a 100644 --- a/libavformat/matroskaenc.c +++ b/lib

[FFmpeg-devel] [PATCH 3/5] avformat/matroskadec: export cropping values

2023-07-19 Thread James Almer
Signed-off-by: James Almer --- libavformat/matroskadec.c | 49 +++ 1 file changed, 39 insertions(+), 10 deletions(-) diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 49950956b6..46459b3dc8 100644 --- a/libavformat/matroskadec.c +++ b/li

[FFmpeg-devel] [PATCH 2/5] avformat/dump: print Frame Cropping side data info

2023-07-19 Thread James Almer
Signed-off-by: James Almer --- libavformat/dump.c | 21 + 1 file changed, 21 insertions(+) diff --git a/libavformat/dump.c b/libavformat/dump.c index d31e4c2ec6..b35bbd185f 100644 --- a/libavformat/dump.c +++ b/libavformat/dump.c @@ -427,6 +427,23 @@ static void dump_s12m_tim

[FFmpeg-devel] [PATCH 1/5] avcodec/packet: add a decoded frame cropping side data type

2023-07-19 Thread James Almer
Signed-off-by: James Almer --- libavcodec/packet.h | 14 ++ 1 file changed, 14 insertions(+) diff --git a/libavcodec/packet.h b/libavcodec/packet.h index f28e7e7011..f93f2b6f10 100644 --- a/libavcodec/packet.h +++ b/libavcodec/packet.h @@ -299,6 +299,20 @@ enum AVPacketSideDataType {

Re: [FFmpeg-devel] [PATCH 2/6] checkasm: use pointers for start/stop functions

2023-07-19 Thread Lynne
Jul 19, 2023, 21:56 by r...@remlab.net: > Linux and MacOS kernel performance APIs are not always available. > This introduces function pointers so that we can fall back to other > timing functions (in later changesets). > > If AV_READ_TIME is the only configured timer, then this sticks to > inline

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

2023-07-19 Thread Jan Ekström
On Sat, Jul 15, 2023 at 12:11 PM Jan Ekström wrote: > > On Wed, Jul 12, 2023 at 9:33 PM Jan Ekström wrote: > > > > 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 pa

[FFmpeg-devel] [PATCH 6/6] configure: enable Linux perf on RISC-V by default

2023-07-19 Thread Rémi Denis-Courmont
Now that checkasm can automatically fall back to RDCYCLE, it is safe to enable this for forward compatibility with kernel versions mitigating the "Cycle Drift" side channel attack. Where available, this should also reduce measurement noise, since kernel and hypervisor cycles should no longer be co

[FFmpeg-devel] [PATCH 5/6] checkasm: allow run-time fallback to AV_READ_TIME

2023-07-19 Thread Rémi Denis-Courmont
On Linux RISC-V, depending on kernel version and configuration, the cycle counters may be available: - via Linux perf (as on Arm), - directly with RDCYCLE (which is considered legacy), - neither (if admistratively disabled), or - or both (in legacy compatibility mode). This allows to try Linux per

[FFmpeg-devel] [PATCH 4/6] checkasm: make bench clean-up also a function pointer

2023-07-19 Thread Rémi Denis-Courmont
There are no performance concerns with cleaning up, so might as well indirect it. This incidentally fixes a corner case (and inconsequential) bug whereby the Linux perf descriptor is zero and did not get closed. --- tests/checkasm/checkasm.c | 20 +++- 1 file changed, 11 insertions

[FFmpeg-devel] [PATCH 3/6] checkasm: remove unused variables

2023-07-19 Thread Rémi Denis-Courmont
--- tests/checkasm/checkasm.c | 2 -- tests/checkasm/checkasm.h | 2 -- 2 files changed, 4 deletions(-) diff --git a/tests/checkasm/checkasm.c b/tests/checkasm/checkasm.c index 933d85bac3..987162e6b5 100644 --- a/tests/checkasm/checkasm.c +++ b/tests/checkasm/checkasm.c @@ -522,7 +522,6 @@ static

[FFmpeg-devel] [PATCH 2/6] checkasm: use pointers for start/stop functions

2023-07-19 Thread Rémi Denis-Courmont
Linux and MacOS kernel performance APIs are not always available. This introduces function pointers so that we can fall back to other timing functions (in later changesets). If AV_READ_TIME is the only configured timer, then this sticks to inline assembler since there will be nothing to fall back

[FFmpeg-devel] [PATCH 1/6] checkasm: make perf macros functional

2023-07-19 Thread Rémi Denis-Courmont
This converts the bench/perf start/stop macros into functional macros, and for that to work, take the Linux perf code out of line. --- tests/checkasm/checkasm.c | 24 tests/checkasm/checkasm.h | 36 +--- 2 files changed, 33 insertions(+), 27

[FFmpeg-devel] [PATCHv3 0/6] RISC-V Linux perf run-time enablement

2023-07-19 Thread Rémi Denis-Courmont
Hello, This allows run-time fallback from Linux (or MacOS k)perf to the raw cycle counter. The main purpose is to deal with RISC-V's hard deprecation of RDCYCLE access from userspace, all the while preserving compatibility with existing kernels which do not support Linux perf. This is also

[FFmpeg-devel] [PATCH 1/1] checkasm: improve Linux perf error message

2023-07-19 Thread Rémi Denis-Courmont
Report the failing system call name, as is convention, rather than just a rather unhelpful "syscall". --- tests/checkasm/checkasm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/checkasm/checkasm.c b/tests/checkasm/checkasm.c index 30e2dc6fed..f521d30b7c 100644 --- a/te

[FFmpeg-devel] [PATCH] macos_kperf: fix incomplete prototype

2023-07-19 Thread Rémi Denis-Courmont
--- libavutil/macos_kperf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/macos_kperf.c b/libavutil/macos_kperf.c index 9fc04c6349..9fb047 100644 --- a/libavutil/macos_kperf.c +++ b/libavutil/macos_kperf.c @@ -102,7 +102,7 @@ void ff_kperf_init(void) ff_thr

[FFmpeg-devel] [PATCH] timer: don't leak perf FD if zero

2023-07-19 Thread Rémi Denis-Courmont
--- libavutil/timer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavutil/timer.h b/libavutil/timer.h index 861ba7e9d7..2cd299eca3 100644 --- a/libavutil/timer.h +++ b/libavutil/timer.h @@ -105,9 +105,9 @@ #if CONFIG_LINUX_PERF #define START_TIMER

Re: [FFmpeg-devel] [PATCH 4/7] checkasm: use pointers for start/stop functions

2023-07-19 Thread Rémi Denis-Courmont
Le keskiviikkona 19. heinäkuuta 2023, 0.32.26 EEST Lynne a écrit : > > User-space access to the cycle counter has been deemed a security threat > > due to the Cycle Drift attack, and is disabled as of OpenSBI 1.3. > > > > If FFmpeg does not support Linux perf, FFmpeg will get _no_ performance > >

[FFmpeg-devel] [PATCH v3] vvcdec: add thread executor

2023-07-19 Thread Nuo Mi
The executor design pattern was inroduced by java it also adapted by python Compared to handcrafted thread pool management, it greatly simpli

Re: [FFmpeg-devel] [PATCH v3] vvcdec: add thread executor

2023-07-19 Thread Nuo Mi
On Wed, Jul 19, 2023 at 9:13 PM Nuo Mi wrote: > The executor design pattern was inroduced by java > < > https://docs.oracle.com/en/java/javase/20/docs/api/java.base/java/util/concurrent/Executor.html > > > it also adapted by python > > C

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

2023-07-19 Thread Andreas Rheinhardt
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 tests/ref/fate/enhanced-flv-hevc > > diff --git a/tests/fate/flvenc.mak b/tests/

[FFmpeg-devel] [PATCH v4 7/9] avcodec: add D3D12VA hardware accelerated VC1 decoding

2023-07-19 Thread Tong Wu
From: Wu Jianhua The command below is how to enable d3d12va: ffmpeg -hwaccel d3d12va -i input.mp4 output.mp4 Signed-off-by: Wu Jianhua Signed-off-by: Tong Wu --- configure | 3 + libavcodec/Makefile | 1 + libavcodec/d3d12va_vc1.c| 214 +++

[FFmpeg-devel] [PATCH v4 9/9] avcodec/d3d12va_hevc: enable allow_profile_mismatch flag for d3d12va msp profile

2023-07-19 Thread Tong Wu
Same as d3d11va, this flag enables main still picture profile for d3d12va. User should add this flag when decoding main still picture profile. Signed-off-by: Tong Wu --- libavcodec/d3d12va_hevc.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libavcodec/d3d12va_hevc

[FFmpeg-devel] [PATCH v4 8/9] Changelog: D3D12VA hardware accelerated H264, HEVC, VP9, AV1, MPEG-2 and VC1 decoding

2023-07-19 Thread Tong Wu
From: Wu Jianhua Signed-off-by: Wu Jianhua Signed-off-by: Tong Wu --- Changelog | 1 + 1 file changed, 1 insertion(+) diff --git a/Changelog b/Changelog index 3876082844..457d9fe8c8 100644 --- a/Changelog +++ b/Changelog @@ -25,6 +25,7 @@ version : - Raw VVC bitstream parser, muxer and demux

[FFmpeg-devel] [PATCH v4 6/9] avcodec: add D3D12VA hardware accelerated MPEG-2 decoding

2023-07-19 Thread Tong Wu
From: Wu Jianhua The command below is how to enable d3d12va: ffmpeg -hwaccel d3d12va -i input.mp4 output.mp4 Signed-off-by: Wu Jianhua Signed-off-by: Tong Wu --- configure | 2 + libavcodec/Makefile | 1 + libavcodec/d3d12va_mpeg2.c | 191 +++

[FFmpeg-devel] [PATCH v4 5/9] avcodec: add D3D12VA hardware accelerated AV1 decoding

2023-07-19 Thread Tong Wu
From: Wu Jianhua The command below is how to enable d3d12va: ffmpeg -hwaccel d3d12va -i input.mp4 output.mp4 Signed-off-by: Wu Jianhua Signed-off-by: Tong Wu --- configure | 2 + libavcodec/Makefile | 1 + libavcodec/av1dec.c | 10 ++ libavcodec/d3d12va_

[FFmpeg-devel] [PATCH v4 4/9] avcodec: add D3D12VA hardware accelerated VP9 decoding

2023-07-19 Thread Tong Wu
From: Wu Jianhua The command below is how to enable d3d12va: ffmpeg -hwaccel d3d12va -i input.mp4 output.mp4 Signed-off-by: Wu Jianhua Signed-off-by: Tong Wu --- configure | 2 + libavcodec/Makefile | 1 + libavcodec/d3d12va_vp9.c| 176 +++

[FFmpeg-devel] [PATCH v4 3/9] avcodec: add D3D12VA hardware accelerated HEVC decoding

2023-07-19 Thread Tong Wu
From: Wu Jianhua The command below is how to enable d3d12va: ffmpeg -hwaccel d3d12va -i input.mp4 output.mp4 Signed-off-by: Wu Jianhua Signed-off-by: Tong Wu --- configure | 2 + libavcodec/Makefile | 1 + libavcodec/d3d12va_hevc.c | 211 +++

[FFmpeg-devel] [PATCH v4 2/9] avcodec: add D3D12VA hardware accelerated H264 decoding

2023-07-19 Thread Tong Wu
From: Wu Jianhua The implementation is based on: https://learn.microsoft.com/en-us/windows/win32/medfound/direct3d-12-video-overview With the Direct3D 12 video decoding support, we can render or process the decoded images by the pixel shaders or compute shaders directly without the extra copy ov

[FFmpeg-devel] [PATCH v4 1/9] libavutil: add hwcontext_d3d12va and AV_PIX_FMT_D3D12

2023-07-19 Thread Tong Wu
From: Wu Jianhua Signed-off-by: Wu Jianhua Signed-off-by: Tong Wu --- configure | 5 + doc/APIchanges | 7 + libavutil/Makefile | 3 + libavutil/hwcontext.c | 4 + libavutil/hwcontext.h

[FFmpeg-devel] [PATCH v2] Changelog: Add Support hevc, vp9, av1 codec in enhanced flv format

2023-07-19 Thread Steven Liu
Signed-off-by: Steven Liu --- Changelog | 1 + 1 file changed, 1 insertion(+) diff --git a/Changelog b/Changelog index 3876082844..a3b4cb9703 100644 --- a/Changelog +++ b/Changelog @@ -25,6 +25,7 @@ version : - Raw VVC bitstream parser, muxer and demuxer - Bitstream filter for editing metadata

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

2023-07-19 Thread Steven Liu
Andreas Rheinhardt 于2023年7月18日周二 19:35写道: > > Steven Liu: > > Signed-off-by: Steven Liu > > --- > > tests/fate/flvenc.mak| 11 +++ > > tests/ref/fate/enhanced-flv-hevc | 6 ++ > > 2 files changed, 17 insertions(+) > > create mode 100644 tests/ref/fate/enhanced-flv-hevc

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

2023-07-19 Thread Steven Liu
Michael Niedermayer 于2023年7月18日周二 23:46写道: > > On Tue, Jul 18, 2023 at 07:21:57PM +0800, Steven Liu wrote: > > Signed-off-by: Steven Liu > > --- > > tests/fate/flvenc.mak | 10 ++ > > tests/ref/fate/enhanced-flv-vp9 | 6 ++ > > 2 files changed, 16 insertions(+) > > create

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

2023-07-19 Thread Steven Liu
Signed-off-by: Steven Liu --- tests/fate/flvenc.mak | 4 tests/ref/fate/enhanced-flv-av1 | 8 2 files changed, 12 insertions(+) create mode 100644 tests/ref/fate/enhanced-flv-av1 diff --git a/tests/fate/flvenc.mak b/tests/fate/flvenc.mak index 2012892ef5..9cfe55535e 1006

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

2023-07-19 Thread Steven Liu
Signed-off-by: Steven Liu --- tests/fate/flvenc.mak | 4 tests/ref/fate/enhanced-flv-vp9 | 8 2 files changed, 12 insertions(+) create mode 100644 tests/ref/fate/enhanced-flv-vp9 diff --git a/tests/fate/flvenc.mak b/tests/fate/flvenc.mak index 6b2fbe8c89..2012892ef5 1006

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

2023-07-19 Thread 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 tests/ref/fate/enhanced-flv-hevc diff --git a/tests/fate/flvenc.mak b/tests/fate/flvenc.mak index 5032ff

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

2023-07-19 Thread Steven Liu
v2: remove -threads option and set frames 1 v3: modify test cases use fate-suite samples for remux hevc,vp9,av1 in into flv. 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

[FFmpeg-devel] [PATCH] lavd/opengl_enc: fix a compiler error

2023-07-19 Thread Xiang, Haihao
From: Haihao Xiang glcontext was added under CONFIG_SDL2 libavdevice/opengl_enc.c: In function ‘opengl_draw’: libavdevice/opengl_enc.c:1204:15: error: ‘OpenGLContext’ has no member named ‘glcontext’ Signed-off-by: Haihao Xiang --- libavdevice/opengl_enc.c | 2 +- 1 file changed, 1 insertion(+