Re: [FFmpeg-devel] [PATCH 7/7] libavutil/hwcontext_vulkan: specify the modifier to create VKImage

2021-11-15 Thread Chen, Wenbin
> 9 Nov 2021, 10:18 by wenbin.c...@intel.com: > > > When vulkan image exports to drm, the tilling need to be > > VK_IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT. Now add code to > create vulkan > > image using this format. > > > > Now the following command line works: > > > > ffmpeg -hwaccel vaapi -hwacce

[FFmpeg-devel] [PATCH 2/2] ffmpeg: Allocate InputStream.decoded_frame early

2021-11-15 Thread James Almer
Based on a commit by Andreas Rheinhardt. Signed-off-by: James Almer --- fftools/ffmpeg.c | 11 ++- fftools/ffmpeg_opt.c | 4 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index f6ab33a614..05d197b8af 100644 --- a/fftools/ffmp

[FFmpeg-devel] [PATCH 1/2] ffmpeg: Allocate (In|Out)putStream.filter_frame early

2021-11-15 Thread James Almer
Based on a commit by Andreas Rheinhardt. Signed-off-by: James Almer --- fftools/ffmpeg.c | 7 --- fftools/ffmpeg_opt.c | 8 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index d141f34df9..f6ab33a614 100644 --- a/fftools/ffmpeg

[FFmpeg-devel] [PATCH] libavutil/mips: fix build if sys/auxv.h not present

2021-11-15 Thread Brilliantov Kirill Vladimirovich
--- configure| 1 + libavutil/mips/cpu.c | 6 ++ 2 files changed, 7 insertions(+) diff --git a/configure b/configure index 98113c95fd..18c93f2619 100755 --- a/configure +++ b/configure @@ -2148,6 +2148,7 @@ HEADERS_LIST=" valgrind_valgrind_h windows_h winsock2_h +

Re: [FFmpeg-devel] [PATCH 1/6] lavf: improve AV_DISPOSITION_* doxy

2021-11-15 Thread Tobias Rapp
On 12/11/2021 17:32, Anton Khirnov wrote: Also switch the values definition to the (1 << N) style, which is easier to read. --- libavformat/avformat.h | 96 +- 1 file changed, 77 insertions(+), 19 deletions(-) diff --git a/libavformat/avformat.h b/libav

Re: [FFmpeg-devel] [PATCH 1/6] lavf: improve AV_DISPOSITION_* doxy

2021-11-15 Thread Anton Khirnov
Quoting Tobias Rapp (2021-11-15 15:10:05) > On 12/11/2021 17:32, Anton Khirnov wrote: > > Also switch the values definition to the (1 << N) style, which is easier > > to read. > > --- > > libavformat/avformat.h | 96 +- > > 1 file changed, 77 insertions(+)

Re: [FFmpeg-devel] [PATCH] avformat/dhav: Limit get_duration() iterations

2021-11-15 Thread Michael Niedermayer
On Sun, Nov 14, 2021 at 07:36:59PM +, Kieran Kunhya wrote: > > diff --git a/libavformat/dhav.c b/libavformat/dhav.c > > index b6bb25204c2..6c1cdde32c9 100644 > > --- a/libavformat/dhav.c > > +++ b/libavformat/dhav.c > > @@ -234,12 +234,13 @@ static int64_t get_duration(AVFormatContext *s) > >

[FFmpeg-devel] [PATCH 1/9] ffmpeg: do not copy chroma_sample_location from the input stream

2021-11-15 Thread Anton Khirnov
It will be set from the supplied AVFrame later on. --- fftools/ffmpeg.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index f755f44bd9..0f2fe192ac 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -3368,8 +3368,6 @@ static int init_output_stream_enc

[FFmpeg-devel] [PATCH 2/9] ffmpeg: drop the -intra option

2021-11-15 Thread Anton Khirnov
It is undocumented and has been marked as deprecated since 2012. --- fftools/ffmpeg_opt.c | 5 - 1 file changed, 5 deletions(-) diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c index 4685cf6435..8cf932bc6c 100644 --- a/fftools/ffmpeg_opt.c +++ b/fftools/ffmpeg_opt.c @@ -176,7 +176,6 @

[FFmpeg-devel] [PATCH 4/9] ffmpeg: drop the -vc option

2021-11-15 Thread Anton Khirnov
It is undocumented and has been deprecated since 2012. --- fftools/ffmpeg_opt.c | 8 1 file changed, 8 deletions(-) diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c index c960830ff6..e381ef8486 100644 --- a/fftools/ffmpeg_opt.c +++ b/fftools/ffmpeg_opt.c @@ -312,12 +312,6 @@ stat

[FFmpeg-devel] [PATCH 5/9] ffmpeg: drop the -tvstd option

2021-11-15 Thread Anton Khirnov
It is undocumented and has been deprecated since 2012. --- fftools/ffmpeg_opt.c | 8 1 file changed, 8 deletions(-) diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c index e381ef8486..f8e6115241 100644 --- a/fftools/ffmpeg_opt.c +++ b/fftools/ffmpeg_opt.c @@ -312,12 +312,6 @@ stat

