[FFmpeg-devel] [PATCH] avformat/mux: rewrite guessing the packet duration

2021-01-01 Thread smarsufan
From: smarsufan Signed-off-by: smarsufan --- libavformat/mux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mux.c b/libavformat/mux.c index 84c56ac6ba..3356ba6bf5 100644 --- a/libavformat/mux.c +++ b/libavformat/mux.c @@ -620,7 +620,7 @@ static int compute_mux

Re: [FFmpeg-devel] [RFC] Event loop

2021-01-01 Thread Anton Khirnov
Quoting Nicolas George (2020-12-31 14:37:21) > This mail is about a project I have to make FFmpeg's API and > infrastructure more convenient. For a common introduction, see this thread: > https://ffmpeg.org/pipermail/ffmpeg-devel/2020-December/274167.html > > The API to access our protocols, in pa

Re: [FFmpeg-devel] [PATCH 1/2] lavu: move LOCAL_ALIGNED from internal.h to mem_internal.h

2021-01-01 Thread Anton Khirnov
nobody had any comments, so pushed -- Anton Khirnov ___ 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 "unsubscr

Re: [FFmpeg-devel] [PATCH v2 1/9] mpegvideo: use the AVVideoEncParams API for exporting QP tables

2021-01-01 Thread Anton Khirnov
nobody had any further comments, so pushed -- Anton Khirnov ___ 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 "

Re: [FFmpeg-devel] [PATCH 1/7] tools/target_dec_fuzzer: use non-obsolete decoding API

2021-01-01 Thread Anton Khirnov
pushed patches 2-6, which nobody objected to Michael, could you please test 1/7? -- Anton Khirnov ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-

Re: [FFmpeg-devel] [PATCH] avcodec/libkvazaar: Set default ratecontrol algorithm for libkvazaar

2021-01-01 Thread Linjie Fu
On Thu, Dec 10, 2020 at 3:28 PM Linjie Fu wrote: > > On Thu, Dec 10, 2020 at 2:09 PM Joose Sainio wrote: > > > > The standalone version of Kvazaar sets a default ratecontrol algorithm when > > bitrate is set. Mirror this behaviour. > > > > Signed-off-by: Joose Sainio > > --- > > libavcodec/lib

Re: [FFmpeg-devel] [PATCH v2] fate/hevc-conformance: add clip for persistent_rice_adaptation_enabled_flag

2021-01-01 Thread Linjie Fu
On Mon, Dec 14, 2020 at 5:49 PM Guangxin Xu wrote: > > Hi Lingjie > thanks for the review. > The stream has the feature but not used. > > the decoded yuv's md5 is 3c94b5ebc0aed0abae4e619b9dcca9cc > it's matched with the WPP_HIGH_TP_444_8BIT_RExt_Apple_2.md5 > Double checked, md5 is matched, and

[FFmpeg-devel] [PATCH 10/27] mpeg2_metadata_bsf: Use common cbs bsf implementation

2021-01-01 Thread Mark Thompson
This also adds support for updating new extradata. --- libavcodec/mpeg2_metadata_bsf.c | 94 + 1 file changed, 12 insertions(+), 82 deletions(-) diff --git a/libavcodec/mpeg2_metadata_bsf.c b/libavcodec/mpeg2_metadata_bsf.c index d0048c0e25..367aa1f9f5 100644 --- a

[FFmpeg-devel] [PATCH 12/27] av1_metadata_bsf: Use common cbs bsf implementation

2021-01-01 Thread Mark Thompson
--- libavcodec/av1_metadata_bsf.c | 176 -- 1 file changed, 21 insertions(+), 155 deletions(-) diff --git a/libavcodec/av1_metadata_bsf.c b/libavcodec/av1_metadata_bsf.c index 3158ba995b..31fd4f0f41 100644 --- a/libavcodec/av1_metadata_bsf.c +++ b/libavcodec/av1_me

[FFmpeg-devel] [PATCH 14/27] cbs: Add interface for manipulating metadata in fragments

2021-01-01 Thread Mark Thompson
--- libavcodec/Makefile | 2 +- libavcodec/cbs_internal.h | 17 ++ libavcodec/cbs_metadata.c | 107 ++ libavcodec/cbs_metadata.h | 94 + 4 files changed, 219 insertions(+), 1 deletion(-) create mode 100644 libavcode

