Re: [FFmpeg-devel] [PATCH 2/2] avcodec: add an AVCodecContext flag to export A53/SCTE20/DVD CC side data on demand

2022-05-19 Thread lance . lmwang
On Thu, May 19, 2022 at 11:12:58AM +0200, Anton Khirnov wrote: > Quoting lance.lmw...@gmail.com (2022-05-11 15:30:37) > > On Wed, May 11, 2022 at 02:00:10PM +0200, Anton Khirnov wrote: > > > Quoting lance.lmw...@gmail.com (2022-05-08 09:17:01) > > > > From: Limin Wang > > > > > > > > some samples

Re: [FFmpeg-devel] [PATCH 1/2] avfilter/src_movie: add dec_opts for the opened file

2022-05-19 Thread lance . lmwang
On Wed, May 18, 2022 at 10:50:58PM +0800, "zhilizhao(赵志立)" wrote: > > > > On May 8, 2022, at 3:17 PM, lance.lmw...@gmail.com wrote: > > > > From: Limin Wang > > > > Signed-off-by: Limin Wang > > --- > > doc/filters.texi| 9 + > > libavfilter/src_movie.c | 5 - > > 2 files ch

Re: [FFmpeg-devel] [PATCH 1/2] avfilter/src_movie: add dec_opts for the opened file

2022-05-18 Thread lance . lmwang
On Sun, May 08, 2022 at 03:17:00PM +0800, lance.lmw...@gmail.com wrote: > From: Limin Wang > > Signed-off-by: Limin Wang > --- > doc/filters.texi| 9 + > libavfilter/src_movie.c | 5 - > 2 files changed, 13 insertions(+), 1 deletion(-) > > diff --git a/doc/filters.texi b/do

Re: [FFmpeg-devel] [PATCH 4/4] avcodec/dvdsubenc: return error if canvas_size is too small for subtitle render

2022-05-18 Thread lance . lmwang
On Wed, May 11, 2022 at 10:48:18PM +0800, lance.lmw...@gmail.com wrote: > From: Limin Wang > > Signed-off-by: Limin Wang > --- > libavcodec/dvdsubenc.c | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/libavcodec/dvdsubenc.c b/libavcodec/dvdsubenc.c > index fc3b7d1816..d29db7d49c

Re: [FFmpeg-devel] [PATCH 2/4] avcodec/ccaption_dec: check the length of packet and return used length

2022-05-12 Thread lance . lmwang
On Thu, May 12, 2022 at 06:29:51PM +0200, Andreas Rheinhardt wrote: > Andreas Rheinhardt: > > lance.lmw...@gmail.com: > >> On Thu, May 12, 2022 at 08:25:29AM +0200, Paul B Mahol wrote: > >>> On Thu, May 12, 2022 at 1:39 AM wrote: > >>> > On Wed, May 11, 2022 at 09:47:52PM +0200, Paul B Mahol

Re: [FFmpeg-devel] [PATCH 2/4] avcodec/ccaption_dec: check the length of packet and return used length

2022-05-12 Thread lance . lmwang
On Thu, May 12, 2022 at 08:25:29AM +0200, Paul B Mahol wrote: > On Thu, May 12, 2022 at 1:39 AM wrote: > > > On Wed, May 11, 2022 at 09:47:52PM +0200, Paul B Mahol wrote: > > > why? > > > > assuming the len is 1, the following code will access the next 3 > > array anymore, I think it's better to

Re: [FFmpeg-devel] [PATCH 2/4] avcodec/ccaption_dec: check the length of packet and return used length

2022-05-11 Thread lance . lmwang
On Wed, May 11, 2022 at 09:47:52PM +0200, Paul B Mahol wrote: > why? assuming the len is 1, the following code will access the next 3 array anymore, I think it's better to check the i with len -2. for (i = 0; i < len; i += 3) { to for (i = 0; i < len - 2; i += 3) { for the return, I think it's

[FFmpeg-devel] [PATCH 4/4] avcodec/dvdsubenc: return error if canvas_size is too small for subtitle render

2022-05-11 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavcodec/dvdsubenc.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/libavcodec/dvdsubenc.c b/libavcodec/dvdsubenc.c index fc3b7d1816..d29db7d49c 100644 --- a/libavcodec/dvdsubenc.c +++ b/libavcodec/dvdsubenc.c @@ -376,6 +376,12 @@ stat

[FFmpeg-devel] [PATCH 3/4] avformat/sccenc: avoid potential invalid access

2022-05-11 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/sccenc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/sccenc.c b/libavformat/sccenc.c index c8c4d097e4..2b924ba6e7 100644 --- a/libavformat/sccenc.c +++ b/libavformat/sccenc.c @@ -72,11 +72,11 @@ s

[FFmpeg-devel] [PATCH 2/4] avcodec/ccaption_dec: check the length of packet and return used length

2022-05-11 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavcodec/ccaption_dec.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libavcodec/ccaption_dec.c b/libavcodec/ccaption_dec.c index 34f0513b1a..8f61e8aa03 100644 --- a/libavcodec/ccaption_dec.c +++ b/libavcodec/ccaption_

[FFmpeg-devel] [PATCH 1/4] remove sccenc dependency on subtitles

2022-05-11 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/Makefile b/libavformat/Makefile index 3b9995a9d3..8e612b6cc7 100644 --- a/libavformat/Makefile +++ b/libavformat/Makefile @@ -514,7 +514,7 @@ OBJS-

Re: [FFmpeg-devel] [PATCH 2/2] avcodec: add an AVCodecContext flag to export A53/SCTE20/DVD CC side data on demand

