Re: [FFmpeg-devel] [PATCH 1/2] avcodec/s302m: enable non-PCM decoding

2024-01-22 Thread Kieran Kunhya
On Tue, 23 Jan 2024 at 06:50, Gyan Doshi wrote: > Set up framework for non-PCM decoding in-place and > add support for Dolby-E decoding. > > Useful for direct transcoding of non-PCM audio in live inputs. > Does this handle a Dolby E packet spanning multiple S302M packets? I'm not saying you shou

[FFmpeg-devel] [PATCH 2/2] fate: add tests for dolby_e decoding in s302m

2024-01-22 Thread Gyan Doshi
Three tests, one each for 1) 16-bit Dolby-E words in 20-bits AES3 words 2) 20-bit Dolby-E words in 20-bits AES3 words 3) 20-bit Dolby-E words in 24-bits AES3 words --- tests/fate/acodec.mak | 15 ++ tests/ref/acodec/s302m-20-dolbye-16 | 221 tests/ref/a

[FFmpeg-devel] [PATCH 1/2] avcodec/s302m: enable non-PCM decoding

2024-01-22 Thread Gyan Doshi
Set up framework for non-PCM decoding in-place and add support for Dolby-E decoding. Useful for direct transcoding of non-PCM audio in live inputs. --- configure | 1 + doc/decoders.texi | 40 +++ libavcodec/s302m.c | 609 + 3 files changed

Re: [FFmpeg-devel] [PATCH 8/9] avcodec: add D3D12VA hardware HEVC encoder

2024-01-22 Thread Wu, Tong1
>> >> From: Tong Wu >> >> This implementation is based on D3D12 Video Encoding Spec: >> https://microsoft.github.io/DirectX-Specs/d3d/D3D12VideoEncoding.html >> >> Sample command line for transcoding: >> ffmpeg.exe -hwaccel d3d12va -hwaccel_output_format d3d12 -i input.mp4 >> -c:v hevc_d3d12va out

Re: [FFmpeg-devel] [PATCH 7/9] avutil/hwcontext_d3d12va: add Flags for resource creation

2024-01-22 Thread Wu, Tong1
>From: ffmpeg-devel On Behalf Of Mark >Thompson >Sent: Tuesday, January 23, 2024 5:52 AM >To: ffmpeg-devel@ffmpeg.org >Subject: Re: [FFmpeg-devel] [PATCH 7/9] avutil/hwcontext_d3d12va: add Flags >for resource creation > >On 22/01/2024 05:57, tong1.wu-at-intel@ffmpeg.org wrote: >> From: Tong Wu

[FFmpeg-devel] [PATCH v5] avcodec/cbs_vp8: Use little endian in fixed() and improve the pos check

2024-01-22 Thread Dai, Jianhui J
This commit adds value range checks to cbs_vp8_read_unsigned_le, migrates fixed() to use it, and enforces little-endian consistency for all read methods. The VP8 compressed header may not be byte-aligned due to boolean coding. Use bitwise comparison to prevent the potential overread. TETS: ffmpeg

Re: [FFmpeg-devel] [PATCH] hwcontext_opencl: choose the first device if multiple devices are available

2024-01-22 Thread Xiang, Haihao
On Ma, 2024-01-22 at 20:32 +, Mark Thompson wrote: > On 17/01/2024 07:36, Xiang, Haihao wrote: > > From: Haihao Xiang > > > > This makes '-init_hw_device opencl' work in a multiple-device system. > > Under what circumstances is this more useful than the existing behaviour which > prompts the

Re: [FFmpeg-devel] [PATCH v2 0/1] avfilter/vf_vpp_qsv: apply 3D LUT from file

2024-01-22 Thread Xiang, Haihao
On Sa, 2024-01-20 at 23:14 +0800, Chen Yufei wrote: > This patch adds support for applying 3D LUT from file using oneVPL VPP. > > PATCH v1 uses VA-API to create LUT surface. Because oneVPL can't work with VA- > API on Windows, > this version now creates LUT in system memory (MFX_RESOURCE_SYSTEM_SU

[FFmpeg-devel] [PATCH] avutil/opt: use AVBPrint to print a channel layout in av_opt_get()

2024-01-22 Thread James Almer
A 128 byte buffer may not be enough for some layouts with lots of channels. Signed-off-by: James Almer --- libavutil/opt.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/libavutil/opt.c b/libavutil/opt.c index 0908751752..814b485a15 100644 --- a/libavutil/opt.c

[FFmpeg-devel] [PATCH] avformat/mxfenc: Remove AVERROR²

2024-01-22 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavformat/mxfenc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index 685c11b3a50..c67e8ff9609 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -2656,13 +2656,13 @@ sta

Re: [FFmpeg-devel] [PATCH] liavcodec: add bit-rate support to RoQ video encoder

