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

2022-10-12 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 --- v4 added docs explaining the seg_

[FFmpeg-devel] [PATCH 1/4 v2] avcodec/librav1e: support setting sample aspect ratio

2022-10-12 Thread James Almer
Signed-off-by: James Almer --- Changes since v1: - Ensure we're not passing values like 0/1 as they are not supported by librav1e. libavcodec/librav1e.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/libavcodec/librav1e.c b/libavcodec/librav1e.c index 0601efed2c..a13d6c9eaf 100644 -

[FFmpeg-devel] [PATCH 2/4] avcodec/librav1e: export extradata on init()

2022-10-12 Thread James Almer
librav1e provides a function to create extradata, so use it instead of extracting the sequence header OBU from packets. Signed-off-by: James Almer --- configure | 1 - libavcodec/librav1e.c | 66 +++ 2 files changed, 17 insertions(+), 50 delet

[FFmpeg-devel] [PATCH 3/4] avcodec/librav1e: support AV_CODEC_CAP_ENCODER_RECON_FRAME

2022-10-12 Thread James Almer
This bumps the minimum required version to 0.5.0 Signed-off-by: James Almer --- configure | 2 +- libavcodec/librav1e.c | 37 - 2 files changed, 37 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 84641fd03e..96479d48d6 1007

[FFmpeg-devel] [PATCH 4/4] avcodec/librav1e: use lavu image helpers where adequate

2022-10-12 Thread James Almer
Signed-off-by: James Almer --- libavcodec/librav1e.c | 20 +++- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/libavcodec/librav1e.c b/libavcodec/librav1e.c index 130417622a..284af34ec4 100644 --- a/libavcodec/librav1e.c +++ b/libavcodec/librav1e.c @@ -437,6 +437,8

Re: [FFmpeg-devel] [PATCH] avcodec: add D3D12VA hardware accelerated H264, HEVC, VP9, and AV1 decoding

2022-10-12 Thread Jean-Baptiste Kempf
Hello, You really need to split this patch into logical patches. jb On Wed, 12 Oct 2022, at 13:09, Wu Jianhua wrote: > [PATCH] avcodec: add D3D12VA hardware accelerated H264, HEVC, VP9, and > AV1 decoding > > Patch attached. > > > > ___ > ffmpeg-devel

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

2022-10-12 Thread Dmitrii Ovchinnikov
>> I don't see why should a decoder deal with this at all? >>This can be just as well done by the caller. This implementation takes a reference of the h.264 supporting cropping. In h264, if width (stored in ACCodecContext) parsed from container is different from width parsed from elementary, it wi

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

2022-10-12 Thread Dmitrii Ovchinnikov
>>Why does an encoder or decoder need to care about this, given it's >>container level information? >>Do you plan on implementing cropping support into all the encoders? This implementation takes a reference of the h.264 supporting cropping. In h264, if width (stored in ACCodecContext) parsed fr

Re: [FFmpeg-devel] [PATCH] avcodec: add D3D12VA hardware accelerated H264, HEVC, VP9, and AV1 decoding

2022-10-12 Thread James Almer
On 10/12/2022 12:12 PM, Jean-Baptiste Kempf wrote: Hello, You really need to split this patch into logical patches. jb To expand on this, you should split into the following: One patch adding the hwcontext and pixel format to libavutil plus an entry in the APIChanges file mentioning the new

Re: [FFmpeg-devel] [PATCH] ffmpeg: fix implementation of updated input start time

2022-10-12 Thread Anton Khirnov
Quoting Gyan Doshi (2022-09-27 06:40:56) > The current adjustment of input start times just adjusts the tsoffset. > And it does so, by resetting the tsoffset to nullify the new start time. > This leads to breakage of -copyts, ignoring of user_ts_offset, breaking

Re: [FFmpeg-devel] [PATCH] avcodec: add D3D12VA hardware accelerated H264, HEVC, VP9, and AV1 decoding

2022-10-12 Thread Wu Jianhua
James Almer wrote: > On 10/12/2022 12:12 PM, Jean-Baptiste Kempf wrote: >> Hello, >> >> You really need to split this patch into logical patches. >> >> jb > > To expand on this, you should split into the following: One patch adding > the hwcontext and pixel format to libav

Re: [FFmpeg-devel] [PATCH] riscv: fix scalar product initialisation

2022-10-12 Thread Rémi Denis-Courmont
Le maanantaina 3. lokakuuta 2022, 18.06.42 EEST r...@remlab.net a écrit : > From: Rémi Denis-Courmont > > VSETVLI xd, x0, ...' has rather nonobvious semantics: > - If xd is x0, then it preserves the current vector length. > - If xd is not x0, it sets the vector length to the supported maximum. >

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

2022-10-12 Thread Anton Khirnov
Quoting James Almer (2022-10-11 14:51:34) > On 10/11/2022 9:43 AM, Timo Rothenpieler wrote: > > I really don't like seeing this in avcodec. > > Why does an encoder or decoder need to care about this, given it's > > container level information? > > > > Do you plan on implementing cropping support