2022-05-11 Thread lance . lmwang
On Wed, May 11, 2022 at 02:00:10PM +0200, Anton Khirnov wrote: > Quoting lance.lmw...@gmail.com (2022-05-08 09:17:01) > > From: Limin Wang > > > > some samples include both A53 and SCTE20 data. Before the commit, both > > of the will be exported, so the CC data will be repeated or garbarge > > W

[FFmpeg-devel] [PATCH 2/2] avcodec: add an AVCodecContext flag to export A53/SCTE20/DVD CC side data on demand

2022-05-08 Thread lance . lmwang
From: Limin Wang some samples include both A53 and SCTE20 data. Before the commit, both of the will be exported, so the CC data will be repeated or garbarge as they're using the same frame side data. If you know your samples include only one of them, You can export by +a53cc+scte20. After the co

[FFmpeg-devel] [PATCH 1/2] avfilter/src_movie: add dec_opts for the opened file

2022-05-08 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- doc/filters.texi| 9 + libavfilter/src_movie.c | 5 - 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/doc/filters.texi b/doc/filters.texi index 367614d2f8..6775cf43ba 100644 --- a/doc/filters.texi +++ b/doc/filter

Re: [FFmpeg-devel] [PATCH] libavcodec/mpeg12dec: extract embedded CC of particular type only

2022-05-07 Thread lance . lmwang
On Wed, Apr 27, 2022 at 03:49:49PM +0700, Ivan Baykalov wrote: > Some streams contain closed caption data embedded using several wrapping > types. For example stream can contain CC wrapped as ATSC A53 packets + > the same data wrapped as SCTE-20 packets. Prior to the patch CC data was > extracted f

Re: [FFmpeg-devel] Sponsoring R12L Decklink out

2022-04-06 Thread lance . lmwang
On Tue, Apr 05, 2022 at 10:22:54AM -0700, Alan Latteri wrote: > Hello, > > I am interesting in sponsoring the addition of R12L format output via > Decklink. Currently Decklink can only output up to v210 which is a 10bit > YUV 4:2:2 which is not full range video nor color accurate. > > bmdF

Re: [FFmpeg-devel] [PATCH v3 1/5] avutil: add ambient viewing environment metadata side data

2022-04-05 Thread lance . lmwang
On Tue, Apr 05, 2022 at 05:32:12PM +0200, Andreas Rheinhardt wrote: > lance.lmw...@gmail.com: > > From: Limin Wang > > > > Signed-off-by: Limin Wang > > --- > > libavutil/frame.c | 1 + > > libavutil/frame.h | 6 + > > libavutil/mastering_display_

[FFmpeg-devel] [PATCH v3 5/5] avfilter/vf_showinfo: fix unknown side data type for DOVI_RPU_BUFFER

2022-04-05 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/vf_showinfo.c | 4 1 file changed, 4 insertions(+) diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c index 1e81d26..18ddf12 100644 --- a/libavfilter/vf_showinfo.c +++ b/libavfilter/vf_showinfo.c @@ -824,6 +824,10

[FFmpeg-devel] [PATCH v3 4/5] fftools/ffprobe: add support for ambient viewing environment metadata

2022-04-05 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- fftools/ffprobe.c | 5 + tests/ref/fate/hevc-dv-rpu | 6 ++ 2 files changed, 11 insertions(+) diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index 05c167e..a13b93e 100644 --- a/fftools/ffprobe.c +++ b/fftools/ffprobe.c @@ -260

[FFmpeg-devel] [PATCH v3 3/5] avfilter/vf_showinfo: add support for ambient viewing environment metadata

2022-04-05 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/vf_showinfo.c | 12 1 file changed, 12 insertions(+) diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c index 12d3931..1e81d26 100644 --- a/libavfilter/vf_showinfo.c +++ b/libavfilter/vf_showinfo.c @@ -651,

[FFmpeg-devel] [PATCH v3 2/5] avcodec: add support for hevc ambient viewing environment SEI message

2022-04-05 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavcodec/hevc_sei.c | 19 +++ libavcodec/hevc_sei.h | 8 libavcodec/hevcdec.c | 10 ++ tests/ref/fate/hevc-dv-rpu | 6 ++ 4 files changed, 43 insertions(+) diff --git a/libavcodec/hevc_sei.c

[FFmpeg-devel] [PATCH v3 1/5] avutil: add ambient viewing environment metadata side data

2022-04-05 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavutil/frame.c | 1 + libavutil/frame.h | 6 + libavutil/mastering_display_metadata.c | 23 + libavutil/mastering_display_metadata.h | 45 ++ libavut

Re: [FFmpeg-devel] [PATCH v2 1/4] avutil: add ambient viewing environment metadata side data

2022-04-05 Thread lance . lmwang
On Tue, Apr 05, 2022 at 11:13:12AM +0200, Anton Khirnov wrote: > Quoting lance.lmw...@gmail.com (2022-03-28 14:41:08) > > From: Limin Wang > > > > Signed-off-by: Limin Wang > > --- > > libavutil/frame.c | 1 + > > libavutil/frame.h | 6 + > > liba

Re: [FFmpeg-devel] [PATCH v2 1/4] avutil: add ambient viewing environment metadata side data

2022-04-04 Thread lance . lmwang
On Mon, Mar 28, 2022 at 08:41:08PM +0800, lance.lmw...@gmail.com wrote: > From: Limin Wang > > Signed-off-by: Limin Wang > --- > libavutil/frame.c | 1 + > libavutil/frame.h | 6 + > libavutil/mastering_display_metadata.c | 23 + >

Re: [FFmpeg-devel] [PATCH] MAINTAINERS: add myself as maintainer for libsrt protocol

2022-03-31 Thread lance . lmwang
On Wed, Mar 30, 2022 at 09:44:08PM +0200, Marton Balint wrote: > > > On Fri, 25 Mar 2022, Zhao Zhili wrote: > > > Signed-off-by: Zhao Zhili > > --- > > MAINTAINERS | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/MAINTAINERS b/MAINTAINERS > > index 931cf4bd2c..5daa6f8e03 100644 >

