Re: [FFmpeg-devel] [PATCH v3 1/2] lavc/vaapi_encode_h265: Map HEVC AV REXT profile to VA REXT profile

2024-04-15 Thread Wang, Fei W
On Mon, 2024-04-15 at 23:07 +0100, Mark Thompson wrote: > On 15/04/2024 02:21, Xiang, Haihao wrote: > > On Ma, 2024-03-18 at 12:21 +0800, > > fei.w.wang-at-intel@ffmpeg.org wrote: > > > From: Fei Wang > > > > > > There is no Main8/10 profile defined in HEVC REXT profiles. Use > > > Main12 >

Re: [FFmpeg-devel] [PATCH] ffmpeg: Carry streamid as metadata key 'id'

2024-04-15 Thread James Almer
On 4/15/2024 9:30 PM, Michael Niedermayer wrote: On Mon, Apr 15, 2024 at 10:35:44AM +0200, Tomas Härdin wrote: lör 2024-04-13 klockan 01:25 +0200 skrev Michael Niedermayer: On Fri, Apr 12, 2024 at 11:40:47AM +0200, Tomas Härdin wrote: This idea could be extended to other fields not presently

Re: [FFmpeg-devel] [PATCH] ffmpeg: Carry streamid as metadata key 'id'

2024-04-15 Thread Michael Niedermayer
On Mon, Apr 15, 2024 at 10:35:44AM +0200, Tomas Härdin wrote: > lör 2024-04-13 klockan 01:25 +0200 skrev Michael Niedermayer: > > On Fri, Apr 12, 2024 at 11:40:47AM +0200, Tomas Härdin wrote: > > > This idea could be extended to other fields not presently > > > considered to > > > be metadata,

Re: [FFmpeg-devel] [PATCH] avutil/opt: add AV_OPT_FLAG_FORCE_CONST

2024-04-15 Thread Michael Niedermayer
On Sun, Apr 14, 2024 at 10:35:57PM +0200, Timo Rothenpieler wrote: > On 14.04.2024 22:30, Marton Balint wrote: > > > > > > On Sun, 14 Apr 2024, Timo Rothenpieler wrote: > > > > > --- > > > doc/APIchanges  |  3 +++ > > > libavutil/opt.c | 14 ++ > > > libavutil/opt.h |  5

Re: [FFmpeg-devel] [PATCH v3 1/2] lavc/vaapi_encode_h265: Map HEVC AV REXT profile to VA REXT profile

2024-04-15 Thread Mark Thompson
On 15/04/2024 02:21, Xiang, Haihao wrote: > On Ma, 2024-03-18 at 12:21 +0800, fei.w.wang-at-intel@ffmpeg.org wrote: >> From: Fei Wang >> >> There is no Main8/10 profile defined in HEVC REXT profiles. Use Main12 >> which is compatible with 8/10bit. >> >> Signed-off-by: Fei Wang >> --- >>  

[FFmpeg-devel] [PATCH] avformat/mxfdec: only check index_edit_rate when calculating the index tables

2024-04-15 Thread Marton Balint
Commit ed49391961999f028e0bc55767d0eef6eeb15e49 started rejecting negative index segment edit rates to avoid negative av_rescale parameters. There are two problems with this: 1) there is already a validation for zero (uninitialized) rates later on 2) it rejects files with 0/0 index edit rates

Re: [FFmpeg-devel] [PATCH 0/3] avcodec/h264dec: Fix dropped frames when draining

2024-04-15 Thread Derek Buitenhuis
On 4/9/2024 4:15 PM, Derek Buitenhuis wrote: > To me, it LGTM, but I would like someone more experience in H.264 internals > to OK it, too - possibly Michael? If there are no objections raised, I will merge this tomorrow. - Derek ___ ffmpeg-devel

Re: [FFmpeg-devel] [PATCH] avformat/httpauth.c Support RFC7616 [Style fixed]

