Re: [FFmpeg-devel] [PATCH 3/3] lavu/vulkan: only request beta extensions if we detected they're present

2023-02-04 Thread Lynne
5 Feb 2023, 00:17 by rco...@rcombs.me: > Fixes build on systems where vulkan_beta.h is absent (e.g. Android) > --- > libavutil/hwcontext_vulkan.c | 5 - > libavutil/vulkan_functions.h | 4 > 2 files changed, 8 insertions(+), 1 deletion(-) > > diff --git a/libavutil/hwcontext_vulkan.c

Re: [FFmpeg-devel] [PATCH v3 2/3] avcodec/pngdec: read colorspace info when decoding with AVDISCARD_ALL

2023-02-04 Thread Leo Izen
On 2/4/23 22:47, Andreas Rheinhardt wrote: Leo Izen: These chunks are lightweight and it's useful information to have when running ffmpeg -i or ffprobe, for example. --- libavcodec/pngdec.c | 103 ++- tests/ref/fate/png-icc | 8 +--

Re: [FFmpeg-devel] [PATCH v3 2/3] avcodec/pngdec: read colorspace info when decoding with AVDISCARD_ALL

2023-02-04 Thread Andreas Rheinhardt
Leo Izen: > These chunks are lightweight and it's useful information to have when > running ffmpeg -i or ffprobe, for example. > --- > libavcodec/pngdec.c | 103 ++- > tests/ref/fate/png-icc | 8 +-- > tests/ref/fate/png-side-data | 2 +- > 3

Re: [FFmpeg-devel] [PATCH] avcodec/libjxl: add #ifdef guards for libjxl >= 0.8.0 features

2023-02-04 Thread Leo Izen
On 2/4/23 18:28, Leo Izen wrote: > Since many distributions ship libjxl 0.7.0 still, we'd still prefer to > compile against that, but don't want to lose the features that require > libjxl 0.8.0 or greater. For this reason I've added preprocessor #ifdef > guards around the features that aren't

[FFmpeg-devel] [PATCH] avcodec/libjxl: add #ifdef guards for libjxl >= 0.8.0 features

2023-02-04 Thread Leo Izen
Since many distributions ship libjxl 0.7.0 still, we'd still prefer to compile against that, but don't want to lose the features that require libjxl 0.8.0 or greater. For this reason I've added preprocessor #ifdef guards around the features that aren't necessarily in libjxl 0.7.0. Signed-off-by:

[FFmpeg-devel] [PATCH 3/3] lavu/vulkan: only request beta extensions if we detected they're present

2023-02-04 Thread rcombs
Fixes build on systems where vulkan_beta.h is absent (e.g. Android) --- libavutil/hwcontext_vulkan.c | 5 - libavutil/vulkan_functions.h | 4 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c index

[FFmpeg-devel] [PATCH 2/3] configure: check for vulkan beta extension support

2023-02-04 Thread rcombs
Some systems (e.g. android) provide vulkan.h, but not vulkan_beta.h. In that case, compiling vulkan.h with VK_ENABLE_BETA_EXTENSIONS enabled will result in a preprocessor error. We can check for this up-front. --- configure | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure

[FFmpeg-devel] [PATCH 1/3] lavu/hwcontext_vulkan: check for encode/decode queue extensions

2023-02-04 Thread rcombs
These are currently beta features, and aren't always present. --- libavutil/hwcontext_vulkan.c | 16 1 file changed, 16 insertions(+) diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c index 2a9b5f4aac..589a7a7d9a 100644 --- a/libavutil/hwcontext_vulkan.c

[FFmpeg-devel] [PATCH] avfilter: fix af_pan regression

2023-02-04 Thread Paul B Mahol
Patch attached. From b53fa290876af0f540a99f733193f270103bf8ad Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sat, 4 Feb 2023 21:46:15 +0100 Subject: [PATCH] avfilter/af_pan: fix regression introduced with switch to new channel layout API Fixes #10168 Signed-off-by: Paul B Mahol ---

[FFmpeg-devel] [PATCH] mswindres: Use '-' instead of '/' for rc.exe options

2023-02-04 Thread Ziemowit Laski
Hello Gentlefolk, I've been bringing up FFMPEG using Visual Studio 2022 and the MINGW64 environment, and came across sundry things that absolutely needed fixes, so I thought I'd submit them as a series of small patches for you to consider. Here is the first patch. --Zem

Re: [FFmpeg-devel] [PATCH] configure: update libjxl pkg-config versions