Re: [FFmpeg-devel] [PATCH] doc/bitstream_filters: fix for the syntax of code

2022-03-30 Thread lance . lmwang
On Wed, Mar 30, 2022 at 08:11:11PM +0530, Gyan Doshi wrote: > > > On 2022-03-30 07:21 pm, lance.lmw...@gmail.com wrote: > > From: Limin Wang > > > > Signed-off-by: Limin Wang > > --- > > doc/bitstream_filters.texi | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git

[FFmpeg-devel] [PATCH] doc/bitstream_filters: fix for the syntax of code

2022-03-30 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- doc/bitstream_filters.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/bitstream_filters.texi b/doc/bitstream_filters.texi index 0b354fd..fc2c71f 100644 --- a/doc/bitstream_filters.texi +++ b/doc/bitstream_filters.texi @

Re: [FFmpeg-devel] [PATCH] MAINTAINERS: add myself as maintainer for libsrt protocol

2022-03-30 Thread lance . lmwang
On Fri, Mar 25, 2022 at 03:40:33PM +0800, Zhao Zhili wrote: > Signed-off-by: Zhao Zhili > --- > MAINTAINERS | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/MAINTAINERS b/MAINTAINERS > index 931cf4bd2c..5daa6f8e03 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -516,6 +516,7 @@ Proto

Re: [FFmpeg-devel] [PATCH] avformat/libsrt: fix deprecated warning

2022-03-29 Thread lance . lmwang
On Fri, Mar 25, 2022 at 03:39:04PM +0800, Zhao Zhili wrote: > srt_socket was deprecated after 1.4.1. > --- > libavformat/libsrt.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/libavformat/libsrt.c b/libavformat/libsrt.c > index 19b9cb9895..1610ce8318 100644 > --- a/libavformat/libs

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/libsvtav1: clean up unconditional override of avctx bit rate

2022-03-29 Thread lance . lmwang
On Sun, Mar 27, 2022 at 09:02:11PM +0300, Jan Ekström wrote: > This value is only documented to be utilized if rate control is > set to one of the bit rate based modes. These modes are not the > default and thus the wrapper itself configures a bit rate according > to the avctx if bit rate based enc

Re: [FFmpeg-devel] [PATCH v2 2/4] avcodec: add support for hevc ambient viewing environment SEI message

2022-03-28 Thread lance . lmwang
On Mon, Mar 28, 2022 at 04:30:49PM +0200, Michael Niedermayer wrote: > On Mon, Mar 28, 2022 at 08:41:09PM +0800, lance.lmw...@gmail.com wrote: > > From: Limin Wang > > > > Signed-off-by: Limin Wang > > --- > > libavcodec/hevc_sei.c | 19 +++ > > libavcodec/hevc_sei.h |

[FFmpeg-devel] [PATCH v2 4/4] fftools/ffprobe: add support for ambient viewing environment metadata

2022-03-28 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- fftools/ffprobe.c | 5 + tests/ref/fate/hevc-dv-rpu | 6 ++ 2 files changed, 11 insertions(+) diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index 05c167e..39773c4 100644 --- a/fftools/ffprobe.c +++ b/fftools/ffprobe.c @@ -260

[FFmpeg-devel] [PATCH v2 3/4] avfilter/vf_showinfo: add support for ambient viewing environment metadata

2022-03-28 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/vf_showinfo.c | 12 1 file changed, 12 insertions(+) diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c index 12d3931..f11b3d9 100644 --- a/libavfilter/vf_showinfo.c +++ b/libavfilter/vf_showinfo.c @@ -651,

[FFmpeg-devel] [PATCH v2 2/4] avcodec: add support for hevc ambient viewing environment SEI message

2022-03-28 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavcodec/hevc_sei.c | 19 +++ libavcodec/hevc_sei.h | 8 libavcodec/hevcdec.c | 10 ++ tests/ref/fate/hevc-dv-rpu | 6 ++ 4 files changed, 43 insertions(+) diff --git a/libavcodec/hevc_sei.c

[FFmpeg-devel] [PATCH v2 1/4] avutil: add ambient viewing environment metadata side data

2022-03-28 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavutil/frame.c | 1 + libavutil/frame.h | 6 + libavutil/mastering_display_metadata.c | 23 + libavutil/mastering_display_metadata.h | 45 ++ 4 files

Re: [FFmpeg-devel] [PATCH 1/4] avutil: add ambient viewing environment metadata side data

2022-03-27 Thread lance . lmwang
On Sun, Mar 27, 2022 at 08:30:30PM -0300, James Almer wrote: > > > On 3/27/2022 8:25 PM, lance.lmw...@gmail.com wrote: > > From: Limin Wang > > > > Signed-off-by: Limin Wang > > --- > > libavutil/Makefile | 2 + > > libavutil/ambient_viewing_env_metadata.c | 47 ++

[FFmpeg-devel] [PATCH 4/4] fftools/ffprobe: add support for ambient viewing environment metadata

2022-03-27 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- fftools/ffprobe.c | 6 ++ tests/ref/fate/hevc-dv-rpu | 6 ++ 2 files changed, 12 insertions(+) diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index 05c167e..5abe496 100644 --- a/fftools/ffprobe.c +++ b/fftools/ffprobe.c @@ -52

[FFmpeg-devel] [PATCH 3/4] avfilter/vf_showinfo: add support for ambient viewing environment metadata

2022-03-27 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/vf_showinfo.c | 13 + 1 file changed, 13 insertions(+) diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c index 12d3931..ad86251 100644 --- a/libavfilter/vf_showinfo.c +++ b/libavfilter/vf_showinfo.c @@ -42,