2024-04-15 Thread Stefano Sabatini
On date Monday 2024-04-15 02:32:14 +, �� | Eugene wrote: > Update digest authentication in httpauth.c > > - Refactor make_digest_auth() to support RFC 2617 and RFC 7617 > - Add support for SHA-256 and SHA-512/256 algorithms along with MD5 > - MD5 and SHA-256 tested, but SHA-512/256

Re: [FFmpeg-devel] [PATCH 4/5] avformat/mxfdec: Check index_edit_rate

2024-04-15 Thread Marton Balint
On Mon, 15 Apr 2024, Tomas Härdin wrote: sön 2024-04-14 klockan 22:55 +0200 skrev Marton Balint: On Wed, 10 Apr 2024, Tomas Härdin wrote: > tis 2024-04-09 klockan 22:58 +0200 skrev Marton Balint: > > > > > > On Tue, 9 Apr 2024, Tomas Härdin wrote: > > > > > mån 2024-04-08 klockan 21:46

[FFmpeg-devel] 回复: [PATCH] avcodec/x86/vvc/vvcdsp_init: fix linking error when configuring with --disable-ssse3 --disable-optimizations options

2024-04-15 Thread Wu Jianhua
> 发件人: Nuo Mi > 发送时间: 2024年3月3日 6:49 > 收件人: FFmpeg development discussions and patches > 抄送: Wu Jianhua > 主题: Re: [FFmpeg-devel] [PATCH] avcodec/x86/vvc/vvcdsp_init: fix linking error > when configuring with --disable-> > ssse3 --disable-optimizations options > > Thank you, Jianhua. > This

[FFmpeg-devel] [PATCH v2 3/3] avcodec/x86/vvc/vvcdsp_init: fix linking error when configuring with --disable-ssse3 --disable-optimizations options

2024-04-15 Thread toqsxw
From: Wu Jianhua Signed-off-by: Wu Jianhua --- libavcodec/x86/vvc/vvcdsp_init.c | 46 +--- 1 file changed, 25 insertions(+), 21 deletions(-) diff --git a/libavcodec/x86/vvc/vvcdsp_init.c b/libavcodec/x86/vvc/vvcdsp_init.c index aef6699c35..985d750472 100644 ---

[FFmpeg-devel] [PATCH v2 2/3] avcodec/x86/vvc/vvcdsp_init: add avg prototypes

2024-04-15 Thread toqsxw
From: Wu Jianhua Signed-off-by: Wu Jianhua --- libavcodec/x86/vvc/vvcdsp_init.c | 45 1 file changed, 28 insertions(+), 17 deletions(-) diff --git a/libavcodec/x86/vvc/vvcdsp_init.c b/libavcodec/x86/vvc/vvcdsp_init.c index d9203f4d5f..aef6699c35 100644 ---

[FFmpeg-devel] [PATCH v2 1/3] avcodec/x86/vvc/vvcdsp_init: add put prototypes

2024-04-15 Thread toqsxw
From: Wu Jianhua Signed-off-by: Wu Jianhua --- libavcodec/x86/vvc/vvcdsp_init.c | 35 +++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/libavcodec/x86/vvc/vvcdsp_init.c b/libavcodec/x86/vvc/vvcdsp_init.c index 23a3172c45..d9203f4d5f 100644 ---

Re: [FFmpeg-devel] [PATCH 4/6 v2] avformat/http: Add support for Retry-After header

2024-04-15 Thread Stefano Sabatini
On date Monday 2024-04-15 17:49:33 +0100, Derek Buitenhuis wrote: > 429 and 503 codes can, and often do (e.g. all Google Cloud > Storage URLs can), return a Retry-After header with the error, > indicating how long to wait, in seconds, before retrying again. > If it is not respected by, for

Re: [FFmpeg-devel] [PATCH] avcodec/jni: fix mixed declaration and code

2024-04-15 Thread Matthieu Bouron
On Thu, Apr 04, 2024 at 10:07:25PM +0200, Matthieu Bouron wrote: > --- > libavcodec/jni.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/libavcodec/jni.c b/libavcodec/jni.c > index 1193c608c3..fcb4837413 100644 > --- a/libavcodec/jni.c > +++ b/libavcodec/jni.c > @@

