Re: [FFmpeg-devel] [PATCH] avutil/frame: deprecate palette_has_changed

2023-05-18 Thread Paul B Mahol
On Thu, May 18, 2023 at 7:52 AM Anton Khirnov wrote: > Quoting James Almer (2023-05-18 03:45:09) > > Not only this is information that relies on the concept of a sequence of > > frames, which is completely out of place as a field in AVFrame, but its > > usefulness is also very limited. > > I thin

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

2023-05-18 Thread Arnie Chang
On Wed, May 17, 2023 at 10:54 PM Lynne wrote: > > Finally, run: > make checkasm && ./tests/checkasm/checkasm --bench > and report on the timings for both the C and assembly versions. > If you've made a mistake somewhere, (forgot to restore stack, or a > callee-saved register, > or your function p

Re: [FFmpeg-devel] [PATCH 55/97] Vulkan patchset part 2 - hwcontext rewrite and filtering

2023-05-18 Thread Anton Khirnov
Quoting Lynne (2023-05-16 16:46:45) > May 16, 2023, 15:41 by an...@khirnov.net: > > > Quoting Lynne (2023-05-11 20:13:29) > > > >> >> diff --git a/libavutil/vulkan.h b/libavutil/vulkan.h > >> >> index 4bd1c9fc00..4c38dbc2e6 100644 > >> >> --- a/libavutil/vulkan.h > >> >> +++ b/libavutil/vulkan.h >

Re: [FFmpeg-devel] libavcodec: add Vulkan common video code

