Re: [FFmpeg-devel] [PATCH v2] avcodec/bsf: switch to av_get_token to parse bsf list string

2021-07-03 Thread Gyan Doshi
On 2021-07-03 23:05, James Almer wrote: On 7/3/2021 1:54 PM, Gyan Doshi wrote: The recently added setts bsf makes use of the eval API whose expressions can contain commas. The existing parsing in av_bsf_list_parse_str() uses av_strtok to naively split the string at commas, thus preventing the

[FFmpeg-devel] [PATCH] fftools/ffmpeg: accelerate seeking while reading input at native frame rate

2021-07-03 Thread Linjie Fu
From: Linjie Fu Skip the logic of frame rate emulation until the input reaches the specified start time. Test CMD: $ffmpeg -re -ss 30 -i input.mp4 -pix_fmt yuv420p -f sdl2 - Before the patch: first time to got frame, it takes 257305 us After this patch: first time to got frame, it takes 4887

[FFmpeg-devel] [PATCH 3/3] lavc:libsvtav1: Update SVT-AV1 new repo

2021-07-03 Thread Jun Zhao
From: Jun Zhao SVT-AV1 moved the repo from github to gitlab. Signed-off-by: Jun Zhao --- doc/general_contents.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/general_contents.texi b/doc/general_contents.texi index 354899ad17..f3f4feab70 100644 --- a/doc/general_con

[FFmpeg-devel] [PATCH 1/3] lavc/libsvtav1: Enable svtav1-params like x264-params in libx264

2021-07-03 Thread Jun Zhao
From: Jun Zhao Enabled the svtav1-params, then we can set all the params Signed-off-by: Jun Zhao --- libavcodec/libsvtav1.c | 337 + 1 file changed, 337 insertions(+) diff --git a/libavcodec/libsvtav1.c b/libavcodec/libsvtav1.c index fabc4e6428..9d72a35

[FFmpeg-devel] [PATCH 2/3] doc/encoders: Add svtav1-params option for svtav1

2021-07-03 Thread Jun Zhao
From: Jun Zhao Signed-off-by: Jun Zhao --- doc/encoders.texi | 4 1 file changed, 4 insertions(+) diff --git a/doc/encoders.texi b/doc/encoders.texi index 4c38996372..4df6066304 100644 --- a/doc/encoders.texi +++ b/doc/encoders.texi @@ -1798,6 +1798,10 @@ Set log2 of the number of rows of

[FFmpeg-devel] [PATCH] avformat/utils: Ignore negative duration in codec_info_duration computation

2021-07-03 Thread Michael Niedermayer
Fixes: signed integer overflow: -5994697211974418462 + -325530713450286 cannot be represented in type 'long' Fixes: 35332/clusterfuzz-testcase-minimized-ffmpeg_dem_MATROSKA_fuzzer-5868035117285376 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/f

Re: [FFmpeg-devel] Fwd: Re: [PATCH] mxfdec.c: prefer metadata from Footer

2021-07-03 Thread Tomas Härdin
lör 2021-07-03 klockan 15:13 +0200 skrev emco...@ffastrans.com: > > Unfortunately the wetransfer link for the fate samples expired, so i > thought it might be a good idea to resend it as link to gdrive: > https://drive.google.com/file/d/1yXTdS9RfOsduzg49vBLEshdmIzdaVQfd/view?usp=sharing > > Also

[FFmpeg-devel] [PATCH 2/2] avcodec/setts_bsf: add a NOPTS constant

2021-07-03 Thread James Almer
Signed-off-by: James Almer --- libavcodec/setts_bsf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/setts_bsf.c b/libavcodec/setts_bsf.c index 1e43036ee1..d7d13d2652 100644 --- a/libavcodec/setts_bsf.c +++ b/libavcodec/setts_bsf.c @@ -44,6 +44,7 @@ static const char *const var

[FFmpeg-devel] [PATCH 1/2] avcodec/setts_bsf: actually store the current packet's timestamps to be usable by the next

2021-07-03 Thread James Almer
Before this change, the PREV_OUTPTS and PREV_OUTDTS constants always evaluated to AV_NOPTS_VALUE. Signed-off-by: James Almer --- libavcodec/setts_bsf.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavcodec/setts_bsf.c b/libavcodec/setts_bsf.c index 2558e38f51..1e