2023-02-04 Thread Jan Ekström
On Sat, Feb 4, 2023 at 6:59 PM Leo Izen wrote: > > On 2/4/23 10:24, Andreas Rheinhardt wrote: > > Leo Izen: > >> Commit fb823161a8e3dfc864a7bd83a9b968f4912c5b1d added a dependency of > >> JxlBitDepth, which wasn't present in 0.7.0. This updates the library > >> versions in ./configure required to

Re: [FFmpeg-devel] [PATCH] configure: update libjxl pkg-config versions

2023-02-04 Thread Leo Izen
On 2/4/23 10:24, Andreas Rheinhardt wrote: Leo Izen: Commit fb823161a8e3dfc864a7bd83a9b968f4912c5b1d added a dependency of JxlBitDepth, which wasn't present in 0.7.0. This updates the library versions in ./configure required to match 0.8.0, the new required version. --- configure | 4 ++-- 1

Re: [FFmpeg-devel] [PATCH v2 29/33] avutil/{color_utils, csp}: merge color_utils into csp and expose API

2023-02-04 Thread Ronald S. Bultje
Hi, On Sat, Feb 4, 2023 at 11:50 AM Anton Khirnov wrote: > From: Leo Izen > > libavutil/color_utils contains some avpriv_ symbols that map > enum AVTransferCharacteristic values to gamma-curve approximations and > to the actual transfer functions to invert them (i.e. -> linear). > > There's

Re: [FFmpeg-devel] [PATCH] lavfi: get rid of FF_INTERNAL_FIELDS

2023-02-04 Thread Andreas Rheinhardt
Nicolas George: > Andreas Rheinhardt (12023-02-01): >> "One special guarantee is made in order to simplify the use of unions: >> if a union contains several structures that share a common initial >> sequence (see below), and if the union object currently contains one of >> these structures, it is

Re: [FFmpeg-devel] [PATCH] configure: update libjxl pkg-config versions

2023-02-04 Thread Andreas Rheinhardt
Leo Izen: > Commit fb823161a8e3dfc864a7bd83a9b968f4912c5b1d added a dependency of > JxlBitDepth, which wasn't present in 0.7.0. This updates the library > versions in ./configure required to match 0.8.0, the new required > version. > --- > configure | 4 ++-- > 1 file changed, 2 insertions(+), 2

[FFmpeg-devel] [PATCH] configure: update libjxl pkg-config versions

2023-02-04 Thread Leo Izen
Commit fb823161a8e3dfc864a7bd83a9b968f4912c5b1d added a dependency of JxlBitDepth, which wasn't present in 0.7.0. This updates the library versions in ./configure required to match 0.8.0, the new required version. --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [FFmpeg-devel] [PATCH] lavfi: get rid of FF_INTERNAL_FIELDS

2023-02-04 Thread Uoti Urpala
On Fri, 2023-02-03 at 15:45 +0100, Nicolas George wrote: > Andreas Rheinhardt (12023-02-01): > > "One special guarantee is made in order to simplify the use of unions: > > if a union contains several structures that share a common initial > > sequence (see below), and if the union object currently

[FFmpeg-devel] [PATCH v2 29/33] avutil/{color_utils, csp}: merge color_utils into csp and expose API

2023-02-04 Thread Anton Khirnov
From: Leo Izen libavutil/color_utils contains some avpriv_ symbols that map enum AVTransferCharacteristic values to gamma-curve approximations and to the actual transfer functions to invert them (i.e. -> linear). There's two issues with this: (1) avpriv is evil and should be avoided whenever

[FFmpeg-devel] [PATCH v2 32/33] avformat/version: postpone the remaining API deprecations

2023-02-04 Thread Anton Khirnov
From: James Almer They are either too recent, or still need work like FF_API_COMPUTE_PKT_FIELDS2. Signed-off-by: James Almer --- libavformat/version_major.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavformat/version_major.h b/libavformat/version_major.h

[FFmpeg-devel] [PATCH v2 06/33] avcodec/avcodec: Remove AV_CODEC_FLAG2_DROP_FRAME_TIMECODE

2023-02-04 Thread Anton Khirnov
From: Andreas Rheinhardt It has been deprecated in 94d68a41fabb55dd8c7e59b88fe4a28a637d1e5f and can't be set via AVOptions. The only codecs that use it (the MPEG-1/2 encoders) have private options for this. So remove it. Signed-off-by: Andreas Rheinhardt Signed-off-by: Anton Khirnov ---