[FFmpeg-devel] [PATCH 2/4] avcodec: add support for hevc ambient viewing environment SEI message

2022-03-27 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavcodec/hevc_sei.c | 19 +++ libavcodec/hevc_sei.h | 8 libavcodec/hevcdec.c | 11 +++ tests/ref/fate/hevc-dv-rpu | 6 ++ 4 files changed, 44 insertions(+) diff --git a/libavcodec/hevc_sei.

[FFmpeg-devel] [PATCH 1/4] avutil: add ambient viewing environment metadata side data

2022-03-27 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavutil/Makefile | 2 + libavutil/ambient_viewing_env_metadata.c | 47 + libavutil/ambient_viewing_env_metadata.h | 72 libavutil/frame.c| 1 + l

Re: [FFmpeg-devel] [PATCH 1/2] avformat/movenc: initialize pts/dts/duration of timecode packet

2022-03-22 Thread lance . lmwang
On Tue, Mar 22, 2022 at 02:28:10PM +0100, Andreas Rheinhardt wrote: > lance.lmw...@gmail.com: > > On Fri, Mar 11, 2022 at 05:16:09PM +0100, Andreas Rheinhardt wrote: > >> lance.lmw...@gmail.com: > >>> On Fri, Mar 11, 2022 at 03:04:32PM +0100, Andreas Rheinhardt wrote: > lance.lmw...@gmail.com:

Re: [FFmpeg-devel] [PATCH 1/2] avformat/movenc: initialize pts/dts/duration of timecode packet

2022-03-22 Thread lance . lmwang
On Fri, Mar 11, 2022 at 05:16:09PM +0100, Andreas Rheinhardt wrote: > lance.lmw...@gmail.com: > > On Fri, Mar 11, 2022 at 03:04:32PM +0100, Andreas Rheinhardt wrote: > >> lance.lmw...@gmail.com: > >>> On Wed, Mar 02, 2022 at 09:58:31PM +0800, lance.lmw...@gmail.com wrote: > From: Limin Wang >

[FFmpeg-devel] [PATCH] avfilter/vf_showinfo: fix unknown side data type for DOVI_RPU_BUFFER

2022-03-22 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/vf_showinfo.c | 4 1 file changed, 4 insertions(+) diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c index 12d3931..aa95341 100644 --- a/libavfilter/vf_showinfo.c +++ b/libavfilter/vf_showinfo.c @@ -812,6 +812,10

[FFmpeg-devel] [PATCH v2 2/2] avformat/movenc: use warning log level and small adjustment for the log

2022-03-14 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/movenc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 436ceb8..d0072f5 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -5638,9 +5638,8 @@ stat

[FFmpeg-devel] [PATCH v2 1/2] avformat/movenc: initialize pts/dts of timecode packet

2022-03-14 Thread lance . lmwang
From: Limin Wang Fix below error message when timecode packet is written. "Application provided duration: -9223372036854775808 / timestamp: -9223372036854775808 is out of range for mov/mp4 format" try to reproduce by: ffmpeg -y -f lavfi -i color -metadata "timecode=00:00:00:00" -t 1 test.mov N

Re: [FFmpeg-devel] [PATCH 1/2] avformat/movenc: initialize pts/dts/duration of timecode packet

2022-03-11 Thread lance . lmwang
On Fri, Mar 11, 2022 at 05:16:09PM +0100, Andreas Rheinhardt wrote: > lance.lmw...@gmail.com: > > On Fri, Mar 11, 2022 at 03:04:32PM +0100, Andreas Rheinhardt wrote: > >> lance.lmw...@gmail.com: > >>> On Wed, Mar 02, 2022 at 09:58:31PM +0800, lance.lmw...@gmail.com wrote: > From: Limin Wang >

Re: [FFmpeg-devel] [PATCH 1/2] avformat/movenc: initialize pts/dts/duration of timecode packet

2022-03-11 Thread lance . lmwang
On Fri, Mar 11, 2022 at 03:04:32PM +0100, Andreas Rheinhardt wrote: > lance.lmw...@gmail.com: > > On Wed, Mar 02, 2022 at 09:58:31PM +0800, lance.lmw...@gmail.com wrote: > >> From: Limin Wang > >> > >> Fix below error message when timecode packet is written. > >> "Application provided duration: -9

Re: [FFmpeg-devel] [PATCH 1/2] avformat/movenc: initialize pts/dts/duration of timecode packet

2022-03-11 Thread lance . lmwang
On Wed, Mar 02, 2022 at 09:58:31PM +0800, lance.lmw...@gmail.com wrote: > From: Limin Wang > > Fix below error message when timecode packet is written. > "Application provided duration: -9223372036854775808 / timestamp: > -9223372036854775808 is out of range for mov/mp4 format" > > try to repro

[FFmpeg-devel] [PATCH] fate: add a test for HDR Vivid metadata in HEVC

2022-03-05 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- Please help to upload below sample to fate-suite/hevc/ https://streams.videolan.org/ffmpeg/incoming/hdr_vivid_h265_sample.hevc tests/fate/hevc.mak| 3 ++ tests/ref/fate/hevc-hdr-vivid-metadata | 78

Re: [FFmpeg-devel] [PATCH 1/2] avformat/movenc: initialize pts/dts/duration of timecode packet

2022-03-02 Thread lance . lmwang
On Thu, Mar 03, 2022 at 02:55:23AM +0100, Andreas Rheinhardt wrote: > lance.lmw...@gmail.com: > > From: Limin Wang > > > > Fix below error message when timecode packet is written. > > "Application provided duration: -9223372036854775808 / timestamp: > > -9223372036854775808 is out of range for m

[FFmpeg-devel] [PATCH 2/2] avformat/movenc: use warning log level and small adjustment for the log

2022-03-02 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/movenc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 74b94cd..8b038c1 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -5638,9 +5638,8 @@ stat

