Re: [FFmpeg-devel] [PATCH] avcodec/libx265: make X265 CSP selection pixel format independent

2022-06-26 Thread Jan Ekström
On Sun, Jun 19, 2022 at 8:48 PM Jan Ekström wrote: > > Currently the format listing misses the J formats completely, yet > they are marked as supported in the encoder. Thus to make the logic > support them while not explicitly listing them, make the logic > utilize chroma subsampling information i

Re: [FFmpeg-devel] [PATCH] avcodec/qpeldsp: copy less for the mc0x cases

2022-06-26 Thread Andreas Rheinhardt
Michael Niedermayer: > Fixes: out of array access > Fixes: > 47936/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MPEG4_fuzzer-5745039940124672 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed-off-by: Michael Niedermayer > ---

Re: [FFmpeg-devel] [PATCH v4 0/6] Implement SEI parsing for QSV decoders

2022-06-26 Thread Xiang, Haihao
On Sun, 2022-06-26 at 23:41 +, ffmpegagent wrote: > Missing SEI information has always been a major drawback when using the QSV > decoders. I used to think that there's no chance to get at the data without > explicit implementation from the MSDK side (or doing something weird like > parsing in

Re: [FFmpeg-devel] [PATCH] avformat/hls:use EXT-X-START instead of live_start_index if it's in playlist

2022-06-26 Thread Steven Liu
Li Kai 于2022年6月27日周一 10:58写道: > > OK, I got it. > looks ok to me, waiting for other reviewers comments, and will apply this v4 patch if no more comments. Thanks Steven ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/li

Re: [FFmpeg-devel] [PATCH] avformat/hls:use EXT-X-START instead of live_start_index if it's in playlist

2022-06-26 Thread Li Kai
OK,  I got it. Thanks a lot. 在 2022/6/27 上午10:23, Steven Liu 写道: Li Kai 于2022年6月25日周六 22:15写道: OK, I add the option description in doc/demuxers.texi. About invalid EXT-X-START value, it's not played on Safari. So I make it error to handle. You opinion, it's better way. The latest patch fix

Re: [FFmpeg-devel] [PATCH] avformat/hlsenc: Use HLS version 2 if rounded durations are enabled

2022-06-26 Thread Steven Liu
于2022年6月27日周一 10:28写道: > > Yes. Version 3 is just Version 2 with floating point durations. LGTM > > -Original Message- > From: ffmpeg-devel On Behalf Of Steven Liu > Sent: Sunday, June 26, 2022 10:17 PM > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH

Re: [FFmpeg-devel] [PATCH] avformat/hls:use EXT-X-START instead of live_start_index if it's in playlist

