Re: [FFmpeg-devel] [PATCH] libavcodec/qsvenc: enable Hyper Encode

2023-01-15 Thread Xiang, Haihao
On Ma, 2022-12-05 at 20:18 +, galinart wrote: > Hyper Encode uses Intel integrated and discrete graphics on one system > to accelerate encoding of a single video stream. > Depending on the selected parameters and codecs, performance gain on AlderLake > iGPU + ARC Gfx up to 1.6x. > > More

Re: [FFmpeg-devel] [PATCH 2/8] lavfi/vf_vpp_qsv: handle NULL pointer when evaluating an expression

2023-01-15 Thread Xiang, Haihao
On Do, 2023-01-12 at 06:20 +, Xiang, Haihao wrote: > On Do, 2023-01-12 at 05:01 +0100, Andreas Rheinhardt wrote: > > Xiang, Haihao: > > > From: Haihao Xiang > > > > > > This patch provides default value if the expression is NULL. > > > > > > This is in preparation for reusing the code for

Re: [FFmpeg-devel] [PATCH 1/2] lavfi/vaapi: remove duplicated code

2023-01-15 Thread Xiang, Haihao
On Vr, 2023-01-13 at 12:38 +0800, Xiang, Haihao wrote: > From: Haihao Xiang > > Add a ff_ function to handle mulitple pipeline parameters. No functional > changes. > > Signed-off-by: Haihao Xiang > --- > libavfilter/vaapi_vpp.c| 90 > libavfilter/vaapi_vpp.h

Re: [FFmpeg-devel] [PATCH v2] vaapi_encode_h264: Only set pic_order_cnt_type to 0 with B-frames

2023-01-15 Thread Xiang, Haihao
On Di, 2023-01-10 at 09:17 +0100, David Rosca wrote: > v2: frame_num steps by 2 > > --- > libavcodec/vaapi_encode_h264.c | 7 +-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/libavcodec/vaapi_encode_h264.c b/libavcodec/vaapi_encode_h264.c > index 7a6b54ab6f..8093c47179

Re: [FFmpeg-devel] [PATCH] lavc: clarify color_range semantics

2023-01-15 Thread Gyan Doshi
On 2023-01-15 11:11 pm, Stefano Sabatini wrote: Mark this option as encode-only and extend description. There are scripts which set this (and other color props) on the input, and then those streams can be sent to multiple filters with the props set, instead of having to use setparams in

Re: [FFmpeg-devel] [PATCH v4] avcodec/vaapi_encode_h26x: passthrough A53 CC data as H264/HEVC SEI

2023-01-15 Thread Xiang, Haihao
On Ma, 2023-01-09 at 18:40 +, Aman Karmani wrote: > From: Aman Karmani > > Signed-off-by: Aman Karmani > --- > avcodec/vaapi_encode_h26x: passthrough A53 CC data as H264/HEVC SEI > > v4: updated deps in configure v3: fix build failure v2: add control via > sei parameter >

Re: [FFmpeg-devel] [Internet][PATCH 1/5] avcodec/videotoolbox: fix NULL pointer dereference

2023-01-15 Thread zhilizhao(赵志立)
> On Jan 9, 2023, at 20:50, Zhao Zhili wrote: > > From: Zhao Zhili > > In the code path of av_videotoolbox_default_init/init2(), > avctx->internal->hwaccel_priv_data is NULL and passed to > decoder_cb.decompressionOutputRefCon. Then it will be dereferenced > inside

Re: [FFmpeg-devel] [PATCH] avcodec/h264_mp4toannexb: fix missing SPS/PPS to IDR frames

2023-01-15 Thread zhilizhao(赵志立)
> On Jan 10, 2023, at 23:31, Zhao Zhili wrote: > > On Tue, 2023-01-10 at 07:41 +0100, Andreas Rheinhardt wrote: >> Zhao Zhili: >>> From: Zhao Zhili >>> >>> If there is a single group of SPS/PPS before an IDR frame, but no >>> SPS/PPS after that, we will miss the chance to reset >>>

Re: [FFmpeg-devel] [PATCH] ffprobe: use pkt->dts to compute interval ts when pts is missing

2023-01-15 Thread zhilizhao(赵志立)
> On Jan 1, 2023, at 03:26, Stefano Sabatini wrote: > > On date Wednesday 2022-07-13 02:02:17 +0200, Stefano Sabatini wrote: >> For some samples the pkt->pts is always missing, use the pkt->dts >> instead. If some pkt->pts is missing but isn’t always missing, isn’t it mixed the use of pts and

