[FFmpeg-devel] Ping on help output, logging and VAAPI overlay

2022-10-20 Thread Soft Works
This is a friendly ping on these recent submissions: Print filter input/output formats in help output https://patchwork.ffmpeg.org/project/ffmpeg/list/?series=7737 Fixes and Enhancements for VAAPI Overlay https://patchwork.ffmpeg.org/project/ffmpeg/list/?series=7722 Add option to log timing h

[FFmpeg-devel] [PATCH v2 2/2] avcodec/libsvtav1: replace vbv_bufsize with maximum_buffer_size_ms

2022-10-20 Thread Christopher Degawa
From: Christopher Degawa svt-av1 v1.2.0 has deprecated vbv_bufsize in favor of using - maximum_buffer_size_ms (--buf-sz) - starting_buffer_level_ms (--buf-initial-sz) - optimal_buffer_level_ms (--buf-optimal-sz) and vbv_bufsize has not been in use since svt-av1 v0.8.6 Signed-off-by: Christopher

[FFmpeg-devel] [PATCH v2 1/2] avcodec/libsvtav1: remove compressed_ten_bit_format and simplify alloc_buffer

2022-10-20 Thread Christopher Degawa
From: Christopher Degawa compressed_ten_bit_format has been deprecated upstream and has no effect and can be removed. Plus, technically it was never used in the first place since it would require the app (ffmpeg) to set it and do additional processing of the input frames. Also simplify alloc_buf

[FFmpeg-devel] [PATCH] RFC: v210enc optimisations and initial AVX-512

2022-10-20 Thread Kieran Kunhya
Hi, Please see attached an attempt to optimise the 8-bit input to v210enc to reduce the number of shuffles. This comes at the cost of having to extract the middle element and perform a DWORD shift on it and then reinserting it. I have added a few comments but any other ideas are welcome. Crude be

Re: [FFmpeg-devel] [PATCH 1/2] libavcodec/qsvenc_av1: add av1_qsv encoder

2022-10-20 Thread Xiang, Haihao
On Thu, 2022-10-13 at 16:25 +0800, wenbin.chen-at-intel@ffmpeg.org wrote: > From: Wenbin Chen > > It is available only when libvpl is enabled. MSDK doesn't support av1 > encoding. > > sample command: > ffmpeg -f rawvideo -pix_fmt nv12 -s 1920x1080 -i input.yuv \ > -c:v av1_qsv output.ivf >

[FFmpeg-devel] [PATCH 24/24] avcodec/mpegvideo: Don't use ScanTable where unnecessary

2022-10-20 Thread Andreas Rheinhardt
For the intra_[hv]_scantables, only ScanTable.permutated is used, so one only needs to keep that. Signed-off-by: Andreas Rheinhardt --- libavcodec/ituh263dec.c| 4 ++-- libavcodec/mpeg4videodec.c | 28 ++-- libavcodec/mpeg4videoenc.c | 4 ++-- libavcodec/mpegvideo.c

[FFmpeg-devel] [PATCH 23/24] avcodec/mpegvideo: Move ASM-offset warning to its proper place

2022-10-20 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/mpegvideo.h | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libavcodec/mpegvideo.h b/libavcodec/mpegvideo.h index 60d2ec751e..6adf724dac 100644 --- a/libavcodec/mpegvideo.h +++ b/libavcodec/mpegvideo.h @@ -77,13 +77,14 @@

Re: [FFmpeg-devel] [PATCH v2] avcodec/tiff: add read support for compressed rgb floating point formats

2022-10-20 Thread Mark Reid
On Sun, Oct 2, 2022 at 10:18 AM James Almer wrote: > On 10/2/2022 2:06 PM, Michael Niedermayer wrote: > > On Sat, Oct 01, 2022 at 04:05:12PM -0700, mindm...@gmail.com wrote: > >> From: Mark Reid > >> > >> floating point uses a slightly different predictor technique describe > here > >> http://ch

[FFmpeg-devel] [PATCH] avformat/yuv4mpegdec: increase header limit

