Re: [FFmpeg-devel] [PATCH] avfilter/metadata: add intuitive labels for metadata values

2021-05-15 Thread Gyan Doshi
Pushed as f53414a0382701b9bc984f657939d4227c7c568a On 2021-05-15 12:33, Gyan Doshi wrote: Plan to push tonight. On 2021-05-14 15:53, Gyan Doshi wrote: ---   doc/filters.texi | 4 ++--   libavfilter/f_metadata.c | 8 ++--   2 files changed, 8 insertions(+), 4 deletions(-) diff --git

Re: [FFmpeg-devel] [PATCH] ffbuild/common.mak: Fix for windres in binutils-2.36.1

2021-05-15 Thread Hendrik Leppkes
On Sat, May 15, 2021 at 8:15 PM James Almer wrote: > > On 5/15/2021 1:49 PM, Tee KOBAYASHI wrote: > > The attached patch fixes a problem when building for Mingw-w64 using > > binutils-2.36.1: > > > > x86_64-w64-mingw32-windres -I. -Isrc/ --preprocessor > > "x86_64-w64-mingw32-gcc -E -xc-header

[FFmpeg-devel] [PATCH v2] avcodec/videotoolboxenc: #define TARGET_CPU_ARM64 to 0 if not provided by the SDK

2021-05-15 Thread Zane van Iperen
Fixes build failure on older SDKs without it. Fixes #9242 Signed-off-by: Zane van Iperen --- libavcodec/videotoolboxenc.c | 4 1 file changed, 4 insertions(+) NB: This is untested, I do not have a Mac to try it on. diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c

Re: [FFmpeg-devel] [PATCH] avcodec/videotoolboxenc: #define TARGET_CPU_ARM64 to 0 if not provided by the SDK

2021-05-15 Thread Zane van Iperen
On 16/5/21 12:57 am, Carl Eugen Hoyos wrote: --- a/libavcodec/videotoolboxenc.c +++ b/libavcodec/videotoolboxenc.c @@ -50,6 +50,11 @@ enum { kCVPixelFormatType_420YpCbCr10BiPlanarFullRange = 'xf20' }; enum { kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange = 'x420' }; #endif +/* Older

Re: [FFmpeg-devel] Questions about Codec

2021-05-15 Thread Paul B Mahol
On Thu, May 13, 2021 at 11:41 AM Nicolas Frattaroli wrote: > On 13.05.21 10:16, Renvoi wrote: > > Dear ffmpeg-devel > > > > I want to encode a video or serial number file to the Grassvallay HQ > codec > > in AVI format and export it. Is there any way? Please help us. > > > > Grass Valley > >

Re: [FFmpeg-devel] [PATCH] lavf/flvdec: normalize exporting date metadata

2021-05-15 Thread Alexander Strasser
Hi Anton! On 2021-05-14 10:09 +0200, Anton Khirnov wrote: > Quoting Alexander Strasser (2021-05-12 01:04:28) > > > > If the timezone data of an AMF 0 date type is non-zero, include that > > information as UTC offset in hours and minutes. > > --- > > libavformat/flvdec.c | 18 +++--- >

Re: [FFmpeg-devel] [PATCH] ffbuild/common.mak: Fix for windres in binutils-2.36.1

2021-05-15 Thread James Almer
On 5/15/2021 1:49 PM, Tee KOBAYASHI wrote: The attached patch fixes a problem when building for Mingw-w64 using binutils-2.36.1: x86_64-w64-mingw32-windres -I. -Isrc/ --preprocessor "x86_64-w64-mingw32-gcc -E -xc-header -DRC_INVOKED -MMD -MF libavdevice/avdeviceres.d -MT

[FFmpeg-devel] [PATCH]avfilter: add Intel IPP library based x86 optimized video scaling filter.

2021-05-15 Thread Zhislina, Victoria
Victoria Zhislina Cloud Software Engineering, Senior Application Engineer, Intel Corp. Nizhny Novgorod, Russia; Office: (831)-2969-444 ext.2231; INET: 312-2231 Joint Stock Company Intel A/O Registered legal address: Krylatsky

[FFmpeg-devel] [PATCH] ffbuild/common.mak: Fix for windres in binutils-2.36.1

2021-05-15 Thread Tee KOBAYASHI
The attached patch fixes a problem when building for Mingw-w64 using binutils-2.36.1: x86_64-w64-mingw32-windres -I. -Isrc/ --preprocessor "x86_64-w64-mingw32-gcc -E -xc-header -DRC_INVOKED -MMD -MF libavdevice/avdeviceres.d -MT libavdevice/avdeviceres.o" -o libavdevice/avdeviceres.o

[FFmpeg-devel] [PATCH] fate/integer.c: Connect test to fuzzer

