[FFmpeg-devel] [PATCH] avformat/libsrt: remove url_get_file_handle implementation

2021-08-09 Thread Zhao Zhili
SRTSOCKET is an abstraction designed by libsrt, it's not guaranteed to be a real file descriptor. Even if it is, it should not be operated directly outside of libsrt. --- libavformat/libsrt.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/libavformat/libsrt.c b/libavformat/libsrt.c inde

Re: [FFmpeg-devel] [PATCH] avutils/hwcontext: When deriving a hwdevice, search for existing device in both directions

2021-08-09 Thread Xiang, Haihao
On Sat, 2021-08-07 at 01:46 +, Soft Works wrote: > The test /libavutil/tests/hwdevice checks that when deriving a device > from a source device and then deriving back to the type of the source > device, the result is matching the original source device, i.e. the > derivation mechanism doesn't c

Re: [FFmpeg-devel] [PATCH v4 1/2] libavutil/log: Add capability to prefix loglines with current time or current date+time

2021-08-09 Thread Nicolas George
Soft Works (12021-08-09): > Signed-off-by: softworkz > --- > v2: split commits differently, fix AVBPrint finalization > doc/APIchanges | 3 +++ > libavutil/log.c | 33 ++--- > libavutil/log.h | 10 ++ > libavutil/version.h | 2 +- > 4 files chang

Re: [FFmpeg-devel] [PATCH v2] avfilter: add QSV variants of the stack filters

2021-08-09 Thread Xiang, Haihao
On Sat, 2021-08-07 at 03:24 +, Soft Works wrote: > > -Original Message- > > From: ffmpeg-devel On Behalf Of > > Xiang, Haihao > > Sent: Friday, 6 August 2021 07:15 > > To: ffmpeg-devel@ffmpeg.org > > Subject: Re: [FFmpeg-devel] [PATCH v2] avfilter: add QSV variants of the > > stack fil

Re: [FFmpeg-devel] [PATCH 07/10] sws: add a new scaling API

2021-08-09 Thread Anton Khirnov
Quoting James Almer (2021-08-09 05:45:09) > On 8/8/2021 2:29 PM, Anton Khirnov wrote: > > +int sws_frame_start(struct SwsContext *c, AVFrame *dst, const AVFrame *src) > > +{ > > +int ret, allocated = 0; > > + > > +ret = av_frame_ref(c->frame_src, src); > > +if (ret < 0) > > +ret

Re: [FFmpeg-devel] [PATCH] avfilter: add (a)segment filters

2021-08-09 Thread Nicolas George
Paul B Mahol (12021-08-02): > Signed-off-by: Paul B Mahol > --- > doc/filters.texi | 31 > libavfilter/Makefile | 2 + > libavfilter/allfilters.c | 2 + > libavfilter/f_segment.c | 328 +++ > 4 files changed, 363 insertions(+) > create m

Re: [FFmpeg-devel] [PATCH v3 9/9] [GSoC] lavfi/dnn: DNNAsyncExecModule Execution Failure Handling

2021-08-09 Thread Fu, Ting
> -Original Message- > From: ffmpeg-devel On Behalf Of > Shubhanshu Saxena > Sent: 2021年8月8日 18:56 > To: ffmpeg-devel@ffmpeg.org > Cc: Shubhanshu Saxena > Subject: [FFmpeg-devel] [PATCH v3 9/9] [GSoC] lavfi/dnn: > DNNAsyncExecModule Execution Failure Handling > > This commit adds the

[FFmpeg-devel] [PATCH 2/2] FATE: add tests for v360/ssim360 filters

2021-08-09 Thread Anton Khirnov
--- libavfilter/Makefile | 3 +- tests/Makefile | 4 +- tests/fate-run.sh | 6 + tests/fate/filter-video.mak| 14 ++ tests/ref/fate/filter-spherical-barrel | 192 + tests/ref/fate/filter-spher

[FFmpeg-devel] [PATCH 1/2] lavfi: Add vf_ssim360 filter

2021-08-09 Thread Anton Khirnov
From: Shannon Chen Customized SSIM for various projections (and stereo formats) of 360 images and videos. Further contributions by: Ashok Mathew Kuruvilla Matthieu Patou Yu-Hui Wu Anton Khirnov Suggested-By: ffm...@fb.com Signed-off-by: Anton Khirnov --- Changelog|1 + li

[FFmpeg-devel] [PATCH] mxf : allow using codecs RAWVIDEO and V210 (with more rgb format and correct stored width/height)

2021-08-09 Thread Michael Krebs
* Let older tags on the same place as originally * Add new fate tests for rawvideo and v210 and update checksum for mxf tests * Add more rgb format (to allow r210 raw format) * Correct stored width and height when rawvideo or v210 encoder are used --- libavformat/mxf.c | 19

Re: [FFmpeg-devel] [PATCH 1/2] lavfi: Add vf_ssim360 filter

2021-08-09 Thread Nicolas George
Anton Khirnov (12021-08-09): > +heatmap_file = av_fopen_utf8(s->heatmap_path, "r"); > +if (!heatmap_file) { > +av_log(ctx, AV_LOG_ERROR, "cannot open heatmap file %s\n", > s->heatmap_path); > +return AVERROR(EINVAL); > +} > +ret = load_heatma

Re: [FFmpeg-devel] [PATCH v3 9/9] [GSoC] lavfi/dnn: DNNAsyncExecModule Execution Failure Handling

2021-08-09 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of Fu, > Ting > Sent: 2021年8月9日 18:13 > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH v3 9/9] [GSoC] lavfi/dnn: > DNNAsyncExecModule Execution Failure Handling > > > > > -O