2023-05-18 Thread Anton Khirnov
> commit 3257feba101053b0b3689147c1a8850f68448f62 > Author: Lynne > Date: Sun Dec 18 08:31:03 2022 +0100 > > libavcodec: add Vulkan common video code > > +static AVBufferRef *alloc_data_buf(void *opaque, size_t size) > +{ > +uint8_t *buf = av_mallocz(size); > +if (!buf) > +

Re: [FFmpeg-devel] libavcodec: add Vulkan common video decoding code

2023-05-18 Thread Anton Khirnov
> commit adb671b921d006255597ac126f85adb05f9d6677 > Author: Lynne > Date: Mon Jan 16 07:23:27 2023 +0100 > > libavcodec: add Vulkan common video decoding code > > diff --git a/libavcodec/Makefile b/libavcodec/Makefile > index d99f7bd25a..362ea31e3e 100644 > --- a/libavcodec/Makefile > +++

[FFmpeg-devel] [PATCH] avcodec/videotoolboxenc: add low-latency encoding

2023-05-18 Thread xufuji456
Signed-off-by: xufuji456 <839789...@qq.com> --- libavcodec/videotoolboxenc.c | 12 1 file changed, 12 insertions(+) diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c index c6f22723d6..88334f1851 100644 --- a/libavcodec/videotoolboxenc.c +++ b/libavcodec/videoto

[FFmpeg-devel] [PATCH] avfilter/trim: switch to activate

2023-05-18 Thread Paul B Mahol
To provide EOF pts and also signal EOF to its inputs when dropping all remaining frames. Attached. From 6aba088d4a994f90efec01308056684d52b04f5d Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Wed, 17 May 2023 00:46:29 +0200 Subject: [PATCH] avfilter/trim: switch to activate Signed-off-by: Pau

[FFmpeg-devel] [PATCH] avfilter/src_movie: activate & dr

2023-05-18 Thread Paul B Mahol
Attached. From 7ea5d96228d25d18b56dfe9fd91296ef1e29fa0a Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Thu, 18 May 2023 00:59:31 +0200 Subject: [PATCH 27/27] avfilter/src_movie: switch to activate Signed-off-by: Paul B Mahol --- libavfilter/src_movie.c | 265 ++---

Re: [FFmpeg-devel] libavcodec: add Vulkan common video code

2023-05-18 Thread Lynne
May 18, 2023, 10:34 by an...@khirnov.net: >> commit 3257feba101053b0b3689147c1a8850f68448f62 >> Author: Lynne >> Date: Sun Dec 18 08:31:03 2022 +0100 >> >> libavcodec: add Vulkan common video code >> >> +static AVBufferRef *alloc_data_buf(void *opaque, size_t size) >> +{ >> +uint8_t *buf =

Re: [FFmpeg-devel] [PATCH] avcodec/videotoolboxenc: add low-latency encoding

2023-05-18 Thread James Almer
On 5/18/2023 7:15 AM, xufuji456 wrote: Signed-off-by: xufuji456 <839789...@qq.com> --- libavcodec/videotoolboxenc.c | 12 1 file changed, 12 insertions(+) diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c index c6f22723d6..88334f1851 100644 --- a/libavcodec

Re: [FFmpeg-devel] libavcodec: add Vulkan common video decoding code

2023-05-18 Thread Lynne
May 18, 2023, 10:54 by an...@khirnov.net: >> commit adb671b921d006255597ac126f85adb05f9d6677 >> Author: Lynne >> Date: Mon Jan 16 07:23:27 2023 +0100 >> >> libavcodec: add Vulkan common video decoding code >> >> diff --git a/libavcodec/Makefile b/libavcodec/Makefile >> index d99f7bd25a..362ea3

Re: [FFmpeg-devel] [PATCH 55/97] Vulkan patchset part 2 - hwcontext rewrite and filtering

2023-05-18 Thread Lynne
May 18, 2023, 10:30 by an...@khirnov.net: > Quoting Lynne (2023-05-16 16:46:45) > >> May 16, 2023, 15:41 by an...@khirnov.net: >> >> > Quoting Lynne (2023-05-11 20:13:29) >> > >> >> >> diff --git a/libavutil/vulkan.h b/libavutil/vulkan.h >> >> >> index 4bd1c9fc00..4c38dbc2e6 100644 >> >> >> --- a/

[FFmpeg-devel] [PATCH] swscale/ppc: remove hScale8To19_vsx

2023-05-18 Thread Lynne
Fails checkasm on a Power9 DD2.2 02CY771 system. The assembly doesn't seem to have been independently tested at all. https://paste.sr.ht/~ky0ko/fe255ff73fab49b0c6d335437d894c1db626289e Patch attached. >From 0ba39b07e85d866ef43c38e1bcf352af2bedacb9 Mon Sep 17 00:00:00 2001 From: Lynne Date: Thu,

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

2023-05-18 Thread Ronald S. Bultje
Hi, On Thu, May 18, 2023 at 4:21 AM Arnie Chang wrote: > On Wed, May 17, 2023 at 10:54 PM Lynne wrote: > > > > > Finally, run: > > make checkasm && ./tests/checkasm/checkasm --bench > > and report on the timings for both the C and assembly versions. > > If you've made a mistake somewhere, (forg

Re: [FFmpeg-devel] [PATCH 1/3 v4] avutil/frame: add av_frame_replace

2023-05-18 Thread James Almer
On 8/3/2022 1:02 PM, James Almer wrote: Signed-off-by: James Almer --- libavutil/frame.c | 124 ++ libavutil/frame.h | 13 + 2 files changed, 137 insertions(+) diff --git a/libavutil/frame.c b/libavutil/frame.c index de4ad1f94d..864c66371f 10

[FFmpeg-devel] [PATCH 1/2] avcodec/av1dec: use av_frame_replace()

2023-05-18 Thread James Almer
Signed-off-by: James Almer --- libavcodec/av1dec.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c index d46ee48335..f900a6d0ed 100644 --- a/libavcodec/av1dec.c +++ b/libavcodec/av1dec.c @@ -596,10 +596,13 @@ sta

[FFmpeg-devel] [PATCH 2/2] avcodec/h264dec: remove the last few ff_h264_ref_picture() calls

2023-05-18 Thread James Almer
Replace them with ff_h264_replace_picture(). Signed-off-by: James Almer --- libavcodec/h264_picture.c | 53 --- libavcodec/h264_refs.c| 3 +-- libavcodec/h264_slice.c | 3 +-- libavcodec/h264dec.h | 1 - 4 files changed, 2 insertions(+), 58 delet

[FFmpeg-devel] [PATCH] checkasm/h264dsp: add chroma_mc checkasm test

2023-05-18 Thread Lynne
Checks all variants of put_h264_chroma and avg_h264_chroma. Patch attached. >From 001abdaa534ccb601aa8ee1431c04e33913401a2 Mon Sep 17 00:00:00 2001 From: Lynne Date: Thu, 18 May 2023 16:18:16 +0200 Subject: [PATCH] checkasm/h264dsp: add chroma_mc checkasm test Checks all variants of put_h264_ch

Re: [FFmpeg-devel] [PATCH 30/36] fftools/ffmpeg_dec: deobfuscate subtitle decoding

2023-05-18 Thread Anton Khirnov
Quoting Michael Niedermayer (2023-05-17 22:15:37) > On Wed, May 17, 2023 at 12:20:23PM +0200, Anton Khirnov wrote: > > It is currently handled in the same loop as audio and video, but this > > obscures the actual flow, because only one iteration is ever performed > > for subtitles. > > > > Also, a

[FFmpeg-devel] [PATCH] avfilter/af_aresample: switch to activate

2023-05-18 Thread Paul B Mahol
With proper EOF reporting support. Attached. From ed6be8443c29ce2246eec572b7342cee00e61925 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Wed, 17 May 2023 09:15:51 +0200 Subject: [PATCH 22/27] avfilter/af_aresample: switch to activate Signed-off-by: Paul B Mahol --- libavfilter/af_aresample.

Re: [FFmpeg-devel] Global variables in FFmpeg command expressions?

2023-05-18 Thread Paul B Mahol
Current expressions are ugly, and adding global variables will not make it better. Hacks are not allowed, any hacks spotted in code will be pruned. AV filters are not that common because nobody needed it. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg

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

2023-05-18 Thread Lynne
May 18, 2023, 10:21 by arnie.ch...@sifive.com: > On Wed, May 17, 2023 at 10:54 PM Lynne wrote: > >> >> Finally, run: >> make checkasm && ./tests/checkasm/checkasm --bench >> and report on the timings for both the C and assembly versions. >> If you've made a mistake somewhere, (forgot to restore s

Re: [FFmpeg-devel] [PATCH] avfilter/src_movie: activate & dr

2023-05-18 Thread James Almer
On 5/18/2023 7:22 AM, Paul B Mahol wrote: From af73b69a0be9033fddf222b6e9ac60799de85691 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Mon, 15 May 2023 21:54:25 +0200 Subject: [PATCH 26/27] avfilter/src_movie: dr support Signed-off-by: Paul B Mahol --- libavfilter/src_movie.c | 44

Re: [FFmpeg-devel] [PATCH] avfilter/src_movie: activate & dr

2023-05-18 Thread Paul B Mahol
On Thu, May 18, 2023 at 7:31 PM James Almer wrote: > On 5/18/2023 7:22 AM, Paul B Mahol wrote: > > From af73b69a0be9033fddf222b6e9ac60799de85691 Mon Sep 17 00:00:00 2001 > > From: Paul B Mahol > > Date: Mon, 15 May 2023 21:54:25 +0200 > > Subject: [PATCH 26/27] avfilter/src_movie: dr support > >

[FFmpeg-devel] [PATCH] avfilter/af_apad: switch to activate

2023-05-18 Thread Paul B Mahol
Attached. From c06d3d9f6020fdda19641637cafa6f86c77b4b73 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Wed, 17 May 2023 09:14:56 +0200 Subject: [PATCH 21/27] avfilter/af_apad: switch to activate Signed-off-by: Paul B Mahol --- libavfilter/af_apad.c | 105 -

Re: [FFmpeg-devel] [PATCH] avfilter/src_movie: activate & dr

2023-05-18 Thread James Almer
On 5/18/2023 2:44 PM, Paul B Mahol wrote: On Thu, May 18, 2023 at 7:31 PM James Almer wrote: On 5/18/2023 7:22 AM, Paul B Mahol wrote: From af73b69a0be9033fddf222b6e9ac60799de85691 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Mon, 15 May 2023 21:54:25 +0200 Subject: [PATCH 26/27] avfil

Re: [FFmpeg-devel] [PATCH] lavfi/vf_libplacebo: allow linking to shared library with dllimport

2023-05-18 Thread Niklas Haas
On Wed, 17 May 2023 21:45:03 +0200 Kacper Michajłow wrote: > Address of dll imported variables can't be used for constant > initialization in C language modes. > --- > libavfilter/vf_libplacebo.c | 39 - > 1 file changed, 21 insertions(+), 18 deletions(-) > >

Re: [FFmpeg-devel] [PATCH] avformat/yuvmpegenc: add support for rawvideo input

2023-05-18 Thread Ronald S. Bultje
Hi, On Wed, May 17, 2023 at 10:23 AM James Almer wrote: > The demuxer exports rawvideo, so there's no reason for the muxer to only > work with wrapped_avframe. > > Signed-off-by: James Almer > --- > libavformat/yuv4mpegenc.c | 8 +++- > 1 file changed, 7 insertions(+), 1 deletion(-) > Wor

Re: [FFmpeg-devel] [PATCH] avformat/yuvmpegenc: add support for rawvideo input

2023-05-18 Thread James Almer
On 5/18/2023 4:54 PM, Ronald S. Bultje wrote: Hi, On Wed, May 17, 2023 at 10:23 AM James Almer wrote: The demuxer exports rawvideo, so there's no reason for the muxer to only work with wrapped_avframe. Signed-off-by: James Almer --- libavformat/yuv4mpegenc.c | 8 +++- 1 file changed,

Re: [FFmpeg-devel] [PATCH] avfilter/af_aresample: switch to activate

2023-05-18 Thread Michael Niedermayer
On Thu, May 18, 2023 at 06:27:00PM +0200, Paul B Mahol wrote: > With proper EOF reporting support. Attached. > af_aresample.c | 54 ++ > 1 file changed, 46 insertions(+), 8 deletions(-) > 338cf669de11643ba2c601061f210984b526bbbf > 0022-avfil

Re: [FFmpeg-devel] [PATCH v3 1/2] fate/imf: fix memory leak

2023-05-18 Thread Pierre-Anthony Lemieux
Will apply shortly. On Mon, May 15, 2023 at 11:33 AM wrote: > > From: Pierre-Anthony Lemieux > > --- > libavformat/tests/imf.c | 11 ++- > 1 file changed, 10 insertions(+), 1 deletion(-) > > diff --git a/libavformat/tests/imf.c b/libavformat/tests/imf.c > index cfd84fb8c8..c02cd87ceb 10

Re: [FFmpeg-devel] [PATCH] avfilter/af_aresample: switch to activate

2023-05-18 Thread Paul B Mahol
Fixed patch. From 7cd57fc6ba5598fa43c068126d729180603efd02 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Wed, 17 May 2023 09:15:51 +0200 Subject: [PATCH] avfilter/af_aresample: switch to activate Signed-off-by: Paul B Mahol --- libavfilter/af_aresample.c | 54 +++

Re: [FFmpeg-devel] [PATCH v3 2/2] libavformat/oggparseopus: Clear existing stream metadata before parsing potentially new one. Fixes: #10363

2023-05-18 Thread Romain Beauxis
Hello again! I wanted to see if there was any interest in this patch and the other one adding metadata decoding for chained ogg bitstream. These two feel like easy bugfixes and features to add to the next release. Reproduction steps for this one are detailed here: https://trac.ffmpeg.org/ticket/1

Re: [FFmpeg-devel] [PATCH] avcodec/videotoolboxenc: add low-latency encoding

2023-05-18 Thread ??????
Thank you for your review, James. I will use AV_CODEC_FLAG_LOW_DELAY flag instead, and submit a new patch. -- Original -- From: "FFmpeg developme

[FFmpeg-devel] [PATCH] avcodec/videotoolboxenc: add low-latency encoding

2023-05-18 Thread xufuji456
When using low-latency mode, it eliminates frame reordering and follows a one-in-one-out encoding mode Signed-off-by: xufuji456 <839789...@qq.com> --- libavcodec/videotoolboxenc.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolb

Re: [FFmpeg-devel] [PATCH] avcodec/videotoolboxenc: add low-latency encoding

2023-05-18 Thread zhilizhao(赵志立)
> On May 19, 2023, at 11:17, xufuji456 <839789...@qq.com> wrote: > > When using low-latency mode, it eliminates frame reordering > and follows a one-in-one-out encoding mode > > Signed-off-by: xufuji456 <839789...@qq.com> > --- > libavcodec/videotoolboxenc.c | 11 +++ > 1 file changed, 1

Re: [FFmpeg-devel] [PATCH v2] avcodec/aacenc: add strict bit rate control option

2023-05-18 Thread Jeremy Wu
Friendly ping for review, thanks! ___ 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] avcodec/videotoolboxenc: add low-latency encoding

2023-05-18 Thread ??????
Thank you for your review, and point out the details. Actually, I have also considered this issue. I see that some keys are used directly, some are used by compatibility. I will use compat_key instead, and submit a new patch. --  -- ??:

[FFmpeg-devel] [PATCH] avcodec/videotoolboxenc: add low-latency encoding

2023-05-18 Thread xufuji456
When using low-latency mode, it eliminates frame reordering and follows a one-in-one-out encoding mode Signed-off-by: xufuji456 <839789...@qq.com> --- libavcodec/videotoolboxenc.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videoto