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

2024-01-27 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of > wenbin.chen-at-intel@ffmpeg.org > Sent: Monday, January 22, 2024 2:11 PM > To: ffmpeg-devel@ffmpeg.org > Subject: [FFmpeg-devel] [PATCH] libavfi/dnn: add LibTorch as one of DNN > backend > > From: Wenbin Chen > > PyTorch is

[FFmpeg-devel] Sovereign Tech Fund

2024-01-27 Thread Michael Niedermayer
Hi all We are offered to apply for a sponsorship of FFmpeg by the Sovereign Tech Fund (STF). Please read the following to get a better understanding what STF is about: (In short it is about maintenance and sustainability, not features) https://www.sovereigntechfund.de/programs/applications As s

[FFmpeg-devel] [PATCH 3/3] avfilter/yadif_common: fix timestamps with very small timebases

2024-01-27 Thread Marton Balint
Yadif filter assumed that the output timebase is always half of the input timebase. This is not true if halving the input time base is not representable as an AVRational causing the output timestamps to be invalidly scaled in such a case. So let's use av_reduce instead of av_mul_q when calculating

[FFmpeg-devel] [PATCH 2/3] avfilter/yadif_common: factorize some part of the config_output and the uninit functions

2024-01-27 Thread Marton Balint
This unifies slightly diverged code and ensures that cc_fifo is always initialized. Signed-off-by: Marton Balint --- libavfilter/vf_bwdif.c | 30 +++--- libavfilter/vf_bwdif_cuda.c | 15 +++ libavfilter/vf_bwdif_vulkan.c | 12 - libavfi

[FFmpeg-devel] [PATCH 1/3] avutil/rational: increase av_d2q precision

2024-01-27 Thread Marton Balint
Fixes parsing small timebases from expressions (where the expression API converts the result to double), like in this command line: ffprobe -f lavfi -i testsrc=d=1,settb=1/20 -show_streams -show_entries stream=time_base Before the patch timebase was parsed as 1/19. Signed-off-by

Re: [FFmpeg-devel] [PATCH 3/3] libavfilter/vf_dnn_detect: Use class confidence to filt boxes

2024-01-27 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of > wenbin.chen-at-intel@ffmpeg.org > Sent: Wednesday, January 17, 2024 3:22 PM > To: ffmpeg-devel@ffmpeg.org > Subject: [FFmpeg-devel] [PATCH 3/3] libavfilter/vf_dnn_detect: Use class > confidence to filt boxes > > From: Wenbin

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/cbs_h266_syntax_template: sanity check num_multi_layer_olss

2024-01-27 Thread Michael Niedermayer
On Sat, Jan 27, 2024 at 09:02:30PM -0300, James Almer wrote: > On 1/27/2024 8:56 PM, Michael Niedermayer wrote: > > On Sat, Jan 27, 2024 at 09:25:16AM -0300, James Almer wrote: > > > On 1/26/2024 6:46 PM, Michael Niedermayer wrote: > > > > It is not possible to encode a index into an empty list. Th

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/cbs_h266_syntax_template: sanity check num_multi_layer_olss

2024-01-27 Thread James Almer
On 1/27/2024 8:56 PM, Michael Niedermayer wrote: On Sat, Jan 27, 2024 at 09:25:16AM -0300, James Almer wrote: On 1/26/2024 6:46 PM, Michael Niedermayer wrote: It is not possible to encode a index into an empty list. Thus this must be invalid at this point or before. Its likely a broader earlier

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/cbs_h266_syntax_template: sanity check num_multi_layer_olss

2024-01-27 Thread Michael Niedermayer
On Sat, Jan 27, 2024 at 09:25:16AM -0300, James Almer wrote: > On 1/26/2024 6:46 PM, Michael Niedermayer wrote: > > It is not possible to encode a index into an empty list. Thus > > this must be invalid at this point or before. > > Its likely a broader earlier check can be used here, someone knowin

[FFmpeg-devel] [PATCH v3 1/1] avfilter/vf_vpp_qsv: apply 3D LUT from file.

2024-01-27 Thread Chen Yufei
Usage: "vpp_qsv=lut3d_file=" Requires oneVPL, using system memory 3D LUT surface. Signed-off-by: Chen Yufei --- libavfilter/Makefile | 8 +- libavfilter/lut3d.c | 669 +++ libavfilter/lut3d.h | 13 + libavfilter/vf_lut3d.c | 590 +--

[FFmpeg-devel] [PATCH v3 0/1] avfilter/vf_vpp_qsv: apply 3D LUT from file.