Re: [FFmpeg-devel] [PATCH v3 1/2] avformat/ttml: split TTML paragraph based or not check into header

2021-08-09 Thread Jan Ekström
On Mon, Aug 2, 2021 at 3:54 PM Andreas Rheinhardt wrote: > > Jan Ekström: > > From: Jan Ekström > > > > This way it can be re-utilized in movenc. > > > > Signed-off-by: Jan Ekström > > --- > > libavformat/ttmlenc.c | 9 ++--- > > libavformat/ttmlenc.h | 39 +

Re: [FFmpeg-devel] [PATCH v3 2/2] avformat/movenc: add support for TTML muxing

2021-08-09 Thread Jan Ekström
On Thu, Aug 5, 2021 at 10:33 PM Andreas Rheinhardt wrote: > > Jan Ekström: > > From: Jan Ekström > > > > Includes basic support for both the ISMV ('dfxp') and MP4 ('stpp') > > methods. This initial version also foregoes fragmentation support > > in case the built-in sample squashing is to be util

Re: [FFmpeg-devel] [PATCH] Nvenc: Adding support for chroma qp offset for h264_nvenc and hevc_nvenc

2021-08-09 Thread Timo Rothenpieler
On 09.08.2021 11:04, Ricardo Monteiro wrote: If that limits its usage to constant QP only RC then I would keep it as is. Alright, applied with some minor amendments. Thanks, Timo smime.p7s Description: S/MIME Cryptographic Signature ___ ffmpeg-de

Re: [FFmpeg-devel] [PATCH 2/2] FATE: add tests for v360/ssim360 filters

