Re: [FFmpeg-devel] [PATCH] decklink: Add support for compressed AC-3 output over SDI

2023-03-09 Thread Nicolas Gaullier
>+static int create_s337_payload(AVPacket *pkt, enum AVCodecID codec_id, >+uint8_t **outbuf, int *outsize) { This is very interesting in many other contexts. My current patch serie is about demuxing s337 (targeting dolby_e) from wav files, and it would be great to be able to re-mux back to s337

Re: [FFmpeg-devel] [PATCH] ffprobe/eac3/mlp/dca: add detection of spatial audio extensions

2023-03-09 Thread Marth64
Hi, If there is still interest I can refine this to match the latest ffmpeg branch. Thank you! On Mon, Feb 20, 2023 at 10:57 AM Marth64 wrote: > Thank you, > It’s done in v2 set > > On Mon, Feb 20, 2023 at 10:41 Anton Khirnov wrote: > >> Quoting Marth64 (2023-02-17 15:51:09) >> > I can do

Re: [FFmpeg-devel] [PATCH] fftools/ffplay.c: fix rotate error when displaymatrix contains flip

2023-03-09 Thread Marton Balint
On Thu, 9 Mar 2023, 1035567...@qq.com wrote: From: Wang Yaqiang The angle is calculated by the get_rotation function, but it needs to be combined with the displaymatrix to determine whether flip or rotate, which is consistent with the processing logic in ffmpeg_filter.c If there is

Re: [FFmpeg-devel] [PATCH v2] libavformat/img2dec: fix unable to find svg format when the svg resources start with "

2023-03-09 Thread Marton Balint
On Thu, 9 Mar 2023, 1035567...@qq.com wrote: From: Wang Yaqiang svg is xml, but Will apply, thanks. Marton Signed-off-by: Wang Yaqiang --- libavformat/img2dec.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c

Re: [FFmpeg-devel] [PATCH] libavformat/aea EOF Patch

2023-03-09 Thread Marton Balint
On Thu, 9 Mar 2023, asivery wrote: Thank you very much, indeed that works as well. Here's the updated patch. Will apply, thanks. Marton Best regards. --- diff --git a/libavformat/aea.c b/libavformat/aea.c index f4b39e4f9e..d16217381b 100644 --- a/libavformat/aea.c +++

[FFmpeg-devel] [PATCH] avcodec/libsvtav1: use larger of bit rate and max rate for buffer size

2023-03-09 Thread Jan Ekström
Generally if maxrate is set, the calculation should be maxrate over bufsize. This additionally enables CRF + maxrate & bufsize usage. In order to keep negative values from enabling zero to be treated as larger and causing a division by zero, check that one of the variables is larger than zero.

[FFmpeg-devel] [PATCH 7/7] doc: add doc about dolby_e decoder and wav support

2023-03-09 Thread Nicolas Gaullier
--- doc/decoders.texi | 20 doc/demuxers.texi | 33 + 2 files changed, 53 insertions(+) diff --git a/doc/decoders.texi b/doc/decoders.texi index 5ba85cf9b1..750fb4bd7a 100644 --- a/doc/decoders.texi +++ b/doc/decoders.texi @@ -223,6 +223,26 @@

[FFmpeg-devel] [PATCH 0/7] avformat/wavdec: s337m support

2023-03-09 Thread Nicolas Gaullier
Following of https://patchwork.ffmpeg.org/project/ffmpeg/patch/20230213180936.815-5-nicolas.gaullier@cji.paris/ from the serie https://patchwork.ffmpeg.org/project/ffmpeg/list/?series=8380 Should the version and changelog be updated too ? Nicolas Nicolas Gaullier (7): avformat/s337m: Split

[FFmpeg-devel] [PATCH 2/2] Add support for preserving SMPTE 2038 when transcoding MPEG-TS streams

2023-03-09 Thread Devin Heitmueller
Add the appropriate descriptors to the MPEG-TS demux and mux to ensure that SMPTE 2038 VANC streams are properly preserved when using codec copy (including adding the appropriate PMT descriptors). The focus of this patch is TS input to TS output. A separate patch adds support for output of 2038

[FFmpeg-devel] [PATCH 1/2] mpegtsenc: Restrict "async" behavior to KLV async packets

2023-03-09 Thread Devin Heitmueller
The original code would strip off the PTS/DTS of any packets which had a stream ID of STREAM_ID_PRIVATE_STREAM_1. While the intent was to apply this to asynchronous KLV packets, it was being applied to any codec that had that same stream ID (including types such as SMPTE 2038). Add a clause to

Re: [FFmpeg-devel] [PATCH 2/2] avutil: add HDR10+ dynamic metadata serialization function

2023-03-09 Thread Raphaël Zumer
Hi, While I omitted adding v2/v3 here, I believe all comments on this set of patches have been addressed so far, unless anyone strongly disagrees with the rationale for moving dynamic HDR parsing and serialization to libavutil or with the function signature. Please let me know if I missed

[FFmpeg-devel] [PATCH] decklink: Add support for compressed AC-3 output over SDI

2023-03-09 Thread Devin Heitmueller
Extend the decklink output to include support for compressed AC-3, encapsulated using the SMPTE ST 377:2015 standard. This functionality can be exercised by using the "copy" codec when the input audio stream is AC-3. For example: ./ffmpeg -i ~/foo.ts -codec:a copy -f decklink 'UltraStudio Mini

Re: [FFmpeg-devel] [PATCH] fftools/ffplay.c: fix rotate error when displaymatrix contains flip

2023-03-09 Thread Leo Izen
On 3/9/23 04:49, 1035567...@qq.com wrote: From: Wang Yaqiang The angle is calculated by the get_rotation function, but it needs to be combined with the displaymatrix to determine whether flip or rotate, which is consistent with the processing logic in ffmpeg_filter.c Signed-off-by: Wang

[FFmpeg-devel] [PATCH] libavfilter/vf_signalstats.c: add new hsl(Hue, Saturation, Lightness) for filter signalstats v3(fix fate case)

2023-03-09 Thread liuyizhuo
From: "yizhuo.liu...@gmail.com" --- libavfilter/vf_signalstats.c | 227 +- .../fate/filter-metadata-signalstats-yuv420p | 2 +- .../filter-metadata-signalstats-yuv420p10 | 2 +- 3 files changed, 228 insertions(+), 3 deletions(-) diff --git

[FFmpeg-devel] [PATCH 4/4] avcodec/lcldec: More space for rgb24

2023-03-09 Thread Michael Niedermayer
Fixes: Ticket 10239 Fixes: zlib_306_306_rgb24.av Signed-off-by: Michael Niedermayer --- libavcodec/lcldec.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libavcodec/lcldec.c b/libavcodec/lcldec.c index f9a0755e4d..eb5139a5c5 100644 --- a/libavcodec/lcldec.c +++

[FFmpeg-devel] [PATCH 3/4] avcodec/lcldec: 420 seems missing 2 bytes, ignore that

2023-03-09 Thread Michael Niedermayer
Fixes: Ticket 10238 Fixes: mszh_306_306_yuv420.avi Signed-off-by: Michael Niedermayer --- libavcodec/lcldec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavcodec/lcldec.c b/libavcodec/lcldec.c index 0196460eb2..f9a0755e4d 100644 --- a/libavcodec/lcldec.c +++

[FFmpeg-devel] [PATCH 2/4] avcodec/lcldec: Support 4:1:1 and 4:2:2 with odd width

2023-03-09 Thread Michael Niedermayer
Fixes: Ticket10240 Fixes: zlib_306_306_yuv422.avi Fixes: zlib_306_306_yuv411.avi Signed-off-by: Michael Niedermayer --- libavcodec/lcldec.c | 22 +++--- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/libavcodec/lcldec.c b/libavcodec/lcldec.c index

[FFmpeg-devel] [PATCH 1/4] libavcodec/lcldec: width and height should not be unsigned

2023-03-09 Thread Michael Niedermayer
Computations like col < width - 3 will not work with unsigned width=1 Signed-off-by: Michael Niedermayer --- libavcodec/lcldec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/lcldec.c b/libavcodec/lcldec.c index 5cc0a29bcd..95206eeb69 100644 ---

Re: [FFmpeg-devel] [PATCH] libavcodec/libwebpenc_animencoder.c: support ICCP when the source material contains the icc profile

2023-03-09 Thread Steven Liu
<1035567...@qq.com> 于2023年3月9日周四 17:32写道: > > From: Wang Yaqiang > > when the source material contains the icc profile, > the AVFrame have side_data with type AV_FRAME_DATA_ICC_PROFILE, > write the ICCP chunk make sure the colors are displayed correctly. > > Signed-off-by: Wang Yaqiang > --- >

[FFmpeg-devel] [PATCH] fftools/ffplay.c: fix rotate error when displaymatrix contains flip

2023-03-09 Thread 1035567130
From: Wang Yaqiang The angle is calculated by the get_rotation function, but it needs to be combined with the displaymatrix to determine whether flip or rotate, which is consistent with the processing logic in ffmpeg_filter.c Signed-off-by: Wang Yaqiang --- fftools/ffplay.c | 16

[FFmpeg-devel] [PATCH] libavcodec/libwebpenc_animencoder.c: support ICCP when the source material contains the icc profile

2023-03-09 Thread 1035567130
From: Wang Yaqiang when the source material contains the icc profile, the AVFrame have side_data with type AV_FRAME_DATA_ICC_PROFILE, write the ICCP chunk make sure the colors are displayed correctly. Signed-off-by: Wang Yaqiang --- libavcodec/libwebpenc_animencoder.c | 39

[FFmpeg-devel] [PATCH v2] libavformat/img2dec: fix unable to find svg format when the svg resources start with "

2023-03-09 Thread 1035567130
From: Wang Yaqiang svg is xml, but --- libavformat/img2dec.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c index 5a63d7c81d..3488600400 100644 --- a/libavformat/img2dec.c +++ b/libavformat/img2dec.c @@ -964,8 +964,13

Re: [FFmpeg-devel] [PATCH] libavformat/img2dec: fix unable to find svg format when the svg resources start with "

2023-03-09 Thread wangyaqiang
> 2023年3月9日 07:37,Marton Balint 写道: > > > On Tue, 7 Mar 2023, 1035567...@qq.com wrote: > >> From: Wang Yaqiang >> >> svg is xml, but > it can start with > >> Signed-off-by: Wang Yaqiang >> --- >> libavformat/img2dec.c | 10 ++ >> 1 file changed, 6