Re: [FFmpeg-devel] [PATCH 1/2] fftools/opt_common: Use %c instead of %s to write single char

2023-07-31 Thread Andreas Rheinhardt
Andreas Rheinhardt: > Also combine multiple printfs. > > Signed-off-by: Andreas Rheinhardt > --- > fftools/opt_common.c | 28 ++-- > 1 file changed, 14 insertions(+), 14 deletions(-) > > diff --git a/fftools/opt_common.c b/fftools/opt_common.c > index 7c996f140d..3881d5b

Re: [FFmpeg-devel] [PATCH v2 6/6] lavc/vaapi_encode: Add VAAPI AV1 encoder

2023-07-31 Thread Wang, Fei W
On Mon, 2023-07-31 at 22:51 +0100, Neal Gompa wrote: > On Mon, Jul 31, 2023 at 9:04 PM Neal Gompa > wrote: > > On Tue, Jul 18, 2023 at 4:13 AM Fei Wang > > wrote: > > > Signed-off-by: Fei Wang > > > --- > > > update > > > 1. set color_range in sequence header. > > > > > > Changelog

Re: [FFmpeg-devel] looking to hire expert for a short project: lossless screen and sound capture 4k@60hz

2023-07-31 Thread Misha Aizatulin
I would suggest using .kkapture: http://farbrausch.de/~fg/kkapture/ Interesting - I haven't tried .kkapture because I thought that it only works for demos that are using the API as of when the tool was created - which means a lot of the newer demos won't work with it. But maybe I'm wrong? I'

Re: [FFmpeg-devel] [PATCH v2 2/6] lavc/av1: Add common code and unit test for level handling

2023-07-31 Thread Andreas Rheinhardt
Fei Wang: > Signed-off-by: Fei Wang > --- > libavcodec/Makefile| 4 +- > libavcodec/av1_profile_level.c | 91 > libavcodec/av1_profile_level.h | 58 +++ > libavcodec/tests/.gitignore| 1 + > libavcodec/tests/av1_levels.c | 124 ++

[FFmpeg-devel] [PATCH] vulkan_h264: fill correct ScalingList8x8 entries

2023-07-31 Thread Benjamin Cheng
The Vulkan spec wants ScalingList8x8 as defined by ITU spec. The latter only defines ScalingList8x8[0] and ScalingList8x8[1] when chroma_format_idc != 3. --- libavcodec/vulkan_h264.c | 24 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/libavcodec/vulkan_h26

Re: [FFmpeg-devel] [PATCH v2 2/6] lavc/av1: Add common code and unit test for level handling

2023-07-31 Thread James Almer
On 7/18/2023 12:11 AM, Fei Wang wrote: Signed-off-by: Fei Wang --- libavcodec/Makefile| 4 +- libavcodec/av1_profile_level.c | 91 libavcodec/av1_profile_level.h | 58 +++ libavcodec/tests/.gitignore| 1 + libavcodec/tests/av1_leve

Re: [FFmpeg-devel] [PATCH v2 6/6] lavc/vaapi_encode: Add VAAPI AV1 encoder

2023-07-31 Thread Neal Gompa
On Mon, Jul 31, 2023 at 9:04 PM Neal Gompa wrote: > > On Tue, Jul 18, 2023 at 4:13 AM Fei Wang > wrote: > > > > Signed-off-by: Fei Wang > > --- > > update > > 1. set color_range in sequence header. > > > > Changelog |1 + > > configure |3 + > > d

[FFmpeg-devel] [PATCH] avradio/avformat/sdrdemux: remove unused variable

2023-07-31 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavformat/sdrdemux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/sdrdemux.c b/libavformat/sdrdemux.c index f8590a2e18..84dd90af80 100644 --- a/libavformat/sdrdemux.c +++ b/libavformat/sdrdemux.c @@ -1809,7 +1809,7 @@ sta

Re: [FFmpeg-devel] [PATCH v2 6/6] lavc/vaapi_encode: Add VAAPI AV1 encoder

2023-07-31 Thread Neal Gompa
On Tue, Jul 18, 2023 at 4:13 AM Fei Wang wrote: > > Signed-off-by: Fei Wang > --- > update > 1. set color_range in sequence header. > > Changelog |1 + > configure |3 + > doc/encoders.texi | 13 + > libavcodec/Makefile |

Re: [FFmpeg-devel] [PATCH v5 1/4] all: Replace if (ARCH_FOO) checks by #if ARCH_FOO, part 2

