[FFmpeg-devel] [PATCH v2] avcodec/startcode: Avoid unaligned accesses

2022-10-11 Thread Andreas Rheinhardt
Up until now, ff_startcode_find_candidate_c() simply casts an uint8_t* to uint64_t*/uint32_t* to read 64/32 bits at a time in case HAVE_FAST_UNALIGNED is true. Yet this ignores the alignment requirement of these types as well as effective type rules of the C standard. This commit therefore

[FFmpeg-devel] [PATCH v2 2/2] ftools/opt_common: Print filter input/output formats in help output

2022-10-11 Thread softworkz
From: softworkz Exmaple command: ffmpeg -h filters=overlay Output: Filter overlay Overlay a video source on top of the input. slice threading supported Inputs: #0: main (video), Formats: Dynamic, Default: [yuv420p, yuvj420p,

[FFmpeg-devel] [PATCH v2 1/2] avfilter/avfilter: add avfilter_print_config_formats()

2022-10-11 Thread softworkz
From: softworkz Prints the following to AVBPrint: For pass-through filter links: "All (passthrough)" For filters using query_formats: "Dynamic" For filters using query_formats where a call to query_formats succeeds (example): "Dynamic, Defaults: [yuv420p, yuvj420p, yuva420p,

[FFmpeg-devel] [PATCH v2 0/2] Print filter input/output formats in help output

2022-10-11 Thread ffmpegagent
Example output for command: ffmpeg -h filters=overlay Filter overlay Overlay a video source on top of the input. slice threading supported Inputs: #0: main (video), Formats: Dynamic, Default: [yuv420p, yuvj420p, yuva420p, nv12, nv21] #1: overlay (video), Formats: Dynamic,

[FFmpeg-devel] [PATCH] avcodec/libdav1d: add an option to set max frame delay

2022-10-11 Thread James Almer
Signed-off-by: James Almer --- libavcodec/libdav1d.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/libavcodec/libdav1d.c b/libavcodec/libdav1d.c index e76f33d7e2..028929404e 100644 --- a/libavcodec/libdav1d.c +++ b/libavcodec/libdav1d.c @@ -50,6 +50,7 @@ typedef

[FFmpeg-devel] [PATCH v7 3/3] fate/flac: Add test of 32 bps encoding/decoding

2022-10-11 Thread Martijn van Beurden
--- tests/fate/flac.mak | 4 1 file changed, 4 insertions(+) diff --git a/tests/fate/flac.mak b/tests/fate/flac.mak index 115cc965e1..3424b2bf82 100644 --- a/tests/fate/flac.mak +++ b/tests/fate/flac.mak @@ -6,6 +6,7 @@ FATE_FLAC += fate-flac-16-chmode-indep

[FFmpeg-devel] [PATCH v7 2/3] libavcodec/flacenc: Implement encoding of 32 bit-per-sample PCM

2022-10-11 Thread Martijn van Beurden
Add encoding of 32 bit-per-sample PCM to FLAC files to libavcodec. Coding to this format is at this point considered experimental and -strict experimental is needed to get ffmpeg to encode such files. --- libavcodec/flacenc.c| 480 +++-

[FFmpeg-devel] [PATCH v7 1/3] libavcodec/flacdec: Implement decoding of 32 bit-per-sample PCM

2022-10-11 Thread Martijn van Beurden
Add decoding of FLAC files coding for 32 bit-per-sample PCM to libavcodec. --- libavcodec/flac.c | 4 +- libavcodec/flacdec.c | 218 +- libavcodec/get_bits.h | 12 +++ libavcodec/mathops.h | 9 ++ 4 files changed, 219 insertions(+), 24

[FFmpeg-devel] [PATCH v7 0/3] 32bps FLAC patches

2022-10-11 Thread Martijn van Beurden
Recently libFLAC gained the ability (first released in FLAC 1.4.0) to create FLAC files containing 32-bit int PCM samples. To keep complexity reasonable, the choice was made to limit residuals to 32-bit integers, which the encoder must make sure of. In case the encoder cannot find any predictor of

Re: [FFmpeg-devel] [PATCH 1/8] configure: Remove dependencies of inexistant rtjpeg decoder

2022-10-11 Thread Andreas Rheinhardt
Andreas Rheinhardt: > rtjpeg is a mode of nuv and not a decoder in its own right. > > Signed-off-by: Andreas Rheinhardt > --- > configure | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/configure b/configure > index ab6ff27249..2c4f5043d5 100755 > --- a/configure > +++ b/configure > @@

Re: [FFmpeg-devel] [PATCH] Makefile: Build complete doc with Doxygen

2022-10-11 Thread Marvin Scholz
On 24 Sep 2022, at 23:09, Marvin Scholz wrote: > Add DISABLEDINSTHEADERS, a variable containing the headers of disabled > libraries. This is needed so that Doxygen does not generate incomplete > documentation when a component is disabled, which is quite unexpected > behaviour and results in