[FFmpeg-devel] [PATCH 16/27] cbs_sei: Implement fill and extract for HDR SEI messages

2021-01-01 Thread Mark Thompson
Fill and extract both mastering display colour volume and content light level info messages. --- libavcodec/cbs_h2645.c | 130 + libavcodec/cbs_sei.c | 4 ++ 2 files changed, 134 insertions(+) diff --git a/libavcodec/cbs_h2645.c b/libavcodec/cbs_h2645.c

[FFmpeg-devel] [PATCH 17/27] cbs_h264: Implement fill and extract for display orientation SEI message

2021-01-01 Thread Mark Thompson
--- libavcodec/cbs_h2645.c | 64 ++ libavcodec/cbs_sei.c | 2 ++ 2 files changed, 66 insertions(+) diff --git a/libavcodec/cbs_h2645.c b/libavcodec/cbs_h2645.c index 53d5b50b42..4144948b7f 100644 --- a/libavcodec/cbs_h2645.c +++ b/libavcodec/cbs_h2645.c

[FFmpeg-devel] [PATCH 18/27] cbs_av1: Implement metadata manipulation

2021-01-01 Thread Mark Thompson
--- libavcodec/cbs_av1.c | 138 +++ 1 file changed, 138 insertions(+) diff --git a/libavcodec/cbs_av1.c b/libavcodec/cbs_av1.c index a40c91adff..3bca121fba 100644 --- a/libavcodec/cbs_av1.c +++ b/libavcodec/cbs_av1.c @@ -21,6 +21,7 @@ #include "cbs.h" #

[FFmpeg-devel] [PATCH 19/27] cbs_av1: Support manipulating HDR CLL and MDCV metadata

2021-01-01 Thread Mark Thompson
--- libavcodec/cbs_av1.c | 95 1 file changed, 95 insertions(+) diff --git a/libavcodec/cbs_av1.c b/libavcodec/cbs_av1.c index 3bca121fba..2b5fad69e9 100644 --- a/libavcodec/cbs_av1.c +++ b/libavcodec/cbs_av1.c @@ -17,6 +17,7 @@ */ #include "libav

[FFmpeg-devel] [PATCH 20/27] cbs: Add interface to allow BSFs easy access to metadata manipulation

2021-01-01 Thread Mark Thompson
--- libavcodec/cbs_bsf.c | 73 libavcodec/cbs_bsf.h | 6 2 files changed, 79 insertions(+) diff --git a/libavcodec/cbs_bsf.c b/libavcodec/cbs_bsf.c index 429f360014..fe6304a0d4 100644 --- a/libavcodec/cbs_bsf.c +++ b/libavcodec/cbs_bsf.c @@ -18,6

[FFmpeg-devel] [PATCH 21/27] h264_metadata_bsf: Simplify display orientation handling

2021-01-01 Thread Mark Thompson
The case where the user supplies new value directly as options still requires a bit of special handling. --- libavcodec/h264_metadata_bsf.c | 118 ++--- 1 file changed, 21 insertions(+), 97 deletions(-) diff --git a/libavcodec/h264_metadata_bsf.c b/libavcodec/h264_meta

[FFmpeg-devel] [PATCH 23/27] h265_metadata_bsf: Support HDR metadata

2021-01-01 Thread Mark Thompson
--- doc/bitstream_filters.texi | 17 + libavcodec/h265_metadata_bsf.c | 26 ++ 2 files changed, 43 insertions(+) diff --git a/doc/bitstream_filters.texi b/doc/bitstream_filters.texi index 695825d33f..4c9a42c24a 100644 --- a/doc/bitstream_filters.texi ++

[FFmpeg-devel] [PATCH 22/27] h264_metadata_bsf: Support HDR metadata

2021-01-01 Thread Mark Thompson
--- doc/bitstream_filters.texi | 17 + libavcodec/h264_metadata_bsf.c | 25 + 2 files changed, 42 insertions(+) diff --git a/doc/bitstream_filters.texi b/doc/bitstream_filters.texi index 8a2f55cc41..695825d33f 100644 --- a/doc/bitstream_filters.texi +++