2021-05-15 Thread Vedaa
Hi, Apologies for the trivial mistakes. I have fixed them in this patch. I have also added simple checks for overflow and underflow. Would this be sufficient or should I reduce the bits I read from the fuzzer? I will also submit a pull request to oss-fuzz as soon as this patch is applied. :) ---

[FFmpeg-devel] [PATCH v3] hwcontext_vaapi: Use PRIME_2 memory type for modifiers.

2021-05-15 Thread Bas Nieuwenhuizen
This way we can pass explicit modifiers in. Sometimes the modifier matters for the number of memory planes that libva accepts, in particular when dealing with driver-compressed textures. Furthermore the driver might not actually be able to determine the implicit modifier if all the buffer-passing

Re: [FFmpeg-devel] [PATCH] avcodec/videotoolboxenc: #define TARGET_CPU_ARM64 to 0 if not provided by the SDK

2021-05-15 Thread Carl Eugen Hoyos
> Am 15.05.2021 um 14:12 schrieb Zane van Iperen : > >  > >> On 15/5/21 10:11 pm, Timo Rothenpieler wrote: >>> On 15.05.2021 11:45, Zane van Iperen wrote: >>> Fixes build failure on older SDKs without it. >>> >>> Fixes #9242 >>> >>> Signed-off-by: Zane van Iperen >>> --- >>>

Re: [FFmpeg-devel] [PATCH v2] ffmpeg: add -fpsmin to clamp output framerate

2021-05-15 Thread Gyan Doshi
I'll review this in a few days. On 2021-05-11 21:42, Matthias Neugebauer wrote: Add -fpsmin analogously to -fpsmax for setting a lower bound to the auto-set frame rate. Signed-off-by: Matthias Neugebauer --- doc/ffmpeg.texi | 7 +++ fftools/ffmpeg.c | 8 +++- fftools/ffmpeg.h

Re: [FFmpeg-devel] [PATCH] avcodec/videotoolboxenc: #define TARGET_CPU_ARM64 to 0 if not provided by the SDK

2021-05-15 Thread Zane van Iperen
On 15/5/21 10:11 pm, Timo Rothenpieler wrote: On 15.05.2021 11:45, Zane van Iperen wrote: Fixes build failure on older SDKs without it. Fixes #9242 Signed-off-by: Zane van Iperen ---   libavcodec/videotoolboxenc.c | 5 +   1 file changed, 5 insertions(+) NB: This is untested, I do not

Re: [FFmpeg-devel] [PATCH] avcodec/videotoolboxenc: #define TARGET_CPU_ARM64 to 0 if not provided by the SDK

2021-05-15 Thread Timo Rothenpieler
On 15.05.2021 11:45, Zane van Iperen wrote: Fixes build failure on older SDKs without it. Fixes #9242 Signed-off-by: Zane van Iperen --- libavcodec/videotoolboxenc.c | 5 + 1 file changed, 5 insertions(+) NB: This is untested, I do not have a Mac to try it on. diff --git

[FFmpeg-devel] [PATCH] avcodec/videotoolboxenc: #define TARGET_CPU_ARM64 to 0 if not provided by the SDK

2021-05-15 Thread Zane van Iperen
Fixes build failure on older SDKs without it. Fixes #9242 Signed-off-by: Zane van Iperen --- libavcodec/videotoolboxenc.c | 5 + 1 file changed, 5 insertions(+) NB: This is untested, I do not have a Mac to try it on. diff --git a/libavcodec/videotoolboxenc.c

[FFmpeg-devel] [PATCH] fftools/ffmpeg: fix -t inaccurate recording time

2021-05-15 Thread Shiwang.Xie
if input start time is not 0 -t is inaccurate doing stream copy, will record extra duration according to input start time. it should base on following cases: input video start time from 60s, duration is 300s, 1. stream copy: ffmpeg -ss 40 -t 60 -i in.mp4 -c copy -y out.mp4

Re: [FFmpeg-devel] [PATCH] avfilter/metadata: add intuitive labels for metadata values

2021-05-15 Thread Gyan Doshi
Plan to push tonight. On 2021-05-14 15:53, Gyan Doshi wrote: --- doc/filters.texi | 4 ++-- libavfilter/f_metadata.c | 8 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index ed0ffe91fc..1a8843fe4f 100644 ---

[FFmpeg-devel] [PATCH] avfilter/vf_palettegen: add protection against potential divide by zero

2021-05-15 Thread Yiyuan GUO
In libavfilter/vf_palettegen.c, the function get_avg_color requires that box->len greater than zero to avoid dividing by zero. However, the call sequence filter_frame -> get_palette_frame -> get_avg_color may not satisfy this precondition. The bug is detailed in the bug