Re: [FFmpeg-devel] [PATCH 1/2] libavdevice/pipewiregrab: add pipewire based grab

2024-01-25 Thread Anton Khirnov
Quoting Abhishek Ojha (2023-12-27 17:25:02) > This is an proof of concept for pipewire grab to enable screen capture > on wayland. Add a new Linux capture based on [1] PipeWire and the > [2] Desktop portal. > This new capture starts by asking the Desktop portal for a screencapture > session.There a

Re: [FFmpeg-devel] [PATCH v9 2/6] avcodec/webp: separate VP8 decoding

2024-01-25 Thread Anton Khirnov
Quoting Thilo Borgmann via ffmpeg-devel (2023-12-31 13:30:14) > --- > libavcodec/webp.c | 50 +-- > 1 file changed, 44 insertions(+), 6 deletions(-) > > diff --git a/libavcodec/webp.c b/libavcodec/webp.c > index 4fd107aa0c..58a20b73da 100644 > --- a/lib

Re: [FFmpeg-devel] [PATCH 2/3] lavc/h264dsp: R-V V h264_add_pixels4_clear

2024-01-25 Thread flow gg
ping flow gg 于2023年12月25日周一 12:01写道: > > C908 > h264_add_pixels4_clear_c: 96.0 > h264_add_pixels4_clear_rvv_i64: 30.2 > ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link a

[FFmpeg-devel] [PATCH v2 0/2] Add mp4 and ts support for vvc

2024-01-25 Thread Nuo Mi
Based on https://patchwork.ffmpeg.org/project/ffmpeg/list/?series=9992 Major changes since v1: * Fix fate test * Fix "fmpeg -i input.mp4 -c:v copy output.ts && ffmpeg -i output.ts -f md5 -" and "fmpeg -i input.mp4 -c:v copy output.mp4 && ffmpeg -i output.mp4 -f md5 -" * Fix unused or uniniti

[FFmpeg-devel] [PATCH v2 2/2] avformat: add ts stream types for H266/VVC

2024-01-25 Thread Nuo Mi
From: 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. Tested with: ffmpeg -i NovosobornayaSquare_1920x1080.mp4 -c:v libvvenc test.ts && ffmpeg -i test.ts -f null

[FFmpeg-devel] [PATCH v2 1/2] avformat: add muxer support for H266/VVC

2024-01-25 Thread Nuo Mi
From: 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

Re: [FFmpeg-devel] [PATCH v3 5/8] avcodec/vvcdec: reuse h26x/2656_inter.asm to enable x86 optimizations

2024-01-25 Thread Nuo Mi
On Tue, Jan 23, 2024 at 9:01 PM Nuo Mi wrote: > > > > On Tue, Jan 23, 2024 at 1:47 AM wrote: > >> From: Wu Jianhua >> >> + >> +#define FW_PUT(name, depth, opt) \ >> +static void ff_vvc_put_ ## name ## _ ## depth ## _##opt(int16_t *dst, >> const uint8_t *src, ptrdiff_t srcstride, \ >> +

[FFmpeg-devel] [PATCH 00/24] Major library version bump