Re: [FFmpeg-devel] [PATCH v2 1/5] avutil/dict: Add av_dict_iterate

2022-10-11 Thread Marvin Scholz
On 24 Sep 2022, at 16:36, Marvin Scholz wrote: > This is a more explicit iteration API rather than using the "magic" > av_dict_get(d, "", t, AV_DICT_IGNORE_SUFFIX) which is not really > trivial to grasp what it does when casually reading through code. > --- > libavutil/dict.c| 19

[FFmpeg-devel] [PATCH 4/4] avcodec/svq1enc: Move PutBitContext from context to stack

2022-10-11 Thread Andreas Rheinhardt
This is more natural, because said context is only used for the duration of one call to svq1_encode_frame(). Signed-off-by: Andreas Rheinhardt --- libavcodec/svq1enc.c | 44 ++-- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git

[FFmpeg-devel] [PATCH 3/4] avcodec/svq1: Set hidden visibility

2022-10-11 Thread Andreas Rheinhardt
The encoder uses ff_svq1_inter_mean_vlc + 256 and setting hidden visibility allows to bake this "+ 256" into the general offset of ff_svq1_inter_mean_vlc and the code accessing it. For certain arches, this is also required for the compiler to not produce overtly pessimistic code that can't be

[FFmpeg-devel] [PATCH 2/4] avcodec/svq1enc: Add SVQ1EncDSPContext, make codec context private

2022-10-11 Thread Andreas Rheinhardt
Currently, SVQ1EncContext is defined in a header that is also included by the arch-specific code that initializes the one and only dsp function that this encoder uses directly. But the arch-specific functions to set this dsp function do not need anything from SVQ1EncContext. This commit therefore

[FFmpeg-devel] [PATCH 1/2] avfilter/avfilter: add avfilter_print_config_formats()

2022-10-11 Thread softworkz
From: softworkz Prints the following to AVBPrint: For pass-through filter links: "All (passthrough)" For filters using query_formats: "Dynamic" For filters using query_formats where a call to query_formats succeeds (example): "Dynamic, Defaults: [yuv420p, yuvj420p, yuva420p,

[FFmpeg-devel] [PATCH 2/2] ftools/opt_common: Print filter input/output formats in help output

2022-10-11 Thread softworkz
From: softworkz Exmaple command: ffmpeg -h filters=overlay Output: Filter overlay Overlay a video source on top of the input. slice threading supported Inputs: #0: main (video), Formats: Dynamic, Default: [yuv420p, yuvj420p,

[FFmpeg-devel] [PATCH 0/2] Print filter input/output formats in help output

2022-10-11 Thread ffmpegagent
Example out put for command: ffmpeg -h filters=overlay Filter overlay Overlay a video source on top of the input. slice threading supported Inputs: #0: main (video), Formats: Dynamic, Default: [yuv420p, yuvj420p, yuva420p, nv12, nv21] #1: overlay (video), Formats:

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

2022-10-11 Thread Steven Liu
ChenLiucheng 于2022年10月11日周二 20:14写道: > > > > On Oct 11, 2022, at 14:19, Steven Liu wrote: > > 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

[FFmpeg-devel] [PATCH 1/4] avcodec/svq1enc: Inline constants

2022-10-11 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/svq1.h| 7 +++ libavcodec/svq1enc.c | 13 + 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/libavcodec/svq1.h b/libavcodec/svq1.h index 0ebc73a933..af8a7dfa04 100644 --- a/libavcodec/svq1.h +++

Re: [FFmpeg-devel] [crop support for matroska demuxer, V3 1/3] libavcodec: Add crop related fields to structure AVCodecContext and AVCodecParameters.

2022-10-11 Thread James Almer
On 10/11/2022 9:43 AM, Timo Rothenpieler wrote: On 07/10/2022 16:59, OvchinnikovDmitrii wrote: ---   libavcodec/avcodec.h   | 35 +++   libavcodec/codec_par.h |  8   libavcodec/options_table.h |  4   3 files changed, 47 insertions(+) diff

Re: [FFmpeg-devel] [crop support for matroska demuxer, V3 1/3] libavcodec: Add crop related fields to structure AVCodecContext and AVCodecParameters.

2022-10-11 Thread Timo Rothenpieler
On 07/10/2022 16:59, OvchinnikovDmitrii wrote: --- libavcodec/avcodec.h | 35 +++ libavcodec/codec_par.h | 8 libavcodec/options_table.h | 4 3 files changed, 47 insertions(+) diff --git a/libavcodec/avcodec.h

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

2022-10-11 Thread ChenLiucheng
> On Oct 11, 2022, at 14:19, Steven Liu > wrote: > > Steven Liu mailto:lingjiujia...@gmail.com>> > 于2022年10月11日周二 10:55写道: >> >> gnattu mailto:gnatt...@me.com>> 于2022年10月10日周一 20:09写道: >>> >>> Current HLS implementation simply skip a failed segment to catch