[FFmpeg-devel] [PATCH v2 22/33] avfilter: remove FF_API_BUFFERSINK_ALLOC

2023-02-04 Thread Anton Khirnov
From: James Almer Signed-off-by: James Almer --- libavfilter/buffersink.c| 22 -- libavfilter/buffersink.h| 36 libavfilter/version_major.h | 1 - 3 files changed, 59 deletions(-) diff --git a/libavfilter/buffersink.c

[FFmpeg-devel] [PATCH v2 19/33] avformat: remove FF_HLS_TS_OPTIONS

2023-02-04 Thread Anton Khirnov
From: James Almer Signed-off-by: James Almer --- libavformat/hlsenc.c| 3 --- libavformat/version_major.h | 1 - 2 files changed, 4 deletions(-) diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index adf06ec7643..dcc363b42e3 100644 --- a/libavformat/hlsenc.c +++

[FFmpeg-devel] [PATCH v2 26/33] avutil: remove FF_API_DECLARE_ALIGNED

2023-02-04 Thread Anton Khirnov
From: James Almer Signed-off-by: James Almer --- libavcodec/qdmc.c| 1 + libavutil/mem.h | 80 libavutil/mem_internal.h | 2 - libavutil/version.h | 1 - 4 files changed, 1 insertion(+), 83 deletions(-) diff --git

[FFmpeg-devel] [PATCH v2 28/33] avutil: remove FF_API_AV_MALLOCZ_ARRAY

2023-02-04 Thread Anton Khirnov
From: James Almer Signed-off-by: James Almer --- libavutil/mem.c | 10 -- libavutil/mem.h | 8 libavutil/version.h | 1 - 3 files changed, 19 deletions(-) diff --git a/libavutil/mem.c b/libavutil/mem.c index 18aff5291f0..36b8940a0cf 100644 --- a/libavutil/mem.c +++

[FFmpeg-devel] [PATCH v2 20/33] avformat: remove FF_API_AVSTREAM_CLASS

2023-02-04 Thread Anton Khirnov
From: James Almer Signed-off-by: James Almer --- fftools/ffmpeg_mux_init.c | 11 --- libavformat/avformat.h | 2 -- libavformat/options.c | 3 --- libavformat/version_major.h | 1 - 4 files changed, 17 deletions(-) diff --git a/fftools/ffmpeg_mux_init.c

[FFmpeg-devel] [PATCH v2 24/33] avdevice: remove FF_API_DEVICE_CAPABILITIES

2023-02-04 Thread Anton Khirnov
From: James Almer Signed-off-by: James Almer --- libavdevice/avdevice.c | 19 -- libavdevice/avdevice.h | 130 libavdevice/version_major.h | 1 - 3 files changed, 150 deletions(-) diff --git a/libavdevice/avdevice.c

[FFmpeg-devel] [PATCH v2 15/33] avcodec: remove FF_API_FLAG_TRUNCATED

2023-02-04 Thread Anton Khirnov
From: James Almer Signed-off-by: James Almer --- libavcodec/avcodec.h | 9 - libavcodec/codec.h | 6 libavcodec/decode.c| 4 --- libavcodec/h263_parser.c | 11 -- libavcodec/h263_parser.h | 29 --- libavcodec/h263dec.c

[FFmpeg-devel] [PATCH v2 18/33] avformat: remove FF_API_AVIOCONTEXT_WRITTEN

2023-02-04 Thread Anton Khirnov
From: James Almer Signed-off-by: James Almer --- libavformat/avio.h | 10 -- libavformat/aviobuf.c | 10 -- libavformat/version_major.h | 1 - 3 files changed, 21 deletions(-) diff --git a/libavformat/avio.h b/libavformat/avio.h index 4bf6b1fbdaa..5f13e0622d3

[FFmpeg-devel] [PATCH v2 14/33] avcodec: remove FF_API_AVCTX_TIMEBASE

2023-02-04 Thread Anton Khirnov
From: James Almer Signed-off-by: James Almer --- libavcodec/av1_parser.c| 3 --- libavcodec/avcodec.c | 5 - libavcodec/avcodec.h | 3 +-- libavcodec/avs2_parser.c | 4 ++-- libavcodec/avs3_parser.c | 4 ++-- libavcodec/cpia.c | 8

[FFmpeg-devel] [PATCH v2 33/33] Bump major versions of all libraries

