[FFmpeg-devel] [PATCH] libavfilter/vf_colorrange_cuda: CUDA-accelerated video filter for MPEG and JPEG color range conversions

2022-09-10 Thread Roman Arzumanyan
Hello, This patch adds video filter which does color range conversion similar to swscale scaling filter. How to use it: ./ffmpeg \ -hwaccel cuda -hwaccel_output_format cuda \ -i /path/to/intput/file.mp4 \ -vf colorrange_cuda=range=mpeg \ -c:v h264_nvenc \ -y /path/to/output/file.mp4 Fr

Re: [FFmpeg-devel] [PATCH v2] avcodec/jpeg2000: Add support for High-Throughput JPEG 2000 (HTJ2K) decoding.

2022-09-10 Thread Caleb Etemesi
Ideally, what I wanted to achieve was following best practices of what I saw, most of the error reporting inside jpeg2000dec.c would log errors using s->avctx, in case of things like corrupt bitstream errors, I did want also the htj2k code to emulate this, and the only reason its present in jpeg20

Re: [FFmpeg-devel] [PATCH v4 0/2] 32bps FLAC patches

2022-09-10 Thread Martijn van Beurden
Op za 3 sep. 2022 om 11:21 schreef Martijn van Beurden : > Recently libFLAC gained the ability (not in any released version yet > though) to create FLAC files containing 32-bit int PCM samples. To > keep complexity reasonable, the choice was made to limit residuals > to 32-bit integers, which the

[FFmpeg-devel] [PATCH] avformat/riffdec: don't unconditionally overwrite WAVEFORMATEXTENSIBLE layout

2022-09-10 Thread James Almer
Do it only if the value conflicts with the previous channels value. Fixes ticket #9912 Signed-off-by: James Almer --- libavformat/riffdec.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/libavformat/riffdec.c b/libavformat/riffdec.c index 3946ecb72f..aef6b6625a

Re: [FFmpeg-devel] [PATCH] libavfilter/vf_colorrange_cuda: CUDA-accelerated video filter for MPEG and JPEG color range conversions

2022-09-10 Thread Timo Rothenpieler
On 10.09.2022 10:16, Roman Arzumanyan wrote: From 2b15d8a609a12d97b1ba7500c7f8771b336e2fdf Mon Sep 17 00:00:00 2001 From: Roman Arzumanyan Date: Sat, 10 Sep 2022 11:05:56 +0300 Subject: [PATCH] libavfilter/vf_colorrange_cuda CUDA-accelerated color range conversion filter We could also call th

Re: [FFmpeg-devel] [PATCH v4 0/2] 32bps FLAC patches

2022-09-10 Thread Paul B Mahol
On Sat, Sep 10, 2022 at 12:33 PM Martijn van Beurden wrote: > Op za 3 sep. 2022 om 11:21 schreef Martijn van Beurden : > > > Recently libFLAC gained the ability (not in any released version yet > > though) to create FLAC files containing 32-bit int PCM samples. To > > keep complexity reasonable,

[FFmpeg-devel] [PATCH v2] avformat/riffdec: don't unconditionally overwrite WAVEFORMATEXTENSIBLE layout

2022-09-10 Thread James Almer
Do it only if the value conflicts with the previous channels value. Fixes ticket #9912 Signed-off-by: James Almer --- libavformat/riffdec.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/libavformat/riffdec.c b/libavformat/riffdec.c index 3946ecb72f..c1e4a04550

Re: [FFmpeg-devel] [PATCH] lavu/pixdesc: favour formats where bit depth exactly matches

2022-09-10 Thread Michael Niedermayer
On Thu, Sep 08, 2022 at 08:46:11PM -0700, Philip Langdale wrote: > Since introducing the various packed formats used by VAAPI (and p012), > we've noticed that there's actually a gap in how > av_find_best_pix_fmt_of_2 works. It doesn't actually assign any value > to having the same bit depth as the

Re: [FFmpeg-devel] [PATCH 2/2] swscale/input: Avoid calls to av_pix_fmt_desc_get()

