Re: [FFmpeg-devel] [PATCH v5 1/3] avutil/hwcontext_qsv: derive QSV frames to D3D11VA frames

2022-05-23 Thread Xiang, Haihao
On Fri, 2022-05-20 at 00:41 +, Xiang, Haihao wrote: > On Sat, 2022-05-07 at 06:24 +, Tong Wu wrote: > > Fixes: > > $ ffmpeg.exe -y -hwaccel qsv -init_hw_device d3d11va=d3d11 \ > > -init_hw_device qsv=qsv@d3d11 -c:v h264_qsv -i input.h264 \ > > -vf "hwmap=derive_device=d3d11va,format=d3d11"

Re: [FFmpeg-devel] [PATCH] avutil/frame: Add av_frame_transfer_side_data() function

2022-05-23 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Anton > Khirnov > Sent: Monday, December 6, 2021 7:38 PM > To: ffmpeg-devel@ffmpeg.org > Subject: [FFmpeg-devel] [PATCH] avutil/frame: Add > av_frame_transfer_side_data() function > > From: Soft Works > > Signed-off-by: softworkz

[FFmpeg-devel] [PATCH 1/2] libavfi/dnn: refine enum DNNColorOrder

2022-05-23 Thread Ting Fu
Change the DCO_RGB and DCO_BGR color order in DNNColorOrder to DCO_RGB_PACKED and DCO_GBR_PACKED for following RGB planar support. Signed-off-by: Ting Fu --- libavfilter/dnn/dnn_backend_openvino.c | 2 +- libavfilter/dnn/dnn_backend_tf.c | 2 +- libavfilter/dnn/dnn_io_proc.c | 4 +

[FFmpeg-devel] [PATCH 2/2] libavfi/dnn: add LibTorch as one of DNN backend

2022-05-23 Thread Ting Fu
PyTorch is an open source machine learning framework that accelerates the path from research prototyping to production deployment. Official websit: https://pytorch.org/. We call the C++ library of PyTorch as LibTorch, the same below. To build FFmpeg with LibTorch, please take following steps as re

Re: [FFmpeg-devel] [PATCH 2/2] libavfi/dnn: add LibTorch as one of DNN backend

2022-05-23 Thread Jean-Baptiste Kempf
Hello, Are we seriously going to add all backends for ML in FFmpeg? Next one is ONNNX? jb On Mon, 23 May 2022, at 11:29, Ting Fu wrote: > PyTorch is an open source machine learning framework that accelerates > the path from research prototyping to production deployment. Official > websit: https:

[FFmpeg-devel] [PATCH] libavformat/tls_libtls: handle TLS_WANT_{POLLIN, POLLOUT} in read/write functions

2022-05-23 Thread Matthieu Bouron
According to the tls documentation: tls_read() and tls_write() can return TLS_WANT_POLLIN and TLS_WANT_POLLOUT which indicates that the same operation must be repeated immediately. This commit prevents the libtls backend from failing when libtls returns TLS_WANT_POLLIN or TLS_WANT_POLLOUT with the

Re: [FFmpeg-devel] [PATCH 1/3] fftools: Stop using av_fopen_utf8

2022-05-23 Thread Martin Storsjö
On Sat, 21 May 2022, Soft Works wrote: -Original Message- From: ffmpeg-devel On Behalf Of Martin Storsjö Sent: Friday, May 20, 2022 11:13 PM To: ffmpeg-devel@ffmpeg.org Subject: [FFmpeg-devel] [PATCH 1/3] fftools: Stop using av_fopen_utf8 Provide a header based inline reimplementation

Re: [FFmpeg-devel] [PATCH 1/3] fftools: Stop using av_fopen_utf8

2022-05-23 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Martin > Storsjö > Sent: Monday, May 23, 2022 12:53 PM > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH 1/3] fftools: Stop using av_fopen_utf8 > > On Sat, 21 May 2022, Soft Works wrote: > > >>

Re: [FFmpeg-devel] [PATCH 1/3] fftools: Stop using av_fopen_utf8

2022-05-23 Thread Martin Storsjö
On Mon, 23 May 2022, Soft Works wrote: -Original Message- From: ffmpeg-devel On Behalf Of Martin Storsjö Sent: Monday, May 23, 2022 12:53 PM To: FFmpeg development discussions and patches Subject: Re: [FFmpeg-devel] [PATCH 1/3] fftools: Stop using av_fopen_utf8 On Sat, 21 May 2022,

Re: [FFmpeg-devel] [PATCH 1/3] fftools: Stop using av_fopen_utf8