Re: [FFmpeg-devel] [PATCH V4 2/3] lavfi/dnn: Delete DNN native backend releated tools and docs.

2023-01-15 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of Ting > Fu > Sent: Friday, January 6, 2023 5:19 PM > To: ffmpeg-devel@ffmpeg.org > Subject: [FFmpeg-devel] [PATCH V4 2/3] lavfi/dnn: Delete DNN native > backend releated tools and docs. > > Signed-off-by: Ting Fu > --- >

Re: [FFmpeg-devel] [PATCH V4 1/3] lavfi/dnn: Mark native backend as unsupported

2023-01-15 Thread Fu, Ting
> -Original Message- > From: ffmpeg-devel On Behalf Of Ting Fu > Sent: Friday, January 6, 2023 05:19 PM > To: ffmpeg-devel@ffmpeg.org > Subject: [FFmpeg-devel] [PATCH V4 1/3] lavfi/dnn: Mark native backend as > unsupported > > Native is deprecated value for backed_type option. Modify

[FFmpeg-devel] [PATCH 1/2] lavfi/astats: sort measures keys by name

2023-01-15 Thread Stefano Sabatini
--- libavfilter/af_astats.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/libavfilter/af_astats.c b/libavfilter/af_astats.c index 8755ab8752..f3f2bd743b 100644 --- a/libavfilter/af_astats.c +++ b/libavfilter/af_astats.c @@ -119,31 +119,31

[FFmpeg-devel] [PATCH 2/2] doc/filters/astats: sort measure entries, add missing ones

2023-01-15 Thread Stefano Sabatini
Also apply minor consistency and formatting fixes. Fix trac issue: http://trac.ffmpeg.org/ticket/8397 --- doc/filters.texi | 211 ++- 1 file changed, 115 insertions(+), 96 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index

[FFmpeg-devel] [PATCH] lavu/video_enc_params: Avoid relying on an undefined C construct

2023-01-15 Thread Martin Storsjö
The construct of using offsetof on a (potentially anonymous) struct defined within the offsetof expression, while supported by all current compilers, has been declared explicitly undefined by the C standards committee [1]. Current Clang git main got a patch [2] which changed this construct into a

Re: [FFmpeg-devel] GSoC 2023

2023-01-15 Thread Thilo Borgmann
Am 15.01.23 um 15:28 schrieb Nuo Mi: On Sun, Jan 15, 2023 at 9:27 PM Ronald S. Bultje wrote: Hi, On Sun, Jan 15, 2023 at 4:20 AM Nuo Mi wrote: Is it finalized? Any chance to add some items in https://github.com/ffvvc/FFmpeg/issues to the GSOC 2023? It all depends on the student. And

[FFmpeg-devel] [PATCH v2] avformat: Add support for embedding cover art in Ogg files

2023-01-15 Thread Zsolt Vadász
Signed-off-by: Zsolt Vadasz --- libavformat/flac_picture.c | 132 +++ libavformat/flac_picture.h | 5 + libavformat/flacenc.c | 90 +--- libavformat/oggenc.c | 207 ++--- 4 files changed, 308 insertions(+), 126

[FFmpeg-devel] [PATCH] lavc: clarify color_range semantics

2023-01-15 Thread Stefano Sabatini
Mark this option as encode-only and extend description. Address issue: http://trac.ffmpeg.org/ticket/443 --- libavcodec/avcodec.h | 6 +- libavcodec/options_table.h | 14 +++--- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/libavcodec/avcodec.h

Re: [FFmpeg-devel] [PATCH 1/6] avcodec/eatgq: : Check index increments in tgq_decode_block()

2023-01-15 Thread Michael Niedermayer
On Sun, Jan 15, 2023 at 01:50:18PM +1100, Peter Ross wrote: > On Thu, Jan 12, 2023 at 12:54:27AM +0100, Michael Niedermayer wrote: > > Fixes: out of array access > > Fixes: > > 48567/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_EATGQ_fuzzer-6743211456724992 > > > > Found-by: continuous

Re: [FFmpeg-devel] [PATCH 1/5] avcodec/wbmpdec: use remaining size not whole size

2023-01-15 Thread Michael Niedermayer
On Sun, Jan 15, 2023 at 01:44:09PM +1100, Peter Ross wrote: > On Fri, Jan 13, 2023 at 01:01:34AM +0100, Michael Niedermayer wrote: > > Fixes: out of array access > > Fixes: > > 48567/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WBMP_fuzzer-6652634692190208 > > Fixes: > >

Re: [FFmpeg-devel] [PATCH] ffprobe: use pkt->dts to compute interval ts when pts is missing

