Re: [FFmpeg-devel] [PATCH 2/3] avfilter/vf_hwmap: get the AVHWDeviceType from outlink format

2022-06-29 Thread zhilizhao(赵志立)
> On Jun 29, 2022, at 2:32 PM, Tong Wu wrote: > > When a derive_device_type is not specified, the hwmap filter should be > able to retrieve AVHWDeviceType from outlink->format and create > corresponding hwdevice context. > > Signed-off-by: Tong Wu > --- > libavfilter/vf_hwmap.c | 26

Re: [FFmpeg-devel] [REQUEST] Miove Mail List to GitLab or GitHub.

2022-06-29 Thread Paul B Mahol
On Wed, Jun 29, 2022 at 3:54 AM Juan Pablo Cuervo < audioprof2001-at-yahoo@ffmpeg.org> wrote: > This is just a flood of mails. > > Gitlab requires 2-step verification,download & install > Authy Desktop, > Before Requesting Web Authorization Code in GitLab, > its time sync sensitive. > 6-Digits

Re: [FFmpeg-devel] [PATCH] avfilter/xstack: Add support for fixed size grid

2022-06-29 Thread Paul B Mahol
On Tue, Jun 28, 2022 at 9:01 PM Vignesh Venkatasubramanian < vigneshv-at-google@ffmpeg.org> wrote: > Add a short hand parameter for making a fixed size grid. The existing > xstack layout parameter syntax gets tedious if all one wants is a > matrix like grid of the input streams. Add a grid opt

Re: [FFmpeg-devel] [PATCH] avfilter/xstack: Add support for fixed size grid

2022-06-29 Thread Paul B Mahol
On Wed, Jun 29, 2022 at 9:21 AM Paul B Mahol wrote: > > > On Tue, Jun 28, 2022 at 9:01 PM Vignesh Venkatasubramanian < > vigneshv-at-google@ffmpeg.org> wrote: > >> Add a short hand parameter for making a fixed size grid. The existing >> xstack layout parameter syntax gets tedious if all one w

Re: [FFmpeg-devel] [PATCH v4 5/7] avformat/movenc: utilize existing AC-3 parsing workflow for AC-3

2022-06-29 Thread Andreas Rheinhardt
Jan Ekström: > On Mon, Jun 27, 2022 at 10:12 AM Jan Ekström wrote: >> >> On Thu, Jun 23, 2022 at 1:11 PM Jan Ekström wrote: >>> >>> On Thu, Jun 23, 2022 at 11:57 AM Andreas Rheinhardt >>> wrote: Jan Ekström: > From: Jan Ekström > > Signed-off-by: Jan Ekström > --- >>>

Re: [FFmpeg-devel] [RFC] Bug in colorspace.c

2022-06-29 Thread Hendrik Leppkes
On Wed, Jun 29, 2022 at 6:34 AM Hendrik Leppkes wrote: > > On Tue, Jun 28, 2022 at 11:38 PM Soft Works wrote: > > > > Hi, > > > > in colorspace.c, there are two functions with contradicting behavior > > regarding reading/writing the max_luminance value from/to > > AVMasteringDisplayMetadata. The

Re: [FFmpeg-devel] [PATCH 1/8] avformat/bintext: Remove set-but-unused variable

2022-06-29 Thread Paul B Mahol
On Tue, Jun 28, 2022 at 1:27 PM Andreas Rheinhardt < andreas.rheinha...@outlook.com> wrote: > Signed-off-by: Andreas Rheinhardt > --- > Maybe this was meant to be used somehow? > probably some not implemented logic to set probe depending on amount of invisible chars. > > libavformat/bintext.c

[FFmpeg-devel] [PATCH 0/2] lavc/aarch64: Provide neon implementations