[FFmpeg-devel] [PATCH 24/27] av1_metadata_bsf: Support HDR metadata

2021-01-01 Thread Mark Thompson
--- doc/bitstream_filters.texi| 17 + libavcodec/av1_metadata_bsf.c | 26 ++ 2 files changed, 43 insertions(+) diff --git a/doc/bitstream_filters.texi b/doc/bitstream_filters.texi index 4c9a42c24a..3fea06fca7 100644 --- a/doc/bitstream_filters.texi +++

[FFmpeg-devel] [PATCH 25/27] vaapi_encode: Unify SEI option mask enum

2021-01-01 Thread Mark Thompson
This was in two disjoint parts in the H.264 and H.265 files. Unify them in the header to avoid any confusion, because they are really the same enum. --- libavcodec/vaapi_encode.h | 8 libavcodec/vaapi_encode_h264.c | 6 -- libavcodec/vaapi_encode_h265.c | 5 - 3 files change

[FFmpeg-devel] [PATCH 26/27] vaapi_encode_h265: Ensure that HDR metadata is included with seek points

2021-01-01 Thread Mark Thompson
Save the most recent HDR side data structures and use them when generating an IDR or CRA frame. --- libavcodec/vaapi_encode_h265.c | 93 -- 1 file changed, 32 insertions(+), 61 deletions(-) diff --git a/libavcodec/vaapi_encode_h265.c b/libavcodec/vaapi_encode_h265.

[FFmpeg-devel] [PATCH 27/27] vaapi_encode_h264: Support HDR metadata

2021-01-01 Thread Mark Thompson
This can now be done in exactly the same way as it is for H.265. --- libavcodec/vaapi_encode_h264.c | 66 +- 1 file changed, 65 insertions(+), 1 deletion(-) diff --git a/libavcodec/vaapi_encode_h264.c b/libavcodec/vaapi_encode_h264.c index 7c352e982b..ab1a09f674 10

[FFmpeg-devel] [PATCH 00/27] Metadata handling in CBS

2021-01-01 Thread Mark Thompson
Happy New Year! The fun part here is: AVMasteringDisplayMetadata mdm = { ... }; AVContentLightMetadata clm = { ... }; ff_cbs_insert_metadata(cbc, fragment, CBS_METADATA_MASTERING_DISPLAY, &mdm); ff_cbs_insert_metadata(cbc, fragment, CBS_METADATA_CONTENT_LIGHT_LEVEL, &clm); which does whatever

[FFmpeg-devel] [PATCH 07/27] cbs: Implement common parts of cbs-based bitstream filters separately

2021-01-01 Thread Mark Thompson
This allows removal of a lot of duplicated code between BSFs. --- libavcodec/Makefile | 2 +- libavcodec/cbs_bsf.c | 161 +++ libavcodec/cbs_bsf.h | 100 +++ 3 files changed, 262 insertions(+), 1 deletion(-) create mode 100644 lib

[FFmpeg-devel] [PATCH 03/27] cbs_h2645: Merge SEI message handling in common between codecs

2021-01-01 Thread Mark Thompson
--- libavcodec/Makefile | 4 +- libavcodec/cbs_h264.h | 50 +--- libavcodec/cbs_h2645.c| 300 +++-- libavcodec/cbs_h264_syntax_template.c | 173 +--- libavcodec/cbs_h265.h | 33 +-- libavcodec/cbs_h265_sy

[FFmpeg-devel] [PATCH 09/27] h265_metadata_bsf: Use common cbs bsf implementation

2021-01-01 Thread Mark Thompson
--- libavcodec/h265_metadata_bsf.c | 191 - 1 file changed, 22 insertions(+), 169 deletions(-) diff --git a/libavcodec/h265_metadata_bsf.c b/libavcodec/h265_metadata_bsf.c index 504a75dac2..c3eadee92b 100644 --- a/libavcodec/h265_metadata_bsf.c +++ b/libavcodec/h26

[FFmpeg-devel] [PATCH 08/27] h264_metadata_bsf: Use common cbs bsf implementation

