Re: [FFmpeg-devel] [PATCH 1/2] libavformat/hlsenc: Enable HTTP, persistent connections for hls_delete_file

2022-12-05 Thread Basel Sayeh
On 12/5/22 05:29, Steven Liu wrote: Hi Basel, Could you send a new version patchset name lead by "v2" ? git format -patch -v 2 Will do ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To un

[FFmpeg-devel] [PATCH v2 1/2] libavformat/hlsenc: Enable HTTP persistent connections for hls_delete_file

2022-12-05 Thread Basel Sayeh
hls_delete_file and dashenc_delete_file functions open a new HTTP connection regardless of the http_persistent value, So change the behaviour to keep http connections open if http_persistent is set Signed-off-by: Basel Sayeh --- libavformat/hlsenc.c | 18 +- 1 file changed, 13

[FFmpeg-devel] [PATCH v2 2/2] libavformat/dashenc: Enable HTTP persistent connections for dashenc_delete_file

2022-12-05 Thread Basel Sayeh
Signed-off-by: Basel Sayeh --- libavformat/dashenc.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 9c1bcad9e3..2521568ea5 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -179,6 +179,7 @@ ty

Re: [FFmpeg-devel] [PATCH v2 1/2] libavformat/hlsenc: Enable HTTP persistent connections for hls_delete_file

2022-12-05 Thread Basel Sayeh
oops, another small mistake, please see v3 ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH v2 2/2] libavformat/dashenc: Enable HTTP persistent connections for dashenc_delete_file

2022-12-05 Thread Basel Sayeh
oops, another small mistake, please see v3 From: Basel Sayeh Sent: Monday, December 5, 2022 2:22 PM To: ffmpeg-devel@ffmpeg.org Cc: Basel Sayeh Subject: [PATCH v2 2/2] libavformat/dashenc: Enable HTTP persistent connections for dashenc_delete_file Signed-off-

[FFmpeg-devel] [PATCH v3 1/2] libavformat/hlsenc: Enable HTTP persistent connections

2022-12-05 Thread Basel Sayeh
V3 hls_delete_file and dashenc_delete_file functions open a new HTTP connection regardless of the http_persistent value, So change the behaviour to keep http connections open if http_persistent is set Signed-off-by: Basel Sayeh --- libavformat/hlsenc.c | 18 +- 1 file changed

[FFmpeg-devel] [PATCH v3 2/2] libavformat/dashenc: Enable HTTP persistent connections for dashenc_delete_file

2022-12-05 Thread Basel Sayeh
Signed-off-by: Basel Sayeh --- libavformat/dashenc.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 9c1bcad9e3..ba0eb913a1 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -179,6 +179,7 @@ ty

Re: [FFmpeg-devel] [PATCH] lavc/videotoolbox: validate vt context in the decoder callback

2022-12-05 Thread Rick Kern
On Sun, Dec 4, 2022 at 12:51 PM Alessandro Di Nepi < alessandro.din...@gmail.com> wrote: > On 4 Dec 2022, 17:01 +0200, FFmpeg development discussions and patches < > ffmpeg-devel@ffmpeg.org>, wrote: > > When this happens, does it continue happening, or is it transient? My > main > > concern is log

[FFmpeg-devel] [PATCH 1/2] avcodec/thread: add support for frame threading receive_frame based decoders

2022-12-05 Thread Timo Rothenpieler
This is fairly basic and makes a lot of assumptions, but it works for the most simple cases. For one, it only ever fetches exactly one packet per call to receive_frame. Right now it's impossible for there to ever be more than one, but the API allows for more, which might need handled in the future

[FFmpeg-devel] [PATCH 2/2] avcodec/mjpegdec: add support for frame threading

2022-12-05 Thread Timo Rothenpieler
In my tests, this lead to a notable speed increase with the amount of threads used. Decoding a 720p sample gave the following results: 1 Thread: 1428 FPS 2 Threads: 2501 FPS 8 Threads: 7575 FPS Automatic: 11326 FPS (On a 16 Core/32 Threads system) --- libavcodec/jpeglsdec.c | 2 +- libavcodec/mj

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/mjpegdec: add support for frame threading

2022-12-05 Thread Andreas Rheinhardt
Timo Rothenpieler: > In my tests, this lead to a notable speed increase with the amount > of threads used. Decoding a 720p sample gave the following results: > > 1 Thread: 1428 FPS > 2 Threads: 2501 FPS > 8 Threads: 7575 FPS > Automatic: 11326 FPS (On a 16 Core/32 Threads system) > --- > libavcod

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/mjpegdec: add support for frame threading

