[FFmpeg-devel] [PATCH v2] libavcodec/qsvenc: add more ChromaFormat support to mjpeg_qsv

2022-02-20 Thread Wenbin Chen
ChromaForamt for mjpeg-qsv is always set to yuv420, and this will be wrong when encode other pixel format (for example yuyv422). ChromaFormat is changed to be adaptive to pix_fmt. Signed-off-by: Wenbin Chen --- libavcodec/qsvenc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --g

Re: [FFmpeg-devel] [PATCH v5 1/2] libavcodec/vaapi_encode: Add new API adaption to vaapi_encode

2022-02-20 Thread Xiang, Haihao
On Fri, 2022-02-18 at 11:07 +0800, Wenbin Chen wrote: > Add vaSyncBuffer to VAAPI encoder. Old version API vaSyncSurface wait > surface to complete. When surface is used for multiple operation, it > waits all operations to finish. vaSyncBuffer only wait one channel to > finish. > > Signed-off-by:

Re: [FFmpeg-devel] [PATCH v2 1/4] lavc/vaapi_encode_h265: Add P frame to GPB frame support for hevc_vaapi

2022-02-20 Thread Xiang, Haihao
On Mon, 2022-02-21 at 10:13 +0800, Fei Wang wrote: > From: Linjie Fu > > Use GPB frames to replace regular P frames if backend driver does not > support it. > > - GPB: > Generalized P and B picture. P frames replaced by B frames with > forward-predict only, L0 == L1. Normal B frames stil

[FFmpeg-devel] [PATCH v2 7/7] avformat/concat: refactor to use av_rescale_interval()

2022-02-20 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/concatdec.c | 19 +-- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/libavformat/concatdec.c b/libavformat/concatdec.c index 0603c6e254..3ddbe833c9 100644 --- a/libavformat/concatdec.c +++ b/libavformat/concatdec.c @@ -

[FFmpeg-devel] [PATCH v2 6/7] avformat/imf: refactor to use av_rescale_interval()

2022-02-20 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/imfdec.c | 21 +++-- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index ac212b05e1..bc27e3cc2a 100644 --- a/libavformat/imfdec.c +++ b/libavformat/imfdec.c @@ -69,6 +69,7 @@

[FFmpeg-devel] [PATCH v2 5/7] avutil/tests: add test for avutil/mathematics

2022-02-20 Thread pal
From: Pierre-Anthony Lemieux --- libavutil/Makefile| 1 + libavutil/tests/.gitignore| 1 + libavutil/tests/mathematics.c | 57 +++ tests/fate/libavutil.mak | 5 +++ 4 files changed, 64 insertions(+) create mode 100644 libavutil/tests/mathe

[FFmpeg-devel] [PATCH v2 4/7] avutil/mathematics: add av_rescale_interval() function

2022-02-20 Thread pal
From: Pierre-Anthony Lemieux Refactors a function used by avformat/concat and avformat/imf. --- libavutil/mathematics.c | 10 ++ libavutil/mathematics.h | 21 + 2 files changed, 31 insertions(+) diff --git a/libavutil/mathematics.c b/libavutil/mathematics.c index f4

[FFmpeg-devel] [PATCH v2 3/7] avformat/imf: clean-up and reduce logging

2022-02-20 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/imfdec.c | 93 ++-- 1 file changed, 29 insertions(+), 64 deletions(-) diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index f208b262c3..ac212b05e1 100644 --- a/libavformat/imfdec.c +++ b/libavformat/im

[FFmpeg-devel] [PATCH v2 2/7] avformat/imf: add support for input seeking

2022-02-20 Thread pal
From: Pierre-Anthony Lemieux The IMF demuxer did not implement AVInputFormat::read_seek2(), resulting in inefficient input seeking. Addresses https://trac.ffmpeg.org/ticket/9648 Byte- and frame-seeking are not supported. --- libavformat/imfdec.c | 129 ++---

[FFmpeg-devel] [PATCH v2 1/7] avformat/imf: relocate static function imf_time_to_ts()

2022-02-20 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/imfdec.c | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index 3ce850b75a..b98af020d2 100644 --- a/libavformat/imfdec.c +++ b/libavformat/imfdec.c

Re: [FFmpeg-devel] [PATCH v1 4/4] vaapi_encode_h265: Query encoding block sizes and features

2022-02-20 Thread Wang, Fei W
On Fri, 2022-02-18 at 04:38 +, Xiang, Haihao wrote: > On Fri, 2022-02-18 at 09:43 +0800, Fei Wang wrote: > > From: Mark Thompson > > > > Signed-off-by: Fei Wang > > --- > > libavcodec/vaapi_encode_h265.c | 107 > > +++-- > > 1 file changed, 102 insertions(+), 5 d

[FFmpeg-devel] [PATCH v2 4/4] vaapi_encode_h265: Query encoding block sizes and features

2022-02-20 Thread Fei Wang
From: Mark Thompson Signed-off-by: Fei Wang --- libavcodec/vaapi_encode_h265.c | 107 +++-- 1 file changed, 102 insertions(+), 5 deletions(-) diff --git a/libavcodec/vaapi_encode_h265.c b/libavcodec/vaapi_encode_h265.c index 8319848e4a..bc14c59211 100644 --- a/libav

[FFmpeg-devel] [PATCH v2 3/4] vaapi_encode_h265: Explicitly set and correct some flags

2022-02-20 Thread Fei Wang
From: Mark Thompson max_14bit_constraint_flag should be set if the bit depth is not greater than 14 (currently always true). one_picture_only_flag should not be set because we don't support the still picture profiles. general_profile_compatibility_flag should be set according to general_profil

[FFmpeg-devel] [PATCH v2 2/4] vaapi_encode: Move block size calculation after entrypoint selection

