[FFmpeg-devel] [PATCH] avcodec/mediacodec: fix incorrect crop info

2022-10-10 Thread Zhao Zhili
From: Zhao Zhili The crop info is optional, but used unconditionally. Signed-off-by: Zhao Zhili --- libavcodec/mediacodecdec_common.c | 5 + 1 file changed, 5 insertions(+) diff --git a/libavcodec/mediacodecdec_common.c b/libavcodec/mediacodecdec_common.c index 2a605e7f5b..c1cbb28488 100

Re: [FFmpeg-devel] [PATCH 1/1] Enable building with WSL and MSVC

2022-10-10 Thread Julio C. Rocha
On Sat, Oct 8, 2022 at 4:37 PM Carl Eugen Hoyos wrote: > Am Sa., 8. Okt. 2022 um 10:39 Uhr schrieb Julio C. Rocha : > > > > On Sun, Oct 2, 2022 at 4:48 PM Julio C. Rocha wrote: > > > > > --- > > > configure | 7 ++- > > > 1 file changed, 6 insertions(+), 1 deletion(-) > > > > > > diff --git

[FFmpeg-devel] [PATCH] lavc/qsvenc: fill the padding area

2022-10-10 Thread Xiang, Haihao
From: Haihao Xiang qsvenc makes a copy when the input in system memory is not padded as the SDK requires, however the padding area is not filled with right data Signed-off-by: Haihao Xiang --- libavcodec/qsvenc.c | 69 +++-- 1 file changed, 67 insertions

[FFmpeg-devel] [PATCH] avformat/segment: add -strftime_mkdir option

2022-10-10 Thread george
This enabled automatically creating directories for strftime-formatted segment names. Signed-off-by: George-Cristian Jiglau --- doc/muxers.texi | 11 +++ libavformat/segment.c | 18 +- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/doc/muxers.texi b

[FFmpeg-devel] [PATCH v2] avformat/segment: add -strftime_mkdir option

2022-10-10 Thread George-Cristian Jiglau
This enables automatically creating directories for strftime-formatted segment names. Signed-off-by: George-Cristian Jiglau --- doc/muxers.texi | 4 libavformat/segment.c | 15 +++ 2 files changed, 19 insertions(+) diff --git a/doc/muxers.texi b/doc/muxers.texi index 4ed

[FFmpeg-devel] [PATCH] avformat/hls: Add option to retry failed segments for hls

2022-10-10 Thread gnattu
Current HLS implementation simply skip a failed segment to catch up the stream, but this is not optimal for some use cases like livestream recording. Add an option to retry a failed segment to ensure the output file is a complete stream. Signed-off-by: gnattu --- libavformat/hls.c | 15

[FFmpeg-devel] [PATCH 00/11] Fixes and Enhancements for VAAPI Overlay

2022-10-10 Thread ffmpegagent
This patchset resolves a number of issues in the current code: * Bogus doubles framesync initialization * Executing build_parameters on each input frame * Segfault when there's no secondary input (yet) and adds a number of enhancements to bring this on-par with the other overlay filters: * E

[FFmpeg-devel] [PATCH 01/11] avfilter/overlay_vaapi: use FILTER_SINGLE_PIXFMT

2022-10-10 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/vf_overlay_vaapi.c | 30 +- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/libavfilter/vf_overlay_vaapi.c b/libavfilter/vf_overlay_vaapi.c index 3e6a0de13f..218daf571f 100644 --- a/libavfilter/vf

[FFmpeg-devel] [PATCH 02/11] avfilter/overlay_vaapi: build filter params just once

2022-10-10 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/vf_overlay_vaapi.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavfilter/vf_overlay_vaapi.c b/libavfilter/vf_overlay_vaapi.c index 218daf571f..cf17426b5d 100644 --- a/libavfilter/vf_overlay_vaapi.c +++ b/

[FFmpeg-devel] [PATCH 03/11] avfilter/overlay_vaapi: remove double framesync init