2023-01-15 Thread Michael Niedermayer
On Sun, Jan 15, 2023 at 02:25:40AM +0100, Stefano Sabatini wrote: > On date Saturday 2022-12-31 20:26:34 +0100, Stefano Sabatini wrote: > > On date Wednesday 2022-07-13 02:02:17 +0200, Stefano Sabatini wrote: > > > For some samples the pkt->pts is always missing, use the pkt->dts > > > instead. >

Re: [FFmpeg-devel] avformat/mxfenc: fix stored/sampled/displayed width/height

2023-01-15 Thread Michael Niedermayer
On Sun, Jan 15, 2023 at 03:24:37PM +0100, Jerome Martinez wrote: > On 14/01/2023 21:04, Michael Niedermayer wrote: > > On Sat, Jan 14, 2023 at 04:48:10PM +0100, Jerome Martinez wrote: > > [...] > > > +stored_height = (stored_height+15)/16*16; > > If this is supposed to match the actual

[FFmpeg-devel] [PATCH 10/15] examples: rename resampling audio to resample_audio

2023-01-15 Thread Stefano Sabatini
--- configure | 4 ++-- doc/examples/Makefile | 2 +- doc/examples/Makefile.example | 2 +- doc/examples/{resampling_audio.c => resample_audio.c} | 2 +- 4 files changed, 5 insertions(+), 5

[FFmpeg-devel] [PATCH 14/15] examples: apply consistency fixes to doxy entries

2023-01-15 Thread Stefano Sabatini
Use consistent format for the @file field and file description. --- doc/examples/avio_http_serve_files.c | 9 - doc/examples/avio_list_dir.c | 5 ++--- doc/examples/avio_read_callback.c| 5 ++--- doc/examples/decode_audio.c | 7 ---

[FFmpeg-devel] [PATCH 11/15] examples: rename scaling_video to scale_video

2023-01-15 Thread Stefano Sabatini
--- configure | 4 ++-- doc/examples/Makefile | 2 +- doc/examples/Makefile.example | 2 +- doc/examples/{scaling_video.c => scale_video.c} | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) rename

[FFmpeg-devel] [PATCH 15/15] examples/Makefile.example: add missing entries

2023-01-15 Thread Stefano Sabatini
--- doc/examples/Makefile.example | 4 1 file changed, 4 insertions(+) diff --git a/doc/examples/Makefile.example b/doc/examples/Makefile.example index 730d7e1a9a..79c7fbd24c 100644 --- a/doc/examples/Makefile.example +++ b/doc/examples/Makefile.example @@ -25,12 +25,16 @@ EXAMPLES=\

[FFmpeg-devel] [PATCH 12/15] examples: rename transcoding to transcode

2023-01-15 Thread Stefano Sabatini
--- configure | 4 ++-- doc/examples/Makefile | 2 +- doc/examples/Makefile.example | 2 +- doc/examples/{transcoding.c => transcode.c} | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) rename

[FFmpeg-devel] [PATCH 05/15] examples: rename http_multiclient to avio_http_serve_files

2023-01-15 Thread Stefano Sabatini
--- configure| 4 ++-- doc/examples/Makefile| 2 +- doc/examples/Makefile.example| 5 +++-- doc/examples/{http_multiclient.c => avio_http_serve_files.c} | 2 +- 4 files

[FFmpeg-devel] [PATCH 07/15] examples: rename muxing to mux

2023-01-15 Thread Stefano Sabatini
--- configure| 4 ++-- doc/examples/Makefile| 2 +- doc/examples/Makefile.example| 2 +- doc/examples/encode_video.c | 2 +- doc/examples/{muxing.c => mux.c} | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) rename doc/examples/{muxing.c =>

[FFmpeg-devel] [PATCH 13/15] examples: apply doxy entries consistency fixes

2023-01-15 Thread Stefano Sabatini
--- doc/examples/avio_list_dir.c | 8 doc/examples/encode_audio.c | 2 +- doc/examples/encode_video.c | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/doc/examples/avio_list_dir.c b/doc/examples/avio_list_dir.c index 3073baaefa..13b46e1718 100644 ---

[FFmpeg-devel] [PATCH 08/15] examples: rename qsvdec to qsv_decode

2023-01-15 Thread Stefano Sabatini
--- configure | 4 ++-- doc/examples/Makefile | 2 +- doc/examples/{qsvdec.c => qsv_decode.c} | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename doc/examples/{qsvdec.c => qsv_decode.c} (99%) diff --git a/configure b/configure index

[FFmpeg-devel] [PATCH 09/15] examples: rename remuxing to remux

2023-01-15 Thread Stefano Sabatini
--- configure| 4 ++-- doc/examples/Makefile| 2 +- doc/examples/Makefile.example| 2 +- doc/examples/{remuxing.c => remux.c} | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) rename doc/examples/{remuxing.c => remux.c} (99%) diff --git

