[FFmpeg-devel] [PATCH 6/6] doc/examples/transcode: introduce timestamp logging

2023-09-01 Thread Stefano Sabatini
Aid timestamp debugging. --- doc/examples/transcode.c | 45 1 file changed, 36 insertions(+), 9 deletions(-) diff --git a/doc/examples/transcode.c b/doc/examples/transcode.c index b4b2d3c4c9..983a8f2845 100644 --- a/doc/examples/transcode.c +++

[FFmpeg-devel] [PATCH 5/6] doc/examples/transcode: use av_buffersrc_add_frame()

2023-09-01 Thread Stefano Sabatini
Favor it over av_buffersrc_add_frame_flags, simplify. --- doc/examples/transcode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/examples/transcode.c b/doc/examples/transcode.c index aa6594f4ec..b4b2d3c4c9 100644 --- a/doc/examples/transcode.c +++

[FFmpeg-devel] [PATCH 2/6] doc/examples/transcode: apply style fixes

2023-09-01 Thread Stefano Sabatini
--- doc/examples/transcode.c | 95 +--- 1 file changed, 49 insertions(+), 46 deletions(-) diff --git a/doc/examples/transcode.c b/doc/examples/transcode.c index ed6ac9fa03..9af5674953 100644 --- a/doc/examples/transcode.c +++ b/doc/examples/transcode.c @@

[FFmpeg-devel] [PATCH 4/6] doc/examples/transcode: improve reporting when the encoder is not found

2023-09-01 Thread Stefano Sabatini
Also return EINVAL in place of INVALIDDATA. --- doc/examples/transcode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/examples/transcode.c b/doc/examples/transcode.c index 1ec4a3c230..aa6594f4ec 100644 --- a/doc/examples/transcode.c +++ b/doc/examples/transcode.c @@

[FFmpeg-devel] [PATCH 3/6] doc/examples/transcode: factorize codec_type definition

2023-09-01 Thread Stefano Sabatini
--- doc/examples/transcode.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/examples/transcode.c b/doc/examples/transcode.c index 9af5674953..1ec4a3c230 100644 --- a/doc/examples/transcode.c +++ b/doc/examples/transcode.c @@ -82,6 +82,7 @@ static int

[FFmpeg-devel] [PATCH 1/6] libavcodec/avcodec.h: fix typos in AVCodecContext.pkt_timebase description

