[FFmpeg-devel] Please provide the FFMPEG public key (GPG/PGP)

2021-02-22 Thread Michael Witten
Please send to this mailing list an email that embeds the PGP/GPG public key used to sign files provided by the FFMPEG project. Please also include on your website a link to download your public key, and place it in a prominent place, perhaps alongside the various download links. Thanks!

Re: [FFmpeg-devel] [PATCH 0/4] avcodec Loongson-2 MMI fixes

2021-02-22 Thread 殷时友
> 2021年2月19日 下午1:28,Jiaxun Yang 写道: > > Get MMI optimizations build for Loongson-2 again. > Tested on Loongson-2 and Loongson-3A. > > Jiaxun Yang (4): > avutil/mips: Use MMI_{L,S}QC1 macro in {SAVE,RECOVER}_REG > avutil/mips: Extract load store with shift C1 pair marco > avcodec/mips: Use

[FFmpeg-devel] [PATCH] lavc/videotoolboxenc: Add support for HEVC with Alpha.

2021-02-22 Thread bouno
From: Hironori Bono This change supports the "HEVC Video with Alpha" profile introduced in WWDC 2019 . (This change is a partial fix for Ticket #7965.) For example, the following command converts an animation PNG file to an HEVC with Alpha

[FFmpeg-devel] [PATCH 4/4] avcodec/xpm: Minor speed increase for mod_strcspn() use string pointer

2021-02-22 Thread Jose Da Silva
Incrementing pointer *ps once is faster than computing string[i] for each time we need it. Bug fix: For the remote possibility of a crazy-long comment section that overflows int, this fix can also return a value larger than sizeof(int). Signed-off-by: Jose Da Silva --- libavcodec/xpmdec.c | 27

[FFmpeg-devel] [PATCH 2/4] avcodec/xpm: Minor speed increase for mod_strcspn() {string, reject}==0

2021-02-22 Thread Jose Da Silva
Test string==0 once before looping. Avoid testing inside the loop. Test reject==0 once before looping. Avoid testing inside the loop. Signed-off-by: Jose Da Silva --- libavcodec/xpmdec.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/libavcodec/xpmdec.c

[FFmpeg-devel] [PATCH 1/4] avcodec/xpm: Minor speed increase to function hex_char_to_number()

2021-02-22 Thread Jose Da Silva
Search for 0 to 9 first as this is 10/16th of possible choices we want, then search for lowercase 6/16th, or uppercase 6/16th possible choices. This gives us a minor speed increase similar to xbmdec.c nibble search. Some modern compilers complain if using "unsigned" without using "int".

[FFmpeg-devel] [PATCH 3/4] avcodec/xpm: Minor speed increase for mod_strcspn() use reject pointer

2021-02-22 Thread Jose Da Silva
Incrementing pointer *pr once is faster than computing reject[j] for each time we need it. Signed-off-by: Jose Da Silva --- libavcodec/xpmdec.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/libavcodec/xpmdec.c b/libavcodec/xpmdec.c index 92a568041c..be5277e637

[FFmpeg-devel] [PATCH] Matroid patch: add support for writing additional metadata to filename

2021-02-22 Thread tak
From: tak-matroid * Support micro seconds for image2 strftime filename * Support micro seconds for segment strftime filename * Support duration for segment output * Allow split on keyframe with NOPTS * Add EXT-X-PROGRAM-DATE-TIME parsing to hls.c * Add global timestamp (gts) metatdata to

Re: [FFmpeg-devel] [RFC][PATCH] libavformat: add librist protocol

2021-02-22 Thread Paul B Mahol
On Mon, Feb 22, 2021 at 11:02 PM Marton Balint wrote: > > > On Mon, 22 Feb 2021, Paul B Mahol wrote: > > > On Mon, Feb 22, 2021 at 8:27 PM Marton Balint wrote: > > > >> > >> > >> On Mon, 22 Feb 2021, Paul B Mahol wrote: > >> > >> > On Mon, Feb 22, 2021 at 9:10 AM Gijs Peskens > wrote: > >> > >

Re: [FFmpeg-devel] [PATCH] avutils/hwcontext_qsv: set the source device in qsv_device_create

2021-02-22 Thread Guangxin Xu
On Mon, Feb 22, 2021 at 5:17 PM Soft Works wrote: > > > > -Original Message- > > From: ffmpeg-devel On Behalf Of Xu > > Guangxin > > Sent: Monday, February 22, 2021 9:45 AM > > To: ffmpeg-devel@ffmpeg.org > > Cc: Xu Guangxin > > Subject: [FFmpeg-devel] [PATCH] avutils/hwcontext_qsv:

Re: [FFmpeg-devel] [PATCH V3 2/3] libavfilter/buffersink.c: unref private_ref when frame leaves libavfilter

2021-02-22 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of Nicolas > George > Sent: 2021年2月23日 0:05 > To: FFmpeg development discussions and patches > Cc: Guo, Yejun > Subject: Re: [FFmpeg-devel] [PATCH V3 2/3] libavfilter/buffersink.c: unref > private_ref when frame leaves libavfilter >

[FFmpeg-devel] [PATCH v1 1/1] Matroid patch: add support for writing additional metadata to filename

2021-02-22 Thread tak-matroid
* Support micro seconds for image2 strftime filename * Support micro seconds for segment strftime filename * Support duration for segment output * Allow split on keyframe with NOPTS * Add EXT-X-PROGRAM-DATE-TIME parsing to hls.c * Add global timestamp (gts) metatdata to AVPacket and AVFrame *

Re: [FFmpeg-devel] Constant quality for videotoolboxenc on M1

2021-02-22 Thread Richard Kern
> On Feb 22, 2021, at 6:13 PM, Nomis101 wrote: > > Hi, > > back in January it was asked if it would be possible to add constant quality > encoding for videotoolbox on macOS to FFmpeg. Later, somebody provided a > patch. > http://ffmpeg.org/pipermail/ffmpeg-devel/2021-January/274989.html >

[FFmpeg-devel] Constant quality for videotoolboxenc on M1

2021-02-22 Thread Nomis101
Hi, back in January it was asked if it would be possible to add constant quality encoding for videotoolbox on macOS to FFmpeg. Later, somebody provided a patch. http://ffmpeg.org/pipermail/ffmpeg-devel/2021-January/274989.html Would it be possible for somebody to take a look into this? Not

Re: [FFmpeg-devel] [PATCH v2] avcodec: add a get_encoder_buffer() callback to AVCodecContext

2021-02-22 Thread James Almer
On 2/21/2021 6:04 PM, James Almer wrote: On 2/21/2021 5:29 PM, Mark Thompson wrote: On 21/02/2021 20:00, James Almer wrote: On 2/21/2021 4:13 PM, Mark Thompson wrote: On 21/02/2021 17:35, James Almer wrote: This callback is functionally the same as get_buffer2() is for decoders, and

Re: [FFmpeg-devel] [RFC][PATCH] libavformat: add librist protocol

2021-02-22 Thread Marton Balint
On Mon, 22 Feb 2021, Paul B Mahol wrote: On Mon, Feb 22, 2021 at 8:27 PM Marton Balint wrote: On Mon, 22 Feb 2021, Paul B Mahol wrote: > On Mon, Feb 22, 2021 at 9:10 AM Gijs Peskens wrote: > >> Hi, some feedback from one of the libRIST developers: >> >> Testing this patch (via diff

Re: [FFmpeg-devel] [RFC][PATCH] libavformat: add librist protocol

2021-02-22 Thread Paul B Mahol
On Mon, Feb 22, 2021 at 8:27 PM Marton Balint wrote: > > > On Mon, 22 Feb 2021, Paul B Mahol wrote: > > > On Mon, Feb 22, 2021 at 9:10 AM Gijs Peskens wrote: > > > >> Hi, some feedback from one of the libRIST developers: > >> > >> Testing this patch (via diff found > >> on: > >> >

Re: [FFmpeg-devel] [RFC][PATCH] libavformat: add librist protocol

2021-02-22 Thread Marton Balint
On Mon, 22 Feb 2021, Paul B Mahol wrote: On Mon, Feb 22, 2021 at 9:10 AM Gijs Peskens wrote: Hi, some feedback from one of the libRIST developers: Testing this patch (via diff found on: https://patchwork.ffmpeg.org/project/ffmpeg/patch/20210126205145.20448-1-one...@gmail.com/ ) I've

Re: [FFmpeg-devel] [RFC][PATCH] libavformat: add librist protocol

2021-02-22 Thread Marton Balint
On Mon, 22 Feb 2021, Gijs Peskens wrote: Thanks for your swift reply! (and for your work on the patch, which I believe I forgot to thank you for) On 22-02-2021 09:17, Paul B Mahol wrote: On Mon, Feb 22, 2021 at 9:10 AM Gijs Peskens wrote: Hi, some feedback from one of the libRIST

Re: [FFmpeg-devel] [PATCH] set ulMaxDisplayDelay cuvidec parser option to zero if low_delay flag is on

2021-02-22 Thread clime
I've sent the fixed version: https://patchwork.ffmpeg.org/project/ffmpeg/patch/20210222180546.136572-1-cli...@gmail.com/ Best Regards Michal Novotny On Sat, 20 Feb 2021 at 00:58, clime wrote: > > On Sat, 20 Feb 2021 at 00:38, clime wrote: > > > > On Sat, 20 Feb 2021 at 00:29, Timo Rothenpieler

[FFmpeg-devel] [PATCH] set ulMaxDisplayDelay cuviddec parser option to zero if low_delay flag is on

2021-02-22 Thread clime
From: Michal Novotny * zero is recommended value in Nvidia coding samples for low latency use-cases Signed-off-by: Michal Novotny --- libavcodec/cuviddec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/cuviddec.c b/libavcodec/cuviddec.c index

[FFmpeg-devel] [PATCH] avformat/gopher: Add support for Gopher over TLS.

2021-02-22 Thread parazyd
This commit adds a "gophers" handler to the gopher protocol. gophers is a community-adopted protocol that acts the same way like normal gopher with the added TLS encapsulation. The gophers protocol is supported by gopher servers like geomyidae(8), and clients like curl(1), clic(1), and hurl(1).

Re: [FFmpeg-devel] [PATCH 1/3] avcodec/mjpegdec: Cleanup ff_smvjpeg_decoder()

2021-02-22 Thread Michael Niedermayer
On Thu, Feb 04, 2021 at 12:10:38PM +0100, Anton Khirnov wrote: > Quoting Michael Niedermayer (2020-12-20 22:15:22) > > Fixes: memleaks > > Fixes: > > 28533/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SMVJPEG_fuzzer-6242529653686272 > > > > Found-by: continuous fuzzing process > >

Re: [FFmpeg-devel] [PATCH] avcodec/dxtory: Fix undefined shift with negative linesize

2021-02-22 Thread Paul B Mahol
lgtm ___ 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] x11grab: capture a window instead of the whole screen

2021-02-22 Thread sgerwk-at-aol . com
Hi, On Sun, 21 Feb 2021, Andriy Gelman wrote: Hi, Thanks for updating the patch. Sorry for the delay in getting you some feedback.. When I tested with -show_mouse 1 -show_region 1 -window_id xx, the mouse and border get drawn in the wrong place. There is around (0.6cm error). Can you

Re: [FFmpeg-devel] [PATCH 5/8] avcodec/cri: Stop the bitreader at the end of uncompressed input

2021-02-22 Thread Michael Niedermayer
On Mon, Feb 01, 2021 at 11:31:13PM +0100, Michael Niedermayer wrote: > Fixes: Timeout > Fixes: > 29983/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CRI_fuzzer-6420415838814208 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg >

[FFmpeg-devel] [PATCH] avcodec/dxtory: Fix undefined shift with negative linesize

2021-02-22 Thread Michael Niedermayer
Fixes: left shift of negative value -128 Fixes: 30746/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DXTORY_fuzzer-5906271469436928 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/dxtory.c

Re: [FFmpeg-devel] [PATCH 2/2] configure: Use no-narrowing for cuda_llvm compilation.

2021-02-22 Thread Timo Rothenpieler
Both your patches are mangled and do not apply. Please use git send-email to send raw patches, or attach them as a file. I manually applied them now, but in the future please make sure your patches don't get mangled. smime.p7s Description: S/MIME Cryptographic Signature

Re: [FFmpeg-devel] [PATCH V3 2/3] libavfilter/buffersink.c: unref private_ref when frame leaves libavfilter

2021-02-22 Thread Nicolas George
Guo, Yejun (12021-02-22): > --- > libavfilter/buffersink.c | 1 + > 1 file changed, 1 insertion(+) This does not seem correct: the ref count is not raised by buffersink, it probably should not lower it. What circumstances are you trying to fix exactly? Regards, -- Nicolas George

Re: [FFmpeg-devel] [PATCH] avcodec/nvenc: Fixing default number of B frames

2021-02-22 Thread Timo Rothenpieler
On 22.02.2021 12:20, Ricardo Monteiro wrote: Hi Timo, Thank you for your reply! The main intention of this patch is to allow FFmpeg to respect the presets that are available. Without this patch if for example one of our users wants to use preset p5 for example, FFmpeg will not allow it to

Re: [FFmpeg-devel] [PATCH v5 0/4] Initial implementation of TTML encoding/muxing

2021-02-22 Thread Jan Ekström
On Mon, Feb 22, 2021 at 3:19 PM Jan Ekström wrote: > > I've intentionally kept this initial version simple (no styling etc) to focus > on the basics. As this goes through review, additional features can be added > (I had initial PoC for styling implemented some time around previous VDD), and >

Re: [FFmpeg-devel] [PATCH 4/4] avcodec/x86: add cfhdenc SIMD

2021-02-22 Thread James Almer
On 2/18/2021 8:02 PM, Paul B Mahol wrote: Signed-off-by: Paul B Mahol --- libavcodec/cfhdencdsp.c | 3 + libavcodec/x86/Makefile | 2 + libavcodec/x86/cfhdencdsp.asm| 426 +++ libavcodec/x86/cfhdencdsp_init.c | 46 4 files

[FFmpeg-devel] [PATCH v5 1/4] avutil/{avstring, bprint}: add XML escaping from ffprobe to avutil

2021-02-22 Thread Jan Ekström
From: Stefano Sabatini Base escaping only escapes values required for base character data according to part 2.4 of XML, and if additional flags are added single and double quotes can additionally be escaped in order to handle single and double quoted attributes. --- libavutil/avstring.h | 14

[FFmpeg-devel] [PATCH v5 4/4] {avcodec, avformat}: add TTML encoder and muxer

2021-02-22 Thread Jan Ekström
From: Jan Ekström Enables encoding of other subtitle formats into TTML and writing them out as such documents. Signed-off-by: Jan Ekström --- Changelog | 1 + doc/general_contents.texi | 1 + libavcodec/Makefile| 1 + libavcodec/allcodecs.c | 1 +

[FFmpeg-devel] [PATCH v5 2/4] ffprobe: switch to av_bprint_escape for XML escaping

2021-02-22 Thread Jan Ekström
From: Jan Ekström Additionally update the result of the ffprobe XML writing test. Signed-off-by: Jan Ekström --- fftools/ffprobe.c | 32 +++- tests/ref/fate/ffprobe_xml | 2 +- 2 files changed, 12 insertions(+), 22 deletions(-) diff --git

[FFmpeg-devel] [PATCH v5 0/4] Initial implementation of TTML encoding/muxing

2021-02-22 Thread Jan Ekström
I've intentionally kept this initial version simple (no styling etc) to focus on the basics. As this goes through review, additional features can be added (I had initial PoC for styling implemented some time around previous VDD), and there is another patch set in my queue which would then add

[FFmpeg-devel] [PATCH v5 3/4] avcodec: enable usage of AV_EF_EXPLODE for subtitle encoders

2021-02-22 Thread Jan Ekström
From: Jan Ekström As currently it is the responsibility of the following subtitle encoder to validate the correctness of the incoming ASS dialog line. Signed-off-by: Jan Ekström --- libavcodec/avcodec.h | 5 - libavcodec/options_table.h | 4 ++-- libavcodec/version.h | 2 +- 3

Re: [FFmpeg-devel] [PATCH 06/50] avcodec/mpegvideo_enc: use av_packet_alloc() to allocate packets

2021-02-22 Thread Anton Khirnov
Quoting Andreas Rheinhardt (2021-02-08 15:50:48) > James Almer: > > On 2/8/2021 11:46 AM, Andreas Rheinhardt wrote: > >> James Almer: > >>> Signed-off-by: James Almer > >>> --- > >>>   libavcodec/mpegvideo_enc.c | 23 +-- > >>>   1 file changed, 13 insertions(+), 10

[FFmpeg-devel] [PATCH 3/3] avformat/concat: Remove unnecessary check

2021-02-22 Thread Andreas Rheinhardt
This code was written when the allocation functions used parameters of type unsigned. This is no longer true today and therefore we only need to check whether the multiplication of the array's size stays within a size_t -- and this can be offloaded to av_realloc_array. Signed-off-by: Andreas

[FFmpeg-devel] [PATCH 2/3] avformat/spdifenc: Fix leak upon error

2021-02-22 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavformat/spdifenc.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libavformat/spdifenc.c b/libavformat/spdifenc.c index 0288872fd3..c3ba3a1a19 100644 --- a/libavformat/spdifenc.c +++ b/libavformat/spdifenc.c @@ -122,14 +122,16

[FFmpeg-devel] [PATCH 1/3] avformat/wavenc: Fix leak and segfault on reallocation error

2021-02-22 Thread Andreas Rheinhardt
Up until now, the wav muxer used a reallocation of the form ptr = av_realloc(ptr, size); that leaks upon error. Furthermore, if a failed reallocation happened when writing the trailer, a segfault would occur due to avio_write(NULL, size) because the muxer only prints an error message upon

Re: [FFmpeg-devel] [PATCH] avutils/hwcontext_qsv: set the source device in qsv_device_create

2021-02-22 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Xu > Guangxin > Sent: Monday, February 22, 2021 9:45 AM > To: ffmpeg-devel@ffmpeg.org > Cc: Xu Guangxin > Subject: [FFmpeg-devel] [PATCH] avutils/hwcontext_qsv: set the source > device in qsv_device_create > > opencl_device_derive

Re: [FFmpeg-devel] [RFC][PATCH] libavformat: add librist protocol

2021-02-22 Thread Gijs Peskens
Thanks for your swift reply! (and for your work on the patch, which I believe I forgot to thank you for) On 22-02-2021 09:17, Paul B Mahol wrote: On Mon, Feb 22, 2021 at 9:10 AM Gijs Peskens wrote: Hi, some feedback from one of the libRIST developers: Testing this patch (via diff found on:

[FFmpeg-devel] [PATCH] avutils/hwcontext_qsv: set the source device in qsv_device_create

2021-02-22 Thread Xu Guangxin
opencl_device_derive only handles AV_HWDEVICE_TYPE_VAAPI. We need a source device for qsv. this will fix following pipeline: ffmpeg -init_hw_device vaapi=intel:/dev/dri/renderD128 -init_hw_device opencl=ocl@intel -hwaccel qsv -c:v h264_qsv -hwaccel_output_format qsv -i $input -filter_hw_device

Re: [FFmpeg-devel] [RFC][PATCH] libavformat: add librist protocol

2021-02-22 Thread Paul B Mahol
On Mon, Feb 22, 2021 at 9:10 AM Gijs Peskens wrote: > Hi, some feedback from one of the libRIST developers: > > Testing this patch (via diff found > on: > https://patchwork.ffmpeg.org/project/ffmpeg/patch/20210126205145.20448-1-one...@gmail.com/ > ) I've noticed FFmpeg is not reading fast enough

Re: [FFmpeg-devel] [RFC][PATCH] libavformat: add librist protocol

2021-02-22 Thread Gijs Peskens
Hi, some feedback from one of the libRIST developers: Testing this patch (via diff found on:https://patchwork.ffmpeg.org/project/ffmpeg/patch/20210126205145.20448-1-one...@gmail.com/ ) I've noticed FFmpeg is not reading fast enough from the libRIST FIFO buffer (which is limited to 1024