2024-01-25 Thread James Almer
As the subject states, this set removes deprecated API scheduled for removal in the past year, since the last major bump. After this is committed, it will be open ABI season for a few weeks, but no longer than a month. So if you want to do some cleaning (like removing avpriv_ functions, or moving f

[FFmpeg-devel] [PATCH 01/24] avcodec: remove deprecated FF_API_IDCT_NONE

2024-01-25 Thread James Almer
Signed-off-by: James Almer --- libavcodec/avcodec.h | 4 libavcodec/version_major.h | 1 - 2 files changed, 5 deletions(-) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 7fb44e28f4..4b2ef4fdf7 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -1496,10 +14

[FFmpeg-devel] [PATCH 02/24] avcodec: remove deprecated FF_API_SVTAV1_OPTS

2024-01-25 Thread James Almer
Signed-off-by: James Almer --- libavcodec/libsvtav1.c | 48 -- libavcodec/version_major.h | 1 - 2 files changed, 49 deletions(-) diff --git a/libavcodec/libsvtav1.c b/libavcodec/libsvtav1.c index 862192945b..9343322496 100644 --- a/libavcodec/libsvtav1.c

[FFmpeg-devel] [PATCH 03/24] avcodec: remove deprecated FF_API_AYUV_CODECID

2024-01-25 Thread James Almer
Signed-off-by: James Almer --- libavcodec/allcodecs.c | 4 libavcodec/codec_desc.c| 9 - libavcodec/codec_id.h | 3 --- libavcodec/v408dec.c | 35 --- libavcodec/v408enc.c | 37 - libavcod

[FFmpeg-devel] [PATCH 04/24] avcodec: remove deprecated FF_API_VT_OUTPUT_CALLBACK

2024-01-25 Thread James Almer
Signed-off-by: James Almer --- libavcodec/version_major.h | 1 - libavcodec/videotoolbox.h | 9 - 2 files changed, 10 deletions(-) diff --git a/libavcodec/version_major.h b/libavcodec/version_major.h index 199a1a2714..b364ba68f1 100644 --- a/libavcodec/version_major.h +++ b/libavcodec/v

[FFmpeg-devel] [PATCH 08/24] avcodec: remove deprecated FF_CODEC_CRYSTAL_HD

2024-01-25 Thread James Almer
Signed-off-by: James Almer --- configure | 13 - libavcodec/Makefile| 1 - libavcodec/allcodecs.c | 6 - libavcodec/avcodec.h | 18 - libavcodec/crystalhd.c | 826 - libavcodec/options_table.h | 3 - libavcodec/ver

[FFmpeg-devel] [PATCH 05/24] avcodec: remove deprecated FF_API_AVCODEC_CHROMA_POS

2024-01-25 Thread James Almer
Signed-off-by: James Almer --- libavcodec/avcodec.h | 28 libavcodec/utils.c | 11 --- libavcodec/version_major.h | 1 - 3 files changed, 40 deletions(-) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 4b2ef4fdf7..2dd9c5c82b 1006

[FFmpeg-devel] [PATCH 09/24] avformat: remove deprecated FF_API_GET_END_PTS

2024-01-25 Thread James Almer
Signed-off-by: James Almer --- libavformat/avformat.h | 10 -- libavformat/mux_utils.c | 10 -- libavformat/version_major.h | 1 - 3 files changed, 21 deletions(-) diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 5d0fe82250..446ca9e6bf 100644 --- a/lib

[FFmpeg-devel] [PATCH 06/24] avcodec: remove deprecated FF_API_VT_HWACCEL_CONTEXT

2024-01-25 Thread James Almer
Signed-off-by: James Almer --- libavcodec/version_major.h | 1 - libavcodec/videotoolbox.c | 31 - libavcodec/videotoolbox.h | 56 -- 3 files changed, 88 deletions(-) diff --git a/libavcodec/version_major.h b/libavcodec/version_major.h i

[FFmpeg-devel] [PATCH 10/24] avformat: remove deprecated FF_API_AVIODIRCONTEXT

2024-01-25 Thread James Almer
Signed-off-by: James Almer --- libavformat/avio.c | 2 -- libavformat/avio.h | 6 -- libavformat/version_major.h | 1 - 3 files changed, 9 deletions(-) diff --git a/libavformat/avio.c b/libavformat/avio.c index b793a7546c..6a9bd86754 100644 --- a/libavformat/avio.c +++ b/li

[FFmpeg-devel] [PATCH 07/24] avcodec: remove deprecated FF_API_AVCTX_FRAME_NUMBER

2024-01-25 Thread James Almer
Signed-off-by: James Almer --- libavcodec/avcodec.c | 5 - libavcodec/avcodec.h | 15 --- libavcodec/decode.c| 10 -- libavcodec/encode.c| 10 -- libavcodec/pthread_frame.c | 5 - libavcodec/version_major.h | 1 - 6 files changed,

[FFmpeg-devel] [PATCH 11/24] avformat: remove deprecated FF_API_AVFORMAT_IO_CLOSE

2024-01-25 Thread James Almer
Signed-off-by: James Almer --- libavformat/avformat.c | 14 ++ libavformat/avformat.h | 10 -- libavformat/dashenc.c | 5 - libavformat/fifo.c | 5 - libavformat/hlsenc.c| 5 - libavformat/imfdec.c| 5 - libavformat/

[FFmpeg-devel] [PATCH 12/24] avfilter: remove deprecated FF_API_LIBPLACEBO_OPTS

2024-01-25 Thread James Almer
Signed-off-by: James Almer --- libavfilter/version_major.h | 2 - libavfilter/vf_libplacebo.c | 76 - 2 files changed, 78 deletions(-) diff --git a/libavfilter/version_major.h b/libavfilter/version_major.h index 1decc4012e..899dfdb27d 100644 --- a/libavfilter

[FFmpeg-devel] [PATCH 13/24] avutil: remove deprecated FF_API_FIFO_PEEK2

2024-01-25 Thread James Almer
Signed-off-by: James Almer --- libavutil/fifo.h| 23 --- libavutil/version.h | 1 - 2 files changed, 24 deletions(-) diff --git a/libavutil/fifo.h b/libavutil/fifo.h index ce3a2aed7c..7ac497e8f9 100644 --- a/libavutil/fifo.h +++ b/libavutil/fifo.h @@ -416,29 +416,6 @@ in

[FFmpeg-devel] [PATCH 14/24] avutil: remove deprecated FF_API_FIFO_OLD_API

2024-01-25 Thread James Almer
Signed-off-by: James Almer --- libavutil/fifo.c| 219 libavutil/fifo.h| 179 libavutil/version.h | 1 - 3 files changed, 399 deletions(-) diff --git a/libavutil/fifo.c b/libavutil/fifo.c index b0807abbf7.

[FFmpeg-devel] [PATCH 15/24] avutil: remove deprecated FF_API_XVMC

2024-01-25 Thread James Almer
Signed-off-by: James Almer --- libavutil/pixdesc.c | 6 -- libavutil/pixfmt.h | 4 libavutil/version.h | 1 - 3 files changed, 11 deletions(-) diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c index f6d4d01460..9c708520b1 100644 --- a/libavutil/pixdesc.c +++ b/libavutil/pixdesc.c

[FFmpeg-devel] [PATCH 17/24] avutil: remove deprecated FF_API_AV_FOPEN_UTF8

2024-01-25 Thread James Almer
Signed-off-by: James Almer --- libavutil/avutil.h| 13 - libavutil/file.c | 6 -- libavutil/file.h | 17 - libavutil/file_open.c | 7 --- libavutil/version.h | 1 - 5 files changed, 44 deletions(-) diff --git a/libavutil/avutil.h b/libavutil

[FFmpeg-devel] [PATCH 16/24] avutil: remove deprecated FF_API_OLD_CHANNEL_LAYOUT

2024-01-25 Thread James Almer
Signed-off-by: James Almer --- fftools/ffmpeg_mux_init.c | 21 +--- libavcodec/aac_ac3_parser.c | 6 - libavcodec/aacdec.c | 2 - libavcodec/aacdec_common.c | 17 --- libavcodec/aacdec_fixed.c | 1 - libavcodec/aacdec_template.c

[FFmpeg-devel] [PATCH 19/24] avutil: remove deprecated FF_API_REORDERED_OPAQUE

2024-01-25 Thread James Almer
Signed-off-by: James Almer --- libavcodec/avcodec.h| 16 libavcodec/decode.c | 5 - libavcodec/encode.c | 6 -- libavcodec/libdav1d.c | 22 +- libavcodec/librav1e.c | 13

[FFmpeg-devel] [PATCH 21/24] avcodec/version_major: postpone some deprecations until the next bump

2024-01-25 Thread James Almer
They are either too recent, or can't be removed yet. Signed-off-by: James Almer --- libavcodec/version_major.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavcodec/version_major.h b/libavcodec/version_major.h index d849d55cb2..065b0c1378 100644 --- a/libavcodec/

[FFmpeg-devel] [PATCH 22/24] avformat/version_major: postpone some deprecations until the next bump

2024-01-25 Thread James Almer
They are either too recent, or are not trivial to remove. Signed-off-by: James Almer --- libavformat/version_major.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libavformat/version_major.h b/libavformat/version_major.h index 2c8ab84112..d87f91ea6d 100644 --- a/

[FFmpeg-devel] [PATCH 23/24] avutil/version_major: postpone some deprecations until the next bump

2024-01-25 Thread James Almer
They are too recent. Signed-off-by: James Almer --- libavutil/version.h | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libavutil/version.h b/libavutil/version.h index a7df8473e1..2cbee6a67a 100644 --- a/libavutil/version.h +++ b/libavutil/version.h @@ -105,12 +1

[FFmpeg-devel] [PATCH 24/24] libs: bump major version for all libraries

2024-01-25 Thread James Almer
Signed-off-by: James Almer --- doc/APIchanges| 2 +- libavcodec/version.h | 2 +- libavcodec/version_major.h| 2 +- libavdevice/version.h | 2 +- libavdevice/version_major.h | 2 +- libavfilter/version.h | 2 +- libavfilter/version_major.h | 2 +-

Re: [FFmpeg-devel] [PATCH 08/24] avcodec: remove deprecated FF_CODEC_CRYSTAL_HD

2024-01-25 Thread Andreas Rheinhardt
James Almer: > Signed-off-by: James Almer > --- > configure | 13 - > libavcodec/Makefile| 1 - > libavcodec/allcodecs.c | 6 - > libavcodec/avcodec.h | 18 - > libavcodec/crystalhd.c | 826 - > libavcodec/options_ta

Re: [FFmpeg-devel] [PATCH 08/24] avcodec: remove deprecated FF_CODEC_CRYSTAL_HD

2024-01-25 Thread James Almer
On 1/25/2024 11:12 AM, Andreas Rheinhardt wrote: James Almer: Signed-off-by: James Almer --- configure | 13 - libavcodec/Makefile| 1 - libavcodec/allcodecs.c | 6 - libavcodec/avcodec.h | 18 - libavcodec/crystalhd.c | 826 ---

Re: [FFmpeg-devel] [PATCH 22/24] avformat/version_major: postpone some deprecations until the next bump

2024-01-25 Thread Andreas Rheinhardt
James Almer: > They are either too recent, or are not trivial to remove. > > Signed-off-by: James Almer > --- > libavformat/version_major.h | 10 +- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/libavformat/version_major.h b/libavformat/version_major.h > index 2c8ab

Re: [FFmpeg-devel] [PATCH 22/24] avformat/version_major: postpone some deprecations until the next bump

2024-01-25 Thread James Almer
On 1/25/2024 11:34 AM, Andreas Rheinhardt wrote: James Almer: They are either too recent, or are not trivial to remove. Signed-off-by: James Almer --- libavformat/version_major.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libavformat/version_major.h b/lib

Re: [FFmpeg-devel] [PATCH v9 2/6] avcodec/webp: separate VP8 decoding

2024-01-25 Thread Thilo Borgmann via ffmpeg-devel
Am 25.01.24 um 11:04 schrieb Anton Khirnov: Quoting Thilo Borgmann via ffmpeg-devel (2023-12-31 13:30:14) --- libavcodec/webp.c | 50 +-- 1 file changed, 44 insertions(+), 6 deletions(-) diff --git a/libavcodec/webp.c b/libavcodec/webp.c index 4fd1

Re: [FFmpeg-devel] [PATCH v2 1/1] avfilter/vf_vpp_qsv: apply 3D LUT from file.

2024-01-25 Thread Chen Yufei
On Wed, Jan 24, 2024 at 7:39 PM Anton Khirnov wrote: > > Quoting Chen Yufei (2024-01-20 16:14:29) > > Usage: "vpp_qsv=lut3d_file=" > > Passing file paths to a filter and having the filter load the file is > not recommended, it is generally preferable to have an > AV_OPT_TYPE_BINARY option, with IO

Re: [FFmpeg-devel] [PATCH 00/24] Major library version bump

2024-01-25 Thread James Almer
On 1/25/2024 10:43 AM, James Almer wrote: After this is committed, it will be open ABI season for a few weeks, but no longer than a month. So if you want to do some cleaning (like removing avpriv_ functions, or moving field offsets from public strucs around), now is the time. I was reminded tha

[FFmpeg-devel] [PATCH] lavc/vvc: Use av_log2 when destination is integer

2024-01-25 Thread post
From: Frank Plowman Signed-off-by: Frank Plowman --- libavcodec/vvc/vvc_ctu.c | 4 ++-- libavcodec/vvc/vvc_ps.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libavcodec/vvc/vvc_ctu.c b/libavcodec/vvc/vvc_ctu.c index 307bc3490e..d166b16a19 100644 --- a/libavcodec/vvc/vv

Re: [FFmpeg-devel] [PATCH 1/2 v2] avutil: add a Tile Grid API

2024-01-25 Thread Anton Khirnov
Quoting James Almer (2024-01-22 12:59:52) > > > > I don't see how is that supposed to work. E.g. consider the following > > partitioning: > > ┌─┬┬─┐ > > │ │├─┤ > > ├─┤│ │ > > │ ├┤ │ > > └─┴┴─┘ > > > > How would you represent it in this API? > > That's two rows and three colum

[FFmpeg-devel] [PATCH] libavcodec: add tune_content option also for VP8.

2024-01-25 Thread Dariusz Marcinkiewicz via ffmpeg-devel
This exposes VP8E_SET_SCREEN_CONTENT_MODE option from libvpx. Change authored by Erik Språng Signed-off-by: Dariusz Marcinkiewicz --- doc/encoders.texi | 7 +-- libavcodec/libvpxenc.c | 35 ++- 2 files changed, 39 insertions(+), 3 deletions(-) diff --

Re: [FFmpeg-devel] [PATCH 1/2 v2] avutil: add a Tile Grid API

2024-01-25 Thread Anton Khirnov
Quoting James Almer (2024-01-22 13:08:43) > Or you could consider it a struct designed to represent a group of > images combined in a grid, for the purpose of extracting a subrectangle > for presentation. How many images there are is defined by the rows and > cols fields, and it can be 1. It st

Re: [FFmpeg-devel] [PATCH 1/2 v2] avutil: add a Tile Grid API

2024-01-25 Thread James Almer
On 1/25/2024 2:17 PM, Anton Khirnov wrote: Quoting James Almer (2024-01-22 13:08:43) Or you could consider it a struct designed to represent a group of images combined in a grid, for the purpose of extracting a subrectangle for presentation. How many images there are is defined by the rows and c

Re: [FFmpeg-devel] [PATCH 1/2 v2] avutil: add a Tile Grid API

2024-01-25 Thread James Almer
On 1/25/2024 2:13 PM, Anton Khirnov wrote: Quoting James Almer (2024-01-22 12:59:52) I don't see how is that supposed to work. E.g. consider the following partitioning: ┌─┬┬─┐ │ │├─┤ ├─┤│ │ │ ├┤ │ └─┴┴─┘ How would you represent it in this API? That's two rows and three co

[FFmpeg-devel] [PATCH 2/4 v5] avformat: add a Tile Grid stream group type

2024-01-25 Thread James Almer
This will be used to support tiled image formats like HEIF. Signed-off-by: James Almer --- Removed tile dimension arrays, as the same information can be fetched from the streams within the group. libavformat/avformat.c | 4 +++ libavformat/avformat.h | 65 ++

[FFmpeg-devel] [PATCH 3/4 v3] avformat/mov: add support for tile HEIF still images

2024-01-25 Thread James Almer
Export each tile as its own stream, and the tiling information as a Stream Group of type TILE_GRID. This also enables exporting other stream items like thumbnails, which may be present in non tiled HEIF images too. For those, the primary stream will be tagged with the default disposition. Based on

Re: [FFmpeg-devel] [PATCH 6/7] avcodec/hap: Avoid unnecessary opt.h inclusion

2024-01-25 Thread Vittorio Giovara
On Wed, Jan 24, 2024 at 9:06 PM Andreas Rheinhardt < andreas.rheinha...@outlook.com> wrote: > It presumably exists because HapContext contains an AVClass*. > Yet AVClass is actually defined in log.h and even this inclusion > can be avoided by struct AVClass*. This avoids opt.h inclusions > in hap.

Re: [FFmpeg-devel] [PATCH v2 2/2] avformat: add ts stream types for H266/VVC

2024-01-25 Thread Marton Balint
On Thu, 25 Jan 2024, Nuo Mi wrote: From: 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. Tested with: ffmpeg -i NovosobornayaSquare_1920x1080.mp4 -c:v libvve

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/s302m: enable non-PCM decoding

2024-01-25 Thread Gyan Doshi
On 2024-01-25 06:47 pm, Andreas Rheinhardt wrote: Gyan Doshi: On 2024-01-25 10:29 am, Andreas Rheinhardt wrote: Gyan Doshi: Set up framework for non-PCM decoding in-place and add support for Dolby-E decoding. Useful for direct transcoding of non-PCM audio in live inputs. ---   configure  

[FFmpeg-devel] [PATCH] lavc/qsvenc: Add workaround for VP9 keyframe

2024-01-25 Thread Xiang, Haihao
From: Haihao Xiang The runtime doesn't set the frame type to MFX_FRAMETYPE_IDR on the returned mfx bitstream for a keyframe, it set the frame type to MFX_FRAMETYPE_I only. This patch added workaround for VP9 keyframe to make the coded stream seekable. Signed-off-by: Haihao Xiang --- libavcodec

Re: [FFmpeg-devel] [PATCH] lavc/vvc: Use av_log2 when destination is integer

2024-01-25 Thread Nuo Mi
LGTM On Fri, Jan 26, 2024 at 1:05 AM wrote: > From: Frank Plowman > > Signed-off-by: Frank Plowman > --- > libavcodec/vvc/vvc_ctu.c | 4 ++-- > libavcodec/vvc/vvc_ps.c | 2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/libavcodec/vvc/vvc_ctu.c b/libavcodec/vvc/vvc_ctu

Re: [FFmpeg-devel] [PATCH 6/7] avcodec/hap: Avoid unnecessary opt.h inclusion

2024-01-25 Thread Andreas Rheinhardt
Vittorio Giovara: > On Wed, Jan 24, 2024 at 9:06 PM Andreas Rheinhardt < > andreas.rheinha...@outlook.com> wrote: > >> It presumably exists because HapContext contains an AVClass*. >> Yet AVClass is actually defined in log.h and even this inclusion >> can be avoided by struct AVClass*. This avoids

Re: [FFmpeg-devel] [PATCH v2 11/12] lavc/vaapi_decode: use dynamic frame pool for output frames with libva2

2024-01-25 Thread Xiang, Haihao
On Wo, 2023-12-20 at 15:10 +0800, Xiang, Haihao wrote: > From: Haihao Xiang > > This allows a downstream element stores more frames from VAAPI > decoders and fixes error in get_buffer() > > $ ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -i input_100frames.mp4 \ >  -vf reverse -an -f null -