2022-10-10 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/vf_overlay_vaapi.c | 31 +-- 1 file changed, 5 insertions(+), 26 deletions(-) diff --git a/libavfilter/vf_overlay_vaapi.c b/libavfilter/vf_overlay_vaapi.c index cf17426b5d..66e736cce4 100644 --- a/libavfilter/

[FFmpeg-devel] [PATCH 04/11] avfilter/overlay_vaapi: handle secondary null input

2022-10-10 Thread softworkz
From: softworkz Currently segfaults in this case. Signed-off-by: softworkz --- libavfilter/vf_overlay_vaapi.c | 94 ++ 1 file changed, 49 insertions(+), 45 deletions(-) diff --git a/libavfilter/vf_overlay_vaapi.c b/libavfilter/vf_overlay_vaapi.c index 66e736cce

[FFmpeg-devel] [PATCH 05/11] avfilter/overlay_vaapi: reformat options

2022-10-10 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/vf_overlay_vaapi.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/libavfilter/vf_overlay_vaapi.c b/libavfilter/vf_overlay_vaapi.c index 1281038c36..c14aacbb5d 100644 --- a/libavfilter/vf_overlay_vaapi

[FFmpeg-devel] [PATCH 06/11] avfilter/overlay_vaapi: remove redundant .get_buffer assignments

2022-10-10 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/vf_overlay_vaapi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavfilter/vf_overlay_vaapi.c b/libavfilter/vf_overlay_vaapi.c index c14aacbb5d..71fc90a86b 100644 --- a/libavfilter/vf_overlay_vaapi.c +++ b/libavfilter/vf_overlay_

[FFmpeg-devel] [PATCH 07/11] avfilter/overlay_vaapi: add framesync options

2022-10-10 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/vf_overlay_vaapi.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/libavfilter/vf_overlay_vaapi.c b/libavfilter/vf_overlay_vaapi.c index 71fc90a86b..f4f9cc58ec 100644 --- a/libavfilter/vf_overlay_vaapi

[FFmpeg-devel] [PATCH 08/11] avfilter/overlay_vaapi: precalculate blend_state, enable pixel alpha

2022-10-10 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/vf_overlay_vaapi.c | 44 -- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_overlay_vaapi.c b/libavfilter/vf_overlay_vaapi.c index f4f9cc58ec..b2c254d9dd 100644 --- a/libavfilt

[FFmpeg-devel] [PATCH 09/11] avfilter/overlay_vaapi: enable expressions for overlay parameters

2022-10-10 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/vf_overlay_vaapi.c | 141 + 1 file changed, 127 insertions(+), 14 deletions(-) diff --git a/libavfilter/vf_overlay_vaapi.c b/libavfilter/vf_overlay_vaapi.c index b2c254d9dd..7be7d52589 100644 --- a/libavfi

[FFmpeg-devel] [PATCH 10/11] doc/filters.texi: remove incorrect statement

2022-10-10 Thread softworkz
From: softworkz Signed-off-by: softworkz --- doc/filters.texi | 1 - 1 file changed, 1 deletion(-) diff --git a/doc/filters.texi b/doc/filters.texi index 68205147f0..2d0b5db909 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -26267,7 +26267,6 @@ To use vaapi filters, you need to setup

[FFmpeg-devel] [PATCH 11/11] doc/filters.texi: update overlay_vaapi documentation

2022-10-10 Thread softworkz
From: softworkz Signed-off-by: softworkz --- doc/filters.texi | 49 +--- 1 file changed, 38 insertions(+), 11 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 2d0b5db909..5f4604a834 100644 --- a/doc/filters.texi +++ b/doc/filters.t

[FFmpeg-devel] [PATCH] avformat/hls: Add option to retry failed segments for hls

2022-10-10 Thread Gnattu OC
Current HLS implementation simply skip a failed segment to catch up the stream, but this is not optimal for some use cases like livestream recording. Add an option to retry a failed segment to ensure the output file is a complete stream. Signed-off-by: gnattu --- libavformat/hls.c | 15 +

Re: [FFmpeg-devel] [PATCH 11/11] doc/filters.texi: update overlay_vaapi documentation