2022-06-29 Thread Hubert Mazur
Provide neon implementations for motion estimation functions. Hubert Mazur (2): lavc/aarch64: Assign callback with function lavc/aarch64: Add pix_abs16_x2 neon implementation libavcodec/aarch64/me_cmp_init_aarch64.c | 5 + libavcodec/aarch64/me_cmp_neon.S | 134

[FFmpeg-devel] [PATCH 1/2] lavc/aarch64: Assign callback with function

2022-06-29 Thread Hubert Mazur
Assign c->sad[0] callback with already existing neon implementation of pix_abs16 function. Signed-off-by: Hubert Mazur --- libavcodec/aarch64/me_cmp_init_aarch64.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/aarch64/me_cmp_init_aarch64.c b/libavcodec/aarch64/me_cmp_init_aar

[FFmpeg-devel] [PATCH 2/2] lavc/aarch64: Add pix_abs16_x2 neon implementation

2022-06-29 Thread Hubert Mazur
Provide neon implementation for pix_abs16_x2 function. Performance tests of implementation are below. - pix_abs_0_1_c: 291.9 - pix_abs_0_1_neon: 73.7 Benchmarks and tests run with checkasm tool on AWS Graviton 3. Signed-off-by: Hubert Mazur --- libavcodec/aarch64/me_cmp_init_aarch64.c | 3

[FFmpeg-devel] [PATCH v2 0/6] ICC profile support in avcodec

2022-06-29 Thread Niklas Haas
Changes in v2: - remove unnecessary import - fixed assignment-instead-of-equality - fixed #ifdef -> #if ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ff

[FFmpeg-devel] [PATCH v2 1/6] fflcms2: move to libavcodec

2022-06-29 Thread Niklas Haas
From: Niklas Haas We will need this helper inside libavcodec in the future, so move it there, leaving behind an #include to the raw source file in its old location in libvfilter. This approach is inspired by the handling of vulkan.c, and avoids us needing to expose any of it publicly (or semi-pub

[FFmpeg-devel] [PATCH v2 2/6] avcodec/codec_internal: add cap for ICC profile support

2022-06-29 Thread Niklas Haas
From: Niklas Haas Codecs that can read/write ICC profiles deserve a special capability so the common logic in encode.c/decode.c can decide whether or not there needs to be any special handling for ICC profiles. The motivation here is to be able to use it to decide whether or not an ICC profile ne

[FFmpeg-devel] [PATCH v2 3/6] avcodec: add API for automatic handling of icc profiles

2022-06-29 Thread Niklas Haas
From: Niklas Haas This functionally already exists, but as pointed out in #9672 and #9673, requiring users to manually include filters is clumsy, error-prone and hard to use together with tools like ffplay. To streamline ICC profile support, add a new AVCodecContext option to globally enable rea

[FFmpeg-devel] [PATCH v2 4/6] avcodec: add common fflcms2 boilerplate

2022-06-29 Thread Niklas Haas
From: Niklas Haas Handling this in general code makes more sense than handling it in individual codec files, because it would be a lot of unnecessary code duplication for the plenty of formats that support exporting ICC profiles (jpg, png, tiff, webp, jxl, ...). encode.c and decode.c will be in

[FFmpeg-devel] [PATCH v2 5/6] avcodec/decode: parse ICC profiles

2022-06-29 Thread Niklas Haas
From: Niklas Haas Implementation for the decode side of the ICC profile API, roughly matching the behavior of the existing vf_iccdetect filter. Closes: #9673 Signed-off-by: Niklas Haas --- libavcodec/decode.c | 61 + 1 file changed, 56 insertions(+)

[FFmpeg-devel] [PATCH v2 6/6] avcodec/encode:: generate ICC profiles

2022-06-29 Thread Niklas Haas
From: Niklas Haas Only if requested, and only if the codec signals support for ICC profiles. Implementation roughly matches the functionality of the existing vf_iccgen filter, albeit with some reduced flexibility and no caching. Ideally, we'd also only do this on the first frame (e.g. mjpeg, apn