Re: [FFmpeg-devel] [PATCH 4/6] avformat/http: Add support for Retry-After header

2024-04-15 Thread Derek Buitenhuis
On 4/15/2024 5:35 PM, James Almer wrote: > Why strtoull for an int? If the value can't be negative, then make it > unsigned and use strtoul instead. Done, v2 sent. - Derek ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org

[FFmpeg-devel] [PATCH 4/6 v2] avformat/http: Add support for Retry-After header

2024-04-15 Thread Derek Buitenhuis
429 and 503 codes can, and often do (e.g. all Google Cloud Storage URLs can), return a Retry-After header with the error, indicating how long to wait, in seconds, before retrying again. If it is not respected by, for example, using our default backoff stratetgy instead, chances of success are very

Re: [FFmpeg-devel] [PATCH 1/6] avutil/error: Add HTTP 429 Too Many Requests AVERROR code

2024-04-15 Thread Derek Buitenhuis
On 4/15/2024 5:43 PM, Derek Buitenhuis wrote: > --- > libavutil/error.c | 1 + > libavutil/error.h | 1 + > libavutil/version.h | 2 +- > 3 files changed, 3 insertions(+), 1 deletion(-) This is a v2 I forgot to tag as v2. Woops. - Derek ___

Re: [FFmpeg-devel] [PATCH 1/6] avutil/error: Add HTTP 429 Too Many Requests AVERROR code

2024-04-15 Thread Derek Buitenhuis
On 4/15/2024 5:31 PM, Andreas Rheinhardt wrote: > Wouldn't you need to add a new entry to error_entries in error.c for this? You are right, I missed that since grep failed me, as error.c uses macros, and thus does not contain any AVERROR_HTTP_* directly. I have sent a v2 for this patch. - Derek

[FFmpeg-devel] [PATCH 1/6] avutil/error: Add HTTP 429 Too Many Requests AVERROR code

2024-04-15 Thread Derek Buitenhuis
This is a common error code from e.g. CDNs or cloud storage, and it is useful to be able to handle it differently to a generic 4XX code. Its source is RFC6585. Signed-off-by: Derek Buitenhuis --- libavutil/error.c | 1 + libavutil/error.h | 1 + libavutil/version.h | 2 +- 3 files changed,

Re: [FFmpeg-devel] [PATCH 1/2] doc/utils/eval: clarify meaning of random* seed value

2024-04-15 Thread Stefano Sabatini
On date Thursday 2024-04-11 03:50:46 +0200, Michael Niedermayer wrote: > On Wed, Apr 10, 2024 at 03:47:42PM +0200, Stefano Sabatini wrote: > > Possible address trac issue: > > > http://trac.ffmpeg.org/ticket/10763 > > Some of the things in this ticket are specific to the buggy LCG > we no longer

Re: [FFmpeg-devel] [PATCH] avformat/lc3: Add file format for LC3/LC3plus transport

2024-04-15 Thread Stefano Sabatini
On date Saturday 2024-04-13 10:54:38 +0200, Stefano Sabatini wrote: > On date Friday 2024-04-12 16:46:29 -0700, ffmpeg-devel Mailing List wrote: > > Thanks. > > > > On Fri, Apr 12, 2024 at 6:05 AM Stefano Sabatini wrote: > [...] > > From 93c5628502a1f242043b39a18e83895d9067541e Mon Sep 17

Re: [FFmpeg-devel] [PATCH 4/6] avformat/http: Add support for Retry-After header

2024-04-15 Thread James Almer
On 4/15/2024 1:27 PM, Derek Buitenhuis wrote: 429 and 503 codes can, and often do (e.g. all Google Cloud Storage URLs can), return a Retry-After header with the error, indicating how long to wait, in seconds, before retrying again. If it is not respected by, for example, using our default

