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

2023-08-28 Thread Pavel Koshevoy
On Mon, Aug 28, 2023, 06:38 James Almer wrote: > 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/decod

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

2023-08-28 Thread Wu, Tong1
V7 removed av_d3d12_va_wait_idle from public API Thanks, Tong >-Original Message- >From: Wu, Tong1 >Sent: Tuesday, August 29, 2023 12:10 PM >To: ffmpeg-devel@ffmpeg.org >Cc: Wu Jianhua ; Wu, Tong1 >Subject: [PATCH v7 1/9] libavutil: add hwcontext_d3d12va and >AV_PIX_FMT_D3D12 > >From: W

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

2023-08-28 Thread Tong Wu
From: Wu Jianhua Signed-off-by: Wu Jianhua Signed-off-by: Tong Wu --- Changelog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Changelog b/Changelog index c010e86159..bdac4cb034 100644 --- a/Changelog +++ b/Changelog @@ -30,7 +30,7 @@ version : - support for the P_SKIP hi

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

2023-08-28 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 v7 9/9] avcodec/d3d12va_hevc: enable allow_profile_mismatch flag for d3d12va msp profile

2023-08-28 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 v7 6/9] avcodec: add D3D12VA hardware accelerated MPEG-2 decoding

2023-08-28 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 v7 5/9] avcodec: add D3D12VA hardware accelerated AV1 decoding

2023-08-28 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 v7 4/9] avcodec: add D3D12VA hardware accelerated VP9 decoding

2023-08-28 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 v7 3/9] avcodec: add D3D12VA hardware accelerated HEVC decoding

2023-08-28 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 v7 2/9] avcodec: add D3D12VA hardware accelerated H264 decoding

2023-08-28 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 v7 1/9] libavutil: add hwcontext_d3d12va and AV_PIX_FMT_D3D12

2023-08-28 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

Re: [FFmpeg-devel] [PATCH v4 2/2] avformat/rtmpproto: support enhanced rtmp

2023-08-28 Thread Steven Liu
Marton Balint 于2023年8月29日周二 03:35写道: Hi Marton, > > > > On Mon, 28 Aug 2023, Steven Liu wrote: > > > add option named rtmp_enhanced_codec, > > it would support hvc1,av01,vp09 now, > > the fourcc is using Array of strings. > > > > Signed-off-by: Steven Liu > > --- > > doc/protocols.texi | 11

Re: [FFmpeg-devel] [PATCH] vulkan: fix memory leaks

2023-08-28 Thread Lynne
Aug 26, 2023, 23:55 by d...@lynne.ee: > 9-patch patchset to fix various memory leaks > Pushed. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-deve

Re: [FFmpeg-devel] [PATCH v3 07/12] avutil/frame: add helper for extending a set of side data

2023-08-28 Thread Jan Ekström
On Sun, Aug 20, 2023 at 12:44 PM Andreas Rheinhardt wrote: > > Jan Ekström: > > --- > > libavutil/frame.c | 23 +++ > > libavutil/frame.h | 16 > > 2 files changed, 39 insertions(+) > > > > diff --git a/libavutil/frame.c b/libavutil/frame.c > > index d8910a212

Re: [FFmpeg-devel] [PATCH] avfilter: add libvmaf_cuda

2023-08-28 Thread Kyle Swanson
Hi, On Mon, Aug 28, 2023 at 11:59 AM Timo Rothenpieler wrote: > > +libvmaf_cuda_filter_deps="libvmaf cuda_nvcc" > > Does this really depend on nvcc? > Does it not work with only ffnvcodec? > Ah, you're right, I think ffnvcodec is the right option to use, I'll switch this in the next patch versio

Re: [FFmpeg-devel] [PATCH] avformat/matroskaenc: Fix writing of markers

2023-08-28 Thread Martin Storsjö
On Mon, 28 Aug 2023, Steinar H. Gunderson wrote: When the marker writing code was merged from libav to FFmpeg in dc62016c, it failed to take into account that the meaning of cluster_pos had changed in bda5b662; in particular, the special value for “I'm not currently working on a cluster” had cha

Re: [FFmpeg-devel] [PATCH v4 2/2] avformat/rtmpproto: support enhanced rtmp

2023-08-28 Thread Marton Balint
On Mon, 28 Aug 2023, Steven Liu wrote: add option named rtmp_enhanced_codec, it would support hvc1,av01,vp09 now, the fourcc is using Array of strings. Signed-off-by: Steven Liu --- doc/protocols.texi | 11 +++ libavformat/rtmpproto.c | 34 ++ 2 fi

Re: [FFmpeg-devel] [PATCH] avfilter: add libvmaf_cuda

