Re: [FFmpeg-devel] [PATCH v2 01/12] lavu/hwcontext_qsv: update AVQSVFramesContext to support dynamic frame pools

2024-01-01 Thread Xiang, Haihao
On Wo, 2023-12-20 at 15:10 +0800, Xiang, Haihao wrote: > From: Haihao Xiang > > Add AVQSVFramesContext.info and update the description > > Signed-off-by: Haihao Xiang > --- > Rebased https://patchwork.ffmpeg.org/project/ffmpeg/list/?series=9639 > against the latest master with a few changes. >

Re: [FFmpeg-devel] [PATCH 1/2] doc/ffmpeg: update the documentation about qsv device creation

2024-01-01 Thread Xiang, Haihao
On Vr, 2023-12-29 at 12:23 +0800, Xiang, Haihao wrote: > From: Haihao Xiang > > Signed-off-by: Haihao Xiang > --- >  doc/ffmpeg.texi | 21 +++-- >  1 file changed, 19 insertions(+), 2 deletions(-) > > diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi > index ab17d1d687..c6c0606e8a

Re: [FFmpeg-devel] [PATCH v2 1/5] avcodec/d3d12va_vp9: fix vp9 max_num_refs value

2024-01-01 Thread Xiang, Haihao
On Do, 2023-12-28 at 11:10 +0800, Tong Wu wrote: > Previous max_num_refs was based on pp.frame_refs plus 1 and it could possibly > reaches the size limit. Actually it should be the size of pp.ref_frame_map > plus 1. > > Signed-off-by: Tong Wu > --- >  libavcodec/d3d12va_vp9.c | 2 +- >  1 file

Re: [FFmpeg-devel] [PATCH v2] libavformat/hlsenc.c: Populate OTI using AAC profile in write_codec_attr.

2024-01-01 Thread Steven Liu
Romain Beauxis 于2024年1月1日周一 23:53写道: > > This patch populates the third entry for HLS codec attribute using the > AAC profile. > > The HLS specifications[1] require this value to be the Object Type ID as > referred to in table 1.3 of ISO/IEC 14496-3:2009[2]. > > The numerical constants in the

[FFmpeg-devel] [PATCH 4/4] avformat/psxstr: basic FPS detection instead of fixed value

2024-01-01 Thread aybe aybe
This fourth and last patch is an attempt at removing the hard-coded value of 15 FPS. In patch 1/4, although it would render video, the audio and video were not synchronized at all, now there are. In this approach I kept it simple, grab min/max possible rates, pick min, clamp to 15/30 just in

[FFmpeg-devel] [PATCH 3/4] avformat/psxstr: fix unknown sector type 00/80

2024-01-01 Thread aybe aybe
This third patch fixes warnings that are false positives (still on STRv1). That's because these sectors are simply empty ones as can be read in "System Description CD-ROM XA, May 1991, 4.3.2.3". Haven't attempted significant refactoring as it just works, left a comment instead about the

[FFmpeg-devel] [PATCH 2/4] avformat/psxstr: fix demuxing I/O error at EOF

