[FFmpeg-devel] [PATCH] libavcodec/qsvenc.c: Disable MFX_GOP_STRICT when encode adpative gop

2022-11-15 Thread wenbin . chen-at-intel . com
From: Wenbin Chen b_strategy, p_strategy, adaptive_i and adaptive_b cannot work with MFX_GOP_STRICT, so disable MFX_GOP_STRICT when these features are used. Signed-off-by: Wenbin Chen --- libavcodec/qsvenc.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/libavcod

Re: [FFmpeg-devel] [PATCH v5 1/2] lavc: add HWACCEL_CAP_RESET_WITHOUT_UNINIT capacity for hwaccel

2022-11-15 Thread Wang, Fei W
On Mon, 2022-11-14 at 09:16 +0800, Fei Wang wrote: > The capacity can avoid hwaccel being uninited when do the reset. It > provides the method for hwaccel if it still want to use the previous > initialized configuration after reset. And the configuration can be > updated in AVHWAccel.init() if need

[FFmpeg-devel] [PATCH] swscale/input: Use unsigned intermediates in rgb64ToUV_c_template

2022-11-15 Thread Jeremy Dorfman
Large rgb2yuv tables and high pixel values cause the intermediate int32_t of ru*r + gu*g + bu*b to exceed INT_MAX, which is undefined behavior. This causes libswscale built with LLVM -fsanitize=undefined to assert. Using unsigned integers instead has defined behavior and produces identical results,

Re: [FFmpeg-devel] [PATCH] libavcodec/flacenc: Enable sample rates > 655350 Hz

2022-11-15 Thread Martijn van Beurden
Op ma 31 okt. 2022 om 19:33 schreef Martijn van Beurden : > > Op ma 31 okt. 2022 om 17:58 schreef Derek Buitenhuis > : > > > > It is interesting that the IETF RFC and the Xiph spec disagree on whether > > this is allowed. > > > > The Xiph spec also says the IETF spec is better, and it remains as >

Re: [FFmpeg-devel] [PATCH 1/2] avfilter/vf_libplacebo: init vulkan device in query_format

2022-11-15 Thread Niklas Haas
Merged as c0b93c4f8 after ACK via IRC. On Tue, 15 Nov 2022 14:09:50 +0100 Niklas Haas wrote: > Merging in 48 hours if no replies. > > On Tue, 08 Nov 2022 14:12:29 +0100 Niklas Haas wrote: > > From: Niklas Haas > > > > Instead of doing it ad-hoc in `filter_frame`. This is not a huge change > >

Re: [FFmpeg-devel] [PATCH 1/2] avfilter/vf_libplacebo: init vulkan device in query_format

2022-11-15 Thread Niklas Haas
Merging in 48 hours if no replies. On Tue, 08 Nov 2022 14:12:29 +0100 Niklas Haas wrote: > From: Niklas Haas > > Instead of doing it ad-hoc in `filter_frame`. This is not a huge change > on its own, but paves the way for adding support for more formats in the > future, in particular formats oth

Re: [FFmpeg-devel] [PATCH] lavfi/vf_dnn_processing.c: Fix missing AV_PIX_FMT_GRAY8

2022-11-15 Thread Thilo Borgmann
Am 10.11.22 um 12:22 schrieb Thilo Borgmann: Am 02.11.22 um 16:07 schrieb Thilo Borgmann: From: Cosmin Stejerean Has been removed by mistake in 2003e32f62d94ba75b59d70632c9f2862b383591, readd it to the switch cases. Signed-off-by: Thilo Borgmann ---   libavfilter/vf_dnn_processing.c | 1 +  

Re: [FFmpeg-devel] [PATCH] libavformat/rtspdec.c:flush pes buffer while rtsp seek

2022-11-15 Thread tanwei (D)
I have change the prefix to ff_,please review again! Thks! >> On Nov 14, 2022, at 15:46, tanwei (D) wrote: >> >> Fixes ticket #9949. >> >> Signed-off-by: tanwei123 >> --- >> libavformat/mpegts.c| 20 >> libavformat/mpegts.h| 1 + >> libavformat/rtpdec.c

Re: [FFmpeg-devel] Consulting Request

2022-11-15 Thread Samuel Raposo Vieira Mira
Hi all, We were implementing it as well, so that goes 3 implementations. It is public here: https://git.qt.io/saraposo/ffmpeg . Anyway, since Zhao Zhili pushed his before us, and both implementations are somewhat similar, we decided to not push ours and start working on top of his implementati

Re: [FFmpeg-devel] [PATCH v3 05/10] avformat: add demuxer and probe support for H266/VVC

2022-11-15 Thread Thomas Siedel
On Mon, 7 Nov 2022 at 03:28, myp...@gmail.com wrote: > On Thu, Nov 3, 2022 at 8:23 PM Thomas Siedel > wrote: > > > > Add demuxer to probe raw vvc and parse vvcc byte stream format. > > > > Signed-off-by: Thomas Siedel > > --- > > libavformat/Makefile | 1 + > > libavformat/allformats.c |