2023-07-31 Thread Michael Niedermayer
On Sat, Jul 29, 2023 at 04:07:15PM -0300, L. E. Segovia wrote: > Continuation of 40e6575aa3eed64cd32bf28c00ae57edc5acb25a > > Co-authored-by: Nirbheek Chauhan > > Signed-off-by: L. E. Segovia > --- > libavcodec/x86/fdctdsp_init.c| 2 + > libavcodec/x86/flacdsp_init.c| 8 +-

Re: [FFmpeg-devel] [PATCH v2 5/5] fftools/ffmpeg: support applying container level cropping

2023-07-31 Thread Tomas Härdin
tor 2023-07-27 klockan 08:59 -0300 skrev James Almer: > On 7/27/2023 8:13 AM, Anton Khirnov wrote: > > Quoting Tomas Härdin (2023-07-26) > > > tis 2023-07-25 klockan 14:09 -0300 skrev James Almer: > > > > Signed-off-by: James Almer > > > > --- > > > > Now inserting a filter into the graph. > > >

Re: [FFmpeg-devel] looking to hire expert for a short project: lossless screen and sound capture 4k@60hz

2023-07-31 Thread Tomas Härdin
fre 2023-07-28 klockan 02:49 +0100 skrev Misha Aizatulin: > Hi all, > >    I've been directed here from https://ffmpeg.org/consulting.html as > I'm looking to hire an expert > for what should hopefully be a simple but well-paid job. Please let > me know if anyone has availability! > >    What I'

Re: [FFmpeg-devel] What is FFmpeg and what should it be

2023-07-31 Thread Tomas Härdin
sön 2023-07-30 klockan 15:04 +0200 skrev Nicolas George: > That means every time we use a real XML library to parse > “”, we pay the price for the complexity of the whole > language, in terms of efficiency, reliability, security exposure. As far as I recall libxml2 does not enable the fancier feat

[FFmpeg-devel] [PATCH v4 4/4] bsf: Add new bitstream filter to set SCTE-35 pts_adjustment when reclocking

2023-07-31 Thread Devin Heitmueller
Because SCTE-35 messages are represented in TS streams as sections rather than PES packets, we cannot rely on ffmpeg's standard mechanisms to adjust PTS values if reclocking the stream. This filter will leverage the SCTE-35 pts_adjust field to compensate for any change in the PTS values in the stre

[FFmpeg-devel] [PATCH v4 3/4] mpegtsenc: Add support for output of SCTE-35 streams over TS

2023-07-31 Thread Devin Heitmueller
Introduce the ability to pass through SCTE-35 packets when creating MPEG transport streams. Note that this patch makes no effort to change the PTS values in the SCTE-35 packets, and thus only works when not reclocking the stream (i.e. using -copyts). A subsequent patch includes a BSF to recompute

[FFmpeg-devel] [PATCH v4 2/4] mpegts: Stash original PTS for SCTE-35 sections for processing later

2023-07-31 Thread Devin Heitmueller
We need the original PTS value in order to do subsequent processing, so set it as packet side data. Signed-off-by: Devin Heitmueller --- libavformat/mpegts.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 0b3edda.

[FFmpeg-devel] [PATCH v4 1/4] avcodec: Add new side data type to contain original PTS value

2023-07-31 Thread Devin Heitmueller
In order to properly process SCTE-35 packets, we need the original PTS value from the demux (i.e. not mangled by the application or reclocked for the output). This allows us to set the pts_adjustment field in an BSF on the output side. Introduce a new side data type to store the original PTS. Si

[FFmpeg-devel] [PATCH v4 0/4] Add passthrough support for SCTE-35

2023-07-31 Thread Devin Heitmueller
Properly set up the MPEG-TS mux and recalculate the pts_adjust field in SCTE_35 packets, such that a user can transparently pass through SCTE-35 streams when both the input and output are MPEG-TS. This patch series updated to reflect feedback from James Almer. Devin Heitmueller (4): avcodec: Ad

Re: [FFmpeg-devel] [PATCH v26 5/9] avcodec/evc_decoder: Provided support for EVC decoder

2023-07-31 Thread Dawid Kozinski/Multimedia (PLT) /SRPOL/Staff Engineer/Samsung Electronics
> -Original Message- > From: ffmpeg-devel On Behalf Of James > Almer > Sent: środa, 26 lipca 2023 17:46 > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v26 5/9] avcodec/evc_decoder: Provided > support for EVC decoder > > On 6/15/2023 8:48 AM, Dawid Kozinski wrote: >