2023-09-01 Thread Stefano Sabatini
--- libavcodec/avcodec.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 649411ac79..070e36795d 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -1794,9 +1794,9 @@ typedef struct AVCodecContext { enum

Re: [FFmpeg-devel] [PATCH v3] wmavoice: convert DCT-I/DST-I to lavu/tx

2023-09-01 Thread Lynne
Sep 1, 2023, 06:39 by d...@lynne.ee: > Added a patch to fix scaling of R2R transforms and > improved table generation precision slightly. > > Planning to push this at the end of today, as it has been > on the mailing list for over a month with two LGTMs. > Pushed patchset along with the last

[FFmpeg-devel] [PATCH v4 13/13] avcodec/libx265: add support for writing out CLL and MDCV

2023-09-01 Thread Jan Ekström
The newer of these two are the separate integers for content light level, introduced in 3952bf3e98c76c31594529a3fe34e056d3e3e2ea , with X265_BUILD 75. As we already require X265_BUILD of at least 89, no further conditions are required. --- libavcodec/libx265.c | 87

[FFmpeg-devel] [PATCH v4 12/13] avcodec/libx264: add support for writing out CLL and MDCV

2023-09-01 Thread Jan Ekström
Both of these two structures were first available with X264_BUILD 163, so make relevant functionality conditional on the version being at least such. Keep handle_side_data available in all cases as this way X264_init does not require additional version based conditions within it. Finally, add a

[FFmpeg-devel] [PATCH v4 11/13] avcodec/libsvtav1: add support for writing out CLL and MDCV

2023-09-01 Thread Jan Ekström
These two were added in 28e23d7f348c78d49a726c7469f9d4e38edec341 and 3558c1f2e97455e0b89edef31b9a72ab7fa30550 for version 0.9.0 of SVT-AV1, which is also our minimum requirement right now. In other words, no additional version limiting conditions seem to be required. Additionally, add a FATE

[FFmpeg-devel] [PATCH v4 10/13] ffmpeg: pass first video AVFrame's side data to encoder

2023-09-01 Thread Jan Ekström
This enables further configuration of output based on the results of input decoding and filtering in a similar manner as the color information. --- fftools/ffmpeg_enc.c | 13 + 1 file changed, 13 insertions(+) diff --git a/fftools/ffmpeg_enc.c b/fftools/ffmpeg_enc.c index

[FFmpeg-devel] [PATCH v4 09/13] avcodec: add side data set to AVCodecContext

2023-09-01 Thread Jan Ekström
This allows configuring an encoder by using AVFrameSideData. --- libavcodec/avcodec.h | 7 +++ libavcodec/options.c | 1 + 2 files changed, 8 insertions(+) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 649411ac79..ce673a4e65 100644 --- a/libavcodec/avcodec.h +++

[FFmpeg-devel] [PATCH v4 08/13] avutil/frame: add helper for extending a set of side data

2023-09-01 Thread Jan Ekström
Additionally, extend the side data set FATE test to check for the invalid use case of extending a set by itself. --- libavutil/frame.c | 32 libavutil/frame.h | 15 +++ libavutil/tests/side_data_set.c | 16

[FFmpeg-devel] [PATCH v4 07/13] avutil/frame: add helper for getting side data from set

2023-09-01 Thread Jan Ekström
--- libavutil/frame.c | 22 +- libavutil/frame.h | 12 2 files changed, 29 insertions(+), 5 deletions(-) diff --git a/libavutil/frame.c b/libavutil/frame.c index f64ddb3645..5f74e0172b 100644 --- a/libavutil/frame.c +++ b/libavutil/frame.c @@ -879,16 +879,28 @@

[FFmpeg-devel] [PATCH v4 06/13] avutil/frame: add helper for adding side data to set

2023-09-01 Thread Jan Ekström
Additionally, add an API test to check that the no-duplicates addition works after duplicates have been inserted. --- libavutil/Makefile | 1 + libavutil/frame.c | 18 ++ libavutil/frame.h | 20 +++ libavutil/tests/side_data_set.c | 97

[FFmpeg-devel] [PATCH v4 05/13] avutil/frame: split side data removal out to non-AVFrame function

2023-09-01 Thread Jan Ekström
This will make it possible to reuse logic in further commits. --- libavutil/frame.c | 24 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/libavutil/frame.c b/libavutil/frame.c index 9eff851d64..0b1a8e5244 100644 --- a/libavutil/frame.c +++

[FFmpeg-devel] [PATCH v4 04/13] avutil/frame: split side_data_from_buf to base and AVFrame func

2023-09-01 Thread Jan Ekström
--- libavutil/frame.c | 31 +++ 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/libavutil/frame.c b/libavutil/frame.c index b03f8d6c73..9eff851d64 100644 --- a/libavutil/frame.c +++ b/libavutil/frame.c @@ -787,23 +787,22 @@ FF_ENABLE_DEPRECATION_WARNINGS

[FFmpeg-devel] [PATCH v4 03/13] avutil/frame: add helper for uninitializing side data sets

2023-09-01 Thread Jan Ekström
--- libavutil/frame.c | 5 + libavutil/frame.h | 8 2 files changed, 13 insertions(+) diff --git a/libavutil/frame.c b/libavutil/frame.c index 4b8481b756..b03f8d6c73 100644 --- a/libavutil/frame.c +++ b/libavutil/frame.c @@ -90,6 +90,11 @@ static void frame_side_data_wipe(AVFrame

[FFmpeg-devel] [PATCH v4 02/13] avutil/frame: split side data list wiping out to non-AVFrame function

2023-09-01 Thread Jan Ekström
This will make it possible to to reuse logic in further commits. --- libavutil/frame.c | 23 ++- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/libavutil/frame.c b/libavutil/frame.c index b6cee2d886..4b8481b756 100644 --- a/libavutil/frame.c +++

[FFmpeg-devel] [PATCH v4 00/13] encoder AVCodecContext configuration side data

2023-09-01 Thread Jan Ekström
Differences to v3: 1. rebased on top of current master 2. limited libx264 HDR10 metadata FATE test to BUILD >=163 3. renamed the set variable to `frame_sd_set` as per request from James on IRC 4. adopted various things noted by Andreas in reviews for various patches 5. extended side data set FATE

[FFmpeg-devel] [PATCH v4 01/13] avutil/frame: add AVFrameSideDataSet for passing sets of side data

2023-09-01 Thread Jan Ekström
--- libavutil/frame.h | 8 1 file changed, 8 insertions(+) diff --git a/libavutil/frame.h b/libavutil/frame.h index c0c1b23db7..6155226c1d 100644 --- a/libavutil/frame.h +++ b/libavutil/frame.h @@ -251,6 +251,14 @@ typedef struct AVFrameSideData { AVBufferRef *buf; }

Re: [FFmpeg-devel] [PATCH] lsws/swscale.h: introduce sws_get_gaussian_vec

2023-09-01 Thread Stefano Sabatini
On date Friday 2023-09-01 18:54:40 +0200, Michael Niedermayer wrote: > On Thu, Aug 31, 2023 at 07:16:20PM +0200, Stefano Sabatini wrote: [...] > > +/** > > + * Compute and return a normalized Gaussian vector. > > + * > > + * @param vecp: pointer where the computed vector is put in case of > > + *

Re: [FFmpeg-devel] [PATCH 4/6] doc/developer: add a code behaviour section to development policy

2023-09-01 Thread Stefano Sabatini
On date Friday 2023-09-01 20:10:11 +0300, Rémi Denis-Courmont wrote: > Le torstaina 31. elokuuta 2023, 18.28.48 EEST Stefano Sabatini a écrit : > > On date Tuesday 2023-08-29 10:34:45 +0200, Anton Khirnov wrote: > > > Quoting Stefano Sabatini (2023-08-27 14:38:44) > > > > > > > Il sab 26 ago

Re: [FFmpeg-devel] [PATCH] lsws/swscale.h: introduce sws_get_gaussian_vec

2023-09-01 Thread Stefano Sabatini
On date Friday 2023-09-01 17:50:56 +0200, Anton Khirnov wrote: > Quoting Stefano Sabatini (2023-08-31 17:06:06) > > On date Saturday 2023-08-26 17:15:36 +0200, Anton Khirnov wrote: > > > Quoting Stefano Sabatini (2023-08-26 14:23:28) > > > > Use in place of sws_getGaussianVec. > > > > > > > > The

[FFmpeg-devel] [PATCH] fate: add rka test

2023-09-01 Thread Paul B Mahol
Patch attached. From 74bd7f508208a3631f25874167355929d859a93b Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Fri, 1 Sep 2023 19:38:10 +0200 Subject: [PATCH] fate: add rka test Signed-off-by: Paul B Mahol --- tests/fate/lossless-audio.mak | 3 +++ tests/ref/fate/lossless-rka | 1 + 2 files

Re: [FFmpeg-devel] [PATCH 4/6] doc/developer: add a code behaviour section to development policy

2023-09-01 Thread Paul B Mahol
On Fri, Sep 1, 2023 at 7:16 PM Rémi Denis-Courmont wrote: > Le torstaina 31. elokuuta 2023, 18.28.48 EEST Stefano Sabatini a écrit : > > On date Tuesday 2023-08-29 10:34:45 +0200, Anton Khirnov wrote: > > > Quoting Stefano Sabatini (2023-08-27 14:38:44) > > > > > > > Il sab 26 ago 2023, 20:08

Re: [FFmpeg-devel] [PATCH 4/6] doc/developer: add a code behaviour section to development policy

2023-09-01 Thread Rémi Denis-Courmont
Le torstaina 31. elokuuta 2023, 18.28.48 EEST Stefano Sabatini a écrit : > On date Tuesday 2023-08-29 10:34:45 +0200, Anton Khirnov wrote: > > Quoting Stefano Sabatini (2023-08-27 14:38:44) > > > > > Il sab 26 ago 2023, 20:08 Anton Khirnov ha scritto: > > > > Document our longstanding de facto

Re: [FFmpeg-devel] [PATCH 4/6] doc/developer: add a code behaviour section to development policy

2023-09-01 Thread Michael Niedermayer
On Thu, Aug 31, 2023 at 05:28:48PM +0200, Stefano Sabatini wrote: > On date Tuesday 2023-08-29 10:34:45 +0200, Anton Khirnov wrote: > > Quoting Stefano Sabatini (2023-08-27 14:38:44) > > > Il sab 26 ago 2023, 20:08 Anton Khirnov ha scritto: > > > > > > > Document our longstanding de facto

Re: [FFmpeg-devel] [PATCH] lsws/swscale.h: introduce sws_get_gaussian_vec

2023-09-01 Thread Michael Niedermayer
On Thu, Aug 31, 2023 at 07:16:20PM +0200, Stefano Sabatini wrote: > On date Thursday 2023-08-31 18:51:52 +0200, Andreas Rheinhardt wrote: > > Stefano Sabatini: > > > +int sws_get_gaussian_vec(SwsVector **vecp, > > > + AVClass *log_ctx, > > > + double

Re: [FFmpeg-devel] [PATCH] lsws/swscale.h: introduce sws_get_gaussian_vec

2023-09-01 Thread Anton Khirnov
Quoting Stefano Sabatini (2023-08-31 17:06:06) > On date Saturday 2023-08-26 17:15:36 +0200, Anton Khirnov wrote: > > Quoting Stefano Sabatini (2023-08-26 14:23:28) > > > Use in place of sws_getGaussianVec. > > > > > > The new function enable better log handling, and provide better naming > > >

[FFmpeg-devel] [PATCH 2/3] ffprobe: correct section name for side data piece

2023-09-01 Thread Stefano Sabatini
--- fftools/ffprobe.c | 2 +- tests/ref/fate/hevc-dv-rpu | 80 +++--- 2 files changed, 41 insertions(+), 41 deletions(-) diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index 547e299312..7eb4d20a17 100644 --- a/fftools/ffprobe.c +++

[FFmpeg-devel] [PATCH 1/3] ffprobe: factorize side data printing to dedicated function

2023-09-01 Thread Stefano Sabatini
--- fftools/ffprobe.c | 163 -- 1 file changed, 85 insertions(+), 78 deletions(-) diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index 4fcfe1164b..547e299312 100644 --- a/fftools/ffprobe.c +++ b/fftools/ffprobe.c @@ -2578,6 +2578,89 @@ static void

[FFmpeg-devel] [PATCH] lavu/avstring: fix typo in av_strireplace function doxy

2023-09-01 Thread Stefano Sabatini
--- libavutil/avstring.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/avstring.h b/libavutil/avstring.h index e260263763..9b187e8d92 100644 --- a/libavutil/avstring.h +++ b/libavutil/avstring.h @@ -265,7 +265,7 @@ int av_strncasecmp(const char *a, const char *b,

Re: [FFmpeg-devel] [PATCH v4 0/4] Add passthrough support for SCTE-35

2023-09-01 Thread Dennis Mungai
On Tue, 8 Aug 2023 at 18:30, Dennis Mungai wrote: > On Tue, 8 Aug 2023, 17:31 Devin Heitmueller, < > devin.heitmuel...@ltnglobal.com> wrote: > >> On Fri, Aug 4, 2023 at 7:16 AM Devin Heitmueller >> wrote: >> > >> > On Mon, Jul 31, 2023 at 9:38 AM Devin Heitmueller >> > wrote: >> > > >> > >