2021-01-01 Thread Mark Thompson
--- libavcodec/h264_metadata_bsf.c | 232 +++-- 1 file changed, 49 insertions(+), 183 deletions(-) diff --git a/libavcodec/h264_metadata_bsf.c b/libavcodec/h264_metadata_bsf.c index 71b49696cd..f5f439018d 100644 --- a/libavcodec/h264_metadata_bsf.c +++ b/libavcodec/h26

[FFmpeg-devel] [PATCH 05/27] h264_metadata_bsf: Refactor the filter function into smaller parts

2021-01-01 Thread Mark Thompson
--- libavcodec/h264_metadata_bsf.c | 326 ++--- 1 file changed, 180 insertions(+), 146 deletions(-) diff --git a/libavcodec/h264_metadata_bsf.c b/libavcodec/h264_metadata_bsf.c index 4ab97aee3a..36f8aab245 100644 --- a/libavcodec/h264_metadata_bsf.c +++ b/libavcodec/h2

[FFmpeg-devel] [PATCH 13/27] h264_redundant_pps_bsf: Use common cbs bsf implementation

2021-01-01 Thread Mark Thompson
--- libavcodec/h264_redundant_pps_bsf.c | 99 ++--- 1 file changed, 21 insertions(+), 78 deletions(-) diff --git a/libavcodec/h264_redundant_pps_bsf.c b/libavcodec/h264_redundant_pps_bsf.c index cf41abe96c..fb91227eec 100644 --- a/libavcodec/h264_redundant_pps_bsf.c +++ b

[FFmpeg-devel] [PATCH 01/27] cbs_h2645: Merge SEI messages in common between codecs

2021-01-01 Thread Mark Thompson
Make a new template file for common SEI messages - this will also apply to H.266. --- libavcodec/cbs_h264.h | 37 +-- libavcodec/cbs_h2645.c| 24 +++-- libavcodec/cbs_h264_syntax_template.c | 106 +--- libavcodec/cbs_h265.h | 4

[FFmpeg-devel] [PATCH 06/27] h264_metadata_bsf: Improve interpretation of input display matrices

2021-01-01 Thread Mark Thompson
The previous code here only worked in more limited cases. --- libavcodec/h264_metadata_bsf.c | 44 +++--- 1 file changed, 30 insertions(+), 14 deletions(-) diff --git a/libavcodec/h264_metadata_bsf.c b/libavcodec/h264_metadata_bsf.c index 36f8aab245..71b49696cd 100644

[FFmpeg-devel] [PATCH 02/27] h264_metadata_bsf: Move SEI user data parsing to init time

2021-01-01 Thread Mark Thompson
--- libavcodec/h264_metadata_bsf.c | 91 -- 1 file changed, 43 insertions(+), 48 deletions(-) diff --git a/libavcodec/h264_metadata_bsf.c b/libavcodec/h264_metadata_bsf.c index d7cf58095b..f39e649ac6 100644 --- a/libavcodec/h264_metadata_bsf.c +++ b/libavcodec/h264

[FFmpeg-devel] [PATCH 04/27] cbs_sei: Remove restrictions on MDCV values

2021-01-01 Thread Mark Thompson
Since this was originally written the standards have changed to allow arbitrary values here, but leaves their meaning unspecified. --- libavcodec/cbs_sei_syntax_template.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/libavcodec/cbs_sei_syntax_template.c b/lib

[FFmpeg-devel] [PATCH 11/27] vp9_metadata_bsf: Use common cbs bsf implementation

2021-01-01 Thread Mark Thompson
--- libavcodec/vp9_metadata_bsf.c | 61 +-- 1 file changed, 16 insertions(+), 45 deletions(-) diff --git a/libavcodec/vp9_metadata_bsf.c b/libavcodec/vp9_metadata_bsf.c index 00a5580c4d..1d82a401d5 100644 --- a/libavcodec/vp9_metadata_bsf.c +++ b/libavcodec/vp9_met

[FFmpeg-devel] [PATCH 15/27] cbs_sei: Implement metadata manipulation for SEI codecs

2021-01-01 Thread Mark Thompson
--- libavcodec/cbs_h2645.c | 8 libavcodec/cbs_sei.c | 94 ++ libavcodec/cbs_sei.h | 35 3 files changed, 137 insertions(+) diff --git a/libavcodec/cbs_h2645.c b/libavcodec/cbs_h2645.c index a00bc27370..42b614034e 100644 --- a/lib