Re: [FFmpeg-devel] [PATCH 1/6] avutil/error: Add HTTP 429 Too Many Requests AVERROR code

2024-04-15 Thread Andreas Rheinhardt
Derek Buitenhuis: > This is a common error code from e.g. CDNs or cloud storage, and > it is useful to be able to handle it differently to a generic > 4XX code. > > Its source is RFC6585. > > Signed-off-by: Derek Buitenhuis > --- > libavutil/error.h | 1 + > libavutil/version.h | 2 +- > 2

[FFmpeg-devel] [PATCH 6/6] avformat/http: Add options to set the max number of connection retries

2024-04-15 Thread Derek Buitenhuis
Not every use case benefits from setting retries in terms of the backoff. Signed-off-by: Derek Buitenhuis --- libavformat/http.c| 12 +--- libavformat/version.h | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/libavformat/http.c b/libavformat/http.c index

[FFmpeg-devel] [PATCH 5/6] avformat/http: Rename attempts to auth_attempts

2024-04-15 Thread Derek Buitenhuis
This accurately reflects what it does, as per e75bbcf493aeb549d04c56f49406aeee3950d93b. Signed-off-by: Derek Buitenhuis --- libavformat/http.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libavformat/http.c b/libavformat/http.c index

[FFmpeg-devel] [PATCH 4/6] avformat/http: Add support for Retry-After header

2024-04-15 Thread Derek Buitenhuis
429 and 503 codes can, and often do (e.g. all Google Cloud Storage URLs can), return a Retry-After header with the error, indicating how long to wait, in seconds, before retrying again. If it is not respected by, for example, using our default backoff stratetgy instead, chances of success are very

[FFmpeg-devel] [PATCH 3/6] avformat/http: Don't bail on parsing headers on "bad" HTTP codes

2024-04-15 Thread Derek Buitenhuis
Many "bad" HTTP codes like 429 and 503 may include important info in their headers. Also, in general, there is no purpose in bailing here. Signed-off-by: Derek Buitenhuis --- libavformat/http.c | 25 - 1 file changed, 20 insertions(+), 5 deletions(-) diff --git

[FFmpeg-devel] [PATCH 2/6] avformat/http: Use AVERROR_HTTP_TOO_MANY_REQUESTS

2024-04-15 Thread Derek Buitenhuis
Added in thep previous commit. Signed-off-by: Derek Buitenhuis --- libavformat/http.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/libavformat/http.c b/libavformat/http.c index ed20359552..bbace2694f 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -286,6 +286,7 @@

[FFmpeg-devel] [PATCH 1/6] avutil/error: Add HTTP 429 Too Many Requests AVERROR code

2024-04-15 Thread Derek Buitenhuis
This is a common error code from e.g. CDNs or cloud storage, and it is useful to be able to handle it differently to a generic 4XX code. Its source is RFC6585. Signed-off-by: Derek Buitenhuis --- libavutil/error.h | 1 + libavutil/version.h | 2 +- 2 files changed, 2 insertions(+), 1

[FFmpeg-devel] [PATCH 0/6] HTTP rate limiting and retry improvements

2024-04-15 Thread Derek Buitenhuis
This patch set adds support for properly handling HTTP 429 codes, and their rate limiting, which is widely used and is standardized. Derek Buitenhuis (6): avutil/error: Add HTTP 429 Too Many Requests AVERROR code avformat/http: Use AVERROR_HTTP_TOO_MANY_REQUESTS avformat/http: Don't bail on

[FFmpeg-devel] [PATCH 4/4] fftools/ffmpeg_mux_init: allow mapping a stream group from one of the inputs

2024-04-15 Thread James Almer
Do this by extending the -stream_group option to accept a map key where the value selects the input file and stream group. The can and should set the streams in the output that the copied group will reference, same as they'd do if they created a group from scratch. Example command line: ffmpeg -i

[FFmpeg-devel] [PATCH] avcodec/nvenc: High bit depth encoding for HEVC