2022-05-23 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Martin > Storsjö > Sent: Monday, May 23, 2022 12:58 PM > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH 1/3] fftools: Stop using av_fopen_utf8 > > On Mon, 23 May 2022, Soft Works wrote: > > > >

Re: [FFmpeg-devel] [PATCH 1/3] fftools: Stop using av_fopen_utf8

2022-05-23 Thread Martin Storsjö
On Mon, 23 May 2022, Soft Works wrote: -Original Message- From: ffmpeg-devel On Behalf Of Martin Storsjö Sent: Monday, May 23, 2022 12:58 PM To: FFmpeg development discussions and patches Subject: Re: [FFmpeg-devel] [PATCH 1/3] fftools: Stop using av_fopen_utf8 On Mon, 23 May 2022, So

[FFmpeg-devel] [PATCH v7 0/2] use av_fopen_utf8() instead of plain fopen()

2022-05-23 Thread ffmpegagent
Unify file access operations by replacing usages of direct calls to posix fopen() v2: Remove changes to fftools for now v3: Add some additional replacements v4: Fix and improve commit messages v5: Add patch to remap ff_open in libavfilter for MSVC on Windows v6: Add avfilter/file_open.c to "Files

[FFmpeg-devel] [PATCH v7 1/2] avfilter: use av_fopen_utf8() instead of plain fopen()

2022-05-23 Thread softworkz
From: softworkz Unify file access operations by replacing usages of direct calls to posix fopen() to prepare for long filename support on Windows. Signed-off-by: softworkz --- libavfilter/af_firequalizer.c | 2 +- libavfilter/vf_deshake.c | 2 +- libavfilter/vf_psnr.c

[FFmpeg-devel] [PATCH v7 2/2] avcodec/dvdsubdec: use av_fopen_utf8() instead of plain fopen()

2022-05-23 Thread softworkz
From: softworkz Unify file access operations by replacing usages of direct calls to posix fopen() to prepare for long filename support on Windows. Signed-off-by: softworkz --- libavcodec/dvdsubdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/dvdsubdec.c b/li

[FFmpeg-devel] [PATCH v4 0/2] Support long file names on Windows

2022-05-23 Thread ffmpegagent
This patchset adds support for long file and directory paths on Windows. The implementation follows the same logic that .NET is using internally, with the only exception that it doesn't expand short path components in 8.3 format. .NET does this as the same function is also used for other purposes,

[FFmpeg-devel] [PATCH v4 1/2] avutil/wchar_filename, file_open: Support long file names on Windows

2022-05-23 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavutil/file_open.c | 2 +- libavutil/wchar_filename.h | 166 + 2 files changed, 167 insertions(+), 1 deletion(-) diff --git a/libavutil/file_open.c b/libavutil/file_open.c index fb64c2e4ee..58a6073353 10

[FFmpeg-devel] [PATCH v4 2/2] avformat/os_support: Support long file names on Windows

2022-05-23 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavformat/os_support.h | 26 +- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/libavformat/os_support.h b/libavformat/os_support.h index 5e6b32d2dc..bd8c89568f 100644 --- a/libavformat/os_support.h +++ b/liba

Re: [FFmpeg-devel] [PATCH 1/3] fftools: Stop using av_fopen_utf8

2022-05-23 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Martin > Storsjö > Sent: Monday, May 23, 2022 1:12 PM > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH 1/3] fftools: Stop using av_fopen_utf8 > > On Mon, 23 May 2022, Soft Works wrote: > > >> -

Re: [FFmpeg-devel] Issue - Error Due to higher number of threads

2022-05-23 Thread Srihari Sridhar
Hi, I tried on AMD ThreadRipper 3990x machine. It has 64 cores and 128 logical processors. The windows make starts failing with 64 threads.It worked successfully until 32 and even 48 threads. Regards, S Srihari On Thu, 19 May 2022 at 15:42, Wolfgang Haupt wrote: > > Hi, > > > > Thanks for the

Re: [FFmpeg-devel] [PATCH v2 1/2] avutil/wchar_filename, file_open: Support long file names on Windows

2022-05-23 Thread nil-admirari
>> Not possible for stat precisely because of function and struct sharing a >> name. > That's exactly what is said above and before :-) My previous question was not answered, so I had to look up the answer myself. > I'm actually wondering how does it even compile. All stat structs in code > beco

Re: [FFmpeg-devel] [PATCH v2 1/2] avutil/wchar_filename, file_open: Support long file names on Windows

2022-05-23 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of nil- > admir...@mailo.com > Sent: Monday, May 23, 2022 5:36 PM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v2 1/2] avutil/wchar_filename, > file_open: Support long file names on Windows > > >> Not possible for