Re: [FFmpeg-devel] [RFC] Type descriptors

2021-01-01 Thread Michael Niedermayer
On Thu, Dec 31, 2020 at 08:54:34PM +, Derek Buitenhuis wrote: > On 31/12/2020 20:15, Jim DeLaHunt wrote: > > One of the places where FFmpeg's inconsistent encoding caused me a > > problem was when I was operating on a Quicktime video. FFmpeg (or > > perhaps FFprobe) printed a 4-byte Quicktime

Re: [FFmpeg-devel] [PATCH 07/27] cbs: Implement common parts of cbs-based bitstream filters separately

2021-01-01 Thread Andreas Rheinhardt
Mark Thompson: > This allows removal of a lot of duplicated code between BSFs. > --- > libavcodec/Makefile | 2 +- > libavcodec/cbs_bsf.c | 161 +++ > libavcodec/cbs_bsf.h | 100 +++ > 3 files changed, 262 insertions(+), 1 deletion

Re: [FFmpeg-devel] [PATCH 1/7] tools/target_dec_fuzzer: use non-obsolete decoding API

2021-01-01 Thread Michael Niedermayer
On Fri, Jan 01, 2021 at 02:37:21PM +0100, Anton Khirnov wrote: > pushed patches 2-6, which nobody objected to > > Michael, could you please test 1/7? It seems still working with the patch with the 4 or so files i tried thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC78

[FFmpeg-devel] [PATCH 2/2] avformat/iff: Check block align also for ID_MAUD

2021-01-01 Thread Michael Niedermayer
Fixes: Timeout & OOM Fixes: 28701/clusterfuzz-testcase-minimized-ffmpeg_dem_IFF_fuzzer-5185094964871168 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavformat/iff.c | 2 +- 1 file changed, 1 inserti

[FFmpeg-devel] [PATCH 1/2] avformat/mvdec: Allocate extradata only once

2021-01-01 Thread Michael Niedermayer
Fixes: memleak Fixes: 28686/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5822961932173312 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavformat/mvdec.c | 10 ++ 1 file changed, 6 in

Re: [FFmpeg-devel] [PATCH 2/6] avcodec: add h266 codec id and profiles

2021-01-01 Thread Nuo Mi
Hi Mark & all, Happy new year! I have implemented the h266 metadata bsf. For all vvdec decodable clips, the metadata pass-through mode can get a bit matched result. Could you align with James about the name convention, so I can send the second patchset? BTW: could you share the hevc aud adding com

Re: [FFmpeg-devel] [PATCH 2/6] avcodec: add h266 codec id and profiles

2021-01-01 Thread James Almer
On 1/1/2021 11:06 PM, Nuo Mi wrote: Hi Mark & all, Happy new year! I have implemented the h266 metadata bsf. For all vvdec decodable clips, the metadata pass-through mode can get a bit matched result. Could you align with James about the name convention, so I can send the second patchset? BTW: c

Re: [FFmpeg-devel] [PATCH 1/5] avcodec/qsvdec_other: refact, use DEFINE_QSV_DECODER to remove duplicate code

2021-01-01 Thread Linjie Fu
Guangxin: On Thu, Nov 26, 2020 at 6:21 PM Xu Guangxin wrote: > > --- > libavcodec/qsvdec_other.c | 188 -- > 1 file changed, 36 insertions(+), 152 deletions(-) > > diff --git a/libavcodec/qsvdec_other.c b/libavcodec/qsvdec_other.c > index 2775e07955..266ac9f2e

Re: [FFmpeg-devel] [PATCH 2/6] avcodec: add h266 codec id and profiles

2021-01-01 Thread Nuo Mi
Hi James, Thanks, it works for me. It's wired no error prompt for my previous command line. On Sat, Jan 2, 2021 at 10:26 AM James Almer wrote: > On 1/1/2021 11:06 PM, Nuo Mi wrote: > > Hi Mark & all, > > Happy new year! > > I have implemented the h266 metadata bsf. For all vvdec decodable clips