Re: [FFmpeg-devel] [PATCH v10 3/6] avformat/flvenc: support mux av1 in enhanced flv

2023-06-02 Thread Steven Liu
Tristan Matthews 于2023年6月2日周五 12:50写道: > > On Mon, May 15, 2023 at 4:43 AM Steven Liu wrote: > > > > Signed-off-by: Steven Liu > > --- > > libavformat/Makefile | 2 +- > > libavformat/flvenc.c | 22 ++ > > 2 files changed, 19 insertions(+), 5 deletions(-) > > > > diff --git

[FFmpeg-devel] [PATCH v11 1/6] avformat/flvenc: support mux hevc in enhanced flv

2023-06-02 Thread Steven Liu
Signed-off-by: Steven Liu --- libavformat/Makefile | 2 +- libavformat/flv.h| 15 +++ libavformat/flvenc.c | 41 +++-- 3 files changed, 47 insertions(+), 11 deletions(-) diff --git a/libavformat/Makefile b/libavformat/Makefile index f8ad7c6a11

[FFmpeg-devel] [PATCH v11 0/6] Support enhanced flv in FFmpeg

2023-06-02 Thread Steven Liu
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. you can publish hevc, av1 or vp9 codec stream to Youtube over rtmp. The enhanced flv documentation contributors include Jean-Baptis

[FFmpeg-devel] [PATCH v11 3/6] avformat/flvenc: support mux av1 in enhanced flv

2023-06-02 Thread Steven Liu
Signed-off-by: Steven Liu --- libavformat/Makefile | 2 +- libavformat/flvenc.c | 22 ++ 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/libavformat/Makefile b/libavformat/Makefile index 1ef3d15467..c868e1626c 100644 --- a/libavformat/Makefile +++ b/libavforma

[FFmpeg-devel] [PATCH v11 2/6] avformat/flvdec: support demux hevc in enhanced flv

2023-06-02 Thread Steven Liu
Signed-off-by: Steven Liu --- libavformat/flvdec.c | 58 ++-- 1 file changed, 50 insertions(+), 8 deletions(-) diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index d83edff727..c8e6cadf1c 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.

[FFmpeg-devel] [PATCH v11 4/6] avformat/flvdec: support demux av1 in enhanced flv

2023-06-02 Thread Steven Liu
Signed-off-by: Steven Liu --- libavformat/flvdec.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index c8e6cadf1c..a0362ff11c 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -318,6 +318,8 @@ static int

[FFmpeg-devel] [PATCH v11 5/6] avformat/flvenc: support mux vp9 in enhanced flv

2023-06-02 Thread Steven Liu
Signed-off-by: Steven Liu --- libavformat/Makefile | 2 +- libavformat/flvenc.c | 22 ++ 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/libavformat/Makefile b/libavformat/Makefile index c868e1626c..16cfe107ea 100644 --- a/libavformat/Makefile +++ b/libavforma

[FFmpeg-devel] [PATCH v11 6/6] avformat/flvdec: support demux vp9 in enhanced flv

2023-06-02 Thread Steven Liu
Signed-off-by: Steven Liu --- libavformat/flvdec.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index a0362ff11c..a6a94a4021 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -320,6 +320,8 @@ static int f

[FFmpeg-devel] [PATCH v1] avformat/ivfenc: Set the "number of frames" in IVF header

2023-06-02 Thread Dai, Jianhui J
Should set "number of frames" to bytes 24-27 of IVF header, not duration. It is described by [1]. Also confirm it by parsing IVF files in [2]. [1] Duck IVF - MultimediaWiki https://wiki.multimedia.cx/index.php/Duck_IVF [2] webm/vp8-test-vectors - Git at Google https://chromium.googlesource.com/we

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

2023-06-02 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 v3 2/9] avcodec: add D3D12VA hardware accelerated H264 decoding

2023-06-02 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 v3 3/9] avcodec: add D3D12VA hardware accelerated HEVC decoding

2023-06-02 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 v3 4/9] avcodec: add D3D12VA hardware accelerated VP9 decoding

2023-06-02 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 v3 5/9] avcodec: add D3D12VA hardware accelerated AV1 decoding

2023-06-02 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 v3 6/9] avcodec: add D3D12VA hardware accelerated MPEG-2 decoding

2023-06-02 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 v3 8/9] Changelog: D3D12VA hardware accelerated H264, HEVC, VP9, AV1, MPEG-2 and VC1 decoding

2023-06-02 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 v3 9/9] avcodec/d3d12va_hevc: enable allow_profile_mismatch flag for d3d12va msp profile

2023-06-02 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 v3 7/9] avcodec: add D3D12VA hardware accelerated VC1 decoding