2022-02-20 Thread Fei Wang
From: Mark Thompson The block size can be dependent on the profile and entrypoint selected. It defaults to 16x16, with codecs able to override this choice with their own function. Signed-off-by: Fei Wang --- libavcodec/vaapi_encode.c | 14 ++ libavcodec/vaapi_encode.h |

[FFmpeg-devel] [PATCH v2 1/4] lavc/vaapi_encode_h265: Add P frame to GPB frame support for hevc_vaapi

2022-02-20 Thread Fei Wang
From: Linjie Fu Use GPB frames to replace regular P frames if backend driver does not support it. - GPB: Generalized P and B picture. P frames replaced by B frames with forward-predict only, L0 == L1. Normal B frames still have 2 different ref_lists and allow bi-prediction Signed-of

Re: [FFmpeg-devel] [PATCH v3] libavcodec/qsvenc_hevc: encode RGB format rawvideo

2022-02-20 Thread Xiang, Haihao
On Fri, 2022-02-18 at 13:50 +0800, Wenbin Chen wrote: > Add support for hevc_qsv to input RGB format frame. It will > transform frame to yuv inside MediaSDK instead of using auto > scale. Now hevc_qsv supports directly encoding BGRA and X2RGB10 > format. The X2RGB10 correspond to the A2RGB20 format

Re: [FFmpeg-devel] [PATCH] avfilter/framepool: fix alignment requirements for audio and video filters

2022-02-20 Thread James Almer
On 2/20/2022 7:02 PM, Paul B Mahol wrote: Signed-off-by: Paul B Mahol --- libavfilter/audio.c | 11 +-- libavfilter/framepool.c | 16 ++-- libavfilter/video.c | 11 +-- 3 files changed, 16 insertions(+), 22 deletions(-) diff --git a/libavfilter/audio.

[FFmpeg-devel] M1 Patchwork CI runner

2022-02-20 Thread Andriy Gelman
Hello, I understand we have some spare M1 minis for ffmpeg resources. Do we want to set up a Patchwork CI runner on M1 hardware? Unfortunately I can't use my x86 box for x86/ppc tests anymore. I have asked Raz if we can setup an x86 VM for the time being until we find some dedicated hardware.

[FFmpeg-devel] [PATCH] avformat/wvdec: parse last chunk that may store MD5 checksum

2022-02-20 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavformat/wvdec.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/libavformat/wvdec.c b/libavformat/wvdec.c index 0d5a86953d..ffefda1cce 100644 --- a/libavformat/wvdec.c +++ b/libavformat/wvdec.c @@ -108,7 +108,7 @@ static i

[FFmpeg-devel] [PATCH] avfilter/framepool: fix alignment requirements for audio and video filters

2022-02-20 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavfilter/audio.c | 11 +-- libavfilter/framepool.c | 16 ++-- libavfilter/video.c | 11 +-- 3 files changed, 16 insertions(+), 22 deletions(-) diff --git a/libavfilter/audio.c b/libavfilter/audio.c index cebc9709dd..a0408226a

Re: [FFmpeg-devel] [PATCH] libavfilter: zscale performance optimization >4x

2022-02-20 Thread Paul B Mahol
On Sat, Feb 19, 2022 at 04:58:09PM +0300, Victoria Zhislina wrote: > By ffmpeg threading support implementation via frame slicing and doing > zimg_filter_graph_build that used to take 30-60% of each frame processig > only if necessary (some parameters changed) > the performance increase vs original

[FFmpeg-devel] [PATCH] avfilter/framepool: fix alignment requirements for audio and video filters

2022-02-20 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavfilter/audio.c | 11 +-- libavfilter/framepool.c | 18 -- libavfilter/video.c | 11 +-- 3 files changed, 18 insertions(+), 22 deletions(-) diff --git a/libavfilter/audio.c b/libavfilter/audio.c index cebc9709dd..a040822

Re: [FFmpeg-devel] [PATCH 3/3] lavc/encode: pick a sane default for bits_per_raw_sample if it's not set

2022-02-20 Thread Paul B Mahol
On Sun, Feb 20, 2022 at 3:19 PM Anton Khirnov wrote: > ping > > any more opinions on this? > I'm OK with this patch. If 24bit is still needed it can be set in usual already known way, by setting additional flag. > > -- > Anton Khirnov > ___ > ffmpeg

Re: [FFmpeg-devel] [PATCH] avfilter/framepool: fix adjustment that can crash filtering

2022-02-20 Thread James Almer
On 2/20/2022 1:15 PM, Anton Khirnov wrote: Quoting Paul B Mahol (2022-02-18 11:46:05) Fixes #9551. Signed-off-by: Paul B Mahol --- libavfilter/framepool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/framepool.c b/libavfilter/framepool.c index 7c63807df3..

Re: [FFmpeg-devel] [PATCH] avfilter/framepool: fix adjustment that can crash filtering

2022-02-20 Thread Anton Khirnov
Quoting Paul B Mahol (2022-02-18 11:46:05) > Fixes #9551. > > Signed-off-by: Paul B Mahol > --- > libavfilter/framepool.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavfilter/framepool.c b/libavfilter/framepool.c > index 7c63807df3..aab408d355 100644 > --- a/liba

Re: [FFmpeg-devel] [PATCH 1/2] lavfi: add ff_inoutlink_check_flow()

2022-02-20 Thread Nicolas George
Paul B Mahol (12022-02-19): > OK for the set. Thanks, pushed. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscrib

Re: [FFmpeg-devel] [PATCH 3/3] lavc/encode: pick a sane default for bits_per_raw_sample if it's not set

2022-02-20 Thread Anton Khirnov
ping any more opinions on this? -- 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 "unsubscrib