2024-01-27 Thread Chen Yufei
This version of PATCH use `QSV_RUNTIME_VERSION_ATLEAST` to apply 3D LUT when libvpl runtime API version >= 2.11. Chen Yufei (1): avfilter/vf_vpp_qsv: apply 3D LUT from file. libavfilter/Makefile | 8 +- libavfilter/lut3d.c | 669 +++ libavfilter/l

Re: [FFmpeg-devel] [PATCH v3 1/6] avformat: add muxer support for H266/VVC

2024-01-27 Thread Nuo Mi
On Sat, Jan 27, 2024 at 10:38 PM James Almer wrote: > On 1/27/2024 1:15 AM, Nuo Mi wrote: > > diff --git a/libavformat/isom_tags.c b/libavformat/isom_tags.c > > index a575b7c160..705811e950 100644 > > --- a/libavformat/isom_tags.c > > +++ b/libavformat/isom_tags.c > > @@ -123,6 +123,9 @@ const AV

Re: [FFmpeg-devel] [PATCH v3 2/6] avformat/mpegtsenc: refact mpegts_check_bitstream to loop up table

2024-01-27 Thread Nuo Mi
Hi Andreas, thank you for the review On Sat, Jan 27, 2024 at 10:44 PM Andreas Rheinhardt < andreas.rheinha...@outlook.com> wrote: > Nuo Mi: > > --- > > libavformat/mpegtsenc.c | 33 ++--- > > 1 file changed, 18 insertions(+), 15 deletions(-) > > > > diff --git a/libav

Re: [FFmpeg-devel] [PATCH v3 2/6] avformat/mpegtsenc: refact mpegts_check_bitstream to loop up table

2024-01-27 Thread Andreas Rheinhardt
Nuo Mi: > --- > libavformat/mpegtsenc.c | 33 ++--- > 1 file changed, 18 insertions(+), 15 deletions(-) > > diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c > index 84edd418f0..418fa08ad5 100644 > --- a/libavformat/mpegtsenc.c > +++ b/libavformat/mpegtsen

Re: [FFmpeg-devel] [PATCH v3 1/6] avformat: add muxer support for H266/VVC

2024-01-27 Thread James Almer
On 1/27/2024 1:15 AM, Nuo Mi wrote: diff --git a/libavformat/isom_tags.c b/libavformat/isom_tags.c index a575b7c160..705811e950 100644 --- a/libavformat/isom_tags.c +++ b/libavformat/isom_tags.c @@ -123,6 +123,9 @@ const AVCodecTag ff_codec_movvideo_tags[] = { { AV_CODEC_ID_HEVC, MKTAG('d',

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/cbs_h266_syntax_template: sanity check num_multi_layer_olss

2024-01-27 Thread James Almer
On 1/26/2024 6:46 PM, Michael Niedermayer wrote: It is not possible to encode a index into an empty list. Thus this must be invalid at this point or before. Its likely a broader earlier check can be used here, someone knowing VVC should look at that. Its not immedeatly obvious from the spec by lo

[FFmpeg-devel] [PATCH v2 2/2] fate: add tests for dolby_e decoding in s302m

2024-01-27 Thread Gyan Doshi
Three tests, one each for 1) 16-bit Dolby-E words in 20-bits AES3 words 2) 20-bit Dolby-E words in 20-bits AES3 words 3) 20-bit Dolby-E words in 24-bits AES3 words --- tests/fate/acodec.mak | 15 ++ tests/ref/acodec/s302m-20-dolbye-16 | 221 tests/ref/a

[FFmpeg-devel] [PATCH v2 1/2] avcodec/s302m: enable non-PCM decoding

2024-01-27 Thread Gyan Doshi
Set up framework for non-PCM decoding in-place and add support for Dolby-E decoding. Useful for direct transcoding of non-PCM audio in live inputs. --- configure | 1 + doc/decoders.texi | 40 +++ libavcodec/s302m.c | 596 + 3 files changed

Re: [FFmpeg-devel] [PATCH] libavcodec: add bit-rate support to RoQ video encoder

2024-01-27 Thread Victor Luchitz
On Thu, Jan 25, 2024 at 1:27 AM Tomas Härdin wrote: > tor 2024-01-25 klockan 01:09 +0300 skrev Victor Luchitz: > > In our case, the machine we're targeting (the Sega 32X) has only > > 256KB > > of RAM. Even more modern consoles such as XBOX or even PS3 didn't > > have enough RAM to hold an entire