2023-02-04 Thread Anton Khirnov
From: James Almer Signed-off-by: James Almer --- doc/APIchanges | 14 +- libavcodec/version.h| 2 +- libavcodec/version_major.h | 2 +- libavdevice/version.h | 4 ++-- libavdevice/version_major.h | 2 +- libavfilter/version.h | 2 +-

[FFmpeg-devel] [PATCH v2 13/33] avcodec: remove FF_API_AUTO_THREADS

2023-02-04 Thread Anton Khirnov
From: James Almer Signed-off-by: James Almer --- libavcodec/codec.h | 3 --- libavcodec/version_major.h | 1 - 2 files changed, 4 deletions(-) diff --git a/libavcodec/codec.h b/libavcodec/codec.h index e10fcb9c7c2..8bf85b2f9c8 100644 --- a/libavcodec/codec.h +++ b/libavcodec/codec.h

[FFmpeg-devel] [PATCH v2 09/33] avcodec: remove FF_API_UNUSED_CODEC_CAPS

2023-02-04 Thread Anton Khirnov
From: James Almer Signed-off-by: James Almer --- libavcodec/codec.h | 11 --- libavcodec/version_major.h | 1 - 2 files changed, 12 deletions(-) diff --git a/libavcodec/codec.h b/libavcodec/codec.h index 77a1a3f5a29..e10fcb9c7c2 100644 --- a/libavcodec/codec.h +++

[FFmpeg-devel] [PATCH v2 11/33] avcodec: remove FF_API_DEBUG_MV

2023-02-04 Thread Anton Khirnov
From: James Almer Signed-off-by: James Almer --- libavcodec/avcodec.h | 11 --- libavcodec/version_major.h | 1 - 2 files changed, 12 deletions(-) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 6cf6031705b..25c4b4eacc3 100644 --- a/libavcodec/avcodec.h +++

[FFmpeg-devel] [PATCH v2 03/33] avcodec: Make avcodec_decode_subtitle2 accept a const AVPacket*

2023-02-04 Thread Anton Khirnov
From: Andreas Rheinhardt Signed-off-by: Andreas Rheinhardt Signed-off-by: Anton Khirnov --- doc/APIchanges| 3 +++ fftools/ffmpeg.c | 4 ++-- fftools/ffprobe.c | 2 +- libavcodec/avcodec.h | 3 +-- libavcodec/decode.c | 9 -

[FFmpeg-devel] [PATCH v2 16/33] avcodec: remove FF_API_SUB_TEXT_FORMAT

2023-02-04 Thread Anton Khirnov
From: James Almer Signed-off-by: James Almer --- libavcodec/avcodec.h | 9 - libavcodec/options_table.h | 4 libavcodec/version_major.h | 1 - 3 files changed, 14 deletions(-) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 9066f6c5297..ecd02ff4747 100644 ---

[FFmpeg-devel] [PATCH v2 27/33] avutil: remove FF_API_COLORSPACE_NAME

2023-02-04 Thread Anton Khirnov
From: James Almer Signed-off-by: James Almer --- libavutil/frame.c | 17 - libavutil/frame.h | 9 - libavutil/version.h | 1 - 3 files changed, 27 deletions(-) diff --git a/libavutil/frame.c b/libavutil/frame.c index fa9b11aa543..3198a50f67f 100644 ---

[FFmpeg-devel] [PATCH v2 21/33] avfilter: remove FF_API_SWS_PARAM_OPTION

2023-02-04 Thread Anton Khirnov
From: James Almer Signed-off-by: James Almer --- libavfilter/buffersrc.c | 11 --- libavfilter/version_major.h | 1 - 2 files changed, 12 deletions(-) diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c index ae8bba19b07..ba17450b937 100644 ---

[FFmpeg-devel] [PATCH v2 08/33] avcodec: remove FF_API_OPENH264_CABAC

2023-02-04 Thread Anton Khirnov
From: James Almer Signed-off-by: James Almer --- libavcodec/libopenh264enc.c | 6 -- libavcodec/version_major.h | 1 - 2 files changed, 7 deletions(-) diff --git a/libavcodec/libopenh264enc.c b/libavcodec/libopenh264enc.c index 4dd15b0afe5..8b4755f5ba4 100644 ---

[FFmpeg-devel] [PATCH v2 23/33] avfilter: remove FF_API_PAD_COUNT

2023-02-04 Thread Anton Khirnov
From: James Almer Signed-off-by: James Almer --- libavfilter/avfilter.c | 21 - libavfilter/avfilter.h | 10 -- libavfilter/version_major.h | 2 -- 3 files changed, 33 deletions(-) diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index