Re: [FFmpeg-devel] request to remove certain mention of e-book on trac wiki page

2021-07-03 Thread Michael Koch
You completely ignored the fact that some filters are called useless. But just keep living in your bubble of ignorance. Does it explain why they consider them useless? Or is it just defamatory without further elaboration? I'm the author of the book. You can download the PDF here: http://w

Re: [FFmpeg-devel] request to remove certain mention of e-book on trac wiki page

2021-07-03 Thread Paul B Mahol
On Sat, Jul 3, 2021 at 4:50 PM James Almer wrote: > On 7/3/2021 9:29 AM, Paul B Mahol wrote: > > On Thu, Jul 1, 2021 at 4:34 PM Gyan Doshi wrote: > > > >> > >> > >> On 2021-07-01 17:04, Andreas Rheinhardt wrote: > >>> Paul B Mahol: > I here hereby request that certain e-book is removed from

Re: [FFmpeg-devel] [PATCH v2] avcodec/bsf: switch to av_get_token to parse bsf list string

2021-07-03 Thread James Almer
On 7/3/2021 1:54 PM, Gyan Doshi wrote: The recently added setts bsf makes use of the eval API whose expressions can contain commas. The existing parsing in av_bsf_list_parse_str() uses av_strtok to naively split the string at commas, thus preventing the use of setts filter with expressions contai

[FFmpeg-devel] [PATCH] avcodec/mjpegdec: Try to continue decoding on zero quant matrix value

2021-07-03 Thread Andriy Gelman
From: Andriy Gelman A zero value in the quantization matrix is invalid but in practice will just set the transform coefficient to zero after inverse quantization. Try to continue decoding if the AV_EF_EXPLODE flag is not set. Fixes ticket #9287. Signed-off-by: Andriy Gelman --- The last frame

Re: [FFmpeg-devel] [PATCH 1/3] avformat/rtsp: Fix floating point exception for low min/max port range

2021-07-03 Thread Andriy Gelman
On Sun, 04. Apr 11:36, Andriy Gelman wrote: > From: Andriy Gelman > > Fixed by setting port offset to zero when it cannot be computed. > > To reproduce: > $ ffmpeg -min_port 32000 -max_port 32001 -i > rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov -f null - > [1]303871 flo

[FFmpeg-devel] [PATCH v2] avcodec/bsf: switch to av_get_token to parse bsf list string

2021-07-03 Thread Gyan Doshi
The recently added setts bsf makes use of the eval API whose expressions can contain commas. The existing parsing in av_bsf_list_parse_str() uses av_strtok to naively split the string at commas, thus preventing the use of setts filter with expressions containing commas. av_get_token can work with

Re: [FFmpeg-devel] [PATCH 1/3] avformat/matroskadec: Reset state also on failure in matroska_reset_status()

2021-07-03 Thread Michael Niedermayer
On Fri, Jul 02, 2021 at 06:17:58PM +0200, Andreas Rheinhardt wrote: > Michael Niedermayer: > > The calling code does not handle failures and will fail with assertion > > failures later. > > Seeking can always fail even when the position was previously read. > > > > Fixes: Assertion failure > > Fi

Re: [FFmpeg-devel] [PATCH 24/24] lavfi/vf_scale: implement slice threading

2021-07-03 Thread Michael Niedermayer
On Sat, Jul 03, 2021 at 03:27:36PM +0200, Anton Khirnov wrote: > Quoting Michael Niedermayer (2021-06-01 11:35:13) > > On Mon, May 31, 2021 at 09:55:15AM +0200, Anton Khirnov wrote: > > > --- > > > libavfilter/vf_scale.c | 182 +++-- > > > 1 file changed, 141 in

Re: [FFmpeg-devel] [PATCH v2] avformat/rtsp: fix timeout option

2021-07-03 Thread Andriy Gelman
On Sun, 30. May 16:24, Andriy Gelman wrote: > From: Andriy Gelman > > 92c40ef882be115e72d2aa02f9032b7ce88f8537 added a listen_timeout option > for sdp. This allowed a user to set variable timeout in sdp which was > originally hard coded to 10 seconds. > > The commit used the initial_timeout vari

