[FFmpeg-devel] [PATCH] lavfi/vf_vpp_qsv: add support for new scaling modes

2023-02-02 Thread Xiang, Haihao
From: Haihao Xiang The new modes work on new platforms and are avaialable only for oneVPL. Signed-off-by: Haihao Xiang --- libavfilter/vf_vpp_qsv.c | 31 --- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/libavfilter/vf_vpp_qsv.c b/libavfilter/vf_vpp

[FFmpeg-devel] [PATCH 2/2] lavfi/vf_vpp_qsv: support UYVY in system memory

2023-02-02 Thread Xiang, Haihao
From: Haihao Xiang It only works on Linux $ ffmpeg -loglevel verbose -init_hw_device qsv=intel -f lavfi -i \ yuvtestsrc -vf "format=uyvy422,vpp_qsv=format=nv12" -f null - Signed-off-by: Haihao Xiang --- libavfilter/qsvvpp.c | 9 + libavfilter/vf_vpp_qsv.c | 3 +++ 2 files changed,

[FFmpeg-devel] [PATCH 1/2] lavu/hwcontext_qsv: add support for UYVY

2023-02-02 Thread Xiang, Haihao
From: Haihao Xiang The SDK supports UYVY from version 1.17, and VPP may support UYVY input on Linux [1] $ ffmpeg -loglevel verbose -init_hw_device qsv=intel -f lavfi -i \ yuvtestsrc -vf \ "format=uyvy422,hwupload=extra_hw_frames=32,vpp_qsv=format=nv12" \ -f null - [1] https://github.com/Intel-

Re: [FFmpeg-devel] [PATCH] avformat/tee: signal EOF if no more output is to be published.

2023-02-02 Thread Gyan Doshi
On 2023-02-03 04:17 am, Marton Balint wrote: On Thu, 2 Feb 2023, Gyan Doshi wrote: Prior to 2d924b3a630, ffmpeg.c would exit if any packet write failed. tee's write_packet seemingly relied on that to enforce its abort failure policy. From 2d924b3a630, ffmpeg only closes that OutputStream

Re: [FFmpeg-devel] [PATCH] lavc: deprecate CrystalHD decoders

2023-02-02 Thread Philip Langdale
On Tue, 31 Jan 2023 13:17:56 +0100 Anton Khirnov wrote: > The hardware is old and not relevant today. The decoders also have > many special quirks and are effectively unmaintained. > --- > Philip confirmed on IRC that he no longer has the hardware for > maintaining this and does not believe it is

[FFmpeg-devel] [PATCH v4 07/10] lavc/vaapi_hevc: Pass SCC parameters Through VA-API

2023-02-02 Thread Fei Wang
From: Linjie Fu Including sps/pps/slice parameters. Signed-off-by: Linjie Fu Signed-off-by: Fei Wang --- libavcodec/vaapi_hevc.c | 52 + 1 file changed, 47 insertions(+), 5 deletions(-) diff --git a/libavcodec/vaapi_hevc.c b/libavcodec/vaapi_hevc.c ind

[FFmpeg-devel] [PATCH v4 10/10] lavc/vaapi_hevc: Loose the restricts for SCC decoding

2023-02-02 Thread Fei Wang
From: Linjie Fu Allow current picture as the reference picture. Signed-off-by: Linjie Fu Signed-off-by: Fei Wang --- libavcodec/vaapi_hevc.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libavcodec/vaapi_hevc.c b/libavcodec/vaapi_hevc.c index 29c75e88f0..42e1b62fc3

[FFmpeg-devel] [PATCH v4 09/10] lavc/vaapi_hevc: Set correct rps type for scc

2023-02-02 Thread Fei Wang
From: Linjie Fu According to 8.1.3 and 8.3.2. Signed-off-by: Linjie Fu Signed-off-by: Fei Wang --- libavcodec/vaapi_hevc.c | 4 1 file changed, 4 insertions(+) diff --git a/libavcodec/vaapi_hevc.c b/libavcodec/vaapi_hevc.c index c10617a81a..29c75e88f0 100644 --- a/libavcodec/vaapi_hevc.

[FFmpeg-devel] [PATCH v4 06/10] lavc/hevc: Update reference list for SCC

2023-02-02 Thread Fei Wang
From: Linjie Fu Screen Content Coding allows non-intra slice in an IRAP frame which can reference the frame itself, and would mark the current decoded picture as "used for long-term reference", no matter TwoVersionsOfCurrDecPicFlag(8.1.3), hence some previous restricts are not suitable any more.

[FFmpeg-devel] [PATCH v4 08/10] lavc/vaapi_hevc: Add vaapi profile parse support for SCC

2023-02-02 Thread Fei Wang
From: Linjie Fu Note that Screen-Extended Main 4:4:4 and 4:4:4 10 supports chroma_format_idc from 0, 1 or 3, hence both 420 and 444 are supported. Signed-off-by: Linjie Fu Signed-off-by: Fei Wang --- libavcodec/vaapi_decode.c | 4 +++- libavcodec/vaapi_hevc.c | 14 -- libavcode