[FFmpeg-devel] [PATCH 9/9] ffmpeg: drop obsolete rotation API remnants

2021-11-15 Thread Anton Khirnov
No demuxers export the "rotate" metadata tag anymore. --- fftools/ffmpeg.c | 5 - 1 file changed, 5 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index c0ab78608a..d1904c20d4 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -3361,11 +3361,6 @@ static int init_output_str

[FFmpeg-devel] [PATCH 6/9] ffmpeg: drop -sameq/-samequant options

2021-11-15 Thread Anton Khirnov
They did nothing but return an error since 2012. --- fftools/ffmpeg_opt.c | 13 - 1 file changed, 13 deletions(-) diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c index f8e6115241..f0f7051392 100644 --- a/fftools/ffmpeg_opt.c +++ b/fftools/ffmpeg_opt.c @@ -303,15 +303,6 @@ sta

[FFmpeg-devel] [PATCH 7/9] ffmpeg: drop -isync, which did nothing since 2012

2021-11-15 Thread Anton Khirnov
--- fftools/ffmpeg_opt.c | 4 1 file changed, 4 deletions(-) diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c index f0f7051392..54f6279bf5 100644 --- a/fftools/ffmpeg_opt.c +++ b/fftools/ffmpeg_opt.c @@ -178,7 +178,6 @@ int64_t stats_period = 50; static int file_overwrite =

[FFmpeg-devel] [PATCH 8/9] ffmpeg: drop a useless assignment

2021-11-15 Thread Anton Khirnov
bits_per_raw_sample is already set in new_video_stream(), so this code has no effect. --- fftools/ffmpeg.c | 7 --- fftools/ffmpeg.h | 1 - fftools/ffmpeg_opt.c | 2 +- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 0f2fe192ac..c

[FFmpeg-devel] [PATCH 3/9] ffmpeg: drop the -deinterlace option

2021-11-15 Thread Anton Khirnov
It is undocumented and has been deprecated since 2013. --- fftools/ffmpeg_filter.c | 17 - fftools/ffmpeg_opt.c| 3 --- 2 files changed, 20 deletions(-) diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c index b798459946..886419af32 100644 --- a/fftools/ffmpeg_fil

Re: [FFmpeg-devel] [PATCH] avformat/dhav: Limit get_duration() iterations

2021-11-15 Thread Derek Buitenhuis
On 11/15/2021 3:04 PM, Michael Niedermayer wrote: > i dont like it either > do you have a better idea ? Why is it seaching like this anyway? This is not even the only place in dhav.c it does this. Is the format documented somewhere by chance? There has to be a better early termination condition

Re: [FFmpeg-devel] [PATCH 05/15] lavc/videotoolbox: escape 0x00000[0-3]s in avcC PSs

2021-11-15 Thread Derek Buitenhuis
On 11/13/2021 9:09 PM, rcombs wrote: > --- > libavcodec/videotoolbox.c | 51 +-- > 1 file changed, 43 insertions(+), 8 deletions(-) Why reimplement NAL emulation bytes for the Nth time in the codebase? - Derek ___ ff

Re: [FFmpeg-devel] [PATCH v3 2/2] swscale/input: clip rgbf32 values before lrintf

2021-11-15 Thread Michael Niedermayer
On Sun, Nov 14, 2021 at 10:22:21PM -0800, mindm...@gmail.com wrote: > From: Mark Reid > > if the float pixel * 65535.0f > 2147483647.0f > lrintf may overfow and return negative values, depending on implementation. > nan and +/-inf values may also be implementation defined > > clip the value firs

[FFmpeg-devel] [PATCH] avformat/http: Add short_seek_size option

2021-11-15 Thread Derek Buitenhuis
In 45bfe8b838275235412777dd430206d9a24eb3ee, short_seek_threshold was removed from the public AVIO struct. Although this option was private and not intended to be used by public API users, it was nonetheless, because it provided functionality that could otherwise not be gained via public API. Thi

Re: [FFmpeg-devel] [PATCH v2] lavfi: add a libplacebo filter

2021-11-15 Thread Dennis Mungai
On Fri, 12 Nov 2021 at 13:59, Niklas Haas wrote: > From: Niklas Haas > > This filter conceptually maps the libplacebo `pl_renderer` API into > libavfilter, which is a high-level image rendering API designed to work > with an RGB pipeline internally. As such, there's no way to avoid e.g. > chroma

Re: [FFmpeg-devel] [PATCH v2] lavfi: add a libplacebo filter

2021-11-15 Thread Timo Rothenpieler
On 15.11.2021 19:21, Dennis Mungai wrote: Hello. Were you able to build FFmpeg with this filter enabled? So far, building this package does not generate any pkgconfig file in the configured prefix, and FFmpeg's ./configure cannot detect it. I filed the issue on libplacebo's project page, with