2022-10-10 Thread Gyan Doshi
On 2022-10-10 04:24 pm, softworkz wrote: From: softworkz Signed-off-by: softworkz --- doc/filters.texi | 49 +--- 1 file changed, 38 insertions(+), 11 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 2d0b5db909..5f4604a834 1

Re: [FFmpeg-devel] [PATCH v5 00/25] Subtitle Filtering 2022

2022-10-10 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Anton Khirnov > Sent: Wednesday, August 31, 2022 3:40 AM > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH v5 00/25] Subtitle Filtering 2022 > > Quoting Soft Works (2022-08-2

Re: [FFmpeg-devel] [PATCH 11/11] doc/filters.texi: update overlay_vaapi documentation

2022-10-10 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Gyan Doshi > Sent: Monday, October 10, 2022 1:08 PM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH 11/11] doc/filters.texi: update > overlay_vaapi documentation > > > > On 2022-10-10 04:24 pm, softworkz wrot

[FFmpeg-devel] [PATCH v3] avformat/segment: add -strftime_mkdir option

2022-10-10 Thread George-Cristian Jiglau
This enables automatically creating directories for strftime-formatted segment names. Signed-off-by: George-Cristian Jiglau --- doc/muxers.texi | 4 libavformat/segment.c | 15 +++ 2 files changed, 19 insertions(+) diff --git a/doc/muxers.texi b/doc/muxers.texi index 4ed

[FFmpeg-devel] [PATCH v2] avformat/hls: Add option to retry failed segments for hls

2022-10-10 Thread gnattu
Current HLS implementation simply skip a failed segment to catch up the stream, but this is not optimal for some use cases like livestream recording. Add an option to retry a failed segment to ensure the output file is a complete stream. Signed-off-by: gnattu --- Previous version was trashed by

[FFmpeg-devel] [PATCH v3] avformat/hls: Add option to retry failed segments for hls

2022-10-10 Thread gnattu
Current HLS implementation simply skip a failed segment to catch up the stream, but this is not optimal for some use cases like livestream recording. Add an option to retry a failed segment to ensure the output file is a complete stream. Signed-off-by: gnattu --- Fixed commit message wrap libavf

[FFmpeg-devel] [PATCH v5 1/3] ffmpeg: refactor post-decoding steps for subtitles into a function

2022-10-10 Thread Jan Ekström
From: Jan Ekström This enables us to later call this when generating additional subtitles for splitting purposes. Co-authored-by: Andrzej Nadachowski Signed-off-by: Jan Ekström --- fftools/ffmpeg.c | 51 +++- 1 file changed, 29 insertions(+), 22 de

[FFmpeg-devel] [PATCH v5 2/3] ffmpeg: move decoded frame counter from after post-processing to decode

2022-10-10 Thread Jan Ekström
From: Jan Ekström This way we can call process_subtitles without causing the decoded frame counter to get bumped. Additionally, this now takes into mention all of the decoded subtitle frames without fix_sub_duration latency/buffering, or filtering out decoded reset/end subtitles without any rend

[FFmpeg-devel] [PATCH v5 3/3] ffmpeg: add video heartbeat capability to fix_sub_duration

2022-10-10 Thread Jan Ekström
From: Jan Ekström Splits the currently handled subtitle at random access point packets that can be configured to follow a specific output stream. This way the subtitle - which is known to be shown at this time can be split and passed to muxer before its full duration is yet known. Co-authored-b

[FFmpeg-devel] [PATCH 4/8] lavfi/vf_coreimage: set frame durations

2022-10-10 Thread Anton Khirnov
This filter is supposed to produce CFR output. --- libavfilter/vf_coreimage.m | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/vf_coreimage.m b/libavfilter/vf_coreimage.m index 5b025c2388..874bdc8c56 100644 --- a/libavfilter/vf_coreimage.m +++ b/libavfilter/vf_coreimage.m @@ -300,6

[FFmpeg-devel] [PATCH 2/8] lavfi/settb: rescale input frame durations

2022-10-10 Thread Anton Khirnov
--- libavfilter/settb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/settb.c b/libavfilter/settb.c index 5f589004f8..23cb02689b 100644 --- a/libavfilter/settb.c +++ b/libavfilter/settb.c @@ -128,6 +128,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) AVFi

