Re: [FFmpeg-devel] [PATCH v10 0/6] Support enhanced flv in FFmpeg

2023-05-30 Thread Neal Gompa
On Mon, May 15, 2023 at 10:41 PM Neal Gompa wrote: > > On Mon, May 15, 2023 at 4:32 AM Steven Liu wrote: > > > > Reference file: > > https://github.com/veovera/enhanced-rtmp/blob/main/enhanced-rtmp-v1.pdf > > The Enhanced flv has been supported by OBS, Simple Realtime Server, > > mpegts.js. > >

Re: [FFmpeg-devel] [PATCH v23 01/10] avcodec/evc: MPEG-5 EVC codec registration

2023-05-30 Thread Dawid Kozinski/Multimedia (PLT) /SRPOL/Staff Engineer/Samsung Electronics
> -Original Message- > From: ffmpeg-devel On Behalf Of James > Almer > Sent: poniedziałek, 29 maja 2023 14:44 > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v23 01/10] avcodec/evc: MPEG-5 EVC > codec registration > > On 5/26/2023 7:30 AM, Dawid Kozinski wrote: > >

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

2023-05-30 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 3d197f2b94..d03feb485d 100644 --- a/Changelog +++ b/Changelog @@ -14,6 +14,7 @@ version : - color_vulkan filter - bwdif_vulkan filte

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

2023-05-30 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 v2 9/9] avcodec/d3d12va_hevc: enable allow_profile_mismatch flag for d3d12va msp profile

2023-05-30 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 v2 6/9] avcodec: add D3D12VA hardware accelerated MPEG-2 decoding

2023-05-30 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 --- configure | 2 + libavcodec/Makefile | 1 + libavcodec/d3d12va_mpeg2.c | 191 libavcode

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

2023-05-30 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 --- configure | 2 + libavcodec/Makefile | 1 + libavcodec/av1dec.c | 10 ++ libavcodec/d3d12va_av1.c| 220 +

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

2023-05-30 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 --- configure | 2 + libavcodec/Makefile | 1 + libavcodec/d3d12va_vp9.c| 176 libavcode

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

2023-05-30 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 --- configure | 2 + libavcodec/Makefile | 1 + libavcodec/d3d12va_hevc.c | 211 libavcode

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

2023-05-30 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 v2 1/9] libavutil: add hwcontext_d3d12va and AV_PIX_FMT_D3D12

2023-05-30 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] avformat/oggparseflac: use the GetByteContext API

2023-05-30 Thread James Almer
All but one read are byte aligned, so there's no point in using the GetBitContext API. Signed-off-by: James Almer --- libavformat/oggparseflac.c | 27 --- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/libavformat/oggparseflac.c b/libavformat/oggparseflac

Re: [FFmpeg-devel] [PATCH v3] decklink: Convert to using avpriv_packet_list functions

2023-05-30 Thread Marton Balint
On Sat, 27 May 2023, Devin Heitmueller wrote: Hello Marton, On Fri, May 12, 2023 at 11:09 AM Devin Heitmueller wrote: The existing DecklinkQueue implementation was using the PacketList structure but wasn't using the standard avpriv_packet_list_get and avpriv_packet_list_put functions. Con

Re: [FFmpeg-devel] [PATCH] avformat/oggparseflac: check init_get_bits' result

2023-05-30 Thread James Almer
On 5/30/2023 6:21 PM, Paul Arzelier wrote: From: Polochon-street Check init_get_bits' result for NULL, to avoid dereferencing a NULL pointer later (CWE-476). Without this, a segfault happens when trying to decode a handcrafted ogg-flac file with an absurdly long (e.g. 268435455 bytes) ogg heade

[FFmpeg-devel] [PATCH] avformat/oggparseflac: check init_get_bits' result