2024-04-15 Thread Diego Felix de Souza via ffmpeg-devel
From: Diego Felix de Souza Adding 10-bit encoding support for HEVC if the input is 8-bit. In case of 8-bit input content, NVENC performs an internal CUDA 8 to 10-bit conversion of the input prior to encoding. Currently, only AV1 supports encoding 8-bit content as 10-bit. Signed-off-by: Diego

Re: [FFmpeg-devel] [PATCH] lavc/vvc: Increase size of ctb_size_y

2024-04-15 Thread Nuo Mi
On Sat, Apr 13, 2024 at 9:55 PM James Almer wrote: > On 4/13/2024 7:55 AM, Frank Plowman wrote: > > sps_log2_ctu_size_minus5 is between 0 and 2, with 3 reserved for future > > use. The VVC decoder allows sps_log2_ctu_size_minus5 to be 3, and so > > ctb_size_y should be at least 16 bits to

Re: [FFmpeg-devel] [PATCH] avcodec/vvc/ps: reset sps_id_used on PS uninit

2024-04-15 Thread Nuo Mi
Mostly Harmless :) On Mon, Apr 15, 2024 at 6:24 AM James Almer wrote: > On 4/13/2024 7:18 AM, Frank Plowman wrote: > > > > > > On 09/04/2024 14:36, Nuo Mi wrote: > >> On Mon, Apr 8, 2024 at 11:15 PM Frank Plowman > wrote: > >> > >>> On 08/04/2024 15:12, Nuo Mi wrote: > On Mon, Apr 8, 2024

Re: [FFmpeg-devel] [PATCH 2/2] avutil/opt: add support for children objects in av_opt_serialize

2024-04-15 Thread James Almer
On 4/12/2024 8:16 PM, James Almer wrote: Signed-off-by: James Almer --- libavutil/opt.c | 65 +-- libavutil/opt.h | 1 + libavutil/tests/opt.c | 47 +-- tests/ref/fate/opt| 2 +- 4 files changed, 90

Re: [FFmpeg-devel] [PATCH] libavformat/hlsenc: fix a memory leak in libavformat/hlsenc.c

2024-04-15 Thread Steven Liu
LuMingYin 于2024年4月13日周六 14:35写道: > > In the function 'hls_write_trailer' in the file > '/FFmpeg/libavformat/hlsenc.c', the variable named 'options' allocates a > block of dynamic memory in the 'av_dict_set' function, which is not freed on > error paths. > > Signed-off-by: LuMingYin > --- >

Re: [FFmpeg-devel] [PATCH v2] avcodec/libx264: bump minimum required version to 155

2024-04-15 Thread Niklas Haas
On Fri, 12 Apr 2024 12:45:44 +0200 Niklas Haas wrote: > On Tue, 09 Apr 2024 15:12:05 +0200 Niklas Haas wrote: > > From: Niklas Haas > > > > This version is seven years old, and present in Debian oldoldstable, > > Ubuntu 20.04 and Leap 15.0. > > > > Allows cleaning up the file substantially.

[FFmpeg-devel] ffmpeg can't get video rotate info

2024-04-15 Thread new...@163.com
ffmpeg can't get video rotate info, 5.0 - 6.1.1 version all can't get video rotate info tag = av_dict_get(m_pVideoSt->metadata, "rotate", tag, 0); if (tag) { m_Rotate = atoi(tag->value); } tag is NULL ___ ffmpeg-devel mailing list

[FFmpeg-devel] [PATCH 4/4] avcodec/amfenc: GPU driver version check

2024-04-15 Thread Araz Iusubov
Implemented gpu driver check. 10-bit patch works incorrectly on driver version lower than 23.30. --- libavcodec/amfenc_av1.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/amfenc_av1.c b/libavcodec/amfenc_av1.c index 634eeea48f..7463251529 100644 --- a/libavcodec/amfenc_av1.c +++

[FFmpeg-devel] [PATCH 3/4] avcodec/amfenc: add 10 bit encoding in av1_amf