2022-09-10 Thread Michael Niedermayer
On Fri, Sep 09, 2022 at 08:15:22PM +0200, Andreas Rheinhardt wrote: > Michael Niedermayer: > > On Thu, Sep 08, 2022 at 11:44:51PM +0200, Andreas Rheinhardt wrote: > >> Michael Niedermayer: > >>> On Thu, Sep 08, 2022 at 09:38:51PM +0200, Andreas Rheinhardt wrote: > Michael Niedermayer: > > [...

Re: [FFmpeg-devel] [PATCH 2/2] libavformat/hls: Free keys

2022-09-10 Thread Michael Niedermayer
On Fri, Sep 09, 2022 at 11:21:38AM +0800, Steven Liu wrote: > Michael Niedermayer 于2022年9月9日周五 06:45写道: > > > > Fixes: memleak > > Fixes: > > 50703/clusterfuzz-testcase-minimized-ffmpeg_dem_HLS_fuzzer-6399058578636800 > > > > Found-by: continuous fuzzing process > > https://github.com/google/oss

Re: [FFmpeg-devel] [PATCH 1/2] tools/target_dec_fuzzer: Adjust threshold for UTVIDEO

2022-09-10 Thread Michael Niedermayer
On Fri, Sep 09, 2022 at 12:44:57AM +0200, Michael Niedermayer wrote: > Fixes: Timeout > Fixes: > 47969/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_UTVIDEO_fuzzer-5097256832860160 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Sig

Re: [FFmpeg-devel] [PATCH 2/2] swscale/input: Avoid calls to av_pix_fmt_desc_get()

2022-09-10 Thread Andreas Rheinhardt
Michael Niedermayer: > On Fri, Sep 09, 2022 at 08:15:22PM +0200, Andreas Rheinhardt wrote: >> Michael Niedermayer: >>> On Thu, Sep 08, 2022 at 11:44:51PM +0200, Andreas Rheinhardt wrote: Michael Niedermayer: > On Thu, Sep 08, 2022 at 09:38:51PM +0200, Andreas Rheinhardt wrote: >> Micha

[FFmpeg-devel] [PATCH] fftools: allow decoders to set AVFrame time_base

2022-09-10 Thread Leo Izen
This patch allows decoders to set AVFrame->time_base, which determines the units that AVFrame->pts will use. Currently no decoders do this, but it will allow it in the future. --- fftools/ffmpeg.c | 3 ++- fftools/ffplay.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ffto

Re: [FFmpeg-devel] [PATCH 2/2] swscale/input: Avoid calls to av_pix_fmt_desc_get()

2022-09-10 Thread Michael Niedermayer
On Sat, Sep 10, 2022 at 06:34:43PM +0200, Andreas Rheinhardt wrote: > Michael Niedermayer: > > On Fri, Sep 09, 2022 at 08:15:22PM +0200, Andreas Rheinhardt wrote: > >> Michael Niedermayer: > >>> On Thu, Sep 08, 2022 at 11:44:51PM +0200, Andreas Rheinhardt wrote: > Michael Niedermayer: > >

Re: [FFmpeg-devel] Add LoongArch SIMD optimization in swscale lib.

2022-09-10 Thread Michael Niedermayer
On Fri, Sep 09, 2022 at 05:43:38PM +0800, yinshiyou...@loongson.cn wrote: > > -原始邮件- > > 发件人: "Hao Chen" > > 发送时间:2022-09-09 17:00:23 (星期五) > > 收件人: ffmpeg-devel@ffmpeg.org > > 抄送: > > 主题: [FFmpeg-devel] Add LoongArch SIMD optimization in swscale lib. > > > > v2: Some modifications were

[FFmpeg-devel] [PATCH] improve VAAPI error handling

2022-09-10 Thread Andreas Kies
In case something is wrong in vaapi_device_create() you usually just get EINVAL, but not the real cause. This patch allows to return the cause as set in errno. EINVAL is used for kernel driver name mismatch. ENODEV in case vaGetDisplayDRM() fails. Also changed: Try X11 interface in case vaGetDis

[FFmpeg-devel] [PATCH] avcodec: Micronas SC-4 decoder and parser

2022-09-10 Thread Paul B Mahol
Patches attached. From 9a85823ed8a616491b9da280f75e03103eb7d38f Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Thu, 8 Sep 2022 20:44:49 +0200 Subject: [PATCH 1/2] avcodec: add MI-SC4 audio decoder Signed-off-by: Paul B Mahol --- libavcodec/Makefile | 1 + libavcodec/allcodecs.c | 1

Re: [FFmpeg-devel] [PATCH] avcodec: Micronas SC-4 decoder and parser

2022-09-10 Thread James Almer
On 9/10/2022 3:27 PM, Paul B Mahol wrote: Patches attached. This looks like it would fit in adpcm.c as an ADPCM codec. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link a

Re: [FFmpeg-devel] [PATCH] avcodec: Micronas SC-4 decoder and parser

2022-09-10 Thread Paul B Mahol
On 9/10/22, James Almer wrote: > On 9/10/2022 3:27 PM, Paul B Mahol wrote: >> Patches attached. > > This looks like it would fit in adpcm.c as an ADPCM codec. Nope > ___ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://ffmpeg.org/mailman

Re: [FFmpeg-devel] [PATCH] avcodec: Micronas SC-4 decoder and parser

2022-09-10 Thread James Almer
On 9/10/2022 4:11 PM, Paul B Mahol wrote: On 9/10/22, James Almer wrote: On 9/10/2022 3:27 PM, Paul B Mahol wrote: Patches attached. This looks like it would fit in adpcm.c as an ADPCM codec. Nope nibble, step, prediction. All terminology taken straight out of adpcm, down to the decodin

Re: [FFmpeg-devel] [PATCH] avcodec: Micronas SC-4 decoder and parser

2022-09-10 Thread Paul B Mahol
On 9/10/22, James Almer wrote: > On 9/10/2022 4:11 PM, Paul B Mahol wrote: >> On 9/10/22, James Almer wrote: >>> On 9/10/2022 3:27 PM, Paul B Mahol wrote: Patches attached. >>> >>> This looks like it would fit in adpcm.c as an ADPCM codec. >> >> Nope > > nibble, step, prediction. All termino

Re: [FFmpeg-devel] [PATCH] avcodec: Micronas SC-4 decoder and parser

2022-09-10 Thread Paul B Mahol
On 9/10/22, Paul B Mahol wrote: > On 9/10/22, James Almer wrote: >> On 9/10/2022 4:11 PM, Paul B Mahol wrote: >>> On 9/10/22, James Almer wrote: On 9/10/2022 3:27 PM, Paul B Mahol wrote: > Patches attached. This looks like it would fit in adpcm.c as an ADPCM codec. >>> >>> Nop

[FFmpeg-devel] [PATCH 1/2] fate/id3v2: Add test for reading and writing UTF-16 BOM tags

2022-09-10 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- tests/fate/id3v2.mak | 5 tests/ref/fate/id3v2-utf16-bom | 42 ++ 2 files changed, 47 insertions(+) create mode 100644 tests/ref/fate/id3v2-utf16-bom diff --git a/tests/fate/id3v2.mak b/tests/fate/id3v2.mak in

[FFmpeg-devel] [PATCH 2/2] fate/subtitles: Add PGS remux test

2022-09-10 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- tests/fate/subtitles.mak | 5 + tests/ref/fate/sub-pgs-remux | 15 +++ 2 files changed, 20 insertions(+) create mode 100644 tests/ref/fate/sub-pgs-remux diff --git a/tests/fate/subtitles.mak b/tests/fate/subtitles.mak index bc464edce6..

[FFmpeg-devel] [PATCH 5/5] avcodec/tta: Check 24bit scaling for overflow

2022-09-10 Thread Michael Niedermayer
Fixes: signed integer overflow: -8427924 * 256 cannot be represented in type 'int' Fixes: 48798/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TTA_fuzzer-5409428670644224 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michae

[FFmpeg-devel] [PATCH 1/5] avcodec/apedec: Fix integer overflow in filter_3800()

2022-09-10 Thread Michael Niedermayer
Fixes: signed integer overflow: -2147448926 + -198321 cannot be represented in type 'int' Fixes: 48798/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APE_fuzzer-5739619273015296 Fixes: 48798/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APE_fuzzer-6744428485672960 Found-by: continuous fu

[FFmpeg-devel] [PATCH 4/5] avcodec/mobiclip: Check quantizer for overflow

2022-09-10 Thread Michael Niedermayer
Fixes: signed integer overflow: 127 + 2147483536 cannot be represented in type 'int' Fixes: 48798/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MOBICLIP_fuzzer-6014034970804224 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by:

[FFmpeg-devel] [PATCH 2/5] avcodec/dstdec: Check for overflow in build_filter()

2022-09-10 Thread Michael Niedermayer
Fixes: signed integer overflow: 1917019860 + 265558963 cannot be represented in type 'int' Fixes: 48798/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DST_fuzzer-4833165046317056 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by

[FFmpeg-devel] [PATCH 3/5] avcodec/exr: Check preview psize

2022-09-10 Thread Michael Niedermayer
Fixes: signed integer overflow: 17121181824 * 538976288 cannot be represented in type 'long long' Fixes: 48798/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_EXR_fuzzer-5915330316206080 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed

Re: [FFmpeg-devel] [PATCH v1 3/3] swscale/la: Add output_lasx.c file.

2022-09-10 Thread Shiyou Yin
> 2022年9月9日 21:11,Andreas Rheinhardt 写道: > > Shiyou Yin: >> >> >>> 2022年9月6日 16:12,Shiyou Yin 写道: >>> 2022年8月29日 20:30,Andreas Rheinhardt >>> > 写道: Hao Chen: > ffmpeg -i ~/media/1_h264_1080p_30fps_3Mbps.mp4 -f rawvideo -s 640x

Re: [FFmpeg-devel] [PATCH 02/18] avcodec/vp8: Disable lf_delta for VP7

2022-09-10 Thread Peter Ross
On Sat, Sep 10, 2022 at 03:07:13AM +0200, Andreas Rheinhardt wrote: > It is a VP8-only feature. > > Signed-off-by: Andreas Rheinhardt > --- > libavcodec/vp8.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c > index c00c5c975e..04a21

Re: [FFmpeg-devel] [PATCH 02/18] avcodec/vp8: Disable lf_delta for VP7

2022-09-10 Thread Andreas Rheinhardt
Peter Ross: > On Sat, Sep 10, 2022 at 03:07:13AM +0200, Andreas Rheinhardt wrote: >> It is a VP8-only feature. >> >> Signed-off-by: Andreas Rheinhardt >> --- >> libavcodec/vp8.c | 3 +-- >> 1 file changed, 1 insertion(+), 2 deletions(-) >> >> diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c >> in