2023-05-30 Thread Paul Arzelier
From: Polochon-street Check init_get_bits' result for NULL, to avoid dereferencing a NULL pointer later (CWE-476). Without this, a segfault happens when trying to decode a handcrafted ogg-flac file with an absurdly long (e.g. 268435455 bytes) ogg header. Thanks to jamrial for basically writing t

Re: [FFmpeg-devel] [PATCH 4/5] lavfi/graphparser: reimplement avfilter_graph_parse* using new API

2023-05-30 Thread Marton Balint
On Fri, 20 Jan 2023, Anton Khirnov wrote: --- libavfilter/graphparser.c | 537 +- 1 file changed, 126 insertions(+), 411 deletions(-) This change makes error messages for parse failures less useful or completely missing. E.g.: ffmpeg -f lavfi -i testsrc

Re: [FFmpeg-devel] [PATCH v2] avformat/imf: clean-up logging * remove log to NULL * remove extraneous logging

2023-05-30 Thread Pierre-Anthony Lemieux
Will apply "soon". On Mon, May 29, 2023 at 9:59 AM wrote: > > From: Pierre-Anthony Lemieux > > --- > libavformat/imf.h | 6 +- > libavformat/imf_cpl.c | 179 +++- > libavformat/imfdec.c| 2 +- > libavformat/tests/imf.c | 4 +- > 4 files chan

Re: [FFmpeg-devel] [PATCH v5] lavc/h264chroma: RISC-V V add motion compensation for 8x8 chroma blocks

2023-05-30 Thread Lynne
May 29, 2023, 05:27 by arnie.ch...@sifive.com: > I think the patch has resolved all the issues raised during the code review. > If there are no further considerations, > may I inquire about who could assist me in pushing the patch? > Sorry for the delay, I thought there were more issues. Patch pu

Re: [FFmpeg-devel] [PATCH] avfilter/vf_colorspace: fix message for missing/incorrect colorspace

2023-05-30 Thread Ronald S. Bultje
Hi, On Tue, May 30, 2023 at 6:29 AM Sami Boukortt < sboukortt-at-google@ffmpeg.org> wrote: > --- > libavfilter/vf_colorspace.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/libavfilter/vf_colorspace.c b/libavfilter/vf_colorspace.c > index 21916b7b7a..852dc11c

Re: [FFmpeg-devel] [PATCH v2] libavfilter: add vf_xfade_vulkan