[FFmpeg-devel] [PATCH v4 09/10] avformat: add ts stream types for H266/VVC

2022-11-15 Thread Thomas Siedel
Add transport stream stream type 0x33 for vvc. Add STREAM_TYPE_VIDEO_VVC to MPEG-1/2 and MPEG-2 transport stream. Add basic transport stream support for TS mux/demux. Signed-off-by: Thomas Siedel --- configure | 2 +- libavformat/mpeg.c | 3 ++ libavformat/mpeg.h | 1 +

[FFmpeg-devel] [PATCH v4 07/10] avcodec: add external decoder libvvdec for H266/VVC

2022-11-15 Thread Thomas Siedel
Add external decoder VVdeC for H266/VVC decoding. Register new decoder libvvdec. Add vvc_parse_extradata to support parse/probe of vvcC stream input. Add vvc_paramset that implements the parser of vvcC configuration boxes. Add libvvdec to wrap the vvdec interface. Enable decoder by adding --enable-

[FFmpeg-devel] [PATCH v4 08/10] avcodec: add external encoder libvvenc for H266/VVC

2022-11-15 Thread Thomas Siedel
Add external encoder VVenC for H266/VVC encoding. Register new encoder libvvenc. Add libvvenc to wrap the vvenc interface. libvvenc implements encoder option: preset,qp,period,subjopt, vvenc-params,levelidc,tier. Enable encoder by adding --enable-libvvenc in configure step. Signed-off-by: Thomas S

[FFmpeg-devel] [PATCH v4 06/10] avformat: add muxer support for H266/VVC

2022-11-15 Thread Thomas Siedel
Add muxer for vvcc byte stream format. Add AV_CODEC_ID_VVC to ff_mp4_obj_type. Add AV_CODEC_ID_VVC to ISO Media codec (VvcConfigurationBox vvi1, vvc1 defined in ISO/IEC 14496-15:2021). Add VvcConfigurationBox vvcC which extends FullBox type in ISO/IEC 14496-15:2021. Add ff_vvc_muxer to RAW muxers.

[FFmpeg-devel] [PATCH v4 05/10] avformat: add demuxer and probe support for H266/VVC

2022-11-15 Thread Thomas Siedel
Add demuxer to probe raw vvc and parse vvcc byte stream format. Signed-off-by: Thomas Siedel --- libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/demux.c | 7 +- libavformat/vvc.c| 984 +++ libavformat/vvc.h

[FFmpeg-devel] [PATCH v4 10/10] avcodec: increase minor version for H266/VVC

2022-11-15 Thread Thomas Siedel
Increase avcodec minor version for vvc support. Signed-off-by: Thomas Siedel --- libavcodec/version.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/version.h b/libavcodec/version.h index 480dbd3b67..27620d6432 100644 --- a/libavcodec/version.h +++ b/libavcodec/ve

[FFmpeg-devel] [PATCH v4 04/10] avcodec: add MP4 to annexb support for H266/VVC

2022-11-15 Thread Thomas Siedel
Add parser for VVC MP4 to Annex B byte stream format. Signed-off-by: Thomas Siedel --- configure| 1 + libavcodec/Makefile | 2 + libavcodec/bitstream_filters.c | 2 + libavcodec/h266_metadata_bsf.c | 146 ++ libavcodec/vvc_mp4toannexb_b

[FFmpeg-devel] [PATCH v4 03/10] avcodec: add bitstream parser for H266/VVC

2022-11-15 Thread Thomas Siedel
Add nal parser ff_vvc_parser to parse vvc elementary bitstreams. Signed-off-by: Thomas Siedel --- configure| 3 + libavcodec/Makefile | 2 + libavcodec/h2645_parse.c | 71 - libavcodec/parsers.c | 1 + libavcodec/vvc_parser.c | 601 +++

[FFmpeg-devel] [PATCH v4 01/10] avcodec: add enum types for H266/VVC

2022-11-15 Thread Thomas Siedel
Add types as nal unit types, slice types and vvc typedefs needed for parsing vvc high-level syntax. Signed-off-by: Thomas Siedel --- libavcodec/vvc.h | 142 +++ 1 file changed, 142 insertions(+) create mode 100644 libavcodec/vvc.h diff --git a/libavc

[FFmpeg-devel] [PATCH v4 00/10] Add support for H266/VVC

2022-11-15 Thread Thomas Siedel
This patch set adds H266/VVC support. This includes parsing, muxing, demuxing, decoding and encoding. Decoding is done using the external library VVdeC (https://github.com/fraunhoferhhi/vvdec.git) and can be enabled with --enable-libvvdec. Encoding is done using the external library VVenC (https://