[FFmpeg-devel] [PATCH 1/2] avformat/movenc: initialize pts/dts/duration of timecode packet

2022-03-02 Thread lance . lmwang
From: Limin Wang Fix below error message when timecode packet is written. "Application provided duration: -9223372036854775808 / timestamp: -9223372036854775808 is out of range for mov/mp4 format" try to reproduce by: ffmpeg -y -f lavfi -i color -metadata "timecode=00:00:00:00" -t 1 test.mov N

Re: [FFmpeg-devel] [PATCH] AVS3: add support for AVS3 High profile - same syntax as AVS3 Main profile

2022-02-26 Thread lance . lmwang
On Sat, Feb 26, 2022 at 07:48:24AM +, Paul Higgs wrote: > > > -Original Message- > > From: ffmpeg-devel On Behalf Of > > lance.lmw...@gmail.com > > Sent: 26 February 2022 07:18 > > To: ffmpeg-devel@ffmpeg.org > > Subject: Re: [FFmpeg-devel] [PATCH] AVS3: add support for AVS3 High prof

Re: [FFmpeg-devel] [PATCH] AVS3: add support for AVS3 High profile - same syntax as AVS3 Main profile

2022-02-25 Thread lance . lmwang
On Sat, Feb 26, 2022 at 05:50:39AM +, Paul Higgs wrote: > This patch adds high level syntax support for parsing AVS3 High profile > bitstreams. > Latest AVS3 specification including High profile is available at > http://www.avs.org.cn/AVS3_download/en_index.asp > > Signed-off-by: Paul Higgs

Re: [FFmpeg-devel] [PATCH 1/4] avutil: add support for CUVA HDR Vivid metadata

2022-02-25 Thread lance . lmwang
On Tue, Feb 15, 2022 at 08:08:51AM +0100, Andreas Rheinhardt wrote: > lance.lmw...@gmail.com: > > From: Limin Wang > > > > Signed-off-by: Limin Wang > > --- > > libavutil/Makefile | 2 + > > libavutil/frame.c | 1 + > > libavutil/frame.h

Re: [FFmpeg-devel] [PATCH 1/4] avutil: add support for CUVA HDR Vivid metadata

2022-02-14 Thread lance . lmwang
On Tue, Feb 15, 2022 at 08:08:51AM +0100, Andreas Rheinhardt wrote: > lance.lmw...@gmail.com: > > From: Limin Wang > > > > Signed-off-by: Limin Wang > > --- > > libavutil/Makefile | 2 + > > libavutil/frame.c | 1 + > > libavutil/frame.h

[FFmpeg-devel] [PATCH 4/4] fftool/ffprobe: support for CUVA HDR Vivid metadata

2022-02-14 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- fftools/ffprobe.c | 70 +++ 1 file changed, 70 insertions(+) diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index 8a8e3de..0e8f1d5 100644 --- a/fftools/ffprobe.c +++ b/fftools/ffprobe.c @@ -3

[FFmpeg-devel] [PATCH 3/4] avfilter: support for CUVA HDR Vivid metadata

2022-02-14 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/vf_showinfo.c | 86 +++ 1 file changed, 86 insertions(+) diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c index 71728bc..bee84b2 100644 --- a/libavfilter/vf_showinfo.c +++ b

[FFmpeg-devel] [PATCH 2/4] avcodec: support for CUVA HDR Vivid metadata

2022-02-14 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavcodec/Makefile| 2 +- libavcodec/dynamic_hdr_vivid.c | 139 + libavcodec/dynamic_hdr_vivid.h | 35 +++ libavcodec/hevc_sei.c | 48 +- libavcodec/hevc_sei.h

[FFmpeg-devel] [PATCH 1/4] avutil: add support for CUVA HDR Vivid metadata

2022-02-14 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavutil/Makefile | 2 + libavutil/frame.c | 1 + libavutil/frame.h | 7 + libavutil/hdr_dynamic_vivid_metadata.c | 47 ++ libavutil/hdr_dynamic_vivid_metadata.h | 285 ++

Re: [FFmpeg-devel] [patch] libavcodec/videotoolbox.c : fix missing AVCodecInternal

2022-02-14 Thread lance . lmwang
On Mon, Feb 14, 2022 at 11:05:58AM +0100, Andreas Rheinhardt wrote: > lance.lmw...@gmail.com: > > On Mon, Feb 14, 2022 at 08:27:39AM +0100, Pascal Massimino wrote: > >> attached. Just a missing include. > > > > I have submit a patch for it already, if you think it's OK, I can push it > > soon. >

Re: [FFmpeg-devel] [patch] libavcodec/videotoolbox.c : fix missing AVCodecInternal

2022-02-14 Thread lance . lmwang
On Mon, Feb 14, 2022 at 08:27:39AM +0100, Pascal Massimino wrote: > attached. Just a missing include. I have submit a patch for it already, if you think it's OK, I can push it soon. > > skal/ > ___ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.or

[FFmpeg-devel] [PATCH] avcodec/videotoolbox: add internal.h for header depenedency

2022-02-13 Thread lance . lmwang
From: Limin Wang Fixes build failures for videotoolbox Signed-off-by: Limin Wang --- libavcodec/videotoolbox.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/videotoolbox.c b/libavcodec/videotoolbox.c index 51d4eac..29c781c 100644 --- a/libavcodec/videotoolbox.c +++ b/libavcode

Re: [FFmpeg-devel] [PATCH v3 2/3] avformat/udp: Fix IP_MULTICAST_TTL for BSD compatibility

2022-02-11 Thread lance . lmwang
On Fri, Feb 11, 2022 at 10:05:19PM +0100, Marton Balint wrote: > > > On Sat, 5 Feb 2022, lance.lmw...@gmail.com wrote: > > > From: Limin Wang > > > > Suggested by zhilizhao, vlc project has solved the compatibility by > > the same way, so I borrowed the comments from vlc project. > > > > Fix