[FFmpeg-devel] [PATCH 1/8] lavfi/f_drawgraph: forward input frame durations

2022-10-10 Thread Anton Khirnov
--- libavfilter/f_drawgraph.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavfilter/f_drawgraph.c b/libavfilter/f_drawgraph.c index 000255fc52..d29a7fb60a 100644 --- a/libavfilter/f_drawgraph.c +++ b/libavfilter/f_drawgraph.c @@ -168,7 +168,7 @@ static int filter_frame

[FFmpeg-devel] [PATCH 6/8] lavfi/vf_estdif: drop an unused function parameter

2022-10-10 Thread Anton Khirnov
--- libavfilter/vf_estdif.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavfilter/vf_estdif.c b/libavfilter/vf_estdif.c index 45089a01da..9a3195fefb 100644 --- a/libavfilter/vf_estdif.c +++ b/libavfilter/vf_estdif.c @@ -433,7 +433,7 @@ static int deinterlace_slice(A

[FFmpeg-devel] [PATCH 3/8] lavfi/vf_tinterlace: set frame durations

2022-10-10 Thread Anton Khirnov
This filter is supposed to produce CFR output. --- libavfilter/vf_tinterlace.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/vf_tinterlace.c b/libavfilter/vf_tinterlace.c index 399adc102d..7c54861de4 100644 --- a/libavfilter/vf_tinterlace.c +++ b/libavfilter/vf_tinterlace.c @@ -5

[FFmpeg-devel] [PATCH 7/8] lavfi/vf_estdif: drop a redundant context variable

2022-10-10 Thread Anton Khirnov
It is only used in filter() and always set immediately before filter() is called, so it can be passed as a parameter instead. --- libavfilter/vf_estdif.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/libavfilter/vf_estdif.c b/libavfilter/vf_estdif.c index 9a3195fe

[FFmpeg-devel] [PATCH 8/8] lavfi/vf_estdif: set frame durations

2022-10-10 Thread Anton Khirnov
--- libavfilter/vf_estdif.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libavfilter/vf_estdif.c b/libavfilter/vf_estdif.c index 9e826fd424..0164f4638a 100644 --- a/libavfilter/vf_estdif.c +++ b/libavfilter/vf_estdif.c @@ -432,7 +432,7 @@ static int deinterlace_slic

[FFmpeg-devel] [PATCH 5/8] lavfi/vf_decimate: use inverse of output framerate as timebase

2022-10-10 Thread Anton Khirnov
This filter currently keeps the input timebase, but produces CFR output. It is thus simpler to use 1/output fps as the output timebase. Also, set output frame durations. --- libavfilter/vf_decimate.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/libavfilter/vf_de

Re: [FFmpeg-devel] [PATCH 09/20] avcodec/snow: Move initializing MotionEstContext to snowenc.c

2022-10-10 Thread Michael Niedermayer
On Mon, Oct 10, 2022 at 05:12:59AM +0200, Andreas Rheinhardt wrote: > Only used by the encoder. > > Signed-off-by: Andreas Rheinhardt > --- > configure| 2 +- > libavcodec/snow.c| 2 -- > libavcodec/snowenc.c | 2 ++ > 3 files changed, 3 insertions(+), 3 deletions(-) LGTM thx

Re: [FFmpeg-devel] [PATCH 11/20] avcodec/snow: Move decoder/encoder-only inline funcs to snow(dec|enc).c

2022-10-10 Thread Michael Niedermayer
On Mon, Oct 10, 2022 at 05:13:01AM +0200, Andreas Rheinhardt wrote: > Signed-off-by: Andreas Rheinhardt > --- > libavcodec/snow.h| 219 --- > libavcodec/snowdec.c | 147 + > libavcodec/snowenc.c | 64 + > 3 files

Re: [FFmpeg-devel] [PATCH 13/20] avcodec/snow: Move freeing encoder-only buffers to snowenc.c

2022-10-10 Thread Michael Niedermayer
On Mon, Oct 10, 2022 at 05:13:03AM +0200, Andreas Rheinhardt wrote: > Signed-off-by: Andreas Rheinhardt > --- > libavcodec/snow.c| 8 > libavcodec/snowenc.c | 12 > 2 files changed, 12 insertions(+), 8 deletions(-) should be ok thx [...] -- Michael GnuPG fingerp

Re: [FFmpeg-devel] [PATCH 16/20] avcodec/snow: Move allocating encoder-only buffers to snowenc.c

2022-10-10 Thread Michael Niedermayer
On Mon, Oct 10, 2022 at 05:13:06AM +0200, Andreas Rheinhardt wrote: > Signed-off-by: Andreas Rheinhardt > --- > libavcodec/snow.c| 23 +-- > libavcodec/snowenc.c | 16 +++- > 2 files changed, 24 insertions(+), 15 deletions(-) probably ok [...] -- Michael

Re: [FFmpeg-devel] [PATCH 20/20] avcodec/snowdec: Remove debug code

2022-10-10 Thread Michael Niedermayer
On Mon, Oct 10, 2022 at 05:13:10AM +0200, Andreas Rheinhardt wrote: > The Snow decoder checks two bits of AVCodecContext.debug > via numerical constants, not defines. One of these constants > (512) used to be equivalent to FF_DEBUG_PTS which has been > removed in 302554835e39b79b977ed60c9afe81b4459

[FFmpeg-devel] [PATCH v4] avformat/segment: add -strftime_mkdir option

2022-10-10 Thread George-Cristian Jiglau
This enables automatically creating directories for strftime-formatted segment names. Signed-off-by: George-Cristian Jiglau --- doc/muxers.texi | 4 libavformat/segment.c | 15 +++ 2 files changed, 19 insertions(+) diff --git a/doc/muxers.texi b/doc/muxers.texi index 4ed

Re: [FFmpeg-devel] [PATCH] aarch64: Implement stack spilling in a consistent way.

2022-10-10 Thread Martin Storsjö
On Sun, 9 Oct 2022, reimar.doeffin...@gmx.de wrote: From: Reimar Döffinger Currently it is done in several different ways, which might cause needless dependencies or in case of tx_float_neon.S is incorrect. Signed-off-by: Reimar Döffinger --- libavcodec/aarch64/fft_neon.S | 3 +- li

Re: [FFmpeg-devel] [PATCH v3] avformat/hls: Add option to retry failed segments for hls

2022-10-10 Thread Steven Liu
gnattu 于2022年10月10日周一 20:09写道: > > Current HLS implementation simply skip a failed segment to catch up > the stream, but this is not optimal for some use cases like livestream > recording. > Add an option to retry a failed segment to ensure the output file is > a complete stream. > > Signed-off-by

Re: [FFmpeg-devel] [PATCH] avformat/dashdec: Differentiate unassigned and zero attributes

2022-10-10 Thread Steven Liu
Gregor Riepl 于2022年10月8日周六 05:31写道: > > This fixes an issue where a timestamp attribute may have a valid zero > value (the UNIX epoch 1970-01-01T00:00:00), but is misinterpreted by > dashdec as being unassigned. This changes the logic that calculates > segment numbers and makes the stream undecoda

Re: [FFmpeg-devel] [PATCH v3] avformat/hls: Add option to retry failed segments for hls

2022-10-10 Thread Steven Liu
Steven Liu 于2022年10月11日周二 10:55写道: > > gnattu 于2022年10月10日周一 20:09写道: > > > > Current HLS implementation simply skip a failed segment to catch up > > the stream, but this is not optimal for some use cases like livestream > > recording. > > Add an option to retry a failed segment to ensure the out

[FFmpeg-devel] [PATCH] avformat/dashenc: set start_number of fragment from zero

2022-10-10 Thread Steven Liu
Client will get from the second fragment of the playlist if the start number is 1, and the recording files will play from second fragment. So set the startNumber from 0, just make the user get fragment from the first one of playlist. Signed-off-by: Steven Liu --- libavformat/dashenc.c | 2 +-