Re: [FFmpeg-devel] [REQUEST] Miove Mail List to GitLab or GitHub.

2022-06-29 Thread Felix LeClair
> On Jun 29, 2022, at 03:15, Paul B Mahol wrote: > > On Wed, Jun 29, 2022 at 3:54 AM Juan Pablo Cuervo < > audioprof2001-at-yahoo@ffmpeg.org> wrote: > >> This is just a flood of mails. >> >> Gitlab requires 2-step verification,download & install >> Authy Desktop, >> Before Requesting Web

[FFmpeg-devel] [PATCH] avfilter/xstack: Add support for fixed size grid

2022-06-29 Thread Vignesh Venkatasubramanian
Add a short hand parameter for making a fixed size grid. The existing xstack layout parameter syntax gets tedious if all one wants is a matrix like grid of the input streams. Add a grid option to the xstack filter that simplifies this use case by simply specifying the number of rows and columns ins

Re: [FFmpeg-devel] [PATCH] avfilter/xstack: Add support for fixed size grid

2022-06-29 Thread Vignesh Venkatasubramanian
On Wed, Jun 29, 2022 at 12:24 AM Paul B Mahol wrote: > > > > On Wed, Jun 29, 2022 at 9:21 AM Paul B Mahol wrote: >> >> >> >> On Tue, Jun 28, 2022 at 9:01 PM Vignesh Venkatasubramanian >> wrote: >>> >>> Add a short hand parameter for making a fixed size grid. The existing >>> xstack layout param

[FFmpeg-devel] [PATCH] avcodec/avcodec: Don't mention removed function

2022-06-29 Thread Andreas Rheinhardt
avcodec_thread_init() has been removed in 9a79bb552a518f26bec1b5306a03b76076bcf8eb. Signed-off-by: Andreas Rheinhardt --- libavcodec/avcodec.h | 1 - 1 file changed, 1 deletion(-) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 4dae23d06e..cb5c25bf63 100644 --- a/libavcodec/avcod

Re: [FFmpeg-devel] [REQUEST] Miove Mail List to GitLab or GitHub.

2022-06-29 Thread Tomas Härdin
No. /Tomas ___ 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] avformat/mov: Only read the primary item for AVIF

2022-06-29 Thread James Zern
On Tue, Jun 28, 2022 at 12:02 PM James Zern wrote: > > On Tue, Jun 28, 2022 at 11:56 AM Vignesh Venkatasubramanian > wrote: > > > > Update the still AVIF parser to only read the primary item. With this > > patch, AVIF still images with exif/icc/alpha channel will no longer > > fail to parse. > >

[FFmpeg-devel] [PATCH] avfilter: add remap_opencl filter

2022-06-29 Thread Paul B Mahol
Hello, patches attached. From 87841c44678f4ea205e4f25213596ef3eb0744b3 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Wed, 29 Jun 2022 21:32:42 +0200 Subject: [PATCH 2/2] avutil/hwcontext_opencl: add support fro FLOAT formats Signed-off-by: Paul B Mahol --- libavutil/hwcontext_opencl.c | 5

[FFmpeg-devel] [RFC] avdevice/lavfi: output wrapped AVFrames

2022-06-29 Thread Timo Rothenpieler
The lavfi avdevice as it is right now can't output "special frames" like hardware frames. This patch makes the lavfi avdevice output wrapped AVFrames instead of copying the actual data, greatly simplifying it in the process. --- I am not at all sure if this has some unexpected consequences. It wor

Re: [FFmpeg-devel] [RFC] Bug in colorspace.c

2022-06-29 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Hendrik Leppkes > Sent: Wednesday, June 29, 2022 9:50 AM > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [RFC] Bug in colorspace.c > > On Wed, Jun 29, 2022 at 6:34 AM Hendrik Leppk

[FFmpeg-devel] [PATCH] Added Chromakey CUDA filter