2024-01-01 Thread aybe aybe
This second patch fixes the following error at the end of a .STR stream conversion: [in#0/psxstr @ 00681e80] Error during demuxing: I/O error It's been a bit of trial and error as I've never used ffmpeg, but returning AVERROR_EOF appears to be the way to go (doesn't complain anymore).

[FFmpeg-devel] [PATCH 1/4] avcodec/mdec: DC reading for STRv1 is like STRv2

2024-01-01 Thread aybe aybe
Hi, As I understand, support for .STR files is broken for almost 10 years now (since 161442ff2c4b0dd8a5072c6bbe6bf55303fffccf it seems). Currently, ffmpeg fails with tons of errors like this on version 1 STRs, e.g. Wipeout 1: [mdec @ 027c72c0] ac-tex damaged at 1 9 What happens is

[FFmpeg-devel] [PATCH] avutil/eval: Use integer for random() state

2024-01-01 Thread Michael Niedermayer
rounding the 64bit integer state to double between each iteration causes a reduction in quality of the random number generator. For example its period drops from 2^64 to around 200 million Signed-off-by: Michael Niedermayer --- libavutil/eval.c | 16 +--- 1 file changed, 13

[FFmpeg-devel] [PATCH v2] avcodec/cbs_vp8: Apply clang-format and fix typos.

2024-01-01 Thread Dai, Jianhui J
This commit applies clang-format to the source and fixes typos. TETS: ffmpeg -i fate-suite/vp8-test-vectors-r1/* -vcodec copy -bsf:v trace_headers -f null - Signed-off-by: Jianhui Dai --- libavcodec/cbs_vp8.c | 52 ++-- 1 file changed, 36 insertions(+),

Re: [FFmpeg-devel] [PATCH] libavutil/ppc/cpu.c: check that AT_HWCAP2 is defined

2024-01-01 Thread Sean McGovern
Hi, On Thu, Oct 19, 2023, 07:44 Michael Niedermayer wrote: > On Wed, Oct 18, 2023 at 01:18:54PM -0400, Sean McGovern wrote: > > On Sat, Oct 14, 2023, 23:27 Sean McGovern wrote: > > > > > It was not introduced until glibc 2.18. > > > --- > > > This should fix the ppc32 FATE node. > > > --- > >

Re: [FFmpeg-devel] [PATCH 1/2] libavutil/eval: introduce UINT64_MAX constant

2024-01-01 Thread Michael Niedermayer
On Mon, Jan 01, 2024 at 08:38:58PM +0100, Stefano Sabatini wrote: > This might be useful, e.g. when setting the random seed expressed as a > uint64_t. > --- > doc/utils.texi | 3 +++ > libavutil/eval.c | 1 + > 2 files changed, 4 insertions(+) > > diff --git a/doc/utils.texi b/doc/utils.texi >

Re: [FFmpeg-devel] [PATCH] libavdevice/avfoundation.m Add missing type AVMediaType for macOS < 10.13.

2024-01-01 Thread David Bohman
On Mon, Jan 1, 2024 at 9:26 AM wrote: > > > > On 1 Jan 2024, at 15:38, David Bohman wrote: > > > This is a build failure in the master branch as a result of commit > > e37b15e26fbc7bc31a86a4a2c7c798e20d4f4c2c: > > > > There is no type AVMediaType prior to macOS 10.13. > > --- > >

Re: [FFmpeg-devel] [PATCH] libavdevice/avfoundation.m Add missing type AVMediaType for macOS < 10.13.

2024-01-01 Thread David Bohman
On Mon, Jan 1, 2024 at 9:08 AM Michael Niedermayer wrote: > > error: corrupt patch at line 19 > Sorry, I have also attached the patch file to this message. --- libavdevice/avfoundation.m | 4 1 file changed, 4 insertions(+) diff --git a/libavdevice/avfoundation.m

Re: [FFmpeg-devel] [PATCH] libavdevice/avfoundation.m Add missing type AVMediaType for macOS < 10.13.

2024-01-01 Thread Martin Storsjö
On Mon, 1 Jan 2024, David Bohman wrote: This is a build failure in the master branch as a result of commit e37b15e26fbc7bc31a86a4a2c7c798e20d4f4c2c: There is no type AVMediaType prior to macOS 10.13. --- libavdevice/avfoundation.m | 4 1 file changed, 4 insertions(+) diff --git

[FFmpeg-devel] [PATCH 1/2] libavutil/eval: introduce UINT64_MAX constant

2024-01-01 Thread Stefano Sabatini
This might be useful, e.g. when setting the random seed expressed as a uint64_t. --- doc/utils.texi | 3 +++ libavutil/eval.c | 1 + 2 files changed, 4 insertions(+) diff --git a/doc/utils.texi b/doc/utils.texi index 0c4f146f4f..ac9b63826e 100644 --- a/doc/utils.texi +++ b/doc/utils.texi @@

[FFmpeg-devel] [PATCH 2/2] doc/utils/eval: clarify meaning of random* seed value

2024-01-01 Thread Stefano Sabatini
Possible address trac issue: http://trac.ffmpeg.org/ticket/10763 --- doc/utils.texi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/doc/utils.texi b/doc/utils.texi index ac9b63826e..554a07f057 100644 --- a/doc/utils.texi +++ b/doc/utils.texi @@ -944,11 +944,17 @@ Return a pseudo random

Re: [FFmpeg-devel] [PATCH v9 03/13] vvcdec: add cabac decoder

2024-01-01 Thread Michael Niedermayer
On Mon, Jan 01, 2024 at 10:12:29PM +0800, Nuo Mi wrote: > add Context-based Adaptive Binary Arithmetic Coding (CABAC) decoder > > Co-authored-by: Xu Mu > Co-authored-by: Frank Plowman > Co-authored-by: Shaun Loo > Co-authored-by: Wu Jianhua > --- > libavcodec/vvc/Makefile|4 +- >

Re: [FFmpeg-devel] [PATCH] libavdevice/avfoundation.m Add missing type AVMediaType for macOS < 10.13.

2024-01-01 Thread epirat07
On 1 Jan 2024, at 15:38, David Bohman wrote: > This is a build failure in the master branch as a result of commit > e37b15e26fbc7bc31a86a4a2c7c798e20d4f4c2c: > > There is no type AVMediaType prior to macOS 10.13. > --- > libavdevice/avfoundation.m | 4 > 1 file changed, 4 insertions(+) >

Re: [FFmpeg-devel] [PATCH] libavdevice/avfoundation.m Add missing type AVMediaType for macOS < 10.13.

2024-01-01 Thread Michael Niedermayer
On Mon, Jan 01, 2024 at 06:38:00AM -0800, David Bohman wrote: > This is a build failure in the master branch as a result of commit > e37b15e26fbc7bc31a86a4a2c7c798e20d4f4c2c: > > There is no type AVMediaType prior to macOS 10.13. > --- > libavdevice/avfoundation.m | 4 > 1 file changed, 4

Re: [FFmpeg-devel] [PATCH] libavformat/hlsenc.c: Populate OTI using AAC profile in write_codec_attr.

2024-01-01 Thread Romain Beauxis
Le sam. 30 déc. 2023 à 16:25, David Johansen a écrit : > > On Sat, Dec 30, 2023 at 8:23 AM Romain Beauxis wrote: >> >> Le jeu. 28 déc. 2023 à 17:26, David Johansen a >> écrit : >> >> >> >> I love this change, but it appears that st->codecpar->profile is always >> >> AV_PROFILE_UNKNOWN when

[FFmpeg-devel] [PATCH v2] libavformat/hlsenc.c: Populate OTI using AAC profile in write_codec_attr.

2024-01-01 Thread Romain Beauxis
This patch populates the third entry for HLS codec attribute using the AAC profile. The HLS specifications[1] require this value to be the Object Type ID as referred to in table 1.3 of ISO/IEC 14496-3:2009[2]. The numerical constants in the code refer to these OTIs minus one, as documented in

Re: [FFmpeg-devel] [PATCH v9 00/13] Add vvc decoder

2024-01-01 Thread Lynne
Jan 1, 2024, 16:26 by jamr...@gmail.com: > On 1/1/2024 12:16 PM, Lynne wrote: > >> Jan 1, 2024, 15:13 by nuomi2...@gmail.com: >> >>> libavcodec/vvc/Makefile | 16 + >>> libavcodec/vvc/vvc_cabac.c | 2478 ++ >>> libavcodec/vvc/vvc_cabac.h | 126 +

Re: [FFmpeg-devel] [PATCH] fix rounding errors in .ass subtitles format timings

2024-01-01 Thread Muhammed
for some reason the reply mailto link didn't work properly. sorry for spamming. here's the patch: https://lists.ffmpeg.org/pipermail/ffmpeg-devel/2023-November/317250.html ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org

Re: [FFmpeg-devel] [PATCH v9 00/13] Add vvc decoder

2024-01-01 Thread James Almer
On 1/1/2024 12:16 PM, Lynne wrote: Jan 1, 2024, 15:13 by nuomi2...@gmail.com: libavcodec/vvc/Makefile | 16 + libavcodec/vvc/vvc_cabac.c | 2478 ++ libavcodec/vvc/vvc_cabac.h | 126 + libavcodec/vvc/vvc_ctu.c | 2491

Re: [FFmpeg-devel] [PATCH] fix rounding errors in .ass subtitles format timings

2024-01-01 Thread Muhammed
Would appreciate it if someone could look at this. ___ 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

Re: [FFmpeg-devel] [PATCH v9 13/13] vvcdec: add vvc decoder

2024-01-01 Thread Lynne
Jan 1, 2024, 16:14 by h.lepp...@gmail.com: > On Mon, Jan 1, 2024 at 3:54 PM Lynne wrote: > >> >> Jan 1, 2024, 15:16 by nuomi2...@gmail.com: >> >> > vvc decoder plug-in to avcodec. >> > split frames into slices/tiles and send them to vvc_thread for further >> > decoding >> > reorder and wait for

Re: [FFmpeg-devel] [PATCH v9 09/13] vvcdec: add LMCS, Deblocking, SAO, and ALF filters

2024-01-01 Thread Lynne
Jan 1, 2024, 15:15 by nuomi2...@gmail.com: > Co-authored-by: Xu Mu > Co-authored-by: Frank Plowman > Co-authored-by: Shaun Loo > Co-authored-by: Wu Jianhua > --- > libavcodec/vvc/Makefile |1 + > libavcodec/vvc/vvc_ctu.h |1 + > libavcodec/vvc/vvc_filter.c

Re: [FFmpeg-devel] [PATCH v9 00/13] Add vvc decoder

2024-01-01 Thread Lynne
Jan 1, 2024, 15:13 by nuomi2...@gmail.com: > libavcodec/vvc/Makefile | 16 + > libavcodec/vvc/vvc_cabac.c | 2478 ++ > libavcodec/vvc/vvc_cabac.h | 126 + > libavcodec/vvc/vvc_ctu.c | 2491 ++ >

Re: [FFmpeg-devel] [PATCH v9 13/13] vvcdec: add vvc decoder

2024-01-01 Thread Hendrik Leppkes
On Mon, Jan 1, 2024 at 3:54 PM Lynne wrote: > > Jan 1, 2024, 15:16 by nuomi2...@gmail.com: > > > vvc decoder plug-in to avcodec. > > split frames into slices/tiles and send them to vvc_thread for further > > decoding > > reorder and wait for the frame decoding to be done and output the frame > >

Re: [FFmpeg-devel] [PATCH v9 03/13] vvcdec: add cabac decoder

2024-01-01 Thread Lynne
Jan 1, 2024, 15:14 by nuomi2...@gmail.com: > + > +//fixme > +static void vvc_refill2(CABACContext* c) { > Fix what? Also, wrong coding style. > +int i; > +unsigned x; > +#if !HAVE_FAST_CLZ > +x = c->low ^ (c->low - 1); > +i = 7 - ff_h264_norm_shift[x >> (CABAC_BITS - 1)]; >

[FFmpeg-devel] [PATCH] fix rounding errors in .ass subtitles format timings

2024-01-01 Thread Muhammed
Would appreciate it if someone could look at this. ___ 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

Re: [FFmpeg-devel] [PATCH v9 06/13] vvcdec: add inter prediction

2024-01-01 Thread Lynne
Jan 1, 2024, 15:15 by nuomi2...@gmail.com: > + > + > +// > + > What's with these markers? > +static void FUNC(put_pixels)(int16_t

Re: [FFmpeg-devel] [PATCH v9 13/13] vvcdec: add vvc decoder

2024-01-01 Thread Lynne
Jan 1, 2024, 15:16 by nuomi2...@gmail.com: > vvc decoder plug-in to avcodec. > split frames into slices/tiles and send them to vvc_thread for further > decoding > reorder and wait for the frame decoding to be done and output the frame > > Features: > + Support I, P, B frames > + Support

Re: [FFmpeg-devel] [PATCH v9 07/13] vvcdec: add inv transform 1d

2024-01-01 Thread Lynne
Jan 1, 2024, 15:16 by nuomi2...@gmail.com: > + */ > +void ff_vvc_inv_dct2_4(int *coeffs, const ptrdiff_t stride, const size_t nz) > +{ > +const int a = 64, b = 83, c = 36; > +const int x0 = coeffs[0 * stride], x1 = coeffs[1 * stride]; > +const int x2 = coeffs[2 * stride], x3 =

[FFmpeg-devel] [PATCH] libavdevice/avfoundation.m Add missing type AVMediaType for macOS < 10.13.

2024-01-01 Thread David Bohman
This is a build failure in the master branch as a result of commit e37b15e26fbc7bc31a86a4a2c7c798e20d4f4c2c: There is no type AVMediaType prior to macOS 10.13. --- libavdevice/avfoundation.m | 4 1 file changed, 4 insertions(+) diff --git a/libavdevice/avfoundation.m

[FFmpeg-devel] [PATCH v9 12/13] vvcdec: add CTU thread logical

2024-01-01 Thread Nuo Mi
This is the main entry point for the CTU (Coding Tree Unit) decoder. The code will divide the CTU decoder into several stages. It will check the stage dependencies and run the stage decoder. Co-authored-by: Xu Mu Co-authored-by: Frank Plowman Co-authored-by: Shaun Loo Co-authored-by: Wu

[FFmpeg-devel] [PATCH v9 13/13] vvcdec: add vvc decoder

2024-01-01 Thread Nuo Mi
vvc decoder plug-in to avcodec. split frames into slices/tiles and send them to vvc_thread for further decoding reorder and wait for the frame decoding to be done and output the frame Features: + Support I, P, B frames + Support 8/10/12 bits, chroma 400, 420, 422, and 444 and range

[FFmpeg-devel] [PATCH v9 07/13] vvcdec: add inv transform 1d

2024-01-01 Thread Nuo Mi
Co-authored-by: Xu Mu Co-authored-by: Frank Plowman Co-authored-by: Shaun Loo Co-authored-by: Wu Jianhua --- libavcodec/vvc/Makefile | 1 + libavcodec/vvc/vvc_itx_1d.c | 708 libavcodec/vvc/vvc_itx_1d.h | 52 +++ 3 files changed, 761 insertions(+)

[FFmpeg-devel] [PATCH v9 11/13] vvcdec: add CTU parser

2024-01-01 Thread Nuo Mi
Co-authored-by: Xu Mu Co-authored-by: Frank Plowman Co-authored-by: Shaun Loo Co-authored-by: Wu Jianhua --- libavcodec/vvc/vvc_ctu.c | 2393 +- libavcodec/vvc/vvc_ctu.h | 11 + 2 files changed, 2403 insertions(+), 1 deletion(-) diff --git

[FFmpeg-devel] [PATCH v9 10/13] vvcdec: add dsp init and inv transform

2024-01-01 Thread Nuo Mi
Co-authored-by: Xu Mu Co-authored-by: Frank Plowman Co-authored-by: Shaun Loo Co-authored-by: Wu Jianhua --- libavcodec/vvc/Makefile | 3 +- libavcodec/vvc/vvcdsp.c | 141 +++ libavcodec/vvc/vvcdsp_template.c | 120 ++ 3

[FFmpeg-devel] [PATCH v9 08/13] vvcdec: add intra prediction

2024-01-01 Thread Nuo Mi
Co-authored-by: Xu Mu Co-authored-by: Frank Plowman Co-authored-by: Shaun Loo Co-authored-by: Wu Jianhua --- libavcodec/vvc/Makefile |1 + libavcodec/vvc/vvc_ctu.c| 50 ++ libavcodec/vvc/vvc_ctu.h|2 + libavcodec/vvc/vvc_intra.c | 797

[FFmpeg-devel] [PATCH v9 04/13] vvcdec: add reference management

2024-01-01 Thread Nuo Mi
Co-authored-by: Xu Mu Co-authored-by: Frank Plowman Co-authored-by: Shaun Loo Co-authored-by: Wu Jianhua --- libavcodec/vvc/Makefile | 1 + libavcodec/vvc/vvc_refs.c | 559 ++ libavcodec/vvc/vvc_refs.h | 57 3 files changed, 617 insertions(+)

[FFmpeg-devel] [PATCH v9 06/13] vvcdec: add inter prediction

2024-01-01 Thread Nuo Mi
Co-authored-by: Xu Mu Co-authored-by: Frank Plowman Co-authored-by: Shaun Loo Co-authored-by: Wu Jianhua --- libavcodec/vvc/Makefile |1 + libavcodec/vvc/vvc_inter.c | 923 libavcodec/vvc/vvc_inter.h | 42 ++

[FFmpeg-devel] [PATCH v9 05/13] vvcdec: add motion vector decoder

2024-01-01 Thread Nuo Mi
Co-authored-by: Xu Mu Co-authored-by: Frank Plowman Co-authored-by: Shaun Loo Co-authored-by: Wu Jianhua --- libavcodec/vvc/Makefile |1 + libavcodec/vvc/vvc_ctu.c | 18 + libavcodec/vvc/vvc_ctu.h |2 + libavcodec/vvc/vvc_mvs.c | 1798 ++

[FFmpeg-devel] [PATCH v9 03/13] vvcdec: add cabac decoder

2024-01-01 Thread Nuo Mi
add Context-based Adaptive Binary Arithmetic Coding (CABAC) decoder Co-authored-by: Xu Mu Co-authored-by: Frank Plowman Co-authored-by: Shaun Loo Co-authored-by: Wu Jianhua --- libavcodec/vvc/Makefile|4 +- libavcodec/vvc/vvc_cabac.c | 2478

[FFmpeg-devel] [PATCH v9 02/13] vvcdec: add parameter parser for sps, pps, ph, sh

2024-01-01 Thread Nuo Mi
Co-authored-by: Xu Mu Co-authored-by: Frank Plowman Co-authored-by: Shaun Loo Co-authored-by: Wu Jianhua --- libavcodec/vvc/Makefile |1 + libavcodec/vvc/vvc_ps.c | 1150 +++ libavcodec/vvc/vvc_ps.h | 263 + libavcodec/vvc/vvcdec.h | 214

[FFmpeg-devel] [PATCH v9 00/13] Add vvc decoder

2024-01-01 Thread Nuo Mi
Changes since v8: Fixed 'make clean' Used Frank's full name, as Martin suggested Added Co-authors, as jb suggested Included thanks to reviewers and issue reporters Nuo Mi (13): vvcdec: add vvc_data vvcdec: add parameter parser for sps, pps, ph, sh vvcdec: add cabac decoder vvcdec:

Re: [FFmpeg-devel] [PATCH] configure: correct lensfun header function check

2024-01-01 Thread Gyan Doshi
On 2024-01-01 09:33 am, Gyan Doshi wrote: On 2023-12-31 01:03 pm, Gyan Doshi wrote: The function lf_db_new was deprecated in lensfun 09dcd3e7ad in 2017 in favour of lf_db_create. The AVfilter was adjusted in 8b78eb312d but the configure check wasn't changed. lensfun removed lf_db_new

[FFmpeg-devel] 回复: [PATCH 1/2] avcodec/d3d12va_mpeg2: remove unused variables

2024-01-01 Thread Wu Jianhua
James Almer: > [FFmpeg-devel] [PATCH 1/2] avcodec/d3d12va_mpeg2: remove unused variables > > Signed-off-by: James Almer > --- > is_field worries me. Was it a copy-paste left over, or is it meant to > be checked? > > libavcodec/d3d12va_mpeg2.c | 8 > 1 file changed, 8 deletions(-) > diff