[FFmpeg-devel] [PATCH v4 05/10] lavc/hevcdec: Set max_num_merge_cand to uint8_t

2023-02-02 Thread Fei Wang
From: Linjie Fu uint8_t is big enough and keep consistent with the definition in cbs_h265.h. Signed-off-by: Linjie Fu Signed-off-by: Fei Wang --- libavcodec/hevcdec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/hevcdec.h b/libavcodec/hevcdec.h index a7fc669b

[FFmpeg-devel] [PATCH v4 04/10] lavc/hevcdec: Fix the parsing for use_integer_mv_flag

2023-02-02 Thread Fei Wang
From: Linjie Fu According to 7.3.6.1, use_integer_mv_flag should be parsed if motion_vector_resolution_control_idc equals to 2. If not present, it equals to motion_vector_resolution_control_idc. Signed-off-by: Linjie Fu Signed-off-by: Fei Wang --- libavcodec/hevcdec.c | 8 libavcodec

[FFmpeg-devel] [PATCH v4 03/10] lavc/hevcdec: Add slice parse support for HEVC SCC extension

2023-02-02 Thread Fei Wang
From: Linjie Fu Signed-off-by: Linjie Fu Signed-off-by: Fei Wang --- libavcodec/hevcdec.c | 6 ++ libavcodec/hevcdec.h | 4 2 files changed, 10 insertions(+) diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c index 567e8d81d4..f9a97ac7f5 100644 --- a/libavcodec/hevcdec.c +++ b/

[FFmpeg-devel] [PATCH v4 02/10] lavc/hevc_ps: Add SPS/PPS parse support for HEVC extension syntax

2023-02-02 Thread Fei Wang
From: Linjie Fu 1. Add extension syntax according to 7.3.2.2.3/7.3.2.3.3 in T-REC-H.265-201911. 2. Keep using parsed PPS when bitstream overread for compatibility. For example, the clip PS_A_VIDYO_3.bit in FATE test has incomplete extension syntax which will be overread and un-decodable if withou

[FFmpeg-devel] [PATCH v4 01/10] lavc/avcodec: Add HEVC Screen Content Coding Extensions profile

2023-02-02 Thread Fei Wang
From: Linjie Fu Described in HEVC spec A.3.7. Signed-off-by: Linjie Fu Signed-off-by: Fei Wang --- update: fix accidential fail in FATE. libavcodec/avcodec.h | 1 + libavcodec/hevc_ps.c | 2 ++ libavcodec/profiles.c | 1 + 3 files changed, 4 insertions(+) diff --git a/libavcodec/avcodec.h

Re: [FFmpeg-devel] [PATCH] avformat/tee: signal EOF if no more output is to be published.

2023-02-02 Thread Marton Balint
On Thu, 2 Feb 2023, Gyan Doshi wrote: Prior to 2d924b3a630, ffmpeg.c would exit if any packet write failed. tee's write_packet seemingly relied on that to enforce its abort failure policy. From 2d924b3a630, ffmpeg only closes that OutputStream and keeps on sending packets of other streams.

[FFmpeg-devel] [CLT2023] FFmpeg at Chemnitzer Linux-Tage

2023-02-02 Thread Thilo Borgmann
Hi, once again after the pandemic break, FFmpeg has been accepted for CLT 2023 in Chemnitz, Germany! This "Chemnitzer Linux Tage" will take place on 11th and 12th of March. You can find more details on their homepage: https://chemnitzer.linux-tage.de/2023/en/ We will man a booth with our staff

[FFmpeg-devel] [PATCH] avformat/tee: signal EOF if no more output is to be published.

2023-02-02 Thread Gyan Doshi
Prior to 2d924b3a630, ffmpeg.c would exit if any packet write failed. tee's write_packet seemingly relied on that to enforce its abort failure policy. >From 2d924b3a630, ffmpeg only closes that OutputStream and keeps on sending packets of other streams. This breaks the abort behaviour with the tee

[FFmpeg-devel] [PATCH] avcodec/h264_metadata_bsf: remove AUDs at any position

2023-02-02 Thread Gyan Doshi
Some files, likely due to faulty packetization or muxing, can have AUDs at other positions besides the head unit of a packet. Remove these too. --- libavcodec/h264_metadata_bsf.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/libavcodec/h264_metadata_bsf.c b/liba

Re: [FFmpeg-devel] [PATCH] libavformat/mpegtsenc.c -- correctly re-emit extradata ahead of IDR pictures

2023-02-02 Thread John Coiner
On Mon, Jan 30, 2023 at 4:12 PM Marton Balint wrote: > > For normal mpegts it also makes sense to include SPS/PPS before IDR-s, so > I'd say it is better if it is fixed in mpegtsenc. > > But it is mandatory to insert AUD NAL-s for every frame, and your patch > breaks that, because it only inserts

Re: [FFmpeg-devel] [PATCH] Waveform Archiver decoder and demuxer

2023-02-02 Thread Tomas Härdin
ons 2023-02-01 klockan 10:42 +0100 skrev Nicolas George: > Tomas Härdin (12023-02-01): > > This belongs in the demuxer. In fact it appears the decoder > > duplicates > > code from the demuxer. Why? > > Because sharing code between demuxer and decoder is extremely > annoying, > because somebody dec

