Re: [FFmpeg-devel] Playback issue on Sony TVs caused by btrt box

2022-02-21 Thread Marton Balint
On Mon, 21 Feb 2022, Eran Kornblau wrote: On Mon, Feb 21, 2022 at 5:07 PM Eran Kornblau wrote: Hi all, We've recently upgraded our ffmpeg version, and we got a playback issue on some Sony TV models that are playing HBBTV/DASH+DRM - video plays fine, audio doesn't play at all. Listing he

[FFmpeg-devel] [PATCH] avformat: Add check for ff_get_extradata

2022-02-21 Thread Jiasheng Jiang
As the potential failure of the memory allocation, the ff_get_extradata() could return error if fails. Therefore, it should be better to deal with the return value of the ff_get_extradata() and return error if fails. Fixes: 2d720069a9 ("avformat: add aix demuxer") Signed-off-by: Jiasheng Jiang --

[FFmpeg-devel] [PATCH] avcodec/magicyuvenc: Add check for av_frame_clone

2022-02-21 Thread Jiasheng Jiang
As the potential failure of the memory allocation, the 'p' could be NULL pointer. Therefore, it should be better to check it in order to avoid the dereferencing of the NULL pointer. Fixes: 3729ae659f ("avcodec: add MagicYUV encoder") Signed-off-by: Jiasheng Jiang --- libavcodec/magicyuvenc.c | 2

[FFmpeg-devel] [PATCH] fftools/ffmpeg_filter: Add check for av_memdup

2022-02-21 Thread Jiasheng Jiang
As the potential failure of the av_malloc(), the av_memdup() could return NULL if fails. Therefore, it should be better to check it and return error if fails, like the av_buffer_ref(). Fixes: 535a835e51 ("ffmpeg: use display matrix frame side data for autorotation") Signed-off-by: Jiasheng Jiang

[FFmpeg-devel] [PATCH 2/2] lavc/bsf: improve doxy

2022-02-21 Thread Anton Khirnov
--- libavcodec/bsf.h | 24 ++-- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/libavcodec/bsf.h b/libavcodec/bsf.h index ba8b48f222..611beab885 100644 --- a/libavcodec/bsf.h +++ b/libavcodec/bsf.h @@ -167,9 +167,9 @@ const AVBitStreamFilter *av_bsf_iterate(void

[FFmpeg-devel] [PATCH 1/2] lavc/bsf: add general documentation

2022-02-21 Thread Anton Khirnov
Also, place the BSF api docs in their own doxygen group. --- libavcodec/bsf.h | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/libavcodec/bsf.h b/libavcodec/bsf.h index 8c5355d186..ba8b48f222 100644 --- a/libavcodec/bsf.h +++ b/libavcodec/bsf.h @@ -30,7 +

Re: [FFmpeg-devel] [PATCH v1] avfilter/vf_gblur_vulkan: add sizeV option

2022-02-21 Thread Wu, Jianhua
Lynne: > Sent: Tuesday, February 22, 2022 1:38 PM > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH v1] avfilter/vf_gblur_vulkan: add sizeV > option > > 18 Feb 2022, 16:24 by toq...@outlook.com: > > >> 29 Jan 2022, 13:34 by toqsxw at outlook.

Re: [FFmpeg-devel] [PATCH v2 1/4] lavc/vaapi_encode_h265: Add P frame to GPB frame support for hevc_vaapi

2022-02-21 Thread Xiang, Haihao
On Mon, 2022-02-21 at 12:06 +, Mark Thompson wrote: > On 21/02/2022 02:13, Fei Wang wrote: > > From: Linjie Fu > > > > Use GPB frames to replace regular P frames if backend driver does not > > support it. > > > > - GPB: > > Generalized P and B picture. P frames replaced by B frames with

Re: [FFmpeg-devel] [PATCH v1] avfilter/vf_gblur_vulkan: add sizeV option