2022-06-26 Thread Steven Liu
Li Kai 于2022年6月25日周六 22:15写道: > > OK, I add the option description in doc/demuxers.texi. > > About invalid EXT-X-START value, it's not played on Safari. > So I make it error to handle. > > You opinion, it's better way. The latest patch fix it. > > > @@ -741,6 +744,7 @@ static int parse_playlist(HL

Re: [FFmpeg-devel] [PATCH] avformat/hlsenc: Use HLS version 2 if rounded durations are enabled

2022-06-26 Thread lucy
Yes. Version 3 is just Version 2 with floating point durations. -Original Message- From: ffmpeg-devel On Behalf Of Steven Liu Sent: Sunday, June 26, 2022 10:17 PM To: FFmpeg development discussions and patches Subject: Re: [FFmpeg-devel] [PATCH] avformat/hlsenc: Use HLS version 2 if rou

Re: [FFmpeg-devel] [PATCH] avformat/hlsenc: Add resend_headers option

2022-06-26 Thread Steven Liu
huheng 于2022年6月25日周六 23:36写道: > > Add pat and pmt table at start of each segment in single_file mode enhanced > compatibility of hls stream. Because some hls clients separate parsing segment > of hls stream, the absence of pat/pmt will cause parsing to fail. > > Signed-off-by: huheng > --- > lib

Re: [FFmpeg-devel] [PATCH] avformat/hlsenc: Use HLS version 2 if rounded durations are enabled

2022-06-26 Thread Steven Liu
Lucy 于2022年6月27日周一 09:12写道: > > This allows for wider compatibility with older devices, such as those > running iOS 3. The only difference between HLS version 2 and version 3 is > that version 3 supports non-integer EXTINF values, and as such, we can > default to version 2 if we're using whole-int

[FFmpeg-devel] [PATCH] avformat/hlsenc: Use HLS version 2 if rounded durations are enabled

2022-06-26 Thread Lucy
This allows for wider compatibility with older devices, such as those running iOS 3. The only difference between HLS version 2 and version 3 is that version 3 supports non-integer EXTINF values, and as such, we can default to version 2 if we're using whole-integer EXTINFs anyways, when `-hls_flags

[FFmpeg-devel] [PATCH v4 3/6] avcodec/mpeg12dec: make mpeg_decode_user_data() accessible

2022-06-26 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavcodec/mpeg12.h| 28 libavcodec/mpeg12dec.c | 40 +--- 2 files changed, 33 insertions(+), 35 deletions(-) diff --git a/libavcodec/mpeg12.h b/libavcodec/mpeg12.h index e0406b32d

[FFmpeg-devel] [PATCH v4 2/6] avcodec/vpp_qsv: Copy side data from input to output frame

2022-06-26 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/qsvvpp.c | 6 ++ libavfilter/vf_overlay_qsv.c | 19 +++ 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/libavfilter/qsvvpp.c b/libavfilter/qsvvpp.c index 954f882637..f4bf628073 100644 --- a/lib

[FFmpeg-devel] [PATCH v4 1/6] avutil/frame: Add av_frame_copy_side_data() and av_frame_remove_all_side_data()

2022-06-26 Thread softworkz
From: softworkz Signed-off-by: softworkz Signed-off-by: Anton Khirnov --- doc/APIchanges | 4 +++ libavutil/frame.c | 67 +++-- libavutil/frame.h | 32 ++ libavutil/version.h | 2 +- 4 files changed, 78 insertions(+), 27 de

[FFmpeg-devel] [PATCH v4 0/6] Implement SEI parsing for QSV decoders

2022-06-26 Thread ffmpegagent
Missing SEI information has always been a major drawback when using the QSV decoders. I used to think that there's no chance to get at the data without explicit implementation from the MSDK side (or doing something weird like parsing in parallel). It turned out that there's a hardly known api metho

[FFmpeg-devel] [PATCH v4 6/6] avcodec/qsvdec: Implement SEI parsing for QSV decoders

2022-06-26 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavcodec/qsvdec.c | 234 1 file changed, 234 insertions(+) diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c index 5fc5bed4c8..e854f363ec 100644 --- a/libavcodec/qsvdec.c +++ b/libavcodec/qsvdec.c

[FFmpeg-devel] [PATCH v4 5/6] avcodec/h264dec: make h264_export_frame_props() accessible

2022-06-26 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavcodec/h264_slice.c | 98 + libavcodec/h264dec.h| 2 + 2 files changed, 52 insertions(+), 48 deletions(-) diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c index d56722a5c2..f2a4c1c657 10

[FFmpeg-devel] [PATCH v4 4/6] avcodec/hevcdec: make set_side_data() accessible

2022-06-26 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavcodec/hevcdec.c | 117 +-- libavcodec/hevcdec.h | 9 2 files changed, 67 insertions(+), 59 deletions(-) diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c index e84c30dd13..b4d8db8c6b 100644

Re: [FFmpeg-devel] [PATCH v3 1/6] avutil/frame: Add av_frame_copy_side_data() and av_frame_remove_all_side_data()

2022-06-26 Thread Soft Works
> -Original Message- > From: Xiang, Haihao > Sent: Friday, June 24, 2022 9:02 AM > To: [email protected] > Cc: [email protected]; [email protected] > Subject: Re: [FFmpeg-devel] [PATCH v3 1/6] avutil/frame: Add > av_frame_copy_side_data() and av_frame_remove

[FFmpeg-devel] [PATCH v6 25/25] avcodec/dvbsubdec: Fix conditions for fallback to default resolution

2022-06-26 Thread softworkz
From: softworkz The previous code expected a segment of type CLUT definition to exist in order to accept a set of segments to be complete. This was an incorrect assumption as the presence of a CLUT segment is not mandatory. (version 1.6.1 of the spec is probably a bit more clear about this than e

[FFmpeg-devel] [PATCH v6 23/25] avcodec/subtitles: Migrate subtitle encoders to frame-based API

2022-06-26 Thread softworkz
From: softworkz and provide a compatibility shim for the legacy api Signed-off-by: softworkz --- libavcodec/assenc.c | 189 ++-- libavcodec/avcodec.h| 5 +- libavcodec/codec_internal.h | 12 --- libavcodec/dvbsubenc.c | 96 ++

[FFmpeg-devel] [PATCH v6 22/25] avfilter/snull, strim: Add snull and strim filters

2022-06-26 Thread softworkz
From: softworkz Signed-off-by: softworkz --- configure| 2 +- libavfilter/Makefile | 2 ++ libavfilter/allfilters.c | 2 ++ libavfilter/sf_snull.c | 50 + libavfilter/trim.c | 60 +++- 5 files cha

[FFmpeg-devel] [PATCH v6 21/25] avfilter/text2graphicsub: Added text2graphicsub subtitle filter

2022-06-26 Thread softworkz
From: softworkz Added a text2graphicsub subtitle filter which converts text-based subtitle tracks to bitmap-based subtitle tracks. The filter uses libass to render the subtitles. It takes as parameters an output height and width, as well as a number of colors in the output palette as well as sour

[FFmpeg-devel] [PATCH v6 20/25] avfilter/subfeed: add subtitle feed filter

2022-06-26 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/sf_subfeed.c | 412 +++ 3 files changed, 414 insertions(+) create mode 100644 libavfilter/sf_subfeed.c diff --git a/libavfilter/Make

[FFmpeg-devel] [PATCH v6 19/25] avfilter/subscale: Add filter for scaling and/or re-arranging graphical subtitles

2022-06-26 Thread softworkz
From: softworkz Signed-off-by: softworkz --- configure | 1 + doc/filters.texi | 164 +++ libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/sf_subscale.c | 884 ++ 5 files changed, 1051 insertions

[FFmpeg-devel] [PATCH v6 18/25] avfilter/graphicsub2text: Add new graphicsub2text filter (OCR)

2022-06-26 Thread softworkz
From: softworkz Signed-off-by: softworkz --- configure|1 + doc/filters.texi | 55 ++ libavfilter/Makefile |1 + libavfilter/allfilters.c |1 + libavfilter/sf_graphicsub2text.c | 1137 ++ 5 fil

[FFmpeg-devel] [PATCH v6 17/25] avfilter/splitcc: Add splitcc filter for closed caption handling

2022-06-26 Thread softworkz
From: softworkz - splitcc {V -> VS) Extract closed-caption (A53) data from video frames as subtitle Frames ffmpeg -y -loglevel verbose -i "https://streams.videolan.org/streams /ts/CC/NewsStream-608-ac3.ts" -filter_complex "[0:v]splitcc[vid1], textmod=mode=remove_chars:find='@',[vid1]overlay_

[FFmpeg-devel] [PATCH v6 16/25] avfilter/stripstyles: Add stripstyles filter

2022-06-26 Thread softworkz
From: softworkz - stripstyles {S -> S) Remove all inline styles from subtitle events Signed-off-by: softworkz --- doc/filters.texi | 37 ++ libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/sf_stripstyles.c | 237

[FFmpeg-devel] [PATCH v6 14/25] avfilter/overlaytextsubs: Add overlaytextsubs and textsubs2video filters

2022-06-26 Thread softworkz
From: softworkz - overlaytextsubs {VS -> V) Overlay text subtitles onto a video stream. - textsubs2video {S -> V) Converts text subtitles to video frames Signed-off-by: softworkz --- configure| 2 + doc/filters.texi | 113 + libavfilter/Makefi

[FFmpeg-devel] [PATCH v6 15/25] avfilter/textmod: Add textmod, censor and show_speaker filters

2022-06-26 Thread softworkz
From: softworkz - textmod {S -> S) Modify subtitle text in a number of ways - censor {S -> S) Censor subtitles using a word list - show_speaker {S -> S) Prepend speaker names from ASS subtitles to the visible text lines Signed-off-by: softworkz --- doc/filters.texi | 206 ++

[FFmpeg-devel] [PATCH v6 13/25] avfilter/overlaygraphicsubs: Add overlaygraphicsubs and graphicsub2video filters

2022-06-26 Thread softworkz
From: softworkz - overlaygraphicsubs (VS -> V) Overlay graphic subtitles onto a video stream - graphicsub2video {S -> V) Converts graphic subtitles to video frames (with alpha) Gets auto-inserted for retaining compatibility with sub2video command lines Signed-off-by: softworkz --- doc

[FFmpeg-devel] [PATCH v6 07/25] avcodec/subtitles: Replace deprecated enum values

2022-06-26 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavcodec/ass.h | 2 +- libavcodec/assdec.c| 2 +- libavcodec/dvbsubdec.c | 2 +- libavcodec/dvdsubdec.c | 2 +- libavcodec/dvdsubenc.c | 2 +- libavcodec/pgssubdec.c | 2 +- libavcodec/xsubdec.c | 2 +- 7 files changed, 7 insertions(+),

[FFmpeg-devel] [PATCH v6 08/25] fftools/play, probe: Adjust for subtitle changes

2022-06-26 Thread softworkz
From: softworkz Signed-off-by: softworkz --- fftools/ffplay.c | 102 +- fftools/ffprobe.c | 47 + 2 files changed, 77 insertions(+), 72 deletions(-) diff --git a/fftools/ffplay.c b/fftools/ffplay.c index 040afa0189..111e157979 1

[FFmpeg-devel] [PATCH v6 06/25] avcodec, avutil: Move ass helper functions to avutil as avpriv_ and extend ass dialog parsing

2022-06-26 Thread softworkz
From: softworkz Also add - hard_space callback (for upcoming fix) - extensible callback (for future extension) - new API which allows tag filtering Signed-off-by: softworkz --- libavcodec/Makefile | 56 +++--- libavcodec/ass.h | 151 +-- lib

[FFmpeg-devel] [PATCH v6 11/25] avfilter/avfilter: Fix hardcoded input index

2022-06-26 Thread softworkz
From: softworkz This fix targets (rare) cases where multiple input pads have a .filter_frame function. ff_request_frame_to_filter needs to call ff_request_frame with the correct input pad instead of the hardcoded first one. Signed-off-by: softworkz --- libavfilter/avfilter.c | 18 +

[FFmpeg-devel] [PATCH v6 12/25] avfilter/sbuffer: Add sbuffersrc and sbuffersink filters

2022-06-26 Thread softworkz
From: softworkz Signed-off-by: softworkz --- configure| 2 +- libavfilter/allfilters.c | 2 ++ libavfilter/buffersink.c | 54 ++ libavfilter/buffersink.h | 7 libavfilter/buffersrc.c | 72 libavfilter/

[FFmpeg-devel] [PATCH v6 05/25] avfilter/subtitles: Update vf_subtitles to use new decoding api

2022-06-26 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/vf_subtitles.c | 67 ++ 1 file changed, 54 insertions(+), 13 deletions(-) diff --git a/libavfilter/vf_subtitles.c b/libavfilter/vf_subtitles.c index 82e140e986..0ae156ad07 100644 --- a/libavfilter/vf_s

[FFmpeg-devel] [PATCH v6 10/25] avfilter/avfilter: Handle subtitle frames

2022-06-26 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/avfilter.c | 20 +--- libavfilter/avfilter.h | 11 +++ libavfilter/avfiltergraph.c | 5 + libavfilter/formats.c | 16 libavfilter/formats.h | 3 +++ libavfilter/internal

[FFmpeg-devel] [PATCH v6 09/25] avfilter/subtitles: Add subtitles.c for subtitle frame allocation

2022-06-26 Thread softworkz
From: softworkz Analog to avfilter/video.c and avfilter/audio.c Signed-off-by: softworkz --- libavfilter/Makefile| 1 + libavfilter/avfilter.c | 4 +++ libavfilter/internal.h | 1 + libavfilter/subtitles.c | 63 + libavfilter/subtitles.h | 44 ++

[FFmpeg-devel] [PATCH v6 04/25] avcodec/libzvbi: set subtitle type

2022-06-26 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavcodec/libzvbi-teletextdec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/libzvbi-teletextdec.c b/libavcodec/libzvbi-teletextdec.c index 92466cc11e..2aab10a548 100644 --- a/libavcodec/libzvbi-teletextdec.c +++ b/libavcodec/li

[FFmpeg-devel] [PATCH v6 03/25] avcodec/subtitles: Introduce new frame-based subtitle decoding API

2022-06-26 Thread softworkz
From: softworkz - Modify avcodec_send_packet() to support subtitles via the regular frame based decoding API - Add decode_subtitle_shim() which takes subtitle frames, and serves as a compatibility shim to the legacy subtitle decoding API until all subtitle decoders are migrated to the frame

[FFmpeg-devel] [PATCH v6 02/25] avutil/frame: Prepare AVFrame for subtitle handling

2022-06-26 Thread softworkz
From: softworkz Root commit for adding subtitle filtering capabilities. In detail: - Add type (AVMediaType) field to AVFrame Replaces previous way of distinction which was based on checking width and height to determine whether a frame is audio or video - Add subtitle fields to AVFrame - Add

[FFmpeg-devel] [PATCH v6 01/25] avcodec, avutil: Move enum AVSubtitleType to avutil, add new and deprecate old values

2022-06-26 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavcodec/avcodec.h | 19 + libavutil/Makefile | 1 + libavutil/subfmt.h | 68 libavutil/version.h | 1 + 4 files changed, 71 insertions(+), 18 deletions(-) create mode 100644 libavuti

[FFmpeg-devel] [PATCH v6 00/25] Subtitle Filtering 2022

2022-06-26 Thread ffmpegagent
Subtitle Filtering 2022 === This is a substantial update to the earlier subtitle filtering patch series. A primary goal has been to address others' concerns as much as possible on one side and to provide more clarity and control over the way things are working. Clarity is is s

Re: [FFmpeg-devel] [PATCH v5 24/25] fftools/ffmpeg: Introduce subtitle filtering and new frame-based subtitle encoding

2022-06-26 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Andreas Rheinhardt > Sent: Saturday, June 25, 2022 3:01 PM > To: [email protected] > Subject: Re: [FFmpeg-devel] [PATCH v5 24/25] fftools/ffmpeg: > Introduce subtitle filtering and new frame-based subtitle encoding > > Soft

Re: [FFmpeg-devel] [PATCH] Makefile: Prompt for reconfigure on lavc/hwaccels.h modification

2022-06-26 Thread Paul B Mahol
OK ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

[FFmpeg-devel] [PATCH] avcodec/qpeldsp: copy less for the mc0x cases

2022-06-26 Thread Michael Niedermayer
Fixes: out of array access Fixes: 47936/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MPEG4_fuzzer-5745039940124672 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/qpeldsp.c | 12 ++---

[FFmpeg-devel] [PATCH] Makefile: Prompt for reconfigure on lavc/hwaccels.h modification

2022-06-26 Thread Andreas Rheinhardt
Adding a new AVHWAccel also adds a new CONFIG variable for it and said config variables are typically used to calculate the size of stack arrays. In such a context, an undefined CONFIG variable does not evaluate to zero; instead it leads to a compilation failure. Therefore treat this file like the