2023-05-30 Thread Niklas Haas
On Tue, 30 May 2023 03:58:54 +0200 Marvin Scholz wrote: > +static const char transition_fade[] = { > +C(0, void transition(int idx, ivec2 pos, float progress) > ) > +C(0, { > ) > +C(1, vec4 a =

[FFmpeg-devel] [PATCH v2 5/5] aarch64: Add Windows runtime detection of the dotprod instructions

2023-05-30 Thread Martin Storsjö
For Windows, there's no publicly defined constant for checking for the i8mm extension yet. --- libavutil/aarch64/cpu.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/libavutil/aarch64/cpu.c b/libavutil/aarch64/cpu.c index ffb00f6dd2..4b97530240 100644 --- a/libavutil/aarch64/cpu.c

[FFmpeg-devel] [PATCH v2 4/5] aarch64: Add Apple runtime detection of dotprod and i8mm using sysctl

2023-05-30 Thread Martin Storsjö
For now, there's not much value in this since Clang don't support enabling the dotprod or i8mm features with either .arch_extension or .arch (it has to be enabled by the base arch flags passed to the compiler). But it may be supported in the future. --- configure | 2 ++ libavutil/a

[FFmpeg-devel] [PATCH v2 3/5] aarch64: Add Linux runtime cpu feature detection using getauxval(AT_HWCAP)

2023-05-30 Thread Martin Storsjö
Based partially on code by Janne Grunau. --- Updated to use both the direct HWCAP* macros and HWCAP_CPUID. A not unreasonably old distribution like Ubuntu 20.04 does have HWCAP_CPUID but not HWCAP2_I8MM in the distribution provided headers. Alternatively I guess we could carry our own fallback ha

[FFmpeg-devel] [PATCH v2 2/5] aarch64: Add cpu flags for the dotprod and i8mm extensions

2023-05-30 Thread Martin Storsjö
Set these available if they are available unconditionally for the compiler. --- Fixed the name of the __ARM_FEATURE define used for detecting i8mm. --- libavutil/aarch64/cpu.c | 15 --- libavutil/aarch64/cpu.h | 2 ++ libavutil/cpu.c | 2 ++ libavutil/cpu.h |

[FFmpeg-devel] [PATCH v2 1/5] configure: aarch64: Support assembling the dotprod and i8mm arch extensions

2023-05-30 Thread Martin Storsjö
These are available since ARMv8.4-a and ARMv8.6-a respectively, but can also be available optionally since ARMv8.2-a. Check if ".arch armv8.2-a" and ".arch_extension {dotprod,i8mm}" are supported, and check if the instructions can be assembled. Current clang versions fail to support the dotprod a

Re: [FFmpeg-devel] [PATCH 1/4] configure: aarch64: Support assembling the dotprod and i8mm arch extensions

2023-05-30 Thread Martin Storsjö
On Sun, 28 May 2023, Rémi Denis-Courmont wrote: Le sunnuntaina 28. toukokuuta 2023, 0.34.15 EEST Martin Storsjö a écrit : I guess the alternative would be to just try to set .arch . I was worried that support for e.g. armv8.6-a appeared later in toolchains than support for the individual exten

[FFmpeg-devel] [PATCH] avfilter/vf_colorspace: fix message for missing/incorrect colorspace

2023-05-30 Thread Sami Boukortt
--- libavfilter/vf_colorspace.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavfilter/vf_colorspace.c b/libavfilter/vf_colorspace.c index 21916b7b7a..852dc11c6c 100644 --- a/libavfilter/vf_colorspace.c +++ b/libavfilter/vf_colorspace.c @@ -572,15 +572,15 @@ static i

Re: [FFmpeg-devel] [PATCH] avformat/rtcenc: Add WHIP muxer support for subsecond latency streaming

2023-05-30 Thread Kieran Kunhya
On Mon, 29 May 2023 at 12:51, Steven Liu wrote: > Co-authored-by: winlin > Co-authored-by: yangrtc > Co-authored-by: cloudwebrtc > Co-authored-by: Haibo Chen <495810...@qq.com> > Signed-off-by: Steven Liu > --- > configure|1 + > doc/muxers.texi | 50 + > libav

Re: [FFmpeg-devel] [PATCH v2] avcodec/cbs_vp8: Add support for VP8 codec bitstream READ methods

2023-05-30 Thread Dai, Jianhui J
> -Original Message- > From: ffmpeg-devel On Behalf Of James > Almer > Sent: Monday, May 29, 2023 2:05 AM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v2] avcodec/cbs_vp8: Add support for VP8 > codec bitstream READ methods > > On 5/23/2023 4:19 AM, Dai, Jianhui J

[FFmpeg-devel] [PATCH v3] avcodec/cbs_vp8: Add support for VP8 codec bitstream READ methods

2023-05-30 Thread Dai, Jianhui J
This commit adds VP8 into cbs supported codec list, and enables the `trace_headers` bitstream filters to support VP8, besides existing AV1, H.264, H.265 and VP9. It can be useful to debug VP8 stream issues. Only the READ methods `read_unit` and `split_fragment` are implemented, the WRITE methods `

Re: [FFmpeg-devel] [PATCH] libavfilter: add vf_xfade_vulkan

2023-05-30 Thread Paul B Mahol
On Tue, May 30, 2023 at 3:34 AM Marvin Scholz wrote: > This is an initial version of vf_xfade_vulkan based > on vf_xfade_opencl, for now only fade and wipeleft > transitions are supported. > --- > libavfilter/Makefile | 1 + > libavfilter/allfilters.c | 1 + > libavfilter/vf_xf