[FFmpeg-devel] [PATCH] swscale/x86/yuv_2_rgb: fix access to memory past the frame data in yuv to rgb conversion

2022-05-23 Thread Vardan Margaryan
Y, U, V data is loaded at the end of the current iteration for the next iteration. It results in memory access past the frame data on the last iteration (that data is never used after the loading). So load data at the start of the iteration, so that only useful data is loaded. Signed-off-by:

Re: [FFmpeg-devel] [PATCH v2 1/2] avutil/wchar_filename, file_open: Support long file names on Windows

2022-05-23 Thread Hendrik Leppkes
On Mon, May 23, 2022 at 5:48 PM Soft Works wrote: > > > > > -Original Message- > > From: ffmpeg-devel On Behalf Of nil- > > admir...@mailo.com > > Sent: Monday, May 23, 2022 5:36 PM > > To: ffmpeg-devel@ffmpeg.org > > Subject: Re: [FFmpeg-devel] [PATCH v2 1/2] avutil/wchar_filename, > > f

Re: [FFmpeg-devel] [PATCH] Changelog: Add line for IPFS

2022-05-23 Thread Mark Gaiser
On Thu, May 19, 2022 at 5:01 PM Michael Niedermayer wrote: > Noticed-and-suggested-by: Mark Gaiser > Signed-off-by: Michael Niedermayer > --- > Changelog | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Changelog b/Changelog > index 4d42a0f681..869f05de34 100644 > --- a/Changelog > +++

[FFmpeg-devel] [PATCH v4 0/1] [WIP] avutil/csp changes

2022-05-23 Thread Leo Izen
Changes in v4: - Provide the patch with an AVCIExy struct so we can discuss its potential pros and cons Changes in v3: - increase precision for AVR() macro to 100k, at haasn's request - add #define AVUTIL_CSP_DENOM 10 - add 0.5 to the AVR macro definition to get exact values from truncation

[FFmpeg-devel] [PATCH v4 1/1] avutil/csp: create public API for colorspace structs

2022-05-23 Thread Leo Izen
This commit moves some of the functionality from avfilter/colorspace into avutil/csp and exposes it as a public API so it can be used by libavcodec and/or libavformat. It also converts those structs from double values to AVRational to make regression testing easier and more consistent. --- libavfi

Re: [FFmpeg-devel] [PATCH] avcodec/texturedspenc: Fix indexing in color distribution determination

2022-05-23 Thread Michael Niedermayer
On Wed, Jan 04, 2017 at 11:52:50PM +0100, Vittorio Giovara wrote: > On Wed, Jan 4, 2017 at 1:06 AM, Michael Niedermayer > wrote: > > On Tue, Jan 03, 2017 at 02:15:20PM +0100, Vittorio Giovara wrote: > >> On Mon, Jan 2, 2017 at 2:00 AM, James Almer wrote: > >> > On 1/1/2017 8:28 PM, Michael Nieder

[FFmpeg-devel] [PATCH 1/2] avcodec/vc1_loopfilter: Factor duplicate code in vc1_b_h_intfi_loop_filter()

2022-05-23 Thread Michael Niedermayer
Fixes: CID1435168 Signed-off-by: Michael Niedermayer --- libavcodec/vc1_loopfilter.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libavcodec/vc1_loopfilter.c b/libavcodec/vc1_loopfilter.c index 0f990cccef..ee694ede28 100644 --- a/libavcodec/vc1_loopfilter.c +++ b/libav

[FFmpeg-devel] [PATCH 2/2] avfilter/vf_tpad: Mark unreachable code by av_assert()

2022-05-23 Thread Michael Niedermayer
Helps: CID1440835 Signed-off-by: Michael Niedermayer --- libavfilter/vf_tpad.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavfilter/vf_tpad.c b/libavfilter/vf_tpad.c index c870478158..1a41c3f1a7 100644 --- a/libavfilter/vf_tpad.c +++ b/libavfilter/vf_tpad.c @@ -18,6

Re: [FFmpeg-devel] [PATCH v2 1/2] avutil/wchar_filename, file_open: Support long file names on Windows

2022-05-23 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Hendrik > Leppkes > Sent: Monday, May 23, 2022 7:12 PM > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH v2 1/2] avutil/wchar_filename, > file_open: Support long file names on Windows > > On Mon,

Re: [FFmpeg-devel] [PATCH v2 1/2] avutil/wchar_filename, file_open: Support long file names on Windows

2022-05-23 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Soft > Works > Sent: Tuesday, May 24, 2022 7:33 AM > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH v2 1/2] avutil/wchar_filename, > file_open: Support long file names on Windows > > > > > ---