2023-06-02 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] lavfi/vf_blend_vulkan: fix leak on error

2023-06-02 Thread Marvin Scholz
--- libavfilter/vf_blend_vulkan.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavfilter/vf_blend_vulkan.c b/libavfilter/vf_blend_vulkan.c index 530f4981c2..717efcee41 100644 --- a/libavfilter/vf_blend_vulkan.c +++ b/libavfilter/vf_blend_vulkan.c @@ -249,7 +249,8 @@ stat

Re: [FFmpeg-devel] [PATCH v11 1/6] avformat/flvenc: support mux hevc in enhanced flv

2023-06-02 Thread Lance Wang
On Fri, Jun 2, 2023 at 3:31 PM Steven Liu wrote: > Signed-off-by: Steven Liu > --- > libavformat/Makefile | 2 +- > libavformat/flv.h| 15 +++ > libavformat/flvenc.c | 41 +++-- > 3 files changed, 47 insertions(+), 11 deletions(-) > > diff --

Re: [FFmpeg-devel] [PATCH v11 2/6] avformat/flvdec: support demux hevc in enhanced flv

2023-06-02 Thread Lance Wang
On Fri, Jun 2, 2023 at 3:32 PM Steven Liu wrote: > Signed-off-by: Steven Liu > --- > libavformat/flvdec.c | 58 ++-- > 1 file changed, 50 insertions(+), 8 deletions(-) > > diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c > index d83edff727..c8e6ca

Re: [FFmpeg-devel] [PATCH v11 1/6] avformat/flvenc: support mux hevc in enhanced flv

2023-06-02 Thread Steven Liu
Lance Wang 于2023年6月2日周五 19:09写道: > > On Fri, Jun 2, 2023 at 3:31 PM Steven Liu wrote: > > > Signed-off-by: Steven Liu > > --- > > libavformat/Makefile | 2 +- > > libavformat/flv.h| 15 +++ > > libavformat/flvenc.c | 41 +++-- > > 3 files cha

Re: [FFmpeg-devel] [PATCH] lavc/aarch64: new optimization for 8-bit hevc_pel_uni_w_pixels, qpel_uni_w_h, qpel_uni_w_v, qpel_uni_w_hv and qpel_h

2023-06-02 Thread Logan.Lyu
Hi, Martin, I'm sorry I made a stupid mistake, And it's fixed now. If these patches are acceptable to you, I will submit some similar patches soon. Thanks. 在 2023/6/1 19:23, Martin Storsjö 写道: On Sun, 28 May 2023, Logan.Lyu wrote: 在 2023/5/28 12:36, Jean-Baptiste Kempf 写道: Hello, The

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

2023-06-02 Thread Leo Izen
On 5/26/23 16:55, Leo Izen wrote: Changes from v3: - Use avctx->internal->in_pkt instead of allocating a new packet. Leo Izen (2): avcodec/libjxldec: add animated decode support avformat/jpegxl_anim_dec: add animated JPEG XL demuxer Will rebase onto master and merge soon, if there's n

[FFmpeg-devel] [PATCH] avcodec/cbs: reset the fragment on reading failure

2023-06-02 Thread James Almer
Fixes: NULL pointer dereference Fixes: 59359/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AV1_fuzzer-6726080594313216 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: James Almer --- libavcodec/cbs.c | 18 +-

Re: [FFmpeg-devel] [PATCH v11 1/6] avformat/flvenc: support mux hevc in enhanced flv

2023-06-02 Thread Lance Wang
On Fri, Jun 2, 2023 at 7:29 PM Steven Liu wrote: > Lance Wang 于2023年6月2日周五 19:09写道: > > > > On Fri, Jun 2, 2023 at 3:31 PM Steven Liu wrote: > > > > > Signed-off-by: Steven Liu > > > --- > > > libavformat/Makefile | 2 +- > > > libavformat/flv.h| 15 +++ > > > libavformat/flv

[FFmpeg-devel] [PATCH] lavfi/vf_xfade: rewrite activate inputs handling

2023-06-02 Thread Marvin Scholz
The old code was not properly handling a bunch of edge-cases with streams terminating earlier and also did not properly report back EOF to the first input. This fixes at least one case where the filter could stop doing anything: ffmpeg -f lavfi -i "color=blue:d=10" -f lavfi -i "color=aqua:d=0" -

Re: [FFmpeg-devel] drawtext filter

2023-06-02 Thread Paul B Mahol
On Fri, May 26, 2023 at 2:19 PM Francesco Carusi wrote: > I added a patch specifically to include cosmetic changes. I also removed > the change log section, the forward declarations and improved error > checking. > The changes to the configure file are in a dedicated patch (the last > one: 0009).

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