Re: [FFmpeg-devel] [PATCH v3 1/3] avformat/udp: use one setsockopt for ipv4/ipv6

2022-02-10 Thread lance . lmwang
On Sat, Feb 05, 2022 at 08:31:46PM +0800, lance.lmw...@gmail.com wrote: > From: Limin Wang > > Signed-off-by: Limin Wang > --- > libavformat/udp.c | 32 > 1 file changed, 20 insertions(+), 12 deletions(-) > > diff --git a/libavformat/udp.c b/libavformat/udp.c >

[FFmpeg-devel] [PATCH] avformat/udp: properly check for valid ttl in url

2022-02-07 Thread lance . lmwang
From: Limin Wang Zhao Zhili added a ttl upper bound in commit 9daac85da8, but the check for ttl in url is missing still. Signed-off-by: Limin Wang --- libavformat/udp.c | 5 + 1 file changed, 5 insertions(+) diff --git a/libavformat/udp.c b/libavformat/udp.c index da56c8e..401d9b6 100644

Re: [FFmpeg-devel] [PATCH v2 2/3] avformat/udp: Fix IP_MULTICAST_TTL for BSD compatibility

2022-02-06 Thread lance . lmwang
On Sun, Feb 06, 2022 at 02:27:09PM -0800, Chad Fraleigh wrote: > > On 2/5/2022 6:09 PM, lance.lmw...@gmail.com wrote: > > On Sat, Feb 05, 2022 at 01:26:18PM -0800, Chad Fraleigh wrote: > >> Since any [valid] value over 255 is impossible in the IPv4 protocol (the > >> TTL field is only 8-bits), it

Re: [FFmpeg-devel] [PATCH v2 2/3] avformat/udp: Fix IP_MULTICAST_TTL for BSD compatibility

2022-02-05 Thread lance . lmwang
On Sat, Feb 05, 2022 at 01:26:18PM -0800, Chad Fraleigh wrote: > Since any [valid] value over 255 is impossible in the IPv4 protocol (the TTL > field is only 8-bits), it should always be capped at 255 (for consistency) or > return an invalid value error (the one I would suggest). > zhilizhao ha

[FFmpeg-devel] [PATCH v3 3/3] avformat/udp: remove IPPROTO_IPV6 macro

2022-02-05 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/udp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/udp.c b/libavformat/udp.c index 1871acf..9f6ab1b 100644 --- a/libavformat/udp.c +++ b/libavformat/udp.c @@ -175,7 +175,7 @@ static int udp_set_multica

[FFmpeg-devel] [PATCH v3 2/3] avformat/udp: Fix IP_MULTICAST_TTL for BSD compatibility

2022-02-05 Thread lance . lmwang
From: Limin Wang Suggested by zhilizhao, vlc project has solved the compatibility by the same way, so I borrowed the comments from vlc project. Fix #ticket9449 Signed-off-by: Limin Wang --- libavformat/udp.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/

[FFmpeg-devel] [PATCH v3 1/3] avformat/udp: use one setsockopt for ipv4/ipv6

2022-02-05 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/udp.c | 32 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/libavformat/udp.c b/libavformat/udp.c index 83c042d..8178d0e 100644 --- a/libavformat/udp.c +++ b/libavformat/udp.c @@ -162,22

Re: [FFmpeg-devel] [PATCH v2 1/3] avformat/udp: use one setsockopt for ipv4/ipv6

2022-02-05 Thread lance . lmwang
On Sat, Feb 05, 2022 at 10:58:08AM +0100, Marton Balint wrote: > > > On Sat, 5 Feb 2022, lance.lmw...@gmail.com wrote: > > > From: Limin Wang > > > > Signed-off-by: Limin Wang > > --- > > libavformat/udp.c | 31 --- > > 1 file changed, 20 insertions(+), 11 deletions

Re: [FFmpeg-devel] [PATCH v2 2/3] avformat/udp: Fix IP_MULTICAST_TTL for BSD compatibility

2022-02-05 Thread lance . lmwang
On Sat, Feb 05, 2022 at 10:59:55AM +0100, Marton Balint wrote: > > > On Sat, 5 Feb 2022, lance.lmw...@gmail.com wrote: > > > From: Limin Wang > > > > Suggested by zhilizhao, vlc project has solved the compatibility by > > the same way, so I borrowed the comments from vlc project. > > > > Fix

[FFmpeg-devel] [PATCH v2 3/3] avformat/udp: remove IPPROTO_IPV6 macro

2022-02-04 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/udp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/udp.c b/libavformat/udp.c index 34488d6..0b078d4 100644 --- a/libavformat/udp.c +++ b/libavformat/udp.c @@ -175,7 +175,7 @@ static int udp_set_multica

[FFmpeg-devel] [PATCH v2 2/3] avformat/udp: Fix IP_MULTICAST_TTL for BSD compatibility

2022-02-04 Thread lance . lmwang
From: Limin Wang Suggested by zhilizhao, vlc project has solved the compatibility by the same way, so I borrowed the comments from vlc project. Fix #ticket9449 Signed-off-by: Limin Wang --- libavformat/udp.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/

[FFmpeg-devel] [PATCH v2 1/3] avformat/udp: use one setsockopt for ipv4/ipv6

2022-02-04 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/udp.c | 31 --- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/libavformat/udp.c b/libavformat/udp.c index 83c042d..3dc79eb 100644 --- a/libavformat/udp.c +++ b/libavformat/udp.c @@ -162,22 +

Re: [FFmpeg-devel] [PATCH] avformat/rtpdec_rfc4175: fix interlace format

