Re: [FFmpeg-devel] [PATCH] lavfi: add a new filtergraph parsing API

2023-02-10 Thread Anton Khirnov
No further comments? If not, I'd like to push this soon. -- 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

[FFmpeg-devel] [PATCH 2/3] checkasm: add test for yadif

2023-02-10 Thread James Darnley
--- tests/checkasm/Makefile | 1 + tests/checkasm/checkasm.c | 3 ++ tests/checkasm/checkasm.h | 1 + tests/checkasm/vf_yadif.c | 62 +++ 4 files changed, 67 insertions(+) create mode 100644 tests/checkasm/vf_yadif.c diff --git a/tests/checkasm/Makefile b

[FFmpeg-devel] [PATCH 3/3] avfilter/yadif: add avx2 filter_line function

2023-02-10 Thread James Darnley
Zen 2 (Ryzen 7 3700X): 1.73x faster (3603±586.3 vs. 2082±317.1 decicycles) compared with ssse3 Using an SD y4m file speed increases from ~ 3600 fps to ~4700. --- libavfilter/x86/vf_yadif.asm| 83 +++-- libavfilter/x86/vf_yadif_init.c | 4 ++ 2 files changed, 62 in

[FFmpeg-devel] [PATCH 1/3] avfilter: move yadif's filter_line init into a dedicated function

2023-02-10 Thread James Darnley
--- libavfilter/vf_yadif.c | 13 + libavfilter/x86/vf_yadif_init.c | 4 +--- libavfilter/yadif.h | 3 ++- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/libavfilter/vf_yadif.c b/libavfilter/vf_yadif.c index afa4d1d53d..1f9434f961 100644 --- a/lib

[FFmpeg-devel] [PATCH] lavfi/metal: fix build for iOS with deployment target lower than 13

2023-02-10 Thread Rechi
supportsFamily: is only available on iOS 13.0 or newer Signed-off-by: Rechi --- libavfilter/metal/utils.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/metal/utils.m b/libavfilter/metal/utils.m index f365d3cee..bb1825ae3 100644 --- a/libavfilter/metal/utils.m ++

[FFmpeg-devel] [PATCH v6 00/11] Add support for H266/VVC

2023-02-10 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://

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

2023-02-10 Thread Thomas Siedel
From: Nuo Mi Add types as nal unit types, slice types and vvc typedefs needed for parsing vvc high-level syntax. --- libavcodec/h266.h | 142 ++ 1 file changed, 142 insertions(+) create mode 100644 libavcodec/h266.h diff --git a/libavcodec/h266.h b/l

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

2023-02-10 Thread Thomas Siedel
From: Nuo Mi Add nal parser ff_vvc_parser to parse vvc elementary bitstreams. Co-authored-by: Thomas Siedel --- configure| 1 + libavcodec/Makefile | 2 + libavcodec/h2645_parse.c | 71 - libavcodec/h266_parser.c | 601 +++ liba

[FFmpeg-devel] [PATCH v6 04/11] avcodec: add h266_metadata_bsf support for H266/VVC

2023-02-10 Thread Thomas Siedel
From: Nuo Mi Add H.266/VVC metadata bsf. --- configure | 1 + libavcodec/Makefile| 1 + libavcodec/bitstream_filters.c | 1 + libavcodec/h266_metadata_bsf.c | 147 + 4 files changed, 150 insertions(+) create mode 100644 liba

[FFmpeg-devel] [PATCH v6 05/11] avcodec: add MP4 to annexb support for H266/VVC

2023-02-10 Thread Thomas Siedel
Add parser for H.266/VVC MP4 to Annex B byte stream format. --- libavcodec/Makefile | 1 + libavcodec/bitstream_filters.c| 1 + libavcodec/h266_mp4toannexb_bsf.c | 329 ++ 3 files changed, 331 insertions(+) create mode 100644 libavcodec/h266_mp4to

[FFmpeg-devel] [PATCH v6 06/11] avformat: add demuxer and probe support for H266/VVC

2023-02-10 Thread Thomas Siedel
Add demuxer to probe raw vvc and parse vvcc byte stream format. Co-authored-by: Nuo Mi --- libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/demux.c | 7 +- libavformat/h266.c | 984 +++ libavformat/h266.h | 99