Re: [FFmpeg-devel] [PATCH] avcodec/bsf: switch to av_get_token to parse bsf list string

2021-07-03 Thread James Almer
On 7/3/2021 12:48 PM, Gyan Doshi wrote: On 2021-07-03 19:47, James Almer wrote: On 7/3/2021 8:42 AM, Gyan Doshi wrote: The recently added setts bsf makes use of the eval API whose expressions can contain commas. The existing parsing in av_bsf_list_parse_str() uses av_strtok to naively split t

Re: [FFmpeg-devel] [PATCH] avcodec/bsf: switch to av_get_token to parse bsf list string

2021-07-03 Thread Gyan Doshi
On 2021-07-03 19:47, James Almer wrote: On 7/3/2021 8:42 AM, Gyan Doshi wrote: The recently added setts bsf makes use of the eval API whose expressions can contain commas. The existing parsing in av_bsf_list_parse_str() uses av_strtok to naively split the string at commas, thus preventing the

Re: [FFmpeg-devel] request to remove certain mention of e-book on trac wiki page

2021-07-03 Thread James Almer
On 7/3/2021 9:29 AM, Paul B Mahol wrote: On Thu, Jul 1, 2021 at 4:34 PM Gyan Doshi wrote: On 2021-07-01 17:04, Andreas Rheinhardt wrote: Paul B Mahol: I here hereby request that certain e-book is removed from wiki page of FFmpeg. Reason is it uses derogatory text to criticize some FFmpeg

Re: [FFmpeg-devel] [PATCH] avcodec/bsf: switch to av_get_token to parse bsf list string

2021-07-03 Thread James Almer
On 7/3/2021 8:42 AM, Gyan Doshi wrote: The recently added setts bsf makes use of the eval API whose expressions can contain commas. The existing parsing in av_bsf_list_parse_str() uses av_strtok to naively split the string at commas, thus preventing the use of setts filter with expressions contai

Re: [FFmpeg-devel] [PATCH 01/24] sws: remove unnecessary braces

2021-07-03 Thread Anton Khirnov
Pushed the non-controversial parts of the thread. Will rework and resend the rest later. -- Anton Khirnov ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email

Re: [FFmpeg-devel] request to remove certain mention of e-book on trac wiki page

2021-07-03 Thread Paul B Mahol
On Thu, Jul 1, 2021 at 4:34 PM Gyan Doshi wrote: > > > On 2021-07-01 17:04, Andreas Rheinhardt wrote: > > Paul B Mahol: > >> I here hereby request that certain e-book is removed from wiki page of > >> FFmpeg. > >> > >> Reason is it uses derogatory text to criticize some FFmpeg components. > > Det

Re: [FFmpeg-devel] [PATCH 24/24] lavfi/vf_scale: implement slice threading

2021-07-03 Thread Anton Khirnov
Quoting Michael Niedermayer (2021-06-01 11:35:13) > On Mon, May 31, 2021 at 09:55:15AM +0200, Anton Khirnov wrote: > > --- > > libavfilter/vf_scale.c | 182 +++-- > > 1 file changed, 141 insertions(+), 41 deletions(-) > > breaks: (lower 50% is bright green) > .

[FFmpeg-devel] Fwd: Re: [PATCH] mxfdec.c: prefer metadata from Footer

2021-07-03 Thread emcodem
Am 2021-06-28 21:58, schrieb emco...@ffastrans.com: Am 2021-06-28 03:00, schrieb Marton Balint: On Sun, 27 Jun 2021, emco...@ffastrans.com wrote: Am 2021-06-27 20:12, schrieb Marton Balint: Why? I though it is enough if you store the partition number in the metadata set, that way you should b

[FFmpeg-devel] [PATCH] avcodec/bsf: switch to av_get_token to parse bsf list string

2021-07-03 Thread Gyan Doshi
The recently added setts bsf makes use of the eval API whose expressions can contain commas. The existing parsing in av_bsf_list_parse_str() uses av_strtok to naively split the string at commas, thus preventing the use of setts filter with expressions containing commas. --- libavcodec/bsf.c | 13 +