2021-08-09 Thread Derek Buitenhuis
On 8/9/2021 11:29 AM, Anton Khirnov wrote: > diff --git a/libavfilter/Makefile b/libavfilter/Makefile > index b0348ccfa3..27dd0c4b47 100644 > --- a/libavfilter/Makefile > +++ b/libavfilter/Makefile > @@ -559,7 +559,8 @@ SKIPHEADERS-$(CONFIG_VULKAN) += vulkan.h > > OBJS-$(CONFIG_L

[FFmpeg-devel] [PATCH] avformat/movenc: Don't auto flush fragment if no frame available

2021-08-09 Thread Hu Weiwen
Even if FF_MOV_FLAG_FRAG_EVERY_FRAME is set, don't flush if no frame available. This fixes an issue that we overwrite the track duration, causing it to be out-of-sync with the last written packet in previous fragment. Signed-off-by: Hu Weiwen --- Hi Martin, I can confirm your patch "movenc: Don

[FFmpeg-devel] [PATCH v2 1/2] lavfi/vf_scale: dump the exact swscale_options to passed to libswscale

2021-08-09 Thread Linjie Fu
From: Linjie Fu Printed verbose log doesn't match the sws_flags specified in the cmdline for simple filter graph. ffmpeg .. -sws_flags bicubic .. [auto_scaler_0] w:iw h:ih flags:'' interl:0 [auto_scaler_0] w:310 h:449 fmt:yuva420p sar:0/1 -> w:310 h:449 fmt:yuv420p sar:0/1 flags:0x0 Filter

[FFmpeg-devel] [PATCH v2 2/2] libavfilter/graphparser: Add scale_sws_opts parse support in avfilter_graph_parse2

2021-08-09 Thread Linjie Fu
From: Linjie Fu To pass the swscale options for the inserted scalers. ffmpeg -i input.mp4 -filter_complex \ "scale_sws_opts=alphablend=checkerboard;format=nv12" \ -t 0.5 output.mp4 Update docs. Signed-off-by: Linjie Fu --- doc/filters.texi | 7 --- libavfilter/graphpars

Re: [FFmpeg-devel] [PATCH] avformat/movenc: Don't auto flush fragment if no frame available

2021-08-09 Thread Martin Storsjö
Hi, On Mon, 9 Aug 2021, Hu Weiwen wrote: Even if FF_MOV_FLAG_FRAG_EVERY_FRAME is set, don't flush if no frame available. This fixes an issue that we overwrite the track duration, causing it to be out-of-sync with the last written packet in previous fragment. Signed-off-by: Hu Weiwen --- Hi M

Re: [FFmpeg-devel] [PATCH 10/10] lavfi/vf_scale: pass the thread count to the scaler

2021-08-09 Thread Michael Niedermayer
On Sun, Aug 08, 2021 at 07:29:41PM +0200, Anton Khirnov wrote: > --- > libavfilter/vf_scale.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c > index b62fb37d4b..14e202bf77 100644 > --- a/libavfilter/vf_scale.c > +++ b/libavfilter/vf_scale.

[FFmpeg-devel] [PATCH] avfilter: add (a)segment filters

2021-08-09 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- doc/filters.texi | 34 libavfilter/Makefile | 2 + libavfilter/allfilters.c | 2 + libavfilter/f_segment.c | 335 +++ 4 files changed, 373 insertions(+) create mode 100644 libavfilter/f_segment.c diff --g

[FFmpeg-devel] [PATCH v3 1/4] avdevice/decklink: add link configuration

2021-08-09 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- doc/outdevs.texi| 6 ++ libavdevice/decklink_common.cpp | 9 + libavdevice/decklink_common.h | 8 libavdevice/decklink_common_c.h | 1 + libavdevice/decklink_enc.cpp| 2 ++ libavdevice/decklink_enc_c.c

[FFmpeg-devel] [PATCH v3 2/4] avdevice/decklink: add sqd configure

2021-08-09 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- configure | 2 +- doc/outdevs.texi| 5 + libavdevice/decklink_common.cpp | 7 +++ libavdevice/decklink_common_c.h | 1 + libavdevice/decklink_enc_c.c| 4 5 files changed, 18 insertions(+), 1 de

[FFmpeg-devel] [PATCH v3 3/4] avdevice/decklink: add level_a configure

2021-08-09 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- doc/outdevs.texi| 5 + libavdevice/decklink_common.cpp | 17 + libavdevice/decklink_common_c.h | 1 + libavdevice/decklink_enc_c.c| 4 4 files changed, 27 insertions(+) diff --git a/doc/outdevs.texi

[FFmpeg-devel] [PATCH v3 4/4] avdevice/decklink: support for more duplex mode for Decklink 8K Pro

2021-08-09 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- doc/indevs.texi | 16 +++- doc/outdevs.texi| 16 +++- libavdevice/decklink_common.cpp | 4 ++-- libavdevice/decklink_common.h | 11 +++ libavdevice/decklink_dec_c.c| 10

Re: [FFmpeg-devel] [PATCH] lavfi/qsvvpp: do not mix up FFmpeg and SDK error code

2021-08-09 Thread Xiang, Haihao
On Thu, 2021-08-05 at 16:05 +, Soft Works wrote: > > -Original Message- > > From: ffmpeg-devel On Behalf Of > > Xiang, Haihao > > Sent: Thursday, 5 August 2021 07:24 > > To: ffmpeg-devel@ffmpeg.org > > Subject: Re: [FFmpeg-devel] [PATCH] lavfi/qsvvpp: do not mix up FFmpeg > > and SDK e

Re: [FFmpeg-devel] [PATCH] lavfi/qsvvpp: do not mix up FFmpeg and SDK error code

2021-08-09 Thread James Almer
On 8/9/2021 10:55 PM, Xiang, Haihao wrote: On Thu, 2021-08-05 at 16:05 +, Soft Works wrote: -Original Message- From: ffmpeg-devel On Behalf Of Xiang, Haihao Sent: Thursday, 5 August 2021 07:24 To: ffmpeg-devel@ffmpeg.org Subject: Re: [FFmpeg-devel] [PATCH] lavfi/qsvvpp: do not mix u

[FFmpeg-devel] [PATCH] libavcodec/nvdec: Do not exceed 32 surfaces when initializing hw_frames_ctx

2021-08-09 Thread Ameer J
From: ameerj <52414509+ame...@users.noreply.github.com> nvdec is likely to fail when the initial pool size exceeds 32. This change ensures we don't exceed the limit when initializing a new hw_frames_ctx Signed-off-by: ameerj <52414509+ame...@users.noreply.github.com> --- libavcodec/nvdec.c | 6

Re: [FFmpeg-devel] [PATCH] lavfi/qsvvpp: do not mix up FFmpeg and SDK error code

2021-08-09 Thread Xiang, Haihao
On Mon, 2021-08-09 at 22:58 -0300, James Almer wrote: > On 8/9/2021 10:55 PM, Xiang, Haihao wrote: > > On Thu, 2021-08-05 at 16:05 +, Soft Works wrote: > > > > -Original Message- > > > > From: ffmpeg-devel On Behalf Of > > > > Xiang, Haihao > > > > Sent: Thursday, 5 August 2021 07:24 >

Re: [FFmpeg-devel] [PATCH] libavcodec/qsvence: Use QSV encoder defaults as ffmpeg defaults

2021-08-09 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Xiang, Haihao > Sent: Monday, 9 August 2021 05:00 > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH] libavcodec/qsvence: Use QSV encoder > defaults as ffmpeg defaults > > On Sat, 2021-08-07 at 03:50 +, Soft W