Re: [FFmpeg-devel] [PATCH v3 2/2] swscale/input: clip rgbf32 values before lrintf

2021-11-15 Thread James Almer
On 11/15/2021 12:29 PM, Michael Niedermayer wrote: On Sun, Nov 14, 2021 at 10:22:21PM -0800, mindm...@gmail.com wrote: From: Mark Reid if the float pixel * 65535.0f > 2147483647.0f lrintf may overfow and return negative values, depending on implementation. nan and +/-inf values may also be imp

Re: [FFmpeg-devel] [PATCH] avformat/http: Add short_seek_size option

2021-11-15 Thread James Almer
On 11/15/2021 12:52 PM, Derek Buitenhuis wrote: In 45bfe8b838275235412777dd430206d9a24eb3ee, short_seek_threshold was removed from the public AVIO struct. Although this option was private and not intended to be used by public API users, it was nonetheless, because it provided functionality that

Re: [FFmpeg-devel] [PATCH] avformat/http: Add short_seek_size option

2021-11-15 Thread Derek Buitenhuis
On 11/15/2021 7:53 PM, James Almer wrote: > Don't forget to bump micro before you push. Yep. >> +{ "short_seek_size", "Threshold to favor readahead over seek.", >> OFFSET(short_seek_size), AV_OPT_TYPE_INT, { .i64 = -1 }, 1, INT64_MAX, D }, > > -1 default when the valid range is 1 to INT64_M

Re: [FFmpeg-devel] [PATCH] avformat/http: Add short_seek_size option

2021-11-15 Thread James Almer
On 11/15/2021 6:13 PM, Derek Buitenhuis wrote: On 11/15/2021 7:53 PM, James Almer wrote: Don't forget to bump micro before you push. Yep. +{ "short_seek_size", "Threshold to favor readahead over seek.", OFFSET(short_seek_size), AV_OPT_TYPE_INT, { .i64 = -1 }, 1, INT64_MAX, D }, -1 def

Re: [FFmpeg-devel] [PATCH 03/15] lavu/videotoolbox: add 422 and 444 pixel format mappings

2021-11-15 Thread Wang Bin
> > +#if HAVE_KCVPIXELFORMATTYPE_422YPCBCR10BIPLANARVIDEORANGE > +{ kCVPixelFormatType_422YpCbCr10BiPlanarVideoRange, false, > AV_PIX_FMT_NV20 }, > +{ kCVPixelFormatType_422YpCbCr10BiPlanarFullRange, true, > AV_PIX_FMT_NV20 }, > +#endif > It's p210, not nv20. Regards

Re: [FFmpeg-devel] [PATCH 2/2] ffmpeg_opt: consider HW acceleration method when selecting decoder

2021-11-15 Thread Xiang, Haihao
> On Wed, 2021-09-22 at 15:42 +0800, Haihao Xiang wrote: > > Usually a HW decoder is expected when user specifies a HW acceleration > > method via -hwaccel option, however the current implementation doesn't > > take HW acceleration method into account, it is possible to select a SW > > decoder. >

[FFmpeg-devel] [PATCH] x86/intmath: add VEX encoded versions of av_clipf() and av_clipd()

2021-11-15 Thread James Almer
Prevents mixing inlined SSE instructions and AVX instructions when the compiler generates the latter. Signed-off-by: James Almer --- libavutil/x86/intmath.h | 30 ++ 1 file changed, 30 insertions(+) diff --git a/libavutil/x86/intmath.h b/libavutil/x86/intmath.h index

Re: [FFmpeg-devel] Add support for loongarch.

2021-11-15 Thread 殷时友
> 2021年11月9日 下午3:09,Shiyou Yin 写道: > > [PATCH 1/3] configure: Add support for loongarch. > [PATCH 2/3] avcodec: [loongarch] optimize get_cabac. > [PATCH 3/3] avcodec: [loongarch] Optimize decode_significance. > Ping. ___ ffmpeg-devel mailing list ff

Re: [FFmpeg-devel] [PATCH 03/15] lavu/videotoolbox: add 422 and 444 pixel format mappings

2021-11-15 Thread Wang Bin
Ridley Combs 于2021年11月16日周二 上午11:03写道: > > > > On Nov 15, 2021, at 19:35, Wang Bin wrote: > > > >> > >> +#if HAVE_KCVPIXELFORMATTYPE_422YPCBCR10BIPLANARVIDEORANGE > >> +{ kCVPixelFormatType_422YpCbCr10BiPlanarVideoRange, false, > >> AV_PIX_FMT_NV20 }, > >> +{ kCVPixelFormatType_422YpCbCr

[FFmpeg-devel] [PATCH v4] libavfilter: add a gblur_vulkan filter

2021-11-15 Thread Wu Jianhua
This commit adds a powerful and customizable gblur Vulkan filter, which provides a maximum 127x127 kernel size of Gaussian Filter. The size could be adjusted by requirements on quality or performance. The following command is on how to apply gblur_vulkan filter: ffmpeg -init_hw_device vulkan -i i