2023-08-28 Thread Timo Rothenpieler
From f6f0afffadfc5fae97b11b0feb7c1d740b7c86ab Mon Sep 17 00:00:00 2001 From: Kyle Swanson Date: Mon, 28 Aug 2023 11:49:34 -0700 Subject: [PATCH] avfilter: add libvmaf_cuda --- configure| 4 + doc/filters.texi | 26 + libavfilter/Makefile | 1 + libavfilter/a

Re: [FFmpeg-devel] [PATCH] avfilter: add libvmaf_cuda

2023-08-28 Thread Paul B Mahol
On Mon, Aug 28, 2023 at 8:54 PM Kyle Swanson wrote: > Hi, > > Added filter docs, new patch attached. Unless there are any other > reviews I will plan on pushing this in a few days. > Only after at least two main devs reviews and agree to merge. New policy. > Thanks, > Kyle > _

Re: [FFmpeg-devel] [PATCH] avfilter: add libvmaf_cuda

2023-08-28 Thread Kyle Swanson
Hi, Added filter docs, new patch attached. Unless there are any other reviews I will plan on pushing this in a few days. Thanks, Kyle 0001-avfilter-add-libvmaf_cuda.patch Description: Binary data ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org h

[FFmpeg-devel] [PATCH] MULTI VLC decoding boost

2023-08-28 Thread Paul B Mahol
Patches attached. Thanks for kurosu for pointing unmerged branches. The UNCACHED_PATH for x86_32 is broken with this for 2 codecs it touches. Fix is trivial, to be fixed later. From 2feb559ce6384c408a5d5008722b0a20262e976a Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Mon, 28 Aug 2023 12:20:

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

2023-08-28 Thread Michael Niedermayer
On Tue, Aug 22, 2023 at 09:32:28PM +0800, Nuo Mi wrote: > The executor design pattern was inroduced by java inTroduced > > it also adapted by python >

[FFmpeg-devel] [PATCH] avformat/matroskaenc: Fix writing of markers

2023-08-28 Thread Steinar H. Gunderson
When the marker writing code was merged from libav to FFmpeg in dc62016c, it failed to take into account that the meaning of cluster_pos had changed in bda5b662; in particular, the special value for “I'm not currently working on a cluster” had changed from 0 to -1. This makes the avio_write_marker(

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

2023-08-28 Thread James Almer
On 8/28/2023 10:00 AM, Vittorio Giovara wrote: On Mon, Aug 28, 2023 at 2:38 PM James Almer wrote: Signed-off-by: James Almer --- libavcodec/hevcdec.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c index df40c9

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

2023-08-28 Thread Vittorio Giovara
On Mon, Aug 28, 2023 at 2:38 PM James Almer wrote: > Signed-off-by: James Almer > --- > libavcodec/hevcdec.c | 15 ++- > 1 file changed, 14 insertions(+), 1 deletion(-) > > diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c > index df40c91ba6..dabfe89d4a 100644 > --- a/libavco

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

2023-08-28 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 852d1f6282..6ed35f737f 100644 --- a/fftools/ffmpeg_enc.c +++ b/fftools/ffmpeg_enc.c @@ -423,20 +423,6 @@

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

2023-08-28 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 7eada8e9ab..4b8c1bc74d 100644 --- a/libavcodec/decod

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

2023-08-28 Thread James Almer
In favor of AVCodecContext.packet_sd Also reflect the fact the field has been used during decoding for some time now. Signed-off-by: James Almer --- libavcodec/avcodec.c| 28 libavcodec/avcodec.h| 7 --- libavcodec/decode.c | 31 +

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

2023-08-28 Thread James Almer
Signed-off-by: James Almer --- libavcodec/hevcdec.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c index df40c91ba6..dabfe89d4a 100644 --- a/libavcodec/hevcdec.c +++ b/libavcodec/hevcdec.c @@ -3337,8 +3337,15 @@ stat

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

2023-08-28 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 --- tests/ref/fa

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

2023-08-28 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 299d7b16d9..2aebab6f92 100644 --- a/fftools/ffplay.c +++ b/fft

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

2023-08-28 Thread James Almer
Signed-off-by: James Almer --- fftools/ffprobe.c | 30 ++ 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index 4fcfe1164b..28ccb45b26 100644 --- a/fftools/ffprobe.c +++ b/fftools/ffprobe.c @@ -2279,16 +2279,9 @@ st

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

2023-08-28 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 05/12] fftools/ffplay: stop using AVStream.side_data

2023-08-28 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..299d7b16d9 100644 --- a/fftools/ffplay.c +++ b/fftools/ffplay.c @@ -1904,8 +1904,12 @@ static int configure_video_filte

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