[FFmpeg-devel] [PATCH v2 31/33] avcodec/version: postpone the remaining API deprecations

2023-02-04 Thread Anton Khirnov
From: James Almer They are either too recent, or still need work like FF_API_INIT_PACKET. Signed-off-by: James Almer --- libavcodec/version_major.h | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/libavcodec/version_major.h b/libavcodec/version_major.h index

[FFmpeg-devel] [PATCH v2 30/33] avutil/version: postpone the remaining API deprecations

2023-02-04 Thread Anton Khirnov
From: James Almer They are too recent. Signed-off-by: James Almer --- fftools/ffprobe.c | 2 +- libavutil/version.h | 12 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index 5beaece094f..db37ec52f49 100644 ---

[FFmpeg-devel] [PATCH v2 12/33] avcodec: remove FF_API_GET_FRAME_CLASS

2023-02-04 Thread Anton Khirnov
From: James Almer Signed-off-by: James Almer --- libavcodec/avcodec.h | 8 libavcodec/options.c | 33 - libavcodec/version_major.h | 1 - 3 files changed, 42 deletions(-) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index

[FFmpeg-devel] [PATCH v2 25/33] avutil: remove FF_API_D2STR

2023-02-04 Thread Anton Khirnov
From: James Almer Signed-off-by: James Almer --- libavutil/avstring.c | 10 -- libavutil/avstring.h | 9 - libavutil/tests/avstring.c | 16 libavutil/version.h| 1 - 4 files changed, 36 deletions(-) diff --git a/libavutil/avstring.c

[FFmpeg-devel] [PATCH v2 10/33] avcodec: remove FF_API_THREAD_SAFE_CALLBACKS

2023-02-04 Thread Anton Khirnov
From: James Almer Signed-off-by: James Almer --- fftools/ffmpeg.c | 5 - libavcodec/avcodec.h | 21 --- libavcodec/decode.c | 13 -- libavcodec/encode.c | 7 +- libavcodec/frame_thread_encoder.c | 20 ---

[FFmpeg-devel] [PATCH v2 17/33] avformat: remove FF_API_LAVF_PRIV_OPT

2023-02-04 Thread Anton Khirnov
From: James Almer Signed-off-by: James Almer --- libavformat/avformat.h | 3 --- libavformat/version_major.h | 1 - 2 files changed, 4 deletions(-) diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 49e50a5120a..ac40e197f62 100644 --- a/libavformat/avformat.h +++

[FFmpeg-devel] [PATCH v2 07/33] avcodec: remove FF_API_OPENH264_SLICE_MODE

2023-02-04 Thread Anton Khirnov
From: James Almer Signed-off-by: James Almer --- libavcodec/libopenh264enc.c | 16 libavcodec/version_major.h | 1 - 2 files changed, 17 deletions(-) diff --git a/libavcodec/libopenh264enc.c b/libavcodec/libopenh264enc.c index 6934fd481ce..4dd15b0afe5 100644 ---

[FFmpeg-devel] [PATCH v2 02/33] avformat/avformat: Move codecpar up in AVStream

2023-02-04 Thread Anton Khirnov
From: Andreas Rheinhardt It is the most commonly used field and moving it to the start e.g. allows to encode the offset in a pointer+offset addressing mode on one byte on x86. Signed-off-by: Andreas Rheinhardt Signed-off-by: Anton Khirnov --- libavformat/avformat.h | 22

[FFmpeg-devel] [PATCH v2 01/33] avformat/avformat: Remove AVOutputFormat.data_codec

2023-02-04 Thread Anton Khirnov
From: Andreas Rheinhardt No AVOutputFormat has this set. Signed-off-by: Andreas Rheinhardt Signed-off-by: Anton Khirnov --- libavformat/avformat.h | 1 - libavformat/format.c| 2 -- libavformat/mux_utils.c | 3 +-- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git

[FFmpeg-devel] [PATCH v2 04/33] avformat/demux: Avoid stack packet when decoding frame

2023-02-04 Thread Anton Khirnov
From: Andreas Rheinhardt Possible now that avcodec_decode_subtitle2() accepts a const AVPacket*. Signed-off-by: Andreas Rheinhardt Signed-off-by: Anton Khirnov --- libavformat/demux.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/libavformat/demux.c

[FFmpeg-devel] [PATCH v2] Major library version bump