2022-12-05 Thread Paul B Mahol
On 12/5/22, Andreas Rheinhardt wrote: > Timo Rothenpieler: >> In my tests, this lead to a notable speed increase with the amount >> of threads used. Decoding a 720p sample gave the following results: >> >> 1 Thread: 1428 FPS >> 2 Threads: 2501 FPS >> 8 Threads: 7575 FPS >> Automatic: 11326 FPS (On

Re: [FFmpeg-devel] [PATCH] Revert "avformat/mov: disallow a zero sample size in trun atoms"

2022-12-05 Thread Marton Balint
On Sun, 4 Dec 2022, Chris Ribble wrote: More strict enforcement of sample size was introduced to avoid DOS/Timeout with crafted (fuzzed) files and disallow emitting zero sized packets. Invalid file support is not something that is always worth doing, there are other, more important factors,

[FFmpeg-devel] [PATCH] libavcodec/qsvenc: enable Hyper Encode

2022-12-05 Thread galinart
Hyper Encode uses Intel integrated and discrete graphics on one system to accelerate encoding of a single video stream. Depending on the selected parameters and codecs, performance gain on AlderLake iGPU + ARC Gfx up to 1.6x. More information: https://www.intel.co.uk/content/www/uk/en/architectu

Re: [FFmpeg-devel] [PATCH 1/2] avutil: move bswapdsp from avcodec to avutil

2022-12-05 Thread Michael Niedermayer
On Sun, Dec 04, 2022 at 09:36:19PM -0800, mindm...@gmail.com wrote: > From: Mark Reid > > Also renamed bswap_buf to bswap32_buf > --- > configure | 56 --- > libavcodec/4xm.c | 14 ++--- > libavcodec/Makefile

Re: [FFmpeg-devel] [PATCH 2/5] Revert "avcodec/decode: use a packet list to store packet properties"

2022-12-05 Thread Michael Niedermayer
On Sun, Dec 04, 2022 at 06:52:24PM -0300, James Almer wrote: > The idea behind last_pkt_props was to store the properties of the last packet > fed to the decoder. Any sort of queueing required by decoders that consume > several packets before they start outputting frames should be done by the > dec

Re: [FFmpeg-devel] [PATCH 1/2] avutil: move bswapdsp from avcodec to avutil

2022-12-05 Thread Mark Reid
On Mon, Dec 5, 2022 at 12:33 PM Michael Niedermayer wrote: > On Sun, Dec 04, 2022 at 09:36:19PM -0800, mindm...@gmail.com wrote: > > From: Mark Reid > > > > Also renamed bswap_buf to bswap32_buf > > --- > > configure | 56 --- > > libavcodec/4

[FFmpeg-devel] [PATCH v2 2/2] libswscale: add AVBSwapDSPContext and use

2022-12-05 Thread mindmark
From: Mark Reid There are some places in input.c that could use it too but they aren't currently being pass the SwsContext --- libswscale/output.c | 36 +++ libswscale/swscale_internal.h | 3 +++ libswscale/swscale_unscaled.c | 26 +-

[FFmpeg-devel] [PATCH v2 1/2] avutil: move bswapdsp from avcodec to avutil

2022-12-05 Thread mindmark
From: Mark Reid Also renamed bswap_buf to bswap32_buf --- configure | 56 --- libavcodec/4xm.c | 14 ++--- libavcodec/Makefile | 1 - libavcodec/ac3dec.c | 4 +-

[FFmpeg-devel] [PATCH 1/2] lavc: add new minimize_copies hwaccel_flag

2022-12-05 Thread Timo Rothenpieler
--- doc/APIchanges | 3 +++ libavcodec/avcodec.h | 11 +++ libavcodec/options_table.h | 1 + libavcodec/version.h | 2 +- 4 files changed, 16 insertions(+), 1 deletion(-) diff --git a/doc/APIchanges b/doc/APIchanges index ab7ce15fae..9c1f905a61 100644 --- a/doc/

[FFmpeg-devel] [PATCH 2/2] avcodec/nvdec: make explicit copy of frames unless user requested otherwise

2022-12-05 Thread Timo Rothenpieler
--- libavcodec/nvdec.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/libavcodec/nvdec.c b/libavcodec/nvdec.c index fbaedf0b6b..76ee395734 100644 --- a/libavcodec/nvdec.c +++ b/libavcodec/nvdec.c @@ -51,6 +51,8 @@ typedef struct NVDECDecoder { CudaFunctio

Re: [FFmpeg-devel] [PATCH] lavu/hwcontext_vaapi: Skip 'vgem' driver

2022-12-05 Thread Brian Norris
On Mon, Dec 05, 2022 at 04:37:29AM +, Xiang, Haihao wrote: > On Wed, 2022-11-23 at 13:54 -0800, Brian Norris wrote: > > +} else if (!strncmp(info->name, "vgem", 4)) { > > The virtual GEM device is vgem, so better to use strcmp here. Good point, we probably shouldn't be matchi

[FFmpeg-devel] [PATCH v2] lavu/hwcontext_vaapi: Skip 'vgem' driver

2022-12-05 Thread Brian Norris
There can be more than one available render node, and it's not guaranteed the first node we come across is the correct one. In particular, 'vgem' devices are common, and are never VAAPI-enabled and thus not valid here. We have a 'kernel_driver' arg already for specifying a single driver we *do* wa

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/mjpegdec: add support for frame threading

2022-12-05 Thread Timo Rothenpieler
On 05.12.2022 15:15, Andreas Rheinhardt wrote: Timo Rothenpieler: In my tests, this lead to a notable speed increase with the amount of threads used. Decoding a 720p sample gave the following results: 1 Thread: 1428 FPS 2 Threads: 2501 FPS 8 Threads: 7575 FPS Automatic: 11326 FPS (On a 16 Core/

[FFmpeg-devel] [PATCH 2/6] avcodec/wmadec: clear pts when returning a frame during flush

2022-12-05 Thread James Almer
This will be needed for the following commit, after which ff_get_buffer() will stop setting frame->pts to AV_NOPTS_VALUE. Signed-off-by: James Almer --- This one goes before '[PATCH 2/5] Revert "avcodec/decode: use a packet list to store packet properties"' libavcodec/wmadec.c | 1 + 1 file cha

Re: [FFmpeg-devel] [PATCH] lavc/videotoolbox: validate vt context in the decoder callback

2022-12-05 Thread zhilizhao(赵志立)
> On Dec 5, 2022, at 21:36, Rick Kern wrote: > > On Sun, Dec 4, 2022 at 12:51 PM Alessandro Di Nepi < > alessandro.din...@gmail.com> wrote: > >> On 4 Dec 2022, 17:01 +0200, FFmpeg development discussions and patches < >> ffmpeg-devel@ffmpeg.org>, wrote: >>> When this happens, does it continue

[FFmpeg-devel] [PATCH] lavfi/vf_vpp_qsv: accept P010 input in system memory

2022-12-05 Thread Xiang, Haihao
From: Haihao Xiang Signed-off-by: Haihao Xiang --- libavfilter/qsvvpp.c | 2 ++ libavfilter/vf_vpp_qsv.c | 1 + 2 files changed, 3 insertions(+) diff --git a/libavfilter/qsvvpp.c b/libavfilter/qsvvpp.c index a588a37610..6f58fe6017 100644 --- a/libavfilter/qsvvpp.c +++ b/libavfilter/qsvvpp.

[FFmpeg-devel] [PATCH] lavfi/vf_vpp_qsv: allow user to set scale_mode with constants

2022-12-05 Thread Xiang, Haihao
From: Haihao Xiang $ ffmpeg -f lavfi -i testsrc -vf "format=nv12,vpp_qsv=scale_mode=hq" -f null - Signed-off-by: Haihao Xiang --- libavfilter/vf_vpp_qsv.c | 4 1 file changed, 4 insertions(+) diff --git a/libavfilter/vf_vpp_qsv.c b/libavfilter/vf_vpp_qsv.c index a14b3de7b5..8013e0da6c 10

Re: [FFmpeg-devel] [PATCH] Revert "avformat/mov: disallow a zero sample size in trun atoms"

2022-12-05 Thread Chris Ribble
On Mon, Dec 5, 2022 at 12:04 PM Marton Balint wrote: > > Share the sample please. If the patch I proposed does not fix it, I am not > sure what is the best approach here. > Sure, I will send you the URL to the file so that you can try it. ___ ffmpeg-dev