2024-01-22 Thread Tomas Härdin
tis 2024-01-23 klockan 00:40 +0300 skrev Victor Luchitz: > On Tue, Jan 23, 2024 at 12:12 AM Tomas Härdin wrote: > > > mån 2024-01-22 klockan 22:14 +0300 skrev Victor Luchits: > > > The bitrate option (-b:v) can now be used to specify the bit rate > > > of the video stream of the RoQ encoder. > >

Re: [FFmpeg-devel] [PATCH v3 7/8] avcodec/x86/vvc: add avg and avg_w AVX2 optimizations

2024-01-22 Thread Michael Niedermayer
On Tue, Jan 23, 2024 at 01:46:27AM +0800, toq...@outlook.com wrote: > From: Wu Jianhua > > The avg/avg_w is based on dav1d. > See https://code.videolan.org/videolan/dav1d/-/blob/master/src/x86/mc_avx2.asm > > vvc_avg_8_2x2_c: 71.6 > vvc_avg_8_2x2_avx2: 26.8 > vvc_avg_8_2x4_c: 140.8 > vvc_avg_8_2

Re: [FFmpeg-devel] [PATCH] liavcodec: add bit-rate support to RoQ video encoder

2024-01-22 Thread epirat07
Typo in commit message: liavcodec should be libavcodec On 22 Jan 2024, at 20:14, Victor Luchits wrote: > The bitrate option (-b:v) can now be used to specify the bit rate > of the video stream of the RoQ encoder. > > Original patch by Joseph Fenton aka Chilly Willy > > Signed-off-by: Victor Luchi

[FFmpeg-devel] [PATCH 2/3 v2] avformat/mov: add support for tile HEIF still images

2024-01-22 Thread James Almer
Export each tile as its own stream, and the tiling information as a Stream Group of type TILE_GRID. This also enables exporting other stream items like thumbnails, which may be present in non tiled HEIF images too. For those, the primary stream will be tagged with the default disposition. Based on

Re: [FFmpeg-devel] [PATCH 7/9] avutil/hwcontext_d3d12va: add Flags for resource creation

2024-01-22 Thread Mark Thompson
On 22/01/2024 05:57, tong1.wu-at-intel@ffmpeg.org wrote: From: Tong Wu Flags field is added to support diffferent resource creation. Signed-off-by: Tong Wu --- doc/APIchanges| 3 +++ libavutil/hwcontext_d3d12va.c | 2 +- libavutil/hwcontext_d3d12va.h | 5 + libavu

Re: [FFmpeg-devel] [PATCH] liavcodec: add bit-rate support to RoQ video encoder

2024-01-22 Thread Victor Luchitz
On Tue, Jan 23, 2024 at 12:12 AM Tomas Härdin wrote: > mån 2024-01-22 klockan 22:14 +0300 skrev Victor Luchits: > > The bitrate option (-b:v) can now be used to specify the bit rate > > of the video stream of the RoQ encoder. > > > > Original patch by Joseph Fenton aka Chilly Willy > > > > Signed

Re: [FFmpeg-devel] [vaapi-cavs 7/7] cavs: support vaapi hwaccel decoding

2024-01-22 Thread Mark Thompson
On 21/01/2024 14:18, jianfeng.zheng wrote: see https://github.com/intel/libva/pull/738 Signed-off-by: jianfeng.zheng --- configure | 14 libavcodec/Makefile | 1 + libavcodec/cavs.h | 4 + libavcodec/cavsdec.c | 101 +-- lib

Re: [FFmpeg-devel] [PATCH] configure: autodetect libglslang ldflags