2022-06-29 Thread mohamed Elhadidy
From: Mohamed Khaled Mohamed <56936494+mohamedelhadidy0...@users.noreply.github.com> added some function documentation GSoC'22 Added CUDA chromakeyfilter libavfilter/vf_chromakey_cuda.cu:the CUDA kernel for the filter libavfilter/vf_chromakey_cuda.c: the C side that calls the kernel and gets use

[FFmpeg-devel] [GSoC'22] Added Chromakey CUDA filter

2022-06-29 Thread mohamed Elhadidy
From: Mohamed Khaled Mohamed <56936494+mohamedelhadidy0...@users.noreply.github.com> GSoC'22 Added CUDA chromakeyfilter libavfilter/vf_chromakey_cuda.cu:the CUDA kernel for the filter libavfilter/vf_chromakey_cuda.c: the C side that calls the kernel and gets user input libavfilter/allfilters.c:

Re: [FFmpeg-devel] [GSoC'22] Added Chromakey CUDA filter

2022-06-29 Thread Timo Rothenpieler
On 30.06.2022 00:42, mohamed Elhadidy wrote: From: Mohamed Khaled Mohamed <56936494+mohamedelhadidy0...@users.noreply.github.com> GSoC'22 Added CUDA chromakeyfilter libavfilter/vf_chromakey_cuda.cu:the CUDA kernel for the filter libavfilter/vf_chromakey_cuda.c: the C side that calls the kernel

[FFmpeg-devel] [GSoC'22] Added Chromakey CUDA filter

2022-06-29 Thread mohamed Elhadidy
From: Mohamed Khaled Mohamed <56936494+mohamedelhadidy0...@users.noreply.github.com> GSoC'22 GPU accelerated video filters Added CUDA chromakeyfilter libavfilter/vf_chromakey_cuda.cu:the CUDA kernel for the filter libavfilter/vf_chromakey_cuda.c: the C side that calls the kernel and gets user i

Re: [FFmpeg-devel] [PATCH 2/3] avfilter/vf_hwmap: get the AVHWDeviceType from outlink format

2022-06-29 Thread Wu, Tong1
> > On Jun 29, 2022, at 2:32 PM, Tong Wu > wrote: > > > > When a derive_device_type is not specified, the hwmap filter should be > > able to retrieve AVHWDeviceType from outlink->format and create > > corresponding hwdevice context. > > > > Signed-off-by: Tong Wu > > --- > > libavfilter/vf_hwmap.

[FFmpeg-devel] [PATCH v2 1/3] avutil/hwcontext: add a function to get the AVHWDeviceType

2022-06-29 Thread Tong Wu
Add a function to get the corresponding AVHWDeviceType from a given hardware pixel format. Signed-off-by: Tong Wu --- libavutil/hwcontext.c | 12 libavutil/hwcontext.h | 9 + 2 files changed, 21 insertions(+) diff --git a/libavutil/hwcontext.c b/libavutil/hwcontext.c index

[FFmpeg-devel] [PATCH v2 2/3] avfilter/vf_hwmap: get the AVHWDeviceType from outlink format

2022-06-29 Thread Tong Wu
When a derive_device_type is not specified, the hwmap filter should be able to retrieve AVHWDeviceType from outlink->format and create corresponding hwdevice context. Signed-off-by: Tong Wu --- libavfilter/vf_hwmap.c | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff

[FFmpeg-devel] [PATCH v2 3/3] avfilter/avfiltergraph: add an auto hwmap filter

2022-06-29 Thread Tong Wu
When two formats lists cannot be merged, a scale filter is auto-inserted. However, when it comes to hardware map, we have to manually add a hwmap filter to do the conversion. This patch introduces an auto hwmap filter to do the hwmap conversion automatically and modifies the negotiation structures,

[FFmpeg-devel] [PATCH v5 0/7] avformat/movenc: normalize on AC-3 parser usage

2022-06-29 Thread Jan Ekström
The simplified parsing currently in `mov_write_ac3_tag` trusts the content of the packets a bit too much (the AC-3 parser returns all data fed to it, including any possible data before the start code), while the existing E-AC-3 logic does proper header validation by utilizing the (E-)AC-3 parser.

[FFmpeg-devel] [PATCH v5 1/7] avcodec/ac3_parser{, _internal}: expose AC-3 bit_rate_code

2022-06-29 Thread Jan Ekström
From: Jan Ekström Required by MP4's AC3SpecificBox and MPEG-TS AC-3 audio_descriptor, of which the former is implemented in our MP4 writer. Signed-off-by: Jan Ekström --- libavcodec/ac3_parser.c | 5 - libavcodec/ac3_parser_internal.h | 1 + libavcodec/version.h | 2 +-

[FFmpeg-devel] [PATCH v5 2/7] {configure, avformat/movenc}: enable AC-3 parser for movenc

2022-06-29 Thread Jan Ekström
From: Jan Ekström This simplifies the code to no longer have #ifs in a manner which does not require handling avpriv_ac3_parse_header returning ENOSYS. As an existing example, the MPEG-TS muxer already requires the AC-3 parser, and in order to fix existing issues with the current AC-3 movenc cod

[FFmpeg-devel] [PATCH v5 3/7] avformat/movenc: enable handle_eac3 to handle AC-3 tracks

2022-06-29 Thread Jan Ekström
From: Jan Ekström Add the AC-3 frame type, as well as early exit from additional packet parsing in case of AC-3, as only a single packet is required to get the required information. Additionally, expose ac3_bit_rate_code via the eac3_info struct as it is required for AC3SpecificBox. Signed-off-

[FFmpeg-devel] [PATCH v5 4/7] avformat/movenc: move eac3_info definition so that it can be used for AC-3

2022-06-29 Thread Jan Ekström
From: Jan Ekström Signed-off-by: Jan Ekström --- libavformat/movenc.c | 66 ++-- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 8316fd9a45..b9e3f1a63e 100644 --- a/libavformat/movenc.c +++

[FFmpeg-devel] [PATCH v5 5/7] avformat/movenc: utilize existing AC-3 parsing workflow for AC-3

2022-06-29 Thread Jan Ekström
From: Jan Ekström Signed-off-by: Jan Ekström --- libavformat/movenc.c | 46 +--- 1 file changed, 18 insertions(+), 28 deletions(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index b9e3f1a63e..382c2f2e75 100644 --- a/libavformat/movenc.c +++

[FFmpeg-devel] [PATCH v5 6/7] avformat/movenc: handle OOM situations when parsing AC-3 headers

2022-06-29 Thread Jan Ekström
From: Jan Ekström Signed-off-by: Jan Ekström --- libavformat/movenc.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 382c2f2e75..022fab675e 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -416,7 +416,10 @

[FFmpeg-devel] [PATCH v5 7/7] avformat/movenc: limit ISOBMFF AC-3 mapping to bsids <=8

2022-06-29 Thread Jan Ekström
From: Jan Ekström This leaves out RealAudio DolbyNet, which utilizes bsids 9 and 10, It is not clear whether the interpreted bit rate value (divided by 2 or 4 depending on the variant), or the original bit rate value should be utilized to receive the bit_rate_code index. Signed-off-by: Jan Ekst

Re: [FFmpeg-devel] [PATCH] avfilter: add remap_opencl filter

2022-06-29 Thread Paul B Mahol
Updated. From 2b6b653bebec01d9d523102c1bfe2ce4b1be93dd Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Wed, 29 Jun 2022 19:12:24 +0200 Subject: [PATCH] avfilter: add remap opencl filter Signed-off-by: Paul B Mahol --- libavfilter/Makefile | 2 + libavfilter/allfilters.c | 1