2023-08-28 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 a/fftools/ffmp

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

2023-08-28 Thread James Almer
Signed-off-by: James Almer --- libavcodec/codec_par.c | 43 ++ libavcodec/codec_par.h | 6 ++ 2 files changed, 49 insertions(+) diff --git a/libavcodec/codec_par.c b/libavcodec/codec_par.c index a38a475dc7..a932323759 100644 --- a/libavcodec/codec_par

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

2023-08-28 Thread James Almer
Signed-off-by: James Almer --- libavcodec/avcodec.c | 2 + libavcodec/avcodec.h | 8 libavcodec/avpacket.c | 103 ++ libavcodec/packet.h | 64 ++ 4 files changed, 177 insertions(+) diff --git a/libavcodec/avcodec.c b/l

[FFmpeg-devel] [PATCH 00/12 v2] AVCodecContext and AVCodecParameters side data

2023-08-28 Thread James Almer
This is an updated version of the set i sent last month. Changes since the first version: - Renamed the field in AVCodecContext to not conflict with Jan Ekström's patchset introducing a similar struct for frame side data. - AVCodecContext.coded_side_data is now deprecated for encoding scenarios

Re: [FFmpeg-devel] [PATCH] avutil/channel_layout: make pre-defined channel layouts C++ friendly

2023-08-28 Thread Tomas Härdin
mån 2023-08-28 klockan 16:13 +0800 skrev zhilizhao(赵志立): > > > > On Aug 20, 2023, at 20:53, Tomas Härdin wrote: > > > > tor 2023-08-17 klockan 22:03 +0800 skrev zhilizhao(赵志立): > > > > > > > > > > On Aug 17, 2023, at 20:57, Tomas Härdin wrote: > > > > > > > > ons 2023-08-16 klockan 23:44 +0

[FFmpeg-devel] [PATCH] avutil/avutil: make AV_TIME_BASE_Q available in C++

2023-08-28 Thread Zhao Zhili
From: Zhao Zhili ISO C++ forbids compound-literals. It's not available with MSVC. This is a known issue from 10 years ago, and that's why there is a av_get_time_base_q(). Since we have no plan to remove AV_TIME_BASE_Q, just make it available in C++. There are multiple choices: 1. Use C++11 synt

Re: [FFmpeg-devel] sending RTSP keep alive even when paused

2023-08-28 Thread Rémi Denis-Courmont
No Le 27 août 2023 17:43:13 GMT+03:00, Tmc Tmc a écrit : >Hi All, >I found a bug in ffmpeg's RTSP implementation. > >The workflow is as follows: > >1. Have a RTSP server that supports Pause. >2. Have ffmpeg play a video from that server (rtsp://:...). >3. Pause the video in ffmpeg. >4. ffmpeg do

Re: [FFmpeg-devel] [PATCH] avutil/channel_layout: make pre-defined channel layouts C++ friendly

2023-08-28 Thread zhilizhao(赵志立)
> On Aug 20, 2023, at 20:53, Tomas Härdin wrote: > > tor 2023-08-17 klockan 22:03 +0800 skrev zhilizhao(赵志立): >> >> >>> On Aug 17, 2023, at 20:57, Tomas Härdin wrote: >>> >>> ons 2023-08-16 klockan 23:44 +0800 skrev Zhao Zhili: From: Zhao Zhili C++ doesn't support designate

[FFmpeg-devel] [PATCH] avformat/mov: add io_order option to disable demuxer level interleave

2023-08-28 Thread Zhao Zhili
From: Zhao Zhili For bad interleaved files, manually interleave multiple tracks at the demuxer level can trigger seeking back and forth, which can be dramatically slow depending on the protocol. Demuxer level interleave can be useless sometimes, e.g., reading mp4 via http and then transcoding/rem

[FFmpeg-devel] [PATCH] avcodec/jpegxl_parser: fix a compile error

2023-08-28 Thread Tong Wu
Compiler: MSVC 14.35.32215 Error type: error C2099: initializer is not a constant Related commit: 0c0dd23 avcodec/jpegxl_parser: add JPEG XL parser Signed-off-by: Tong Wu --- libavcodec/jpegxl_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/jpegxl_parser.c

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

2023-08-28 Thread Wu, Tong1
>-Original Message- >From: ffmpeg-devel On Behalf Of Lynne >Sent: Saturday, August 26, 2023 3:17 AM >To: FFmpeg development discussions and patches de...@ffmpeg.org> >Subject: Re: [FFmpeg-devel] [PATCH v6 1/9] libavutil: add hwcontext_d3d12va >and AV_PIX_FMT_D3D12 > >Aug 25, 2023, 10:49