2022-10-20 Thread Chema Gonzalez
From: Chema Gonzalez Allows demuxing UHD F10: fps yuvj420p files ffmpeg (at HEAD as of now) is creating this: ``` $ ffmpeg -y -i source.265 /tmp/foo.y4m >& /dev/null ... $ xxd /tmp/raw.y4m |less : 5955 5634 4d50 4547 3220 5731 3932 3020 YUV4MPEG2 W1920 0010: 4831 30

Re: [FFmpeg-devel] [PATCH 1/8] avformat/mj2kdec: Remove always-true #if CONFIG_MJPEG_2000_DEMUXER

2022-10-20 Thread Andreas Rheinhardt
Andreas Rheinhardt: > This file is built iff the MJPEG 2000 demuxer is enabled. > > Signed-off-by: Andreas Rheinhardt > --- > libavformat/mj2kdec.c | 4 > 1 file changed, 4 deletions(-) > > diff --git a/libavformat/mj2kdec.c b/libavformat/mj2kdec.c > index 2373f31b94..63c3e8a391 100644 > -

[FFmpeg-devel] [PATCH v5] avformat/hls: Add option to retry failed segments for hls

2022-10-20 Thread gnattu
Current HLS implementation simply skip a failed segment to catch up the stream, but this is not optimal for some use cases like livestream recording. Add an option to retry a failed segment to ensure the output file is a complete stream. Signed-off-by: gnattu --- v5 changed coding style as reques

Re: [FFmpeg-devel] [PATCH v4] avformat/hls: Add option to retry failed segments for hls

2022-10-20 Thread Gyan Doshi
On 2022-10-20 03:03 pm, Steven Liu wrote: gnattu 于2022年10月19日周三 16:11写道: Current HLS implementation simply skip a failed segment to catch up the stream, but this is not optimal for some use cases like livestream recording. Add an option to retry a failed segment to ensure the output file is a

Re: [FFmpeg-devel] [PATCH v2] avformat/dashdec: Differentiate unassigned and zero attributes

2022-10-20 Thread Steven Liu
Gregor Riepl 于2022年10月19日周三 02:24写道: > > This fixes an issue where a timestamp attribute may have a valid zero > value (the UNIX epoch 1970-01-01T00:00:00), but is misinterpreted by > dashdec as being unassigned. This changes the logic that calculates > segment numbers and makes the stream undecod

Re: [FFmpeg-devel] [PATCH v4] avformat/hls: Add option to retry failed segments for hls

2022-10-20 Thread Steven Liu
gnattu 于2022年10月19日周三 16:11写道: > > Current HLS implementation simply skip a failed segment to catch up > the stream, but this is not optimal for some use cases like livestream > recording. > Add an option to retry a failed segment to ensure the output file is > a complete stream. > > Signed-off-by

[FFmpeg-devel] [PATCH] avcodec/mss2: calculate draw region and revise split position

2022-10-20 Thread Peter Ross
for videos with wmv9 rectangles, the region drawn by ff_mss12_decode_rect may be less than the entire video area. the wmv9 rectangles are used to calculate the ff_mss12_decode_rect draw region. Fixes tickets #3255 and #4043 --- (will also fix identation as seperate commit on push) libavcodec/ms

[FFmpeg-devel] [PATCH 22/22] avcodec/eatgq: Move transient GetByteContext from context to stack

2022-10-20 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/eatgq.c | 39 --- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/libavcodec/eatgq.c b/libavcodec/eatgq.c index e8d66418b9..85bd5ee3b8 100644 --- a/libavcodec/eatgq.c +++ b/libavcodec/eatgq.c @@ -

[FFmpeg-devel] [PATCH 21/22] avcodec/idctdsp: Move ScanTable to mpegvideo

2022-10-20 Thread Andreas Rheinhardt
Only used there. Signed-off-by: Andreas Rheinhardt --- libavcodec/idctdsp.c | 21 - libavcodec/idctdsp.h | 11 --- libavcodec/mpegvideo.c | 21 + libavcodec/mpegvideo.h | 11 +++ 4 files changed, 32 insertions(+), 32 deletions(-) diff

[FFmpeg-devel] [PATCH 20/22] avcodec/wmv2dec: Remove unnecessary ScanTables

2022-10-20 Thread Andreas Rheinhardt
Only ScanTable.scantable is used for the abt_scantables. Signed-off-by: Andreas Rheinhardt --- libavcodec/wmv2dec.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/libavcodec/wmv2dec.c b/libavcodec/wmv2dec.c index f638b31cec..a70913134c 100644 --- a/libavcodec/wmv2dec

[FFmpeg-devel] [PATCH 19/22] avcodec/speedhq: Only keep what is used from ScanTable

2022-10-20 Thread Andreas Rheinhardt
Namely ScanTable.permutated. Signed-off-by: Andreas Rheinhardt --- libavcodec/speedhq.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libavcodec/speedhq.c b/libavcodec/speedhq.c index 6dbba02776..c9bb2e8418 100644 --- a/libavcodec/speedhq.c +++ b/libavcodec/speedhq.c

[FFmpeg-devel] [PATCH 18/22] avcodec/mjpegenc_common: Only pass what is used from ScanTable

2022-10-20 Thread Andreas Rheinhardt
Namely ScanTable.permutated. Signed-off-by: Andreas Rheinhardt --- libavcodec/mjpegenc.c| 2 +- libavcodec/mjpegenc_common.c | 8 libavcodec/mjpegenc_common.h | 3 +-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/libavcodec/mjpegenc.c b/libavcodec/mjpegenc.c in

[FFmpeg-devel] [PATCH 17/22] avcodec/mjpegdec: Only keep what is used from ScanTable

2022-10-20 Thread Andreas Rheinhardt
Namely ScanTable.permutated. Signed-off-by: Andreas Rheinhardt --- libavcodec/mjpegdec.c | 16 libavcodec/mjpegdec.h | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index 3374ae71bd..d9df138ab5 100644 --- a/li

[FFmpeg-devel] [PATCH 16/22] avcodec/mimic: Only keep what is used from ScanTable

2022-10-20 Thread Andreas Rheinhardt
Namely ScanTable.permutated. Signed-off-by: Andreas Rheinhardt --- libavcodec/mimic.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavcodec/mimic.c b/libavcodec/mimic.c index 74eaa7d043..153bd061f5 100644 --- a/libavcodec/mimic.c +++ b/libavcodec/mimic.c @@ -56,7 +

[FFmpeg-devel] [PATCH 15/22] avcodec/mdec: Only keep what is used from ScanTable

2022-10-20 Thread Andreas Rheinhardt
Namely ScanTable.permutated. Signed-off-by: Andreas Rheinhardt --- libavcodec/mdec.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavcodec/mdec.c b/libavcodec/mdec.c index f27cf84122..f3f1387d59 100644 --- a/libavcodec/mdec.c +++ b/libavcodec/mdec.c @@ -44,7 +44,

[FFmpeg-devel] [PATCH 14/22] avcodec/intrax8: Only keep what is used from ScanTable

2022-10-20 Thread Andreas Rheinhardt
Namely ScanTable.permutated. Signed-off-by: Andreas Rheinhardt --- libavcodec/intrax8.c | 15 --- libavcodec/intrax8.h | 3 +-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/libavcodec/intrax8.c b/libavcodec/intrax8.c index f88baf8daf..e8e48ac1bd 100644 --- a/libavc

[FFmpeg-devel] [PATCH 13/22] avcodec/g2meet: Pre-permute quantization tables

2022-10-20 Thread Andreas Rheinhardt
Allows to avoid a permutation lateron. Signed-off-by: Andreas Rheinhardt --- libavcodec/g2meet.c | 27 ++- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/libavcodec/g2meet.c b/libavcodec/g2meet.c index 7c1f8325c4..db427322cd 100644 --- a/libavcodec/g2meet

[FFmpeg-devel] [PATCH 12/22] avcodec/g2meet: Only keep what is used from ScanTable

2022-10-20 Thread Andreas Rheinhardt
Namely ScanTable.permutated. Signed-off-by: Andreas Rheinhardt --- libavcodec/g2meet.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavcodec/g2meet.c b/libavcodec/g2meet.c index 4367af3dc0..7c1f8325c4 100644 --- a/libavcodec/g2meet.c +++ b/libavcodec/g2meet.c @@

[FFmpeg-devel] [PATCH 11/22] avcodec/cavs: Only keep what is needed from IDCTDSP-API

2022-10-20 Thread Andreas Rheinhardt
Namely ScanTable.permutated. The rest of the IDCTDSP-API is unused as cavs has its own idct. Signed-off-by: Andreas Rheinhardt --- libavcodec/cavs.c| 7 +++ libavcodec/cavs.h| 9 ++--- libavcodec/cavsdec.c | 2 +- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/li

[FFmpeg-devel] [PATCH 10/22] avcodec/dnxhddec: Only keep what is used from ScanTable

2022-10-20 Thread Andreas Rheinhardt
Namely ScanTable.permutated. Signed-off-by: Andreas Rheinhardt --- libavcodec/dnxhddec.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavcodec/dnxhddec.c b/libavcodec/dnxhddec.c index a44f95f044..ce738f3991 100644 --- a/libavcodec/dnxhddec.c +++ b/libavcodec/dnxh

[FFmpeg-devel] [PATCH 09/22] avcodec/asvdec: Only keep what is used from ScanTable

2022-10-20 Thread Andreas Rheinhardt
Namely ScanTable.permutated. Signed-off-by: Andreas Rheinhardt --- libavcodec/asvdec.c | 27 ++- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/libavcodec/asvdec.c b/libavcodec/asvdec.c index be89544732..11cf105d08 100644 --- a/libavcodec/asvdec.c +++ b/l

[FFmpeg-devel] [PATCH 08/22] avcodec/agm: Only keep what is used from ScanTable

2022-10-20 Thread Andreas Rheinhardt
Namely ScanTable.permutated. Signed-off-by: Andreas Rheinhardt --- libavcodec/agm.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/libavcodec/agm.c b/libavcodec/agm.c index 017aa0e1fa..c365ed7e9a 100644 --- a/libavcodec/agm.c +++ b/libavcodec/agm.c @@ -88,7 +88

[FFmpeg-devel] [PATCH 07/22] avcodec/idctdsp: Add function to apply permutation to array

2022-10-20 Thread Andreas Rheinhardt
It is the part of ff_init_scantable() that is used by all users of said function. Signed-off-by: Andreas Rheinhardt --- libavcodec/idctdsp.c | 9 + libavcodec/idctdsp.h | 2 ++ 2 files changed, 11 insertions(+) diff --git a/libavcodec/idctdsp.c b/libavcodec/idctdsp.c index 4ee9c3aa74..5

[FFmpeg-devel] [PATCH 06/22] avcodec/imm4: Remove useless ScanTable

2022-10-20 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/imm4.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/libavcodec/imm4.c b/libavcodec/imm4.c index e2aa20813a..f342e6d313 100644 --- a/libavcodec/imm4.c +++ b/libavcodec/imm4.c @@ -51,9 +51,8 @@ typedef struct IMM4C

[FFmpeg-devel] [PATCH 05/22] avcodec/aic: Remove useless ScanTable

2022-10-20 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/aic.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/libavcodec/aic.c b/libavcodec/aic.c index 49d08f0556..7ba1c02fdd 100644 --- a/libavcodec/aic.c +++ b/libavcodec/aic.c @@ -143,7 +143,6 @@ typedef struct AICContex

[FFmpeg-devel] [PATCH 04/22] avcodec/eatqi: Don't use IDCTDSP-API unnecessarily

2022-10-20 Thread Andreas Rheinhardt
The eatqi decoder uses a custom IDCT and actually does not use the IDCTDSP API at all. Somehow it was nevertheless used to simply apply the identity permutation on ff_zigzag_direct. This commit stops doing so. Signed-off-by: Andreas Rheinhardt --- configure | 2 +- libavcodec/eatqi.c |

[FFmpeg-devel] [PATCH 03/22] avcodec/eatgq: Don't use IDCTDSP-API unnecessarily

2022-10-20 Thread Andreas Rheinhardt
The eatgq decoder uses a custom IDCT and actually does not use the IDCTDSP API at all. Somehow it was nevertheless used to simply apply the identity permutation on ff_zigzag_direct. This commit stops doing so. Signed-off-by: Andreas Rheinhardt --- configure | 2 +- libavcodec/eatgq.c |

[FFmpeg-devel] [PATCH 02/22] avcodec/eamad: Don't use IDCTDSP-API unnecessarily

2022-10-20 Thread Andreas Rheinhardt
The eamad decoder uses a custom IDCT and actually does not use the IDCTDSP API at all. Somehow it was nevertheless used to simply apply the identity permutation on ff_zigzag_direct. This commit stops doing so. Signed-off-by: Andreas Rheinhardt --- configure | 2 +- libavcodec/eamad.c |

[FFmpeg-devel] [PATCH 01/22] configure: Add idctdsp dependency to codecs that need it

2022-10-20 Thread Andreas Rheinhardt
Currently masked by faan. Signed-off-by: Andreas Rheinhardt --- configure | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 431fa5bf7a..bb61e9a0b8 100755 --- a/configure +++ b/configure @@ -2773,6 +2773,7 @@ ac3_fixed_encoder_select="ac3dsp audi

Re: [FFmpeg-devel] [PATCH] fftools/ffmpeg: rename read_file() to avoid conflict with libass

2022-10-20 Thread Anton Khirnov
Quoting Rémi Denis-Courmont (2022-10-20 10:06:45) > `file_read` is just as likely to cause naming conflicts. And I have > seen really insane libraries with no namespacing getting preloaded, so > it is unfortunately not even only a problem with libraries that FFmpeg > links with. > > If you're going

Re: [FFmpeg-devel] [PATCH] fftools/ffmpeg: rename read_file() to avoid conflict with libass

2022-10-20 Thread Rémi Denis-Courmont
Le 20 octobre 2022 10:12:28 GMT+03:00, Anton Khirnov a écrit : >libass defines a non-static read_file() symbol, which causes conflicts >with static linking. >--- > fftools/ffmpeg.h | 2 +- > fftools/ffmpeg_mux_init.c | 4 ++-- > fftools/ffmpeg_opt.c | 4 ++-- > 3 files changed, 5 inser

Re: [FFmpeg-devel] linker error

2022-10-20 Thread Rémi Denis-Courmont
Le 20 octobre 2022 10:29:47 GMT+03:00, "Helmut K. C. Tessarek" a écrit : >-BEGIN PGP SIGNED MESSAGE- >Hash: SHA512 > >On 2022-10-20 02:48, Nicolas George wrote: >> Possibly. But between a library and a final program, the one who is at >> fault when a non-namespaced symbol conflicts is th

Re: [FFmpeg-devel] [PATCHv2 3/4] avcodec/svq1enc: output ident string in extradata field

2022-10-20 Thread Peter Ross
On Wed, Oct 19, 2022 at 10:42:39PM -0300, James Almer wrote: > On 10/19/2022 10:30 PM, Peter Ross wrote: > > This will enable the acurate identification of FFmpeg produced > > SVQ1 streams, should there be new bugs found in the encoder. > > --- > > libavcodec/svq1enc.c | 9 + > > 1 file

Re: [FFmpeg-devel] linker error

2022-10-20 Thread Helmut K. C. Tessarek
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 2022-10-20 02:48, Nicolas George wrote: > Possibly. But between a library and a final program, the one who is at > fault when a non-namespaced symbol conflicts is the library. In theory I agree with you. However, libass has been using the same n

[FFmpeg-devel] [PATCH] fftools/ffmpeg: rename read_file() to avoid conflict with libass

2022-10-20 Thread Anton Khirnov
libass defines a non-static read_file() symbol, which causes conflicts with static linking. --- fftools/ffmpeg.h | 2 +- fftools/ffmpeg_mux_init.c | 4 ++-- fftools/ffmpeg_opt.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg

Re: [FFmpeg-devel] [PATCH]lavc/x86/simple_idct: Fix linking shared libavcodec with MS link.exe

2022-10-20 Thread Andreas Rheinhardt
Carl Eugen Hoyos: > From 421041e7cd1bce8952756e60a0dd428f1618d75a Mon Sep 17 00:00:00 2001 > From: Carl Eugen Hoyos > Date: Sun, 11 Sep 2022 16:02:09 +0200 > Subject: [PATCH] lavc/x86/simple_idct: Fix linking shared libavcodec with MS > link.exe > > link.exe hangs on empty simple_idct.o > > Fix

Re: [FFmpeg-devel] linker error

2022-10-20 Thread Andreas Rheinhardt
Nicolas George: > Helmut K. C. Tessarek (12022-10-20): >> I compile the static ffmpeg binaries for macOS and I have noticed just now >> the following error: >> >> duplicate symbol '_read_file' in: >> fftools/ffmpeg_opt.o >> /Users/Shared/ffmpeg/sw/lib/libass.a(ass.o) >> ld: 1 duplicate symb