2022-02-21 Thread Lynne
18 Feb 2022, 16:24 by toq...@outlook.com: >> 29 Jan 2022, 13:34 by toqsxw at outlook.com: >> >>> Ping. >>> From: Wu, Jianhua Sent: 2022年1月21日 19:42 To: ffmpeg-devel at ffmpeg.org Cc: Wu, Jianhua

Re: [FFmpeg-devel] [PATCH] libavfilter: zscale performance optimization >4x

2022-02-21 Thread Lynne
19 Feb 2022, 14:58 by niva...@gmail.com: > By ffmpeg threading support implementation via frame slicing and doing > zimg_filter_graph_build that used to take 30-60% of each frame processig > only if necessary (some parameters changed) > the performance increase vs original version > in video downs

[FFmpeg-devel] [PATCH v3] avformat/nutdec: Add check for avformat_new_stream

2022-02-21 Thread Jiasheng Jiang
As the potential failure of the memory allocation, the avformat_new_stream() could return NULL pointer. Therefore, it should be better to check it and return error if fails. Also, the caller, nut_read_header(), needs to deal with the return value of the decode_main_header() and return error if memo

Re: [FFmpeg-devel] [PATCH v2] avformat/nutdec: Add check for avformat_new_stream

2022-02-21 Thread Jiasheng Jiang
Michael Niedermayer: >> diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c >> index 0a8a700acf..4cbccb20d9 100644 >> --- a/libavformat/nutdec.c >> +++ b/libavformat/nutdec.c >> @@ -220,6 +220,10 @@ static int decode_main_header(NUTContext *nut) >> } >> >> GET_V(nut->time_base_coun

Re: [FFmpeg-devel] [PATCH] avfilter/framepool: fix alignment requirements for audio and video filters

2022-02-21 Thread James Almer
On 2/21/2022 3:14 PM, Paul B Mahol wrote: On Mon, Feb 21, 2022 at 6:57 PM James Almer wrote: On 2/21/2022 9:27 AM, Paul B Mahol wrote: Signed-off-by: Paul B Mahol --- libavfilter/audio.c | 11 +-- libavfilter/framepool.c | 18 -- libavfilter/video.c

Re: [FFmpeg-devel] Too many project ideas in GSOC 2022 FFmpeg

2022-02-21 Thread Michael Niedermayer
On Mon, Feb 21, 2022 at 08:59:16AM -0800, Pierre-Anthony Lemieux wrote: > Hi Michael, > > What is the typical size of a successful GSOC project? Any good > example(s) from the past? for past Results see: (and replace teh year by other years) https://trac.ffmpeg.org/wiki/SponsoringPrograms/GSoC/20

Re: [FFmpeg-devel] Playback issue on Sony TVs caused by btrt box

2022-02-21 Thread Jan Ekström
On Mon, Feb 21, 2022 at 5:07 PM Eran Kornblau wrote: > > Hi all, > > We've recently upgraded our ffmpeg version, and we got a playback issue on > some Sony TV models that are playing HBBTV/DASH+DRM - video plays fine, audio > doesn't play at all. > Listing here some of the affected models (not p

Re: [FFmpeg-devel] [PATCH] avfilter/framepool: fix alignment requirements for audio and video filters

2022-02-21 Thread Paul B Mahol
On Mon, Feb 21, 2022 at 6:57 PM James Almer wrote: > > > On 2/21/2022 9:27 AM, Paul B Mahol wrote: > > Signed-off-by: Paul B Mahol > > --- > > libavfilter/audio.c | 11 +-- > > libavfilter/framepool.c | 18 -- > > libavfilter/video.c | 11 +-- > > 3 f

Re: [FFmpeg-devel] [PATCH] avfilter/framepool: fix alignment requirements for audio and video filters

2022-02-21 Thread James Almer
On 2/21/2022 9:27 AM, Paul B Mahol wrote: Signed-off-by: Paul B Mahol --- libavfilter/audio.c | 11 +-- libavfilter/framepool.c | 18 -- libavfilter/video.c | 11 +-- 3 files changed, 18 insertions(+), 22 deletions(-) diff --git a/libavfilter/audi

Re: [FFmpeg-devel] Too many project ideas in GSOC 2022 FFmpeg

2022-02-21 Thread Pierre-Anthony Lemieux
Hi Michael, What is the typical size of a successful GSOC project? Any good example(s) from the past? Best, -- Pierre On Mon, Feb 21, 2022 at 4:12 AM Michael Niedermayer wrote: > > Hi all > > We have 0 project ideas on our gsoc 2022 page > well we have 2 now as i copied my two from last year >

Re: [FFmpeg-devel] [PATCH 4/6] ffmpeg: don't skip packets before a keyframe was seen if a bsf with delay is used

2022-02-21 Thread Anton Khirnov
Quoting James Almer (2022-02-15 13:12:51) > On 2/15/2022 9:03 AM, Anton Khirnov wrote: > > Quoting James Almer (2022-02-15 12:48:09) > >> > >> > >> On 2/15/2022 8:41 AM, Anton Khirnov wrote: > >>> Quoting James Almer (2022-02-14 23:41:54) > A keyframe could be buffered in the bsf and not be ou

Re: [FFmpeg-devel] [PATCH] libavfilter: zscale performance optimization >4x

2022-02-21 Thread Victoria Zhislina
Hi, Anton. Thanks for your input. But the patch does the single thing described in the commit message - improves performance >4 :) Sorry. This patch creation is based on real experience and on real measurement. Please notice I don't write ">40x" so it is not an advertisement :). Right you are,

Re: [FFmpeg-devel] [PATCH v2 1/5] avutil: [loongarch] Update loongson_intrinsics.h to v1.1.0

2022-02-21 Thread Michael Niedermayer
On Thu, Feb 17, 2022 at 07:11:47PM +0800, Hao Chen wrote: > The loongson_intrinsics.h file is updated from v1.0.3 version > to v1.1.0. Some spelling mistakes are fixed and new functions are added. > > Signed-off-by: Hao Chen > --- > libavutil/loongarch/loongson_intrinsics.h | 1697 +++---

Re: [FFmpeg-devel] [PATCH 195/281] audiotoolbox: convert to new channel layout API

2022-02-21 Thread Anton Khirnov
Quoting James Almer (2022-01-13 03:02:28) > From: Anton Khirnov > > Signed-off-by: James Almer > --- > libavcodec/audiotoolboxdec.c | 27 +- > libavcodec/audiotoolboxenc.c | 95 > 2 files changed, 57 insertions(+), 65 deletions(-) > > diff --git a/l

Re: [FFmpeg-devel] [PATCH] lavfi/vf_libplacebo: support custom .cube LUTs

2022-02-21 Thread Niklas Haas
On Mon, 21 Feb 2022 12:38:54 +0100 Anton Khirnov wrote: > Quoting Niklas Haas (2022-02-21 12:36:23) > > On Mon, 21 Feb 2022 12:33:19 +0100 Anton Khirnov wrote: > > > Non-overridable IO in random places is evil. > > > > Can you recommend a better way of accomplishing this? > > How large are thes

Re: [FFmpeg-devel] [PATCH v7 1/1] avformat: Add IPFS protocol support.

2022-02-21 Thread Tomas Härdin
tor 2022-02-17 klockan 15:26 +0100 skrev Mark Gaiser: > > > > > + > > > +    // Test $IPFS_GATEWAY. > > > +    if (getenv("IPFS_GATEWAY") != NULL) { > > > +    if (snprintf(c->gateway_buffer, sizeof(c- > > > >gateway_buffer), > > > "%s", > > > + getenv("IPFS_GATEWAY")) >= s

[FFmpeg-devel] [PATCH] avfilter/framepool: fix alignment requirements for audio and video filters

2022-02-21 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavfilter/audio.c | 11 +-- libavfilter/framepool.c | 18 -- libavfilter/video.c | 11 +-- 3 files changed, 18 insertions(+), 22 deletions(-) diff --git a/libavfilter/audio.c b/libavfilter/audio.c index cebc9709dd..a040822

[FFmpeg-devel] Too many project ideas in GSOC 2022 FFmpeg

2022-02-21 Thread Michael Niedermayer
Hi all We have 0 project ideas on our gsoc 2022 page well we have 2 now as i copied my two from last year If you have an idea, please add it! If you had one in 2021 or prior which was not finished and the project still makes sense, please copy it to the 2022 page https://trac.ffmpeg.org/wiki/Spon

Re: [FFmpeg-devel] [PATCH] avfilter/framepool: fix alignment requirements for audio and video filters

2022-02-21 Thread James Almer
On 2/21/2022 8:33 AM, Paul B Mahol wrote: On Mon, Feb 21, 2022 at 2:54 AM James Almer wrote: On 2/20/2022 7:02 PM, Paul B Mahol wrote: Signed-off-by: Paul B Mahol --- libavfilter/audio.c | 11 +-- libavfilter/framepool.c | 16 ++-- libavfilter/video.c

Re: [FFmpeg-devel] [PATCH v2 1/4] lavc/vaapi_encode_h265: Add P frame to GPB frame support for hevc_vaapi

2022-02-21 Thread Mark Thompson
On 21/02/2022 02:13, Fei Wang wrote: From: Linjie Fu Use GPB frames to replace regular P frames if backend driver does not support it. - GPB: Generalized P and B picture. P frames replaced by B frames with forward-predict only, L0 == L1. Normal B frames still have 2 different re

Re: [FFmpeg-devel] M1 Patchwork CI runner

2022-02-21 Thread Michael Niedermayer
On Sun, Feb 20, 2022 at 05:19:41PM -0500, Andriy Gelman wrote: > Hello, > > I understand we have some spare M1 minis for ffmpeg resources. > Do we want to set up a Patchwork CI runner on M1 hardware? i think thats a good idea thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF1

Re: [FFmpeg-devel] [PATCH] lavfi/vf_libplacebo: support custom .cube LUTs

2022-02-21 Thread Anton Khirnov
Quoting Niklas Haas (2022-02-21 12:36:23) > On Mon, 21 Feb 2022 12:33:19 +0100 Anton Khirnov wrote: > > Non-overridable IO in random places is evil. > > Can you recommend a better way of accomplishing this? How large are these? Can they be set directly as binary AVOptions? We could invent syntax

Re: [FFmpeg-devel] [PATCH] lavfi/vf_libplacebo: support custom .cube LUTs

2022-02-21 Thread Niklas Haas
On Mon, 21 Feb 2022 12:33:19 +0100 Anton Khirnov wrote: > Non-overridable IO in random places is evil. Can you recommend a better way of accomplishing this? ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg

Re: [FFmpeg-devel] [PATCH] avfilter/framepool: fix alignment requirements for audio and video filters

2022-02-21 Thread Paul B Mahol
On Mon, Feb 21, 2022 at 12:08 PM Anton Khirnov wrote: > Quoting Paul B Mahol (2022-02-20 19:07:47) > > diff --git a/libavfilter/framepool.c b/libavfilter/framepool.c > > index aab408d355..aaf1642b4f 100644 > > --- a/libavfilter/framepool.c > > +++ b/libavfilter/framepool.c > > @@ -76,15 +76,13 @@

Re: [FFmpeg-devel] [PATCH] lavfi/vf_libplacebo: support custom .cube LUTs

2022-02-21 Thread Anton Khirnov
Quoting Niklas Haas (2022-02-17 19:03:19) > From: Niklas Haas > > Option boilerplate. Very soon we shall definitely need to add some sort > of generic forward-proof option parsing mechanism to libplacebo.. > --- > libavfilter/vf_libplacebo.c | 78 + > 1 file c

Re: [FFmpeg-devel] [PATCH v8 1/1] avformat: Add IPFS protocol support.

2022-02-21 Thread Mark Gaiser
On Thu, Feb 17, 2022 at 3:57 PM Mark Gaiser wrote: > On Thu, Feb 17, 2022 at 3:50 PM Mark Gaiser wrote: > >> This patch adds support for: >> - ffplay ipfs:// >> - ffplay ipns:// >> >> IPFS data can be played from so called "ipfs gateways". >> A gateway is essentially a webserver that gives acces

Re: [FFmpeg-devel] [PATCH] avfilter/framepool: fix alignment requirements for audio and video filters

2022-02-21 Thread Paul B Mahol
On Mon, Feb 21, 2022 at 2:54 AM James Almer wrote: > > > On 2/20/2022 7:02 PM, Paul B Mahol wrote: > > Signed-off-by: Paul B Mahol > > --- > > libavfilter/audio.c | 11 +-- > > libavfilter/framepool.c | 16 ++-- > > libavfilter/video.c | 11 +-- > > 3 fil

[FFmpeg-devel] [PATCH] avformat/mov: stop ignoring subtitle packets durations

2022-02-21 Thread Paul B Mahol
Fixes #7855 Signed-off-by: Paul B Mahol --- libavformat/mov.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index 5e26267810..d980996086 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -4359,7 +4359,8 @@ static int mov_

Re: [FFmpeg-devel] [PATCH] libavfilter: zscale performance optimization >4x

2022-02-21 Thread Anton Khirnov
> libavfilter: zscale performance optimization >4x This reads like an advertisement rather than a useful description. It should say what the patch does, performance improvement numbers should be mentioned in the commit message body. Quoting Victoria Zhislina (2022-02-21 09:20:55) > By ffmpeg thre

Re: [FFmpeg-devel] [PATCH] avfilter/framepool: fix alignment requirements for audio and video filters

2022-02-21 Thread Anton Khirnov
Quoting Paul B Mahol (2022-02-20 19:07:47) > diff --git a/libavfilter/framepool.c b/libavfilter/framepool.c > index aab408d355..aaf1642b4f 100644 > --- a/libavfilter/framepool.c > +++ b/libavfilter/framepool.c > @@ -76,15 +76,13 @@ FFFramePool *ff_frame_pool_video_init(AVBufferRef* > (*alloc)(size

Re: [FFmpeg-devel] [PATCH v2 7/7] avformat/concat: refactor to use av_rescale_interval()

2022-02-21 Thread Nicolas George
p...@sandflow.com (12022-02-20): > From: Pierre-Anthony Lemieux > > --- > libavformat/concatdec.c | 19 +-- > 1 file changed, 5 insertions(+), 14 deletions(-) LGTM. Regards, -- Nicolas George signature.asc Description: PGP signature ___

[FFmpeg-devel] [PATCH v2] libavcodec/qsvenc: add mbbrc to hevc_qsv

2022-02-21 Thread Wenbin Chen
Add mbbrc to hevc_qsv For detailed description, please see "mbbrc" part in: https://github.com/Intel-Media-SDK/MediaSDK/blob/master/doc/mediasdk-man.md#mfxextcodingoption2 Signed-off-by: Wenbin Chen --- doc/encoders.texi | 5 + libavcodec/qsvenc.c | 5 +++-- 2 files changed, 8 insertions(+

[FFmpeg-devel] [PATCH] libavfilter: zscale performance optimization >4x

2022-02-21 Thread Victoria Zhislina
By ffmpeg threading support implementation via frame slicing and doing zimg_filter_graph_build that used to take 30-60% of each frame processig only if necessary (some parameters changed) the performance increase vs original version in video downscale and color conversion >4x is seen on 64 cores I