[FFmpeg-devel] [PATCH v2 2/2] avformat/flvenc: add option to read metadata from file

2023-02-02 Thread Gyan Doshi
Useful, in conjuntion with option meta_period, to vary metadata during stream. File format is ffmetadata. --- configure| 2 +- doc/muxers.texi | 3 + libavformat/flvenc.c | 133 +-- 3 files changed, 107 insertions(+), 31 deletions(-) d

[FFmpeg-devel] [PATCH v2 1/2] avformat/flvenc: add option meta_period

2023-02-02 Thread Gyan Doshi
Allows to re-emit global metadata. Useful for dynamic metadata. Accepts values: at_start or 0, for insertion only at start at_keyframes or 1, for insertion at each video keyframe every_packet or 2, for insertion with all video packets --- doc/muxers.texi | 20 libavforma

[FFmpeg-devel] [PATCH 2/2] avformat/flvenc: add option to read metadata from file

2023-02-02 Thread Gyan Doshi
Useful, in conjuntion with option meta_period, to vary metadata during stream. File format is ffmetadata. --- configure| 2 +- doc/muxers.texi | 3 + libavformat/flvenc.c | 134 +-- 3 files changed, 108 insertions(+), 31 deletions(-) d

[FFmpeg-devel] [PATCH 1/2] avformat/flvenc: add option meta_period

2023-02-02 Thread Gyan Doshi
Allows to re-emit global metadata. Useful for dynamic metadata. Accepts values: at_start or 0, for insertion only at start at_keyframes or 1, for insertion at each video keyframe every_packet or 2, for insertion with all video packets --- doc/muxers.texi | 20 libavforma

[FFmpeg-devel] [PATCH v3 3/3] avcodec/pngdec: populate enum transfer values from gAMA chunk

2023-02-02 Thread Leo Izen
If the gAMA chunk is present, the gamma-transfer described by it often matches one of our enum values (e.g. gamma = 2.2). If so, we should populate the corresponding fields in AVCodecContext and AVFrame, provided that some other chunk isn't already providing that info. --- libavcodec/pngdec.c | 27

[FFmpeg-devel] [PATCH v3 2/3] avcodec/pngdec: read colorspace info when decoding with AVDISCARD_ALL

2023-02-02 Thread Leo Izen
These chunks are lightweight and it's useful information to have when running ffmpeg -i or ffprobe, for example. --- libavcodec/pngdec.c | 103 ++- tests/ref/fate/png-icc | 8 +-- tests/ref/fate/png-side-data | 2 +- 3 files changed, 59 insertions

[FFmpeg-devel] [PATCH v3 1/3] avcodec/pngenc: avoid writing cICP when inappropriate

2023-02-02 Thread Leo Izen
We parse the fallback cHRM on decode and correctly determine that we have BT.709 primaries, but unknown TRC. This causes us to write cICP where we shouldn't. Primaries without transfer can be handled entirely by cHRM, so we should only write cICP if we actually know the transfer function. Addition

[FFmpeg-devel] [PATCH v3 0/3] PNG color tagging improvements

2023-02-02 Thread Leo Izen
The first patch fixes a FATE issue with cICP and iCCP. The second patch was discussed on IRC. I got a LGTM from Kasper, but sending to ML here and applying in a few days if there's no objections. A few things discussed: 1) There's no need to expose the gamma table as another function as it's onl

Re: [FFmpeg-devel] [PATCH major bump 1/6] libavutil/hdr_dynamic_vivid_metadata: fix AVHDRVividColorToneMappingParams

2023-02-02 Thread zhilizhao(赵志立)
> On Feb 2, 2023, at 16:16, Anton Khirnov wrote: > > Quoting Zhao Zhili (2023-02-02 08:02:03) >> From: Zhao Zhili >> >> There are two group of three_Spline params. Fix the struct >> definition and usecases inside libavcodec, libavfilter and ffprobe. >> >> Co-Author: Houxiang ZHU >> Signed-o

Re: [FFmpeg-devel] [PATCH major bump 1/6] libavutil/hdr_dynamic_vivid_metadata: fix AVHDRVividColorToneMappingParams

2023-02-02 Thread Anton Khirnov
Quoting Zhao Zhili (2023-02-02 08:02:03) > From: Zhao Zhili > > There are two group of three_Spline params. Fix the struct > definition and usecases inside libavcodec, libavfilter and ffprobe. > > Co-Author: Houxiang ZHU > Signed-off-by: Zhao Zhili > --- > diff --git a/libavutil/hdr_dynamic_vi

Re: [FFmpeg-devel] [PATCH major bump 0/6] Fix HDR vivid support

2023-02-02 Thread Lance Wang
The patchset lgtm. thanks. On Thu, Feb 2, 2023 at 3:11 PM Zhao Zhili wrote: > From: Zhao Zhili > > Only patch 1/6 needs to go with major version bump. > > Zhao Zhili (6): > libavutil/hdr_dynamic_vivid_metadata: fix > AVHDRVividColorToneMappingParams > libavcodec/dynamic_hdr_vivid: fix s