2023-02-04 Thread Anton Khirnov
Hi, James is on vacation, so I'm continuing his work on the bump, with his agreement. The consensus from the previous thread was that we do NOT want any instability period - this set is pushed all at once and the tree is considered stable immediately after. I've integrated all the patches

Re: [FFmpeg-devel] [PATCH v2 2/2] avformat/flvenc: add option to read metadata from file

2023-02-04 Thread Gyan Doshi
On 2023-02-04 04:02 pm, Paul B Mahol wrote: On 2/4/23, Gyan Doshi wrote: On 2023-02-04 03:46 pm, Paul B Mahol wrote: On 2/4/23, Gyan Doshi wrote: On 2023-02-03 09:04 pm, Andreas Rheinhardt wrote: Gyan Doshi: Useful, in conjuntion with option meta_period, to vary metadata during

Re: [FFmpeg-devel] [PATCH v2 2/2] avformat/flvenc: add option to read metadata from file

2023-02-04 Thread Paul B Mahol
On 2/4/23, Gyan Doshi wrote: > > > On 2023-02-04 03:46 pm, Paul B Mahol wrote: >> On 2/4/23, Gyan Doshi wrote: >>> >>> On 2023-02-03 09:04 pm, Andreas Rheinhardt wrote: Gyan Doshi: > Useful, in conjuntion with option meta_period, to vary metadata during > stream. > > File

Re: [FFmpeg-devel] [PATCH v2 2/2] avformat/flvenc: add option to read metadata from file

2023-02-04 Thread Gyan Doshi
On 2023-02-04 03:46 pm, Paul B Mahol wrote: On 2/4/23, Gyan Doshi wrote: On 2023-02-03 09:04 pm, Andreas Rheinhardt wrote: Gyan Doshi: Useful, in conjuntion with option meta_period, to vary metadata during stream. File format is ffmetadata. --- configure| 2 +-

Re: [FFmpeg-devel] [PATCH v2 2/2] avformat/flvenc: add option to read metadata from file

2023-02-04 Thread Paul B Mahol
On 2/4/23, Gyan Doshi wrote: > > > On 2023-02-03 09:04 pm, Andreas Rheinhardt wrote: >> Gyan Doshi: >>> Useful, in conjuntion with option meta_period, to vary metadata during >>> stream. >>> >>> File format is ffmetadata. >>> --- >>> configure| 2 +- >>> doc/muxers.texi |

Re: [FFmpeg-devel] [PATCH v2 2/2] avformat/flvenc: add option to read metadata from file

2023-02-04 Thread Gyan Doshi
On 2023-02-03 09:04 pm, Andreas Rheinhardt wrote: Gyan Doshi: Useful, in conjuntion with option meta_period, to vary metadata during stream. File format is ffmetadata. --- configure| 2 +- doc/muxers.texi | 3 + libavformat/flvenc.c | 133

[FFmpeg-devel] [PATCH v2] avcodec/h264_metadata_bsf: remove AUDs at any position

2023-02-04 Thread Gyan Doshi
Some files, likely due to faulty packetization or muxing, can have AUDs at other positions besides the head unit of a packet. Remove these too. --- libavcodec/h264_metadata_bsf.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/libavcodec/h264_metadata_bsf.c

Re: [FFmpeg-devel] [PATCH] avformat/tee: signal EOF if no more output is to be published.

2023-02-04 Thread Gyan Doshi
On 2023-02-03 02:02 pm, Marton Balint wrote: Any av_interleaved_write_frame() negative return value is an error, ffmpeg should abort. It seems that there is a clash of error codes in sync_queue_process which returns AVERROR_EOF to signal sq_send EOF return, but that clashes with the

[FFmpeg-devel] [PATCH] ffmpeg_mux: terminate stream thread queue only on sq_send EOF

2023-02-04 Thread Gyan Doshi
Prior to 2d924b3a630, ffmpeg would exit if any packet write failed. After the switch to threaded mode for muxing, ffmpeg only closes that OutputStream instead of closng the file. This happens because EOF returned by write_packet isn't distinguished from EOF returned by sq_send, both relayed via

[FFmpeg-devel] [RFC][WIP][PATCH] RK Audio demuxer and decoder

2023-02-04 Thread Paul B Mahol
Hi, Patches attached, decoder is not bit by bit exact yet for lossless mode because some samples are not properly rounded. From 71bfdb9eadc988b1154f8202b12a380839096d48 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Tue, 31 Jan 2023 19:27:09 +0100 Subject: [PATCH 1/2] avformat: add RKA