Re: [FFmpeg-devel] [FFmpeg-cvslog] fftools/ffmpeg: drop the -async option

2022-10-12 Thread Anton Khirnov
Quoting Michael Niedermayer (2022-10-04 17:39:09) > On Tue, Oct 04, 2022 at 09:56:29AM +, Anton Khirnov wrote: > > ffmpeg | branch: master | Anton Khirnov | Tue Aug 30 > > 11:14:13 2022 +0200| [3d86a13b47b726e49c2d780c5f723c290e8a36b4] | > > committer: Anton Khirnov > > > > fftools/ffmpeg:

Re: [FFmpeg-devel] [PATCH] ffmpeg: Make find_stream_info behave like a normal per-file option

2022-10-12 Thread Anton Khirnov
Quoting Marvin Scholz (2022-09-28 12:21:00) > Currently it would essentially change the find_stream_info setting for > the file it was specified for and all following files, which is unusual > and somewhat unexpected behaviour for a per-file option and not even > documented to behave like this. We

[FFmpeg-devel] [PATCH 1/6] avcodec/mpegvideo_motion: Move mspel/gmc motion to mpeg4videodec.c

2022-10-12 Thread Andreas Rheinhardt
It is the only codec for which mcsel is ever set. Signed-off-by: Andreas Rheinhardt --- libavcodec/mpeg4videodec.c| 168 ++ libavcodec/mpeg4videodec.h| 3 + libavcodec/mpegvideo_motion.c | 166 + 3 files changed, 174 inser

[FFmpeg-devel] [PATCH 2/6] avcodec/mpegvideodsp: Make MpegVideoDSP MPEG-4 only

2022-10-12 Thread Andreas Rheinhardt
It is only used by gmc/gmc1 which is only used by the MPEG-4 decoder, so move it to Mpeg4DecContext and rename it to Mpeg4VideoDSP. Also compile it iff the MPEG-4 decoder is compiled. Signed-off-by: Andreas Rheinhardt --- libavcodec/Makefile | 4 +- libavcodec/mpeg4vid

[FFmpeg-devel] [PATCH 3/6] avcodec/mpegvideo: Move sprite-related fields to Mpeg4DecContext

2022-10-12 Thread Andreas Rheinhardt
Only used there. Signed-off-by: Andreas Rheinhardt --- libavcodec/mpeg4videodec.c | 106 ++--- libavcodec/mpeg4videodec.h | 4 ++ libavcodec/mpegvideo.h | 4 -- libavcodec/vaapi_mpeg4.c | 2 +- 4 files changed, 58 insertions(+), 58 deletions(-) diff -

[FFmpeg-devel] [PATCH 4/6] avcodec/mpeg4videodec: Sync sprite_warping_accuracy between threads

2022-10-12 Thread Andreas Rheinhardt
It is set in the vol header and is therefore a sequence and not only a picture property. Signed-off-by: Andreas Rheinhardt --- libavcodec/mpeg4videodec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4videodec.c index dcf970af5a..aeb0d003ec 10064

[FFmpeg-devel] [PATCH 5/6] avcodec/mpeg4videodec: Remove always-true checks

2022-10-12 Thread Andreas Rheinhardt
codec_id is always AV_CODEC_ID_MPEG4 in this file. Signed-off-by: Andreas Rheinhardt --- libavcodec/mpeg4videodec.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4videodec.c index aeb0d003ec..b4e2c09706 100644 --- a/libavcod

[FFmpeg-devel] [PATCH 6/6] avcodec/mpeg4videodec: Reindent after the previous commit

2022-10-12 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/mpeg4videodec.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4videodec.c index b4e2c09706..c4f268c534 100644 --- a/libavcodec/mpeg4videodec.c +++

Re: [FFmpeg-devel] [PATCH 0/4] swscale rgbaf32 input/output support

2022-10-12 Thread Mark Reid
On Thu, Sep 29, 2022 at 11:08 AM wrote: > From: Mark Reid > > This patch series adds swscale input/output support for the packed rgb > float formats. > A few of the filters also needed support the larger 96/128 bit packed > pixel sizes. > > I also plan to eventually add lossless unscaled convers

Re: [FFmpeg-devel] [PATCH] ffmpeg: Make find_stream_info behave like a normal per-file option

2022-10-12 Thread Marvin Scholz
On 12 Oct 2022, at 19:39, Anton Khirnov wrote: > Quoting Marvin Scholz (2022-09-28 12:21:00) >> Currently it would essentially change the find_stream_info setting for >> the file it was specified for and all following files, which is unusual >> and somewhat unexpected behaviour for a per-file opti

[FFmpeg-devel] [PATCH] avcodec/motion_est: Remove unused elements

2022-10-12 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/motion_est.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavcodec/motion_est.h b/libavcodec/motion_est.h index 292bdc70e9..b20cda 100644 --- a/libavcodec/motion_est.h +++ b/libavcodec/motion_est.h @@ -51,8 +51,6 @@ typedef struct Mot