[FFmpeg-devel] [PATCH 06/15] examples: rename metadata to show_metadata

2023-01-15 Thread Stefano Sabatini
--- configure| 4 ++-- doc/examples/Makefile| 2 +- doc/examples/Makefile.example| 2 +- doc/examples/{metadata.c => show_metadata.c} | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) rename

[FFmpeg-devel] [PATCH 03/15] examples: rename filtering_audio to decode_filter_audio

2023-01-15 Thread Stefano Sabatini
--- configure | 4 ++-- doc/examples/Makefile | 2 +- doc/examples/Makefile.example | 2 +- doc/examples/{filtering_audio.c => decode_filter_audio.c} | 2 +- 4 files changed, 5

[FFmpeg-devel] [PATCH 01/15] examples: rename avio_reading to avio_read_callback

2023-01-15 Thread Stefano Sabatini
Adopt general scheme VERB_OBJECT. --- configure | 4 ++-- doc/examples/Makefile | 2 +- doc/examples/Makefile.example | 2 +- doc/examples/{avio_reading.c => avio_read_callback.c} | 2 +- 4 files

[FFmpeg-devel] Rename examples, apply consistency fixes

2023-01-15 Thread Stefano Sabatini
Apply consistent VERB_OBJECT scheme for examples, apply consistency fixes to doxy content. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email

[FFmpeg-devel] [PATCH 02/15] examples: rename demuxing_decoding to demux_decode

2023-01-15 Thread Stefano Sabatini
Follow general scheme VERB_OBJECT. --- configure| 4 ++-- doc/examples/Makefile| 2 +- doc/examples/Makefile.example| 2 +- doc/examples/{demuxing_decoding.c => demux_decode.c} | 4 ++-- 4 files

[FFmpeg-devel] [PATCH 04/15] examples: rename filtering_video to decode_filter_video

2023-01-15 Thread Stefano Sabatini
--- configure | 4 ++-- doc/examples/Makefile | 2 +- doc/examples/Makefile.example | 2 +- doc/examples/{filtering_video.c => decode_filter_video.c} | 2 +- 4 files changed, 5

Re: [FFmpeg-devel] Late SEI is not implemented (providing a sample)

2023-01-15 Thread Miguel Borges de Freitas
Answering my own question here in case someone else stumbles into this, it turns out those streams were completely broken: - The CC data SEI NAL units were defined after the primary coded picture which violates the H264 standard - The user data part of SEI was lacking the marker_bits (0xFF) at

Re: [FFmpeg-devel] GSoC 2023

2023-01-15 Thread Nuo Mi
On Sun, Jan 15, 2023 at 9:57 PM Jean-Baptiste Kempf wrote: > On Sun, 15 Jan 2023, at 14:26, Ronald S. Bultje wrote: > > Are you proposing to be the student? Or what's your plan? > > Be careful, GSoC is not only for students anymore. > You inspired me. Maybe I can create an open-source project.

Re: [FFmpeg-devel] GSoC 2023

2023-01-15 Thread Nuo Mi
On Sun, Jan 15, 2023 at 9:27 PM Ronald S. Bultje wrote: > Hi, > > On Sun, Jan 15, 2023 at 4:20 AM Nuo Mi wrote: > > > Is it finalized? Any chance to add some items in > > https://github.com/ffvvc/FFmpeg/issues to the GSOC 2023? > > > > It all depends on the student. And baseline ffvvc needs to

Re: [FFmpeg-devel] avformat/mxfenc: fix stored/sampled/displayed width/height

2023-01-15 Thread Jerome Martinez
On 14/01/2023 21:04, Michael Niedermayer wrote: On Sat, Jan 14, 2023 at 04:48:10PM +0100, Jerome Martinez wrote: [...] +stored_height = (stored_height+15)/16*16; If this is supposed to match the actual macroblocks, then this would have to consider field pictures and interlacing as it

Re: [FFmpeg-devel] GSoC 2023

2023-01-15 Thread Jean-Baptiste Kempf
On Sun, 15 Jan 2023, at 14:26, Ronald S. Bultje wrote: > Are you proposing to be the student? Or what's your plan? Be careful, GSoC is not only for students anymore. Best, -- Jean-Baptiste Kempf - President +33 672 704 734 ___ ffmpeg-devel mailing

Re: [FFmpeg-devel] GSoC 2023