2022-02-04 Thread lance . lmwang
On Wed, Feb 02, 2022 at 03:45:10PM -0500, Patrick Keroulas wrote: > In previous state, a new frame was allocated on each timestamp step, > i.e. each frame/field transition. However, for interlace, a new frame > should be allocated on 1st field, completed with the 2nd and finally > freed. > > This

Re: [FFmpeg-devel] [PATCH] avformat/rtpdec_rfc4175: fix interlace format

2022-02-03 Thread lance . lmwang
On Wed, Feb 02, 2022 at 03:45:10PM -0500, Patrick Keroulas wrote: > In previous state, a new frame was allocated on each timestamp step, > i.e. each frame/field transition. However, for interlace, a new frame > should be allocated on 1st field, completed with the 2nd and finally > freed. > > This

Re: [FFmpeg-devel] [PATCH 3/3] avformat/dashdec: avoid calling strlen multiple times

2022-01-29 Thread lance . lmwang
On Mon, Jan 24, 2022 at 11:48:22AM +0800, Steven Liu wrote: > 于2022年1月23日周日 11:52写道: > > > > From: Limin Wang > > > > Signed-off-by: Limin Wang > > --- > > libavformat/dashdec.c | 6 -- > > 1 file changed, 4 insertions(+), 2 deletions(-) > > > > diff --git a/libavformat/dashdec.c b/libavfor

[FFmpeg-devel] [PATCH] avformat/udp: Fix IP_MULTICAST_TTL for BSD compatibility

2022-01-26 Thread lance . lmwang
From: Limin Wang Fix #ticket9449 Signed-off-by: Limin Wang --- Make it as real patch so that you can test it easily as I don't have BSD system for testing. libavformat/udp.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libavformat/udp.c b/libavformat/udp.c index

Re: [FFmpeg-devel] [PATCH] Fix setsockopt IP_MULTICAST_TTL on OpenBSD

2022-01-26 Thread lance . lmwang
On Thu, Jan 27, 2022 at 10:30:10AM +0800, "zhilizhao(赵志立)" wrote: > > > > On Jan 27, 2022, at 9:59 AM, lance.lmw...@gmail.com wrote: > > > > On Wed, Jan 26, 2022 at 09:50:47PM +0100, Marton Balint wrote: > >> > >> > >> On Wed, 26 Jan 2022, Brad Smith wrote: > >> > >>> On Wed, Jan 12, 2022 at

Re: [FFmpeg-devel] [PATCH] Fix setsockopt IP_MULTICAST_TTL on OpenBSD

2022-01-26 Thread lance . lmwang
On Wed, Jan 26, 2022 at 09:50:47PM +0100, Marton Balint wrote: > > > On Wed, 26 Jan 2022, Brad Smith wrote: > > > On Wed, Jan 12, 2022 at 12:13:14AM -0500, Brad Smith wrote: > > > Fix setsockopt() usage on OpenBSD with IP_MULTICAST_TTL. The field > > > type should be an unsigned char on anything

Re: [FFmpeg-devel] [PATCH] Fix setsockopt IP_MULTICAST_TTL on OpenBSD

2022-01-25 Thread lance . lmwang
On Tue, Jan 25, 2022 at 04:28:33PM -0800, Chad Fraleigh wrote: > Since apparently linux will auto-detect (as mentioned by Marton Balint), > based on the optlen parameter, just using unsigned char in all cases seems to > be the cleanest. However, I would advise including a comment in the code to

Re: [FFmpeg-devel] [PATCH] Fix setsockopt IP_MULTICAST_TTL on OpenBSD

2022-01-24 Thread lance . lmwang
On Wed, Jan 12, 2022 at 12:13:13AM -0500, Brad Smith wrote: > Fix setsockopt() usage on OpenBSD with IP_MULTICAST_TTL. The field > type should be an unsigned char on anything but Linux. > > > diff --git a/libavformat/udp.c b/libavformat/udp.c > index 180d96a988..29aa865fff 100644 > --- a/libavfor

[FFmpeg-devel] [PATCH 3/3] avformat/dashdec: avoid calling strlen multiple times

2022-01-22 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/dashdec.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 0d21989..211d77f 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -403,6 +403,7 @@

[FFmpeg-devel] [PATCH 2/3] avformat/rtpdec: return value check for init_get_bits()

2022-01-22 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/rtpdec_h261.c | 4 +++- libavformat/rtpdec_h263_rfc2190.c | 4 +++- libavformat/rtpdec_latm.c | 4 +++- libavformat/rtpdec_mpeg4.c| 5 - libavformat/rtpdec_qt.c | 4 +++- 5 files changed, 16 inserti

[FFmpeg-devel] [PATCH 1/3] avformat/rtpdec: Fix negative missed packets in warning message

2022-01-22 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/rtpdec.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c index 20fe2b8..f285a41 100644 --- a/libavformat/rtpdec.c +++ b/libavformat/rtpdec.c @@ -835,9 +835,14 @@ s

Re: [FFmpeg-devel] [PATCH v3 2/3] avcodec/libopenh264enc: make the profile configuablable correctly

2022-01-14 Thread lance . lmwang
On Fri, Jan 14, 2022 at 02:07:26PM +0200, Martin Storsjö wrote: > On Fri, 14 Jan 2022, lance.lmw...@gmail.com wrote: > > > From: Limin Wang > > > > due to the limitations set in d3a7bdd4ac54349aea9150a234478635d50ebd87, > > you weren't able to use main profile with OpenH264 1.8, or high profile

[FFmpeg-devel] [PATCH v3 3/3] avcodec/libopenh264enc: set iEntropyCodingModeFlag by coder option