2024-04-15 Thread Araz Iusubov
From: Evgeny Pavlov v2: refactored after review Signed-off-by: Evgeny Pavlov Co-authored-by: Dmitrii Ovchinnikov --- libavcodec/amfenc.c | 2 ++ libavcodec/amfenc_av1.c | 22 ++ 2 files changed, 24 insertions(+) diff --git a/libavcodec/amfenc.c b/libavcodec/amfenc.c

[FFmpeg-devel] [PATCH 2/4] avcodec/amfenc: HDR metadata.

2024-04-15 Thread Araz Iusubov
From: nyanmisaka v2: fixes for indentation --- libavcodec/amfenc.c | 83 + 1 file changed, 83 insertions(+) diff --git a/libavcodec/amfenc.c b/libavcodec/amfenc.c index 0bd15dd812..068bb53002 100644 --- a/libavcodec/amfenc.c +++ b/libavcodec/amfenc.c

[FFmpeg-devel] [PATCH 1/4] avcodec/amfenc: Fixes the color information in the output.

2024-04-15 Thread Araz Iusubov
From: Michael Fabian 'Xaymar' Dirks added 10 bit support for amf hevc. before: command - ffmpeg.exe -hide_banner -y -hwaccel d3d11va -hwaccel_output_format d3d11 -i test_10bit_file.mkv -an -c:v h264_amf res.dx11_hw_h264.mkv output - Format of input frames context (p010le) is not supported by

Re: [FFmpeg-devel] [PATCH 4/5] avformat/mxfdec: Check index_edit_rate

2024-04-15 Thread Tomas Härdin
sön 2024-04-14 klockan 22:55 +0200 skrev Marton Balint: > > > On Wed, 10 Apr 2024, Tomas Härdin wrote: > > > tis 2024-04-09 klockan 22:58 +0200 skrev Marton Balint: > > > > > > > > > On Tue, 9 Apr 2024, Tomas Härdin wrote: > > > > > > > mån 2024-04-08 klockan 21:46 +0200 skrev Marton Balint:

Re: [FFmpeg-devel] [PATCH] ffmpeg: Carry streamid as metadata key 'id'

2024-04-15 Thread Tomas Härdin
lör 2024-04-13 klockan 01:25 +0200 skrev Michael Niedermayer: > On Fri, Apr 12, 2024 at 11:40:47AM +0200, Tomas Härdin wrote: > > This idea could be extended to other fields not presently > > considered to > > be metadata, that would be handy to treat as such. > > > > I use the key "id" because

Re: [FFmpeg-devel] [RFC] Anyone using 6.0, 4.1, 3.4 ?

2024-04-15 Thread Michael Niedermayer
On Sun, Apr 14, 2024 at 09:15:07PM -0300, James Almer wrote: > On 4/14/2024 8:55 PM, Michael Niedermayer wrote: > > Hi > > > > I see nothing using 6.0 and 4.1 on our downstreams page, so i suggest to > > move 6.0 to the archieve page after 6.0.2 and 4.1 probably without > > new releases > > 4.1

Re: [FFmpeg-devel] [RFC] Anyone using 6.0, 4.1, 3.4 ?

2024-04-15 Thread Jean-Baptiste Kempf
Hi, On Mon, 15 Apr 2024, at 01:55, Michael Niedermayer wrote: > I see nothing using 6.0 and 4.1 on our downstreams page, so i suggest to > move 6.0 to the archieve page after 6.0.2 and 4.1 probably without > new releases Good idea. > About 3.4 > ubuntu 18.04 last updated its FFmpeg 3.4 package

[FFmpeg-devel] [PATCH] opusdsp: add ability to modify deemphasis constant

2024-04-15 Thread Lynne
xHE-AAC relies on the same postfilter mechanism that Opus uses to improve clarity (albeit with a steeper deemphasis filter, using a z=0.64). The code to apply it is identical, it's still just a simple IIR low-pass filter. This commit makes it possible to use alternative constants. Patch