2023-06-02 Thread Paul B Mahol
On Fri, Jun 2, 2023 at 5:03 PM Leo Izen wrote: > On 5/26/23 16:55, Leo Izen wrote: > > Changes from v3: > > - Use avctx->internal->in_pkt instead of allocating a new packet. > > > > Leo Izen (2): > >avcodec/libjxldec: add animated decode support > >avformat/jpegxl_anim_dec: add animated

Re: [FFmpeg-devel] metadata (.m4a): tag 'tmpo' is not handled

2023-06-02 Thread Leo Izen
On 6/1/23 14:48, Brad Lanam wrote:> The 'tmpo' metadata tag within a .m4a audio file is not recognized by ffmpeg and is never processed or output. Neither the command line interface nor the api returns this tag. You should open an issue on the FFmpeg bug tracker for bug reports: https://tra

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

2023-06-02 Thread Leo Izen
On 6/2/23 13:39, Paul B Mahol wrote: On Fri, Jun 2, 2023 at 5:03 PM Leo Izen wrote: On 5/26/23 16:55, Leo Izen wrote: Changes from v3: - Use avctx->internal->in_pkt instead of allocating a new packet. Leo Izen (2): avcodec/libjxldec: add animated decode support avformat/jpegxl_ani

[FFmpeg-devel] [PATCH v2] lavfi/vf_xfade: rewrite activate inputs handling

2023-06-02 Thread Marvin Scholz
The old code was not properly handling a bunch of edge-cases with streams terminating earlier and also did not properly report back EOF to the first input. This fixes at least one case where the filter could stop doing anything: ffmpeg -f lavfi -i "color=blue:d=10" -f lavfi -i "color=aqua:d=0" -

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/cbs_av1: Clear obu.metadata on error

2023-06-02 Thread Michael Niedermayer
On Thu, Jun 01, 2023 at 09:33:14PM -0300, James Almer wrote: > On 6/1/2023 9:28 PM, Andreas Rheinhardt wrote: > > 1. Before 97f4263, the current_obu was reset (and the packet effectively > > discarded) upon errors from ff_cbs_read_packet(); yet this is no longer > > true and it seems that the conte

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/cbs_av1: Clear obu.metadata on error

2023-06-02 Thread Michael Niedermayer
On Fri, Jun 02, 2023 at 02:28:24AM +0200, Andreas Rheinhardt wrote: > Michael Niedermayer: > > On error pointers can be left NULL while code later assumes these not to be > > NULL > > > > Fixes: NULL pointer dereference > > Fixes: > > 59359/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AV1_f

Re: [FFmpeg-devel] [PATCH v2] lavfi/vf_xfade: rewrite activate inputs handling

2023-06-02 Thread Paul B Mahol
LGTM ___ 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] avformat/av1dec: fix EOF check in Annex-B demuxer

2023-06-02 Thread James Almer
And return any packet buffered by the bsf. Signed-off-by: James Almer --- libavformat/av1dec.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/libavformat/av1dec.c b/libavformat/av1dec.c index 216d4e2298..842dc588ab 100644 --- a/libavformat/av1dec.c +++ b/lib

[FFmpeg-devel] [PATCH] avutil/hwcontext_vulkan: disable multiplane when deriving from cuda

2023-06-02 Thread Philip Langdale
Today, cuda is not able to import multiplane images, and cuda requires images to be imported whether you trying to import to cuda or export from cuda (in the later case, the image is imported and then copied into on the cuda side). So any interop between cuda and vulkan requires that multiplane be

Re: [FFmpeg-devel] [PATCH v11 1/6] avformat/flvenc: support mux hevc in enhanced flv

2023-06-02 Thread Steven Liu
Lance Wang 于2023年6月2日周五 23:52写道: > > On Fri, Jun 2, 2023 at 7:29 PM Steven Liu wrote: > > > Lance Wang 于2023年6月2日周五 19:09写道: > > > > > > On Fri, Jun 2, 2023 at 3:31 PM Steven Liu wrote: > > > > > > > Signed-off-by: Steven Liu > > > > --- > > > > libavformat/Makefile | 2 +- > > > > libavform

[FFmpeg-devel] [PATCH] V2: avutil/hwcontext_vulkan: disable multiplane when deriving from cuda

2023-06-02 Thread Philip Langdale
Today, cuda is not able to import multiplane images, and cuda requires images to be imported whether you trying to import to cuda or export from cuda (in the later case, the image is imported and then copied into on the cuda side). So any interop between cuda and vulkan requires that multiplane be