2023-01-15 Thread Ronald S. Bultje
Hi, On Sun, Jan 15, 2023 at 4:20 AM Nuo Mi wrote: > Is it finalized? Any chance to add some items in > https://github.com/ffvvc/FFmpeg/issues to the GSOC 2023? > It all depends on the student. And baseline ffvvc needs to be in already when the project starts. So it's not straightforward. Are

Re: [FFmpeg-devel] [PATCH] trailing padding

2023-01-15 Thread Paul B Mahol
On 1/12/23, Paul B Mahol wrote: > Patches attached, ffmpeg.c should really not ignore initial padding > and trailing padding. > Will apply. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To

[FFmpeg-devel] [PATCH 1/2] lavc/bitstream: avoid UB in bits_{read, peek}_signed(0)

2023-01-15 Thread Anton Khirnov
bits_*_signed(0) will currently invoke an undefined shift by 8 * sizeof(int). Add bits_*_signed_nz() that only works for n>0, analogous to bits_read_nz(). Add an explicit check for n=0 in bits_*_signed(). Found-by: James Almer --- libavcodec/bitstream.h | 4

[FFmpeg-devel] [PATCH 2/2] lavc/tests/bitstream: test bits_*_signed_nz and bits_peek_signed*

2023-01-15 Thread Anton Khirnov
--- libavcodec/tests/bitstream_template.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/libavcodec/tests/bitstream_template.c b/libavcodec/tests/bitstream_template.c index 13e92a31c6..ef59845154 100644 --- a/libavcodec/tests/bitstream_template.c +++

[FFmpeg-devel] [PATCH] avfilter: add FIR equalizer coefficients source filter

2023-01-15 Thread Paul B Mahol
Patch attached From 5e22b9bc08f7015853cc93a07e165155601b87fe Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Fri, 13 Jan 2023 13:32:26 +0100 Subject: [PATCH] avfilter: add FIR equalizer coefficients source filter Signed-off-by: Paul B Mahol --- doc/filters.texi | 61 +

Re: [FFmpeg-devel] [PATCH] avfilter: add fractional delay IR source filter

2023-01-15 Thread Paul B Mahol
On 1/8/23, Paul B Mahol wrote: > Patch attached. > will apply soon ___ 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

Re: [FFmpeg-devel] GSoC 2023

2023-01-15 Thread Nuo Mi
On Mon, Dec 19, 2022 at 12:48 AM Thilo Borgmann wrote: > Am 15.12.22 um 23:47 schrieb Pierre-Anthony Lemieux: > > I have updated the page with the HTJ2K project. > > Cool, thanks! > > > > This is a good opportunity to ask for help completing the review of > > the patchset: > > > >

Re: [FFmpeg-devel] Let us review and collebrate on vvc native decoder.

2023-01-15 Thread Nuo Mi
On Sat, Jan 14, 2023 at 11:52 PM Ronald S. Bultje wrote: > Hi, > > On Sat, Jan 14, 2023 at 10:16 AM Nuo Mi wrote: > > > On Sat, Jan 14, 2023 at 10:28 PM Ronald S. Bultje > > > How come vvcdsp has only 8/10 bits/component code but vvcpred has > > 8/9/10/12 > > > bits/component code? > > > > I

[FFmpeg-devel] [PATCH v4] avformat/dvd: new dvd:// protocol for reading dvd folder/images

2023-01-15 Thread Stanislav Ionascu
dvd:// protocol uses libdvdread for opening folders and/or disc-images, it then either identifies the longest title-set, or uses the title-set parameter. After opening the dvd, libdvdread-protocol will read and output all VOBs, in the cell and pack sequence defined by the program-chain. The

[FFmpeg-devel] [PATCH 2/2] avcodec/Makefile: Dont compile unused files.

2023-01-15 Thread Matt Oliver
Multiple asm files dont contain any valid code when compiled under 32bit x86 so they should be skipped. --- libavcodec/x86/Makefile | 8 1 file changed, 8 insertions(+) diff --git a/libavcodec/x86/Makefile b/libavcodec/x86/Makefile index 118daca333..bafba207ca 100644 ---

[FFmpeg-devel] [PATCH 1/2] lavfi/Makefile: Dont compile unused files.

2023-01-15 Thread Matt Oliver
vf_nlmeans and vf_atadenoisedont contain any code on 32bit x86 so dont build them. --- libavfilter/x86/Makefile | 4 1 file changed, 4 insertions(+) diff --git a/libavfilter/x86/Makefile b/libavfilter/x86/Makefile index e87481bd7a..9a68b9204b 100644 --- a/libavfilter/x86/Makefile +++