Re: [FFmpeg-devel] [crop support for matroska demuxer, V3 1/3] libavcodec: Add crop related fields to structure AVCodecContext and AVCodecParameters.

2022-10-11 Thread Anton Khirnov
Quoting OvchinnikovDmitrii (2022-10-07 16:59:40) > --- > libavcodec/avcodec.h | 35 +++ > libavcodec/codec_par.h | 8 > libavcodec/options_table.h | 4 > 3 files changed, 47 insertions(+) > > diff --git a/libavcodec/avcodec.h

[FFmpeg-devel] [PATCH 1/5] lavfi/vf_framepack: properly set output duration for framesequence output

2022-10-11 Thread Anton Khirnov
Output has to be CFR in this case. --- libavfilter/vf_framepack.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavfilter/vf_framepack.c b/libavfilter/vf_framepack.c index f30909ccff..6ea88df8b2 100644 --- a/libavfilter/vf_framepack.c +++ b/libavfilter/vf_framepack.c @@

[FFmpeg-devel] [PATCH 5/5] lavfi/src_avsynctest: set video frame durations

2022-10-11 Thread Anton Khirnov
This filter produces CFR video output. --- libavfilter/src_avsynctest.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/src_avsynctest.c b/libavfilter/src_avsynctest.c index c78e517ac3..78e4a2ba50 100644 --- a/libavfilter/src_avsynctest.c +++ b/libavfilter/src_avsynctest.c @@

[FFmpeg-devel] [PATCH 4/5] lavfi/vf_minterpolate: set output frame durations

2022-10-11 Thread Anton Khirnov
This filter produces CFR output. --- libavfilter/vf_minterpolate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/vf_minterpolate.c b/libavfilter/vf_minterpolate.c index 97d0e96c59..f2de61ca39 100644 --- a/libavfilter/vf_minterpolate.c +++ b/libavfilter/vf_minterpolate.c @@

[FFmpeg-devel] [PATCH 3/5] lavfi/vf_frei0r: set frame durations for frei0r_src

2022-10-11 Thread Anton Khirnov
This source produces CFR output. --- libavfilter/vf_frei0r.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/vf_frei0r.c b/libavfilter/vf_frei0r.c index 1e01114b76..66351d6678 100644 --- a/libavfilter/vf_frei0r.c +++ b/libavfilter/vf_frei0r.c @@ -488,6 +488,7 @@ static int

[FFmpeg-devel] [PATCH 2/5] lavfi/vf_deinterlace_qsv: set output frame durations

2022-10-11 Thread Anton Khirnov
--- libavfilter/vf_deinterlace_qsv.c | 5 + 1 file changed, 5 insertions(+) diff --git a/libavfilter/vf_deinterlace_qsv.c b/libavfilter/vf_deinterlace_qsv.c index 3065d6ac95..98ed7283ad 100644 --- a/libavfilter/vf_deinterlace_qsv.c +++ b/libavfilter/vf_deinterlace_qsv.c @@ -516,6 +516,11 @@

Re: [FFmpeg-devel] [PATCH 1/3] lavc/encode: make sure frame timebase matches encoder, when set

2022-10-11 Thread Anton Khirnov
Quoting Marton Balint (2022-10-05 20:54:46) > > > On Tue, 4 Oct 2022, Anton Khirnov wrote: > > > Quoting Marton Balint (2022-09-28 21:54:11) > >> > >> > >> On Wed, 28 Sep 2022, Anton Khirnov wrote: > >> > >>> AVFrame.time_base has been added recently, but is currently not used for > >>>

[FFmpeg-devel] [PATCH v3] lavc/aarch64: add hevc horizontal qpel/uni/bi

2022-10-11 Thread J. Dekker
checkasm benchmark on Ampere Altra (Neoverse N1): put_hevc_qpel_bi_h4_8_c: 170.7 put_hevc_qpel_bi_h4_8_neon: 64.5 put_hevc_qpel_bi_h6_8_c: 373.7 put_hevc_qpel_bi_h6_8_neon: 130.2 put_hevc_qpel_bi_h8_8_c: 662.0 put_hevc_qpel_bi_h8_8_neon: 138.5 put_hevc_qpel_bi_h12_8_c: 1529.5

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

2022-10-11 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Jan > Ekström > Sent: Monday, October 10, 2022 2:45 PM > To: ffmpeg-devel@ffmpeg.org > Subject: [FFmpeg-devel] [PATCH v5 3/3] ffmpeg: add video heartbeat > capability to fix_sub_duration > > From: Jan Ekström > > Splits the

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

2022-10-11 Thread Reimar Döffinger
Hi Martin, > On 10 Oct 2022, at 23:29, Martin Storsjö wrote: > > 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. >

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

2022-10-11 Thread Nicolas George
Jan Ekström (12022-10-10): > 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

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

2022-10-11 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 +-

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

2022-10-11 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

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

2022-10-11 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