Re: [FFmpeg-devel] [PATCH 1/5] fftools/ffprobe: Fix memleak

2023-07-31 Thread James Almer
On 7/31/2023 8:08 AM, Andreas Rheinhardt wrote: Fixes Coverity issue #1524491. Regression since e6126abc6997058ca49ee596b70611bbe367163e. Signed-off-by: Andreas Rheinhardt --- fftools/ffprobe.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fftools/ffprobe.c b/ffto

[FFmpeg-devel] [PATCH 4/5] avcodec/mpegvideo_dec: Use av_fast_padded_malloc where appropriate

2023-07-31 Thread Andreas Rheinhardt
Will probably also fix Coverity issue #1473529. Signed-off-by: Andreas Rheinhardt --- libavcodec/mpegvideo_dec.c | 17 ++--- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/libavcodec/mpegvideo_dec.c b/libavcodec/mpegvideo_dec.c index 670b0912e2..16e8b9193a 100644 ---

Re: [FFmpeg-devel] [PATCH 5/5] avcodec/sga: Don't use GetBit-API for byte-aligned reads

2023-07-31 Thread Andreas Rheinhardt
Paul B Mahol: > Have you actually tested this? > Yes. https://samples.ffmpeg.org/game-formats/segacd/sga/doubleswitch/gameover.sga executes this codepath. - Andreas ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listi

Re: [FFmpeg-devel] [PATCH 5/5] avcodec/sga: Don't use GetBit-API for byte-aligned reads

2023-07-31 Thread Paul B Mahol
Have you actually tested 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 "unsubscribe".

[FFmpeg-devel] [PATCH] avfilter/vf_ssim: Fix x86 assembly code for SSIM calculation

2023-07-31 Thread Evgeny Pavlov
This commit fixes bug #10495 The code had several bugs related to post-loop compensation code: - test assembly instruction performs bitwise AND operation and generate flags used by jz branch instruction. Wrong test condition leads to incorrect branching - Incorrect compensation code for some branc

[FFmpeg-devel] [PATCH 5/5] avcodec/sga: Don't use GetBit-API for byte-aligned reads

2023-07-31 Thread Andreas Rheinhardt
Use the bytestream2-API instead. Should also fix Coverity issue #1473536 (which is about an unchecked init_get_bits8()). Signed-off-by: Andreas Rheinhardt --- libavcodec/sga.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libavcodec/sga.c b/libavcodec/sga.c index eae

[FFmpeg-devel] [PATCH 3/5] avcodec/nvenc: Remove always-true check

2023-07-31 Thread Andreas Rheinhardt
nvenc_store_frame_data() is always called with frame != NULL (checked at the beginning of nvenc_send_frame()); in fact, frame is dereferenced unconditionally after the block guarded by the check for frame. Therefore Coverity complains about this in issue #1538295. Signed-off-by: Andreas Rheinhardt

[FFmpeg-devel] [PATCH 2/5] avformat/hls_sample_encryption: Always free AC3HeaderInfo on error

2023-07-31 Thread Andreas Rheinhardt
The code currently presumes that a return value of AVERROR(ENOMEM) implies that ac3hdr could not be allocated, so it need not be freed. Yet any avpriv_ac3_parse_header() might allocate more than the AC3HeaderInfo internally (it doesn't currently), so simply free it unconditionally. Fixes Coverity

[FFmpeg-devel] [PATCH 1/5] fftools/ffprobe: Fix memleak

2023-07-31 Thread Andreas Rheinhardt
Fixes Coverity issue #1524491. Regression since e6126abc6997058ca49ee596b70611bbe367163e. Signed-off-by: Andreas Rheinhardt --- fftools/ffprobe.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index 81610c097b..5c2d4cbff1 100644 --

Re: [FFmpeg-devel] [PATCH 1/4] lavfi/qsvvpp: add set_frame_ext_params callback

2023-07-31 Thread Xiang, Haihao
On Wo, 2023-07-26 at 15:15 +0800, Xiang, Haihao wrote: > From: Haihao Xiang > > This allows we add mfxExtBuffer per frame later. > > Signed-off-by: Haihao Xiang > --- >  libavfilter/qsvvpp.c | 67 +--- >  libavfilter/qsvvpp.h | 10 +++ >  2 files change