[FFmpeg-devel] [PATCH v6 07/11] avformat: add muxer support for H266/VVC

2023-02-10 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 v6 08/11] avcodec: add external decoder libvvdec for H266/VVC

2023-02-10 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 v6 09/11] avcodec: add external encoder libvvenc for H266/VVC

2023-02-10 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. --- configure

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

2023-02-10 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. --- configure | 2 +- libavformat/mpeg.c | 3 ++ libavformat/mpeg.h | 1 + libavformat/mpegts.c| 2

[FFmpeg-devel] [PATCH v6 11/11] avcodec: increase minor version for H266/VVC

2023-02-10 Thread Thomas Siedel
Increase avcodec minor version for vvc support. --- libavcodec/version.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/version.h b/libavcodec/version.h index 8c3d476003..5957009457 100644 --- a/libavcodec/version.h +++ b/libavcodec/version.h @@ -29,7 +29,7 @@ #i

[FFmpeg-devel] FFmpeg 6.0

2023-02-10 Thread Michael Niedermayer
Hi all i plan to branch off release/6.0 from master in the next days If theres something blocking and i should wait, please reply here 6.0 release will be maybe 1 week after the branch point once it has branched all important fixes should be backported of course thx -- Michael GnuPG finge

Re: [FFmpeg-devel] [PATCH v5 02/10] avcodec: add cbs for H266/VVC

2023-02-10 Thread Thomas Siedel
On Wed, 1 Feb 2023 at 09:21, "zhilizhao(赵志立)" wrote: > > > > On Jan 3, 2023, at 21:40, Thomas Siedel > wrote: > ... > > diff --git a/libavcodec/cbs_h2645.c b/libavcodec/cbs_h2645.c > > index 4ee06003c3..8ae8ae6cda 100644 > > --- a/libavcodec/cbs_h2645.c > > +++ b/libavcodec/cbs_h2645.c > > @@ -2

Re: [FFmpeg-devel] [PATCH] RK Audio demuxer and decoder

2023-02-10 Thread Paul B Mahol
will apply ___ 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 "unsubscribe".

Re: [FFmpeg-devel] [PATCH] lavfi/metal: fix build for iOS with deployment target lower than 13

2023-02-10 Thread Rechi
supportsFamily: is only available on iOS 13.0 or newer Signed-off-by: Rechi --- libavfilter/metal/utils.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/metal/utils.m b/libavfilter/metal/utils.m index f365d3cee..bb1825ae3 100644 --- a/libavfilter/metal/utils.m +++

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

2023-02-10 Thread Thomas Siedel
On Wed, 1 Feb 2023 at 16:34, zhilizhao(赵志立) wrote: > > > > On Jan 3, 2023, at 21:40, Thomas Siedel > wrote: > > > > Add parser for VVC MP4 to Annex B byte stream format. > > > > Co-authored-by: Nuo Mi > > --- > > configure| 1 + > > libavcodec/Makefile |

Re: [FFmpeg-devel] FFmpeg 6.0

2023-02-10 Thread Lynne
Feb 10, 2023, 18:47 by mich...@niedermayer.cc: > Hi all > > i plan to branch off release/6.0 from master in the next days > If theres something blocking and i should wait, please reply here > > 6.0 release will be maybe 1 week after the branch point > once it has branched all important fixes shou

Re: [FFmpeg-devel] [PATCH] mswindres: Use '-' instead of '/' for rc.exe options

2023-02-10 Thread Martin Storsjö
On Fri, 10 Feb 2023, Ziemowit Laski wrote: The build uses /bin/bash, which is configured as x86_64-pc-msys, and that's where the rewriting happens. I always assumed that MinGW was basically built on top of MSYS. No, that's a rather incorrect understanding. MinGW is an environment which give

Re: [FFmpeg-devel] [PATCH] Use '-' instead of '/' for rc.exe options (take 2)

2023-02-10 Thread Martin Storsjö
On Fri, 10 Feb 2023, Ziemowit Laski wrote: Second version of my patch. Please let me know if I forgot something. I believe this looks good, thanks. I'll give it another try (in a day or two), and push it once I've done that if it works fine. // Martin _