2022-01-14 Thread lance . lmwang
From: Limin Wang For high/main profile, user can choose to use cavlc by specify "-coder cavlc", for default, it'll will use cabac, if it's baseline, we'll use cavlc by specs anyway. ffmpeg -y -f lavfi -i testsrc -c:v libopenh264 -profile:v main -coder cavlc -frames:v 1 -bsf trace_headers -f nu

[FFmpeg-devel] [PATCH v3 2/3] avcodec/libopenh264enc: make the profile configuablable correctly

2022-01-14 Thread lance . lmwang
From: Limin Wang due to the limitations set in d3a7bdd4ac54349aea9150a234478635d50ebd87, you weren't able to use main profile with OpenH264 1.8, or high profile with older versions Reviewed-by: Martin Storsjö Signed-off-by: Limin Wang --- libavcodec/libopenh264enc.c | 8 1 file chang

[FFmpeg-devel] [PATCH v3 1/3] avcodec/libopenh264enc: support for colorspace and range information

2022-01-14 Thread lance . lmwang
From: Limin Wang Reviewed-by: Martin Storsjö Signed-off-by: Limin Wang --- libavcodec/libopenh264enc.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/libavcodec/libopenh264enc.c b/libavcodec/libopenh264enc.c index de4b85c..5b5914c 100644 --- a/libavcodec/libopenh26

Re: [FFmpeg-devel] [PATCH v2 2/3] avcodec/libopenh264enc: make the profile configuablable correctly

2022-01-14 Thread lance . lmwang
On Fri, Jan 14, 2022 at 11:28:14AM +0200, Martin Storsjö wrote: > On Fri, 14 Jan 2022, lance.lmw...@gmail.com wrote: > > > From: Limin Wang > > > > d3a7bdd4ac54349aea9150a234478635d50ebd87 was based on incorrect conclusions > > because we had missed to set uiProfileIdc. > > > > If the version o

[FFmpeg-devel] [PATCH v2 3/3] avcodec/libopenh264enc: set iEntropyCodingModeFlag by coder option

2022-01-14 Thread lance . lmwang
From: Limin Wang For high/main profile, user can choose to use cavlc by specify "-coder cavlc", for default, it'll will use cabac, if it's baseline, we'll use cavlc by specs anyway. ffmpeg -y -f lavfi -i testsrc -c:v libopenh264 -profile:v main -coder cavlc -frames:v 1 -bsf trace_headers -f nu

[FFmpeg-devel] [PATCH v2 2/3] avcodec/libopenh264enc: make the profile configuablable correctly

2022-01-14 Thread lance . lmwang
From: Limin Wang d3a7bdd4ac54349aea9150a234478635d50ebd87 was based on incorrect conclusions because we had missed to set uiProfileIdc. If the version of libopenh264 >= 1.8, we can't configured main profile as expected, below is the testing cli: ffmpeg -y -f lavfi -i testsrc -c:v libopenh264 -p

[FFmpeg-devel] [PATCH v2 1/3] avcodec/libopenh264enc: support for colorspace and range information

2022-01-14 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavcodec/libopenh264enc.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/libavcodec/libopenh264enc.c b/libavcodec/libopenh264enc.c index de4b85c..5b5914c 100644 --- a/libavcodec/libopenh264enc.c +++ b/libavcodec/libop

Re: [FFmpeg-devel] [PATCH 3/3] avcodec/libopenh264enc: set iEntropyCodingModeFlag by coder option

2022-01-13 Thread lance . lmwang
On Fri, Jan 14, 2022 at 12:01:26AM +0200, Martin Storsjö wrote: > On Thu, 13 Jan 2022, lance.lmw...@gmail.com wrote: > > > From: Limin Wang > > > > ffmpeg -y -f lavfi -i testsrc -c:v libopenh264 -profile:v main -coder cavlc > > -frames:v 1 -bsf trace_headers -f null - > > > > before the patch:

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/libopenh264enc: make the profile configuablable correctly

2022-01-13 Thread lance . lmwang
On Thu, Jan 13, 2022 at 11:57:36PM +0200, Martin Storsjö wrote: > On Thu, 13 Jan 2022, lance.lmw...@gmail.com wrote: > > > From: Limin Wang > > > > If the version of libopenh264 >= 1.8, we can't configured main profile as > > expected, below is the testing cli: > > > > ffmpeg -y -f lavfi -i tes

Re: [FFmpeg-devel] [PATCH 1/3] avcodec/libopenh264enc: support for colorspace and range information

2022-01-13 Thread lance . lmwang
On Thu, Jan 13, 2022 at 11:35:32PM +0200, Martin Storsjö wrote: > On Thu, 13 Jan 2022, lance.lmw...@gmail.com wrote: > > > From: Limin Wang > > > > Signed-off-by: Limin Wang > > --- > > libavcodec/libopenh264enc.c | 15 +++ > > 1 file changed, 15 insertions(+) > > > > diff --git a/l

[FFmpeg-devel] [PATCH 3/3] avcodec/libopenh264enc: set iEntropyCodingModeFlag by coder option

2022-01-13 Thread lance . lmwang
From: Limin Wang ffmpeg -y -f lavfi -i testsrc -c:v libopenh264 -profile:v main -coder cavlc -frames:v 1 -bsf trace_headers -f null - before the patch: entropy_coding_mode_flag0 = 1 after the patch: entropy_coding_mode_flag

[FFmpeg-devel] [PATCH 2/3] avcodec/libopenh264enc: make the profile configuablable correctly

2022-01-13 Thread lance . lmwang
From: Limin Wang If the version of libopenh264 >= 1.8, we can't configured main profile as expected, below is the testing cli: ffmpeg -y -f lavfi -i testsrc -c:v libopenh264 -profile:v main -frames:v 1 test.ts It'll report: [libopenh264 @ 0x5638300] Unsupported profile, select EProfileIdc PRO_B

  1   2   3   4   5   6   7   8   9   10   >