Re: [FFmpeg-devel] [PATCH v2] lavfi/drawtext: Add localtime_ms for millisecond precision

2022-01-18 Thread zhilizhao(赵志立)
> On Jan 18, 2022, at 8:52 PM, Thilo Borgmann wrote: > > Am 16.01.22 um 12:06 schrieb Nicolas George: >> Thilo Borgman (12022-01-14): >>> v6 does: >>> >>> $> ffmpeg ... drawtext="fontfile=...:text='%{localtime \:%a %b %d %Y >>> %S}'" (seconds) >>> $> ffmpeg ...

Re: [FFmpeg-devel] [PATCH 27/31] fate/matroska: Add test for avoiding negative timestamps

2022-01-18 Thread Andreas Rheinhardt
Andreas Rheinhardt: > This tests the issue from tickets #4536, #5784; > the output of this test is currently broken. > > Signed-off-by: Andreas Rheinhardt > --- > tests/fate/matroska.mak | 15 +++ > tests/ref/fate/matroska-avoid-negative-ts | 55 +++ >

[FFmpeg-devel] [PATCH 30/31] avformat/mux: Peek into the muxing queue for avoid_negative_ts

2022-01-18 Thread Andreas Rheinhardt
Peeking into the muxing queue can improve the estimate of the lowest timestamp needed for avoid_negative_ts in case the lowest timestamp is in a packet other than the first packet to be muxed. This fixes tickets #4536 and #5784 as well as the output from the matroska-avoid-negative-ts FATE-test.

[FFmpeg-devel] [PATCH 31/31] avformat/hls: Remove redundant cast

2022-01-18 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavformat/hls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/hls.c b/libavformat/hls.c index 8c526f748f..4568e72cb2 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -2024,7 +2024,7 @@ static int

[FFmpeg-devel] [PATCH 29/31] avformat/mux: Preserve sync even if later packet has negative ts