2024-01-22 Thread Martin Storsjö
On Mon, 22 Jan 2024, Lynne wrote: Jan 22, 2024, 07:52 by ffmpeg-devel@ffmpeg.org: Since glslang 14.0.0, OGLCompiler and HLSL stub libraries have been fully removed from the build. This fixes the configuration by detecting if the stub libraries are still present (glslang releases before versio

Re: [FFmpeg-devel] [PATCH] liavcodec: add bit-rate support to RoQ video encoder

2024-01-22 Thread Tomas Härdin
mån 2024-01-22 klockan 22:14 +0300 skrev Victor Luchits: > The bitrate option (-b:v) can now be used to specify the bit rate > of the video stream of the RoQ encoder. > > Original patch by Joseph Fenton aka Chilly Willy > > Signed-off-by: Victor Luchits Still doesn't apply. > +/* Keyframe

[FFmpeg-devel] [PATCH] avformat/mov: ignore item boxes for animated heif

2024-01-22 Thread James Almer
Fixes a regression since d9fed9df2a, where the single animated stream would be exported twice as two independent streams. Signed-off-by: James Almer --- libavformat/isom.h | 1 + libavformat/mov.c | 141 + 2 files changed, 93 insertions(+), 49 delet

Re: [FFmpeg-devel] [PATCH] hwcontext_opencl: choose the first device if multiple devices are available

2024-01-22 Thread Mark Thompson
On 17/01/2024 07:36, Xiang, Haihao wrote: From: Haihao Xiang This makes '-init_hw_device opencl' work in a multiple-device system. Under what circumstances is this more useful than the existing behaviour which prompts the user to select the device they intend? There is no particular orderin

Re: [FFmpeg-devel] [PATCH] liavcodec: add bit-rate support to RoQ video encoder

2024-01-22 Thread Victor Luchitz
I've just posted a new version of the patch that addresses most (if not all) of the comments from previous reviews. On Mon, Jan 22, 2024 at 10:10 PM Tomas Härdin wrote: > mån 2024-01-22 klockan 21:32 +0300 skrev Victor Luchitz: > > On Mon, Jan 22, 2024 at 4:57 PM Tomas Härdin wrote: > > > > > >

[FFmpeg-devel] [PATCH] liavcodec: add bit-rate support to RoQ video encoder

2024-01-22 Thread Victor Luchits
The bitrate option (-b:v) can now be used to specify the bit rate of the video stream of the RoQ encoder. Original patch by Joseph Fenton aka Chilly Willy Signed-off-by: Victor Luchits --- Changelog| 1 + libavcodec/roqvideo.h| 1 + libavcodec/roqvideodec.c | 16 ++

Re: [FFmpeg-devel] [PATCH] liavcodec: add bit-rate support to RoQ video encoder

2024-01-22 Thread Tomas Härdin
mån 2024-01-22 klockan 21:32 +0300 skrev Victor Luchitz: > On Mon, Jan 22, 2024 at 4:57 PM Tomas Härdin wrote: > > > > > > > > > >  -    if (frame->quality) > > > > > -    enc->lambda = frame->quality - 1; > > > > > -    else > > > > > -    enc->lambda = 2*ROQ_LAMBDA_SCALE; > > > > > +  

Re: [FFmpeg-devel] [PATCH] configure: autodetect libglslang ldflags

2024-01-22 Thread Matthew White via ffmpeg-devel
> This is very very cursed. Fitting for the public API of the world's fifth > worst library. > Debian is stuck on version 13, so the majority of users are still stuck on > version 13. > Debian ships a pkg-config file, but of course it's incorrect, if you try to > compile against it. > Oh, and li

Re: [FFmpeg-devel] [PATCH] liavcodec: add bit-rate support to RoQ video encoder

2024-01-22 Thread Victor Luchitz
On Mon, Jan 22, 2024 at 4:57 PM Tomas Härdin wrote: > > > > > > > -if (frame->quality) > > > > -enc->lambda = frame->quality - 1; > > > > -else > > > > -enc->lambda = 2*ROQ_LAMBDA_SCALE; > > > > +if (avctx->bit_rate <= ROQ_DEFAULT_MIN_BIT_RATE) { > > > > +/* n

[FFmpeg-devel] [PATCH 3/3] fate/mov: test remuxing all stream heif items

2024-01-22 Thread James Almer
Signed-off-by: James Almer --- tests/fate/mov.mak | 2 +- tests/ref/fate/mov-heic-demux-still-image-multiple-items | 7 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/fate/mov.mak b/tests/fate/mov.mak index f202f36d96..f549ae33d7

[FFmpeg-devel] [PATCH 2/3] avformat/mov: add support for tile HEIF still images

2024-01-22 Thread James Almer
Export each tile as its own stream, and the tiling information as a Stream Group of type TILE_GRID. This also enables exporting other stream items like thumbnails, which may be present in non tiled HEIF images too. For those, the primary stream will be tagged with the default disposition. Based on

[FFmpeg-devel] [PATCH 1/3 v3] avformat: add a Tile Grid stream group type

2024-01-22 Thread James Almer
This will be used to support tiled image formats like HEIF. Signed-off-by: James Almer --- Moved the struct to libavformat. It can be moved to libavutil if we decide to reuse it. libavformat/avformat.c | 8 libavformat/avformat.h | 86 ++ libavforma

Re: [FFmpeg-devel] [PATCH] configure: autodetect libglslang ldflags

2024-01-22 Thread Lynne
Jan 22, 2024, 07:52 by ffmpeg-devel@ffmpeg.org: > Since glslang 14.0.0, OGLCompiler and HLSL stub libraries have been > fully removed from the build. > > This fixes the configuration by detecting if the stub libraries are > still present (glslang releases before version 14.0.0). > > ffbuild/config

[FFmpeg-devel] [PATCH v3 8/8] tests/checkasm/vvc_mc: add check_avg

2024-01-22 Thread toqsxw
From: Wu Jianhua Signed-off-by: Wu Jianhua --- tests/checkasm/vvc_mc.c | 64 + 1 file changed, 64 insertions(+) diff --git a/tests/checkasm/vvc_mc.c b/tests/checkasm/vvc_mc.c index 711280deec..8adb00573f 100644 --- a/tests/checkasm/vvc_mc.c +++ b/tests/c

[FFmpeg-devel] [PATCH v3 5/8] avcodec/vvcdec: reuse h26x/2656_inter.asm to enable x86 optimizations

2024-01-22 Thread toqsxw
From: Wu Jianhua Signed-off-by: Wu Jianhua --- libavcodec/Makefile | 1 + libavcodec/vvc/vvcdsp.c | 4 + libavcodec/vvc/vvcdsp.h | 2 + libavcodec/x86/vvc/Makefile | 6 + libavcodec/x86/vvc/vvcdsp_init.c | 202 +++ 5 files

[FFmpeg-devel] [PATCH v3 7/8] avcodec/x86/vvc: add avg and avg_w AVX2 optimizations

2024-01-22 Thread toqsxw
From: Wu Jianhua The avg/avg_w is based on dav1d. See https://code.videolan.org/videolan/dav1d/-/blob/master/src/x86/mc_avx2.asm vvc_avg_8_2x2_c: 71.6 vvc_avg_8_2x2_avx2: 26.8 vvc_avg_8_2x4_c: 140.8 vvc_avg_8_2x4_avx2: 34.6 vvc_avg_8_2x8_c: 410.3 vvc_avg_8_2x8_avx2: 41.3 vvc_avg_8_2x16_c: 769.3

[FFmpeg-devel] [PATCH v3 4/8] avcodec/x86/h26x/h2656_inter: add dststride to put

2024-01-22 Thread toqsxw
From: Wu Jianhua Signed-off-by: Wu Jianhua --- libavcodec/x86/h26x/h2656_inter.asm | 32 ++--- libavcodec/x86/h26x/h2656dsp.c | 4 ++-- libavcodec/x86/h26x/h2656dsp.h | 2 +- libavcodec/x86/hevcdsp_init.c | 2 +- 4 files changed, 19 insertions(+), 21 d

[FFmpeg-devel] [PATCH v3 6/8] tests/checkasm: add checkasm_check_vvc_mc

2024-01-22 Thread toqsxw
From: Wu Jianhua Signed-off-by: Wu Jianhua --- tests/checkasm/Makefile | 1 + tests/checkasm/checkasm.c | 3 + tests/checkasm/checkasm.h | 1 + tests/checkasm/vvc_mc.c | 270 ++ 4 files changed, 275 insertions(+) create mode 100644 tests/checkasm/v

[FFmpeg-devel] [PATCH v3 2/8] avcodec/hevcdsp_template: reuse put/put_luma/put_chroma from h2656_inter_template

2024-01-22 Thread toqsxw
From: Wu Jianhua Signed-off-by: Wu Jianhua --- libavcodec/hevcdsp_template.c | 594 +++--- 1 file changed, 46 insertions(+), 548 deletions(-) diff --git a/libavcodec/hevcdsp_template.c b/libavcodec/hevcdsp_template.c index 0de14e9dcf..9b48bdf08e 100644 --- a/libavco

[FFmpeg-devel] [PATCH v3 3/8] avcodec/x86/hevc_mc: move put/put_uni to h26x/h2656_inter.asm

2024-01-22 Thread toqsxw
From: Wu Jianhua This enable that the asm optimization can be reused by VVC Signed-off-by: Wu Jianhua --- libavcodec/x86/Makefile |1 + libavcodec/x86/h26x/h2656_inter.asm | 1145 +++ libavcodec/x86/h26x/h2656dsp.c | 98 +++ libavcodec/x86/h26x/h2

[FFmpeg-devel] [PATCH v3 1/8] avcodec/vvc/vvc_inter_template: move put/put_luma/put_chroma template to h2656_inter_template.c

2024-01-22 Thread toqsxw
From: Wu Jianhua Signed-off-by: Wu Jianhua --- libavcodec/h26x/h2656_inter_template.c | 577 + libavcodec/vvc/vvc_inter_template.c| 559 +--- 2 files changed, 578 insertions(+), 558 deletions(-) create mode 100644 libavcodec/h26x/h2656_inter_temp

[FFmpeg-devel] 回复: 回复: 回复: [PATCH 2/2] fate: add raw IAMF tests

2024-01-22 Thread Wu Jianhua
>发件人: ffmpeg-devel 代表 James Almer > >发送时间: 2024年1月22日 8:49 >收件人: ffmpeg-devel@ffmpeg.org >主题: Re: [FFmpeg-devel] 回复: 回复: [PATCH 2/2] fate: add raw IAMF tests > > On 1/22/2024 1:23 PM, Wu Jianhua wrote: >>> 发件人: ffmpeg-devel 代表 James Almer >>> >>> 发送时间: 2024年1月22日 8:10 >>> 收件人: ffmpeg-devel@ffm

Re: [FFmpeg-devel] 回复: 回复: [PATCH 2/2] fate: add raw IAMF tests

2024-01-22 Thread James Almer
On 1/22/2024 1:23 PM, Wu Jianhua wrote: 发件人: ffmpeg-devel 代表 James Almer 发送时间: 2024年1月22日 8:10 收件人: ffmpeg-devel@ffmpeg.org 主题: Re: [FFmpeg-devel] 回复: [PATCH 2/2] fate: add raw IAMF tests On 1/22/2024 1:02 PM, Wu Jianhua wrote: 发件人: ffmpeg-devel 代表 James Almer 发送时间: 2024年1月20日 4:22 收件人: f

Re: [FFmpeg-devel] [PATCH] liavcodec: add bit-rate support to RoQ video encoder

2024-01-22 Thread Victor Luchitz
The rationale behind the bit_rate check is that RoQ was originally designed with early CD-ROM games in mind (The 7th Guest, The 11th Hour), thus the lowest bit_rate that would make any sense in that context should be based around that. You really want to get the best picture quality without exceedi

[FFmpeg-devel] 回复: 回复: [PATCH 2/2] fate: add raw IAMF tests

2024-01-22 Thread Wu Jianhua
> 发件人: ffmpeg-devel 代表 James Almer > > 发送时间: 2024年1月22日 8:10 > 收件人: ffmpeg-devel@ffmpeg.org > 主题: Re: [FFmpeg-devel] 回复: [PATCH 2/2] fate: add raw IAMF tests > > On 1/22/2024 1:02 PM, Wu Jianhua wrote: >>> 发件人: ffmpeg-devel 代表 James Almer >>> >>> 发送时间: 2024年1月20日 4:22 >>> 收件人: ffmpeg-devel@ff

Re: [FFmpeg-devel] [PATCH] liavcodec: add bit-rate support to RoQ video encoder

2024-01-22 Thread Victor Luchitz
Thanks, I will look into it On Mon, Jan 22, 2024 at 4:59 PM Martin Storsjö wrote: > On Mon, 22 Jan 2024, Tomas Härdin wrote: > > >>> >>> -if (frame->quality) > >> > > -enc->lambda = frame->quality - 1; > >> > > -else > >> > > -enc->lambda = 2*ROQ_LAMBDA_SCALE; > >> > > +

Re: [FFmpeg-devel] 回复: [PATCH 2/2] fate: add raw IAMF tests

2024-01-22 Thread James Almer
On 1/22/2024 1:02 PM, Wu Jianhua wrote: 发件人: ffmpeg-devel 代表 James Almer 发送时间: 2024年1月20日 4:22 收件人: ffmpeg-devel@ffmpeg.org 主题: [FFmpeg-devel] [PATCH 2/2] fate: add raw IAMF tests Covers muxing from raw pcm audio input into FLAC, using several scalable layouts, and demuxing the result. Hi

[FFmpeg-devel] 回复: [PATCH 2/2] fate: add raw IAMF tests

2024-01-22 Thread Wu Jianhua
> 发件人: ffmpeg-devel 代表 James Almer > > 发送时间: 2024年1月20日 4:22 > 收件人: ffmpeg-devel@ffmpeg.org > 主题: [FFmpeg-devel] [PATCH 2/2] fate: add raw IAMF tests > > Covers muxing from raw pcm audio input into FLAC, using several scalable > layouts, > and demuxing the result. > Hi there. Test iamf-7_1_4

[FFmpeg-devel] 回复: [PATCH 8/9] avcodec: add D3D12VA hardware HEVC encoder

2024-01-22 Thread Wu Jianhua
> 发件人: ffmpeg-devel 代表 > tong1.wu-at-intel@ffmpeg.org > 发送时间: 2024年1月21日 21:57 > 收件人: ffmpeg-devel@ffmpeg.org > 抄送: Tong Wu > 主题: [FFmpeg-devel] [PATCH 8/9] avcodec: add D3D12VA hardware HEVC encoder > > From: Tong Wu > > This implementation is based on D3D12 Video Encoding Spec: > https:

[FFmpeg-devel] [PATCH v3 6/8] tests/checkasm: add checkasm_check_vvc_mc

2024-01-22 Thread toqsxw
From: Wu Jianhua Signed-off-by: Wu Jianhua --- tests/checkasm/Makefile | 1 + tests/checkasm/checkasm.c | 3 + tests/checkasm/checkasm.h | 1 + tests/checkasm/vvc_mc.c | 270 ++ 4 files changed, 275 insertions(+) create mode 100644 tests/checkasm/v

[FFmpeg-devel] [PATCH v3 8/8] tests/checkasm/vvc_mc: add check_avg

2024-01-22 Thread toqsxw
From: Wu Jianhua Signed-off-by: Wu Jianhua --- tests/checkasm/vvc_mc.c | 64 + 1 file changed, 64 insertions(+) diff --git a/tests/checkasm/vvc_mc.c b/tests/checkasm/vvc_mc.c index 711280deec..8adb00573f 100644 --- a/tests/checkasm/vvc_mc.c +++ b/tests/c

[FFmpeg-devel] [PATCH v3 7/8] avcodec/x86/vvc: add avg and avg_w AVX2 optimizations

2024-01-22 Thread toqsxw
From: Wu Jianhua The avg/avg_w is based on dav1d. See https://code.videolan.org/videolan/dav1d/-/blob/master/src/x86/mc_avx2.asm vvc_avg_8_2x2_c: 71.6 vvc_avg_8_2x2_avx2: 26.8 vvc_avg_8_2x4_c: 140.8 vvc_avg_8_2x4_avx2: 34.6 vvc_avg_8_2x8_c: 410.3 vvc_avg_8_2x8_avx2: 41.3 vvc_avg_8_2x16_c: 769.3

[FFmpeg-devel] [PATCH v3 5/8] avcodec/vvcdec: reuse h26x/2656_inter.asm to enable x86 optimizations

2024-01-22 Thread toqsxw
From: Wu Jianhua Signed-off-by: Wu Jianhua --- libavcodec/Makefile | 1 + libavcodec/vvc/vvcdsp.c | 4 + libavcodec/vvc/vvcdsp.h | 2 + libavcodec/x86/vvc/Makefile | 6 + libavcodec/x86/vvc/vvcdsp_init.c | 202 +++ 5 files

[FFmpeg-devel] [PATCH v3 4/8] avcodec/x86/h26x/h2656_inter: add dststride to put

2024-01-22 Thread toqsxw
From: Wu Jianhua Signed-off-by: Wu Jianhua --- libavcodec/x86/h26x/h2656_inter.asm | 32 ++--- libavcodec/x86/h26x/h2656dsp.c | 4 ++-- libavcodec/x86/h26x/h2656dsp.h | 2 +- libavcodec/x86/hevcdsp_init.c | 2 +- 4 files changed, 19 insertions(+), 21 d

[FFmpeg-devel] [PATCH v3 3/8] avcodec/x86/hevc_mc: move put/put_uni to h26x/h2656_inter.asm

2024-01-22 Thread toqsxw
From: Wu Jianhua This enable that the asm optimization can be reused by VVC Signed-off-by: Wu Jianhua --- libavcodec/x86/Makefile |1 + libavcodec/x86/h26x/h2656_inter.asm | 1145 +++ libavcodec/x86/h26x/h2656dsp.c | 98 +++ libavcodec/x86/h26x/h2

[FFmpeg-devel] [PATCH v3 2/8] avcodec/hevcdsp_template: reuse put/put_luma/put_chroma from h2656_inter_template

2024-01-22 Thread toqsxw
From: Wu Jianhua Signed-off-by: Wu Jianhua --- libavcodec/hevcdsp_template.c | 594 +++--- 1 file changed, 46 insertions(+), 548 deletions(-) diff --git a/libavcodec/hevcdsp_template.c b/libavcodec/hevcdsp_template.c index 0de14e9dcf..9b48bdf08e 100644 --- a/libavco

[FFmpeg-devel] [PATCH v3 1/8] avcodec/vvc/vvc_inter_template: move put/put_luma/put_chroma template to h2656_inter_template.c

2024-01-22 Thread toqsxw
From: Wu Jianhua Signed-off-by: Wu Jianhua --- libavcodec/h26x/h2656_inter_template.c | 577 + libavcodec/vvc/vvc_inter_template.c| 559 +--- 2 files changed, 578 insertions(+), 558 deletions(-) create mode 100644 libavcodec/h26x/h2656_inter_temp

Re: [FFmpeg-devel] [PATCH] configure: autodetect libglslang ldflags

2024-01-22 Thread Matthew White via ffmpeg-devel
> Also, how does this work when cross compiling - won't the "glslang" binary > be for the foreign cross target? Or is it something like the sdl-config > script which is a local shell script that can give relevant build flags (a > design preceding pkg-config)? I don't have an answer to that, in

Re: [FFmpeg-devel] [PATCH] liavcodec: add bit-rate support to RoQ video encoder

2024-01-22 Thread Tomas Härdin
mån 2024-01-22 klockan 15:59 +0200 skrev Martin Storsjö: > On Mon, 22 Jan 2024, Tomas Härdin wrote: > > > > > > > >  -    if (frame->quality) > > > > > -    enc->lambda = frame->quality - 1; > > > > > -    else > > > > > -    enc->lambda = 2*ROQ_LAMBDA_SCALE; > > > > > +    if (avctx->bit_

Re: [FFmpeg-devel] [PATCH] configure: autodetect libglslang ldflags

2024-01-22 Thread Matthew White via ffmpeg-devel
As far as I can tell, there're no pkg-config features in https://github.com/KhronosGroup/glslang installation, at least by installing it on my system, GNU/Linux Gentoo. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listi

Re: [FFmpeg-devel] [PATCH] liavcodec: add bit-rate support to RoQ video encoder

2024-01-22 Thread Martin Storsjö
On Mon, 22 Jan 2024, Tomas Härdin wrote: >>>  -    if (frame->quality) > > -    enc->lambda = frame->quality - 1; > > -    else > > -    enc->lambda = 2*ROQ_LAMBDA_SCALE; > > +    if (avctx->bit_rate <= ROQ_DEFAULT_MIN_BIT_RATE) { > > +    /* no specific bit rate desired, use frame

Re: [FFmpeg-devel] [PATCH] liavcodec: add bit-rate support to RoQ video encoder

2024-01-22 Thread Tomas Härdin
> > > > >  -    if (frame->quality) > > > -    enc->lambda = frame->quality - 1; > > > -    else > > > -    enc->lambda = 2*ROQ_LAMBDA_SCALE; > > > +    if (avctx->bit_rate <= ROQ_DEFAULT_MIN_BIT_RATE) { > > > +    /* no specific bit rate desired, use frame quality */ > > > +    if

Re: [FFmpeg-devel] [PATCH] liavcodec: add bit-rate support to RoQ video encoder

2024-01-22 Thread Victor Luchitz
On Mon, Jan 22, 2024 at 4:06 PM Tomas Härdin wrote: > mån 2024-01-22 klockan 00:08 +0300 skrev Victor Luchits: > > One can now use the bitrate option (-b) to specify bit rate of the > > video > > stream in the RoQ encoder. The option only becomes effective for > > values > > above 800kbit/s, whic

Re: [FFmpeg-devel] [PATCH 2/3] doc/muxers: add codec2

2024-01-22 Thread Tomas Härdin
tis 2024-01-16 klockan 00:57 +0100 skrev Stefano Sabatini: > --- >  doc/muxers.texi | 5 + >  1 file changed, 5 insertions(+) > > diff --git a/doc/muxers.texi b/doc/muxers.texi > index 1bdd7d34d5..eadcba690c 100644 > --- a/doc/muxers.texi > +++ b/doc/muxers.texi > @@ -882,6 +882,11 @@ Apple CAF

Re: [FFmpeg-devel] [PATCH] liavcodec: add bit-rate support to RoQ video encoder

2024-01-22 Thread Tomas Härdin
mån 2024-01-22 klockan 00:08 +0300 skrev Victor Luchits: > One can now use the bitrate option (-b) to specify bit rate of the > video > stream in the RoQ encoder. The option only becomes effective for > values > above 800kbit/s, which is roughly equivalent to bandwidth of a 1x- > speed > CD-ROM dri

Re: [FFmpeg-devel] [PATCH v1 2/2] vaapi: add vaapi_avs2 support

2024-01-22 Thread Jianfeng Zheng
Zhao Zhili 于2024年1月22日周一 20:02写道: > > > > > On Jan 22, 2024, at 08:06, Liu Steven wrote: > > > > > > > >> On Jan 21, 2024, at 22:47, Jianfeng Zheng wrote: > >> > >> Zhao Zhili 于2024年1月20日周六 12:22写道: > >>> > >>> > -Original Message- > From: ffmpeg-devel On Behalf Of > ji

Re: [FFmpeg-devel] [PATCH] configure: autodetect libglslang ldflags

2024-01-22 Thread Martin Storsjö
On Mon, 22 Jan 2024, Timo Rothenpieler wrote: On 22/01/2024 07:51, Matthew White via ffmpeg-devel wrote: Since glslang 14.0.0, OGLCompiler and HLSL stub libraries have been fully removed from the build. This fixes the configuration by detecting if the stub libraries are still present (glslang

Re: [FFmpeg-devel] [PATCH] configure: autodetect libglslang ldflags

2024-01-22 Thread Timo Rothenpieler
On 22/01/2024 07:51, Matthew White via ffmpeg-devel wrote: Since glslang 14.0.0, OGLCompiler and HLSL stub libraries have been fully removed from the build. This fixes the configuration by detecting if the stub libraries are still present (glslang releases before version 14.0.0). ffbuild/config

Re: [FFmpeg-devel] [PATCH 1/2 v2] avutil: add a Tile Grid API

2024-01-22 Thread James Almer
On 1/22/2024 7:38 AM, Anton Khirnov wrote: Quoting James Almer (2024-01-21 22:03:10) I could remove the types and the union altogether and leave only the array even for uniform tiles if you think that simplifies the API, but seems like a waste of memory to allocate a rows x cols array of ints ju

Re: [FFmpeg-devel] [PATCH 1/2 v2] avutil: add a Tile Grid API

2024-01-22 Thread James Almer
On 1/22/2024 7:32 AM, Anton Khirnov wrote: Quoting James Almer (2024-01-21 20:29:58) On 1/21/2024 4:02 PM, Anton Khirnov wrote: I still don't see why should it be a good idea to use this struct for generic container cropping. It feels very much like a hammer in search of a nail. Because once

Re: [FFmpeg-devel] [PATCH v1 2/2] vaapi: add vaapi_avs2 support

2024-01-22 Thread Zhao Zhili
> On Jan 22, 2024, at 08:06, Liu Steven wrote: > > > >> On Jan 21, 2024, at 22:47, Jianfeng Zheng wrote: >> >> Zhao Zhili 于2024年1月20日周六 12:22写道: >>> >>> -Original Message- From: ffmpeg-devel On Behalf Of jianfeng.zheng Sent: 2024年1月19日 23:53 To: ffmpeg-

Re: [FFmpeg-devel] [PATCH 1/2 v2] avutil: add a Tile Grid API

2024-01-22 Thread James Almer
On 1/22/2024 7:32 AM, Anton Khirnov wrote: Quoting James Almer (2024-01-21 20:29:58) On 1/21/2024 4:02 PM, Anton Khirnov wrote: I still don't see why should it be a good idea to use this struct for generic container cropping. It feels very much like a hammer in search of a nail. Because once

Re: [FFmpeg-devel] FFmpeg's HLS muxer's deprecation of the hls_wrap option

2024-01-22 Thread Zhao Zhili
> On Jan 22, 2024, at 18:20, Dennis Mungai wrote: > > On Mon, 22 Jan 2024 at 13:10, Steven Liu wrote: > >> Dennis Mungai 于2024年1月21日周日 00:42写道: >> >>> Perfect, and thanks for considering a revert of this deprecated feature. >> >> Hi Dennis, >> >> Need more talk, Why don't try to use

Re: [FFmpeg-devel] FFmpeg's HLS muxer's deprecation of the hls_wrap option

2024-01-22 Thread Steven Liu
Dennis Mungai 于2024年1月22日 周一18:20写道: > On Mon, 22 Jan 2024 at 13:10, Steven Liu wrote: > > > Dennis Mungai 于2024年1月21日周日 00:42写道: > > > > > > > > > Perfect, and thanks for considering a revert of this deprecated > feature. > > > > Hi Dennis, > > > > Need more talk, Why don't try to use hls_flags

Re: [FFmpeg-devel] [PATCH 1/2 v2] avutil: add a Tile Grid API

2024-01-22 Thread Anton Khirnov
Quoting James Almer (2024-01-21 22:03:10) > I could remove the types and the union altogether and leave only the > array even for uniform tiles if you think that simplifies the API, but > seems like a waste of memory to allocate a rows x cols array of ints > just to have the same value written for

Re: [FFmpeg-devel] [PATCH 1/2 v2] avutil: add a Tile Grid API

2024-01-22 Thread Anton Khirnov
Quoting James Almer (2024-01-21 20:29:58) > On 1/21/2024 4:02 PM, Anton Khirnov wrote: > > I still don't see why should it be a good idea to use this struct for > > generic container cropping. It feels very much like a hammer in search > > of a nail. > > Because once we support container cropping,

Re: [FFmpeg-devel] FFmpeg's HLS muxer's deprecation of the hls_wrap option

2024-01-22 Thread Dennis Mungai
On Mon, 22 Jan 2024 at 13:10, Steven Liu wrote: > Dennis Mungai 于2024年1月21日周日 00:42写道: > > > > > > Perfect, and thanks for considering a revert of this deprecated feature. > > Hi Dennis, > > Need more talk, Why don't try to use hls_flags > +delete_segments+append_list. ? > > > Thanks > Steven >

Re: [FFmpeg-devel] FFmpeg's HLS muxer's deprecation of the hls_wrap option

2024-01-22 Thread Steven Liu
Dennis Mungai 于2024年1月21日周日 00:42写道: > > > Perfect, and thanks for considering a revert of this deprecated feature. Hi Dennis, Need more talk, Why don't try to use hls_flags +delete_segments+append_list. ? Thanks Steven ___ ffmpeg-devel mailing list

[FFmpeg-devel] Fwd: patch for 44.1/32 khz pcm input in pcm dvd encoder

2024-01-22 Thread Andrew Randrianasulu
-- Forwarded message - От: Andrew Randrianasulu Date: вс, 21 янв. 2024 г., 06:49 Subject: patch for 44.1/32 khz pcm input in pcm dvd encoder To: FFmpeg user questions , Cinelerra.GG < c...@lists.cinelerra-gg.org> relative to ffmpeg.git commit 6c4388b468bf92c0c1e7733c6cfe4ff3f9ca9

Re: [FFmpeg-devel] [PATCH 7/8] fftools/ffmpeg_demux: implement -bsf for input

2024-01-22 Thread Anton Khirnov
Quoting Stefano Sabatini (2024-01-21 20:15:46) > On date Sunday 2024-01-21 19:35:01 +0100, Anton Khirnov wrote: > > Quoting Stefano Sabatini (2024-01-21 19:22:35) > > > On date Sunday 2024-01-21 18:43:36 +0100, Anton Khirnov wrote: > > > > Quoting Stefano Sabatini (2024-01-20 12:32:42) > > > [...]