[FFmpeg-devel] [PATCH] vf_yadif: Remove unused emms_c

2023-02-10 Thread Kieran Kunhya
$subj Probably others as well 0001-vf_yadif-Remove-unused-emms_c.patch Description: Binary data ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-de

[FFmpeg-devel] [PATCH v2 2/4] avcodec/diracdec: do not use AVFrame.display_picture_number for decoding

2023-02-10 Thread Marton Balint
Signed-off-by: Marton Balint --- libavcodec/diracdec.c | 33 ++--- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/libavcodec/diracdec.c b/libavcodec/diracdec.c index a5cad29597..22a2925188 100644 --- a/libavcodec/diracdec.c +++ b/libavcodec/diracdec.c

[FFmpeg-devel] [PATCH v2 3/4] avcodec/mpegvideo_enc: do not use AVFrame.*_picture_number for encoding

2023-02-10 Thread Marton Balint
Move these fields to MPEGPicture instead and use that. Signed-off-by: Marton Balint --- libavcodec/mpeg12enc.c | 4 ++-- libavcodec/mpegpicture.c | 4 libavcodec/mpegpicture.h | 3 +++ libavcodec/mpegvideo_enc.c | 17 ++--- libavcodec/ratecontrol.c | 4 ++-- libavc

[FFmpeg-devel] [PATCH v2 1/4] avcodec: add AVCodecContext.frame_num as 64 bit variant to frame_number

2023-02-10 Thread Marton Balint
Frame counters can overflow relatively easily (INT_MAX number of frames is slightly more than 1 year for 60 fps content), so make sure we use 64 bit values for them. Also deprecate the old 32 bit frame_number attribute. Signed-off-by: Marton Balint --- doc/APIchanges | 4 +

[FFmpeg-devel] [PATCH v2 4/4] avutil/frame: deprecate AVFrame.coded_picture_number and display_picture_number

2023-02-10 Thread Marton Balint
Their usefulness is questionable, very few decoders set them, and their type should have been int64_t. A replacement field can be added later if a valid use case is found. Signed-off-by: Marton Balint --- doc/APIchanges | 4 doc/examples/demuxing_decoding.c | 4 ++-- fft

Re: [FFmpeg-devel] [PATCH v2 1/4] avcodec: add AVCodecContext.frame_num as 64 bit variant to frame_number

2023-02-10 Thread Marton Balint
On Sat, 11 Feb 2023, Marton Balint wrote: Frame counters can overflow relatively easily (INT_MAX number of frames is slightly more than 1 year for 60 fps content), so make sure we use 64 bit values for them. Previous version of this patch series was on the mailing list for 2 weeks, and did

Re: [FFmpeg-devel] [PATCH] fftools/ffmpeg: rename -enc_stats* to -stats_enc*

2023-02-10 Thread Stefano Sabatini
On date Thursday 2023-02-09 15:26:43 +0100, Anton Khirnov wrote: > This is consistent with -stats_mux* > > As the options were added very recently, this should not break any > users. > --- > Changelog| 2 +- > doc/ffmpeg.texi | 20 ++-- > fftools/ffmpeg_opt.c | 1

Re: [FFmpeg-devel] [PATCH 1/2] ffmpeg_demux: show fixed timestamps in ts_fixup

2023-02-10 Thread Stefano Sabatini
On date Monday 2023-02-06 02:22:24 +0100, Stefano Sabatini wrote: > Help debugging. > --- > fftools/ffmpeg_demux.c | 21 + > 1 file changed, 13 insertions(+), 8 deletions(-) Will apply in a few days. BTW are categories exposed through the CLI (for example to only enable debug

Re: [FFmpeg-devel] [PATCH] mswindres: Use '-' instead of '/' for rc.exe options

2023-02-10 Thread Ziemowit Laski
Thanks for the detailed explanation. Now my head hurts. I guess by "native" you mean those apps that do not depend on MSYS/Cygwin DLL functionality? All of the apps are native. So I can definitely understand the appeal of MinGW. But what about MSYS? Is it some sort of copyright/GPL avoidance

Re: [FFmpeg-devel] [PATCH] avfilter: use ff_inlink_make_frame_writable()

2023-02-10 Thread Michael Niedermayer
On Thu, Feb 09, 2023 at 08:14:16AM +0100, Paul B Mahol wrote: > New patch attached. > avf_abitscope.c | 11 +-- > avf_ahistogram.c |9 +++-- > avf_aphasemeter.c |9 +++-- > avf_avectorscope.c|7 ++- > avf_showspectrum.c|5 - > avf_s

Re: [FFmpeg-devel] [PATCH] doc/ffmpeg: extend -dts_delta_threshold option description

2023-02-10 Thread Stefano Sabatini
On date Thursday 2023-02-09 00:41:18 +0100, Michael Niedermayer wrote: > On Mon, Feb 06, 2023 at 02:25:23AM +0100, Stefano Sabatini wrote: [...] > > Subject: [PATCH 2/2] ffmpeg: review -dts_delta_threshold and > > -dts_delta_error > > options > > > > Review handling of -dts_delta_threshold and -

Re: [FFmpeg-devel] FFmpeg 6.0

2023-02-10 Thread Anton Khirnov
Quoting Michael Niedermayer (2023-02-10 18:47:03) > Hi all > > i plan to branch off release/6.0 from master in the next days > If theres something blocking and i should wait, please reply here > > 6.0 release will be maybe 1 week after the branch point > once it has branched all important fixes

Re: [FFmpeg-devel] [PATCH v2 1/4] avformat: add av_program_copy()

2023-02-10 Thread Gyan Doshi
On 2023-02-09 04:25 pm, Gyan Doshi wrote: Helper to transfer programs from one muxing context to another. Comments? Regards, Gyan --- doc/APIchanges | 3 ++ libavformat/avformat.c | 70 ++ libavformat/avformat.h | 14 + libavfor

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

2023-02-10 Thread Matt Oliver
On Sun, 15 Jan 2023 at 19:09, Matt Oliver wrote: > 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

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

2023-02-10 Thread Matt Oliver
On Sun, 15 Jan 2023 at 19:08, Matt Oliver wrote: > 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 e874

[FFmpeg-devel] [PATCH 5/5] fftools/ffmpeg: move ts_scale to DemuxStream

2023-02-10 Thread Anton Khirnov
It is not needed outside of ffmpeg_demux. --- fftools/ffmpeg.h | 1 - fftools/ffmpeg_demux.c | 10 ++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h index 401f424f79..4d4433f5ba 100644 --- a/fftools/ffmpeg.h +++ b/fftools/ffmpeg.h

[FFmpeg-devel] [PATCH 3/5] fftools/ffmpeg_demux: move InputStream.guess_layout_max to stack

2023-02-10 Thread Anton Khirnov
It is only needed while processing the stream in add_input_streams(), no reason to store it in the context. --- fftools/ffmpeg.h | 1 - fftools/ffmpeg_demux.c | 13 +++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h index 2d48a14

[FFmpeg-devel] [PATCH 1/5] fftools/ffmpeg_demux: add an AVClass to Demuxer/InputFile

2023-02-10 Thread Anton Khirnov
Use it for logging. This makes log messages related to this input file more consistent. --- fftools/ffmpeg.h | 2 + fftools/ffmpeg_demux.c | 106 ++--- 2 files changed, 69 insertions(+), 39 deletions(-) diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h i

[FFmpeg-devel] [PATCH 2/5] fftools/ffmpeg_demux: add InputStream private data

2023-02-10 Thread Anton Khirnov
Move {min,max}_pts to it, which is not used outside of ffmpeg_demux. --- fftools/ffmpeg.h | 3 -- fftools/ffmpeg_demux.c | 63 ++ 2 files changed, 45 insertions(+), 21 deletions(-) diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h index c657f55911..2d

[FFmpeg-devel] [PATCH 4/5] fftools/ffmpeg_demux: add an AVClass to DemuxStream/InputStream

2023-02-10 Thread Anton Khirnov
Use it for logging. This makes log messages related to this input stream more consistent. --- fftools/ffmpeg.h | 2 ++ fftools/ffmpeg_demux.c | 79 ++ 2 files changed, 52 insertions(+), 29 deletions(-) diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h