2022-01-18 Thread Andreas Rheinhardt
write_packet() has code to shift the packets timestamps to make them nonnegative or even make them start at ts zero; this code inspects every packet that is written and if a packet with negative timestamp (whether this is dts or pts depends upon another flag; basically: Matroska uses pts, everyone

[FFmpeg-devel] [PATCH 28/31] avformat/avformat: Add AVFMT_AVOID_NEG_TS_DISABLED

2022-01-18 Thread Andreas Rheinhardt
And also don't use explicit constants in the movenc test. Signed-off-by: Andreas Rheinhardt --- Missing version bump and APIchanges entry. libavformat/avformat.h | 1 + libavformat/mux.c | 2 +- libavformat/options_table.h | 2 +- libavformat/tests/movenc.c | 4 ++--

[FFmpeg-devel] [PATCH 27/31] fate/matroska: Add test for avoiding negative timestamps

2022-01-18 Thread Andreas Rheinhardt
This tests the issue from tickets #4536, #5784; the output of this test is currently broken. Signed-off-by: Andreas Rheinhardt --- tests/fate/matroska.mak | 15 +++ tests/ref/fate/matroska-avoid-negative-ts | 55 +++ 2 files changed, 70 insertions(+)

[FFmpeg-devel] [PATCH 26/31] avformat/mux: Remove assert based on faulty assumptions

2022-01-18 Thread Andreas Rheinhardt
This assert is based upon the wrong assumption that the noninterleaved codepath is never used; if it is used, max_interleave_delta is irrelevant. It furthermore ignores audio_preload. Signed-off-by: Andreas Rheinhardt --- libavformat/mux.c | 1 - 1 file changed, 1 deletion(-) diff --git

Re: [FFmpeg-devel] [PATCH] libavutil: include assembly with full path from source root

2022-01-18 Thread Alexander Kanavin
o.io/pub/repro-fail/oe-reproducible-20220118-y69m0ean/packages/diff-html/ Alex ___ 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...@f

Re: [FFmpeg-devel] http: honor response headers in redirect caching

2022-01-18 Thread Ronald S. Bultje
Hi, On Mon, Jan 17, 2022 at 7:10 AM Ronald S. Bultje wrote: > Hi, > > On Tue, Jan 11, 2022 at 9:43 AM Eran Kornblau > wrote: > >> Hi all, >> >> Recently I’ve submitted a patch that adds a config option to disable the >> caching of http redirects. >> We planned this as a workaround to the fact

Re: [FFmpeg-devel] [PATCH] libavutil: include assembly with full path from source root

2022-01-18 Thread Lynne
18 Jan 2022, 23:06 by alex.kana...@gmail.com: > From: Alexander Kanavin > > Otherwise nasm writes the full host-specific paths into .o > output, which breaks binary reproducibility. > > Signed-off-by: Alexander Kanavin > --- > libavutil/x86/cpuid.asm | 2 +- > libavutil/x86/emms.asm

[FFmpeg-devel] [PATCH 001/289 v6] Add a new channel layout API

2022-01-18 Thread James Almer
From: Anton Khirnov The new API is more extensible and allows for custom layouts. More accurate information is exported, eg for decoders that do not set a channel layout, lavc will not make one up for them. Deprecate the old API working with just uint64_t bitmasks. Expanded and completed by

[FFmpeg-devel] [PATCH] libavutil: include assembly with full path from source root

2022-01-18 Thread Alexander Kanavin
From: Alexander Kanavin Otherwise nasm writes the full host-specific paths into .o output, which breaks binary reproducibility. Signed-off-by: Alexander Kanavin --- libavutil/x86/cpuid.asm | 2 +- libavutil/x86/emms.asm | 2 +- libavutil/x86/fixed_dsp.asm | 2 +-

Re: [FFmpeg-devel] avfilter/adelay - interactive commands

2022-01-18 Thread Paul B Mahol
On Tue, Jan 18, 2022 at 6:58 PM deiwo deiwo wrote: > Yes, I am aware of that fact. The changes are more proof of concept than > anything else. > What is missing is also proper command parsing, because the numbers can > have suffixes defining their resolution as is in the config_input() >

Re: [FFmpeg-devel] avfilter/adelay - interactive commands

2022-01-18 Thread deiwo deiwo
Yes, I am aware of that fact. The changes are more proof of concept than anything else. What is missing is also proper command parsing, because the numbers can have suffixes defining their resolution as is in the config_input() function, where for each channel a different delay can be specified.

Re: [FFmpeg-devel] avfilter/adelay - interactive commands

2022-01-18 Thread Paul B Mahol
On Tue, Jan 18, 2022 at 6:10 PM deiwo deiwo wrote: > Hi, > I have created a proof of concept. Please check if it makes sense and has a > potential to get merged. > I did not know whether it would make sense to send it as a patch, so for > now a pastebin link: > https://pastebin.com/nAxRj4C9

Re: [FFmpeg-devel] avfilter/adelay - interactive commands

2022-01-18 Thread deiwo deiwo
Hi, I have created a proof of concept. Please check if it makes sense and has a potential to get merged. I did not know whether it would make sense to send it as a patch, so for now a pastebin link: https://pastebin.com/nAxRj4C9 Thanks, David Lacko ut 18. 1. 2022 o 10:09 deiwo deiwo napísal(a):

Re: [FFmpeg-devel] [PATCH v4] avformat/imf: add IMF CPL with repeated resources to FATE

2022-01-18 Thread Pierre-Anthony Lemieux
Just a ping now that 5.0 has been released. -- Pierre On Fri, Jan 7, 2022 at 3:10 PM wrote: > > From: Pierre-Anthony Lemieux > > Signed-off-by: Pierre-Anthony Lemieux > --- > > Notes: > The `fate-imf-cpl-with-repeat` target requires following files (<100 kB) > to placed under

Re: [FFmpeg-devel] [PATCH] avfilter: Added siti filter

2022-01-18 Thread Thilo Borgmann
Am 15.01.22 um 09:27 schrieb Paul B Mahol: > On Sat, Jan 15, 2022 at 9:25 AM Paul B Mahol wrote: > >> >> >> On Fri, Jan 14, 2022 at 5:22 PM Thilo Borgmann >> wrote: >> >>> Hi, >>> >>> Am 19.01.21 um 05:49 schrieb Lynne: Jan 19, 2021, 01:07 by borba...@fb.com: > Calculate Spatial

Re: [FFmpeg-devel] [RFC] Next release and regressions

2022-01-18 Thread Michael Niedermayer
On Tue, Jan 18, 2022 at 12:22:26AM +0100, Marton Balint wrote: > > > On Mon, 17 Jan 2022, Michael Niedermayer wrote: > > > Hi > > > > Trac lists 162 non closed bugs with keyword regression > > https://trac.ffmpeg.org/query?status=new=open=reopened=~regression > > > > Our next major release

[FFmpeg-devel] [GASPP PATCH] Filter out -D parameters from the call to GCC/Clang to assemble

2022-01-18 Thread Martin Storsjö
Clang warns about unused -D parameters when operating on .s files (or if invoked with "-x assembler") while GCC doesn't. --- As noobdy else than me essentially maintains gas-preprocessor, I'll go ahead and push this after a couple days if nobody speaks up. --- gas-preprocessor.pl | 4 1 file

Re: [FFmpeg-devel] [PATCH v2] lavfi/drawtext: Add localtime_ms for millisecond precision

2022-01-18 Thread Thilo Borgmann
Am 16.01.22 um 12:06 schrieb Nicolas George: > Thilo Borgman (12022-01-14): >> v6 does: >> >> $> ffmpeg ... drawtext="fontfile=...:text='%{localtime \:%a %b %d %Y %S}'" >> (seconds) >> $> ffmpeg ... drawtext="fontfile=...:text='%{localtime_ms\:%a %b %d %Y %S}'" >>

Re: [FFmpeg-devel] [PATCH 01/25] avformat/matroskaenc: Fix potential overflow

2022-01-18 Thread Andreas Rheinhardt
Andreas Rheinhardt: > Signed-off-by: Andreas Rheinhardt > --- > libavformat/matroskaenc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c > index 41b2df7dbf..1dde12a7d9 100644 > --- a/libavformat/matroskaenc.c > +++

Re: [FFmpeg-devel] [PATCH 24/28] ffmpeg_mux: drop a useless check and reduce indentation

2022-01-18 Thread Anton Khirnov
Quoting Andreas Rheinhardt (2022-01-18 11:35:13) > And if you swapped the patches it would be only two lines for an > ordinary git show; not because of git show functionality, but because > the patch only touches two lines. And I would have to spend extra time dealing with rebase conflicts. Not

Re: [FFmpeg-devel] [PATCH 24/28] ffmpeg_mux: drop a useless check and reduce indentation

2022-01-18 Thread Andreas Rheinhardt
Anton Khirnov: > Quoting Andreas Rheinhardt (2022-01-18 11:18:24) >> Anton Khirnov: >>> Quoting Andreas Rheinhardt (2022-01-13 11:54:59) Anton Khirnov: > do_video_stats() is only ever called for video. > --- > fftools/ffmpeg_mux.c | 42 --

Re: [FFmpeg-devel] [PATCH 24/28] ffmpeg_mux: drop a useless check and reduce indentation

2022-01-18 Thread Anton Khirnov
Quoting Andreas Rheinhardt (2022-01-18 11:18:24) > Anton Khirnov: > > Quoting Andreas Rheinhardt (2022-01-13 11:54:59) > >> Anton Khirnov: > >>> do_video_stats() is only ever called for video. > >>> --- > >>> fftools/ffmpeg_mux.c | 42 -- > >>> 1 file

Re: [FFmpeg-devel] [PATCH 24/28] ffmpeg_mux: drop a useless check and reduce indentation

2022-01-18 Thread Andreas Rheinhardt
Anton Khirnov: > Quoting Andreas Rheinhardt (2022-01-13 11:54:59) >> Anton Khirnov: >>> do_video_stats() is only ever called for video. >>> --- >>> fftools/ffmpeg_mux.c | 42 -- >>> 1 file changed, 20 insertions(+), 22 deletions(-) >>> >>> diff --git

Re: [FFmpeg-devel] [PATCH 24/28] ffmpeg_mux: drop a useless check and reduce indentation

2022-01-18 Thread Anton Khirnov
Quoting Andreas Rheinhardt (2022-01-13 11:54:59) > Anton Khirnov: > > do_video_stats() is only ever called for video. > > --- > > fftools/ffmpeg_mux.c | 42 -- > > 1 file changed, 20 insertions(+), 22 deletions(-) > > > > diff --git a/fftools/ffmpeg_mux.c

Re: [FFmpeg-devel] [PATCH V5 1/4] libavcodec/qsvenc: Add max_frame_size support to hevc_qsv

2022-01-18 Thread Xiang, Haihao
On Mon, 2022-01-17 at 13:11 +0800, Wenbin Chen wrote: > Add max_frame_size support to hevc_qsv as well. > > Signed-off-by: Wenbin Chen > --- > doc/encoders.texi | 3 +++ > libavcodec/qsvenc.c | 4 ++-- > 2 files changed, 5 insertions(+), 2 deletions(-) > > diff --git a/doc/encoders.texi

Re: [FFmpeg-devel] [PATCH v2] avfilter: add overlay vaapi filter

2022-01-18 Thread Xiang, Haihao
On Tue, 2022-01-11 at 08:10 +, Xiang, Haihao wrote: > On Mon, 2021-11-22 at 15:53 +0800, Fei Wang wrote: > > From: Xinpeng Sun > > > > Overlay one video on the top of another. > > > > It takes two inputs and has one output. The first input is the "main" video > > on > > which the second

Re: [FFmpeg-devel] [PATCH v1] avfilter/tonemap_vaapi: set va parameters filters and numbers

2022-01-18 Thread Xiang, Haihao
On Wed, 2022-01-12 at 04:29 +, Soft Works wrote: > > -Original Message- > > From: ffmpeg-devel On Behalf Of Xiang, > > Haihao > > Sent: Wednesday, January 12, 2022 5:16 AM > > To: FFmpeg development discussions and patches > > Cc: Wang, Fei W > > Subject: Re: [FFmpeg-devel] [PATCH

Re: [FFmpeg-devel] avfilter/adelay - interactive commands

2022-01-18 Thread deiwo deiwo
Similar to how one can change volume in the volume filter when there is a zeromq filter preceding the volume filter, then it's possible to send zeromq commands to the volume filter and change the volume dynamically (while the ffmpeg is running). In the case of adelay filter the delay could be

Re: [FFmpeg-devel] avfilter/adelay - interactive commands

2022-01-18 Thread Paul B Mahol
On Mon, Jan 17, 2022 at 11:02 PM deiwo deiwo wrote: > Hello, > I would like to ask if it makes sense to implement ZeroMQ interactive > commands for the adelay filter, from the performance and memory point of > view. > If it does make sense then is it possible to malloc/free/realloc memory >

Re: [FFmpeg-devel] [PATCH v2] lavc/qsvenc: add tile encoding support for VP9

2022-01-18 Thread Xiang, Haihao
On Mon, 2022-01-17 at 09:12 -0300, James Almer wrote: > On 1/17/2022 7:57 AM, Soft Works wrote: > > > > > > > -Original Message- > > > From: ffmpeg-devel On Behalf Of > > > myp...@gmail.com > > > Sent: Monday, January 17, 2022 11:36 AM > > > To: FFmpeg development discussions and