Re: [FFmpeg-devel] [PATCH] avformat/img2dec: Option to play sequence backwards

2022-02-13 Thread Sergio Acereda
> seems to break/change -loop > > ffmpeg -f image2 -loop 1 -framerate 2 -i tickets/3329/arrow_%1d.png -frames > 1000 -vf fps=fps=25 -omit_video_pes_length 0 file-3329.ts > > the output filesize changes by more than 10x > > thx Ok, I'll look into that later. Once I have a new patch, how shoul

Re: [FFmpeg-devel] [PATCH] avformat/img2dec: Option to play sequence backwards

2022-02-13 Thread Michael Niedermayer
On Sun, Feb 13, 2022 at 12:36:14PM +0100, Sergio Acereda wrote: > > seems to break/change -loop > > > > ffmpeg -f image2 -loop 1 -framerate 2 -i tickets/3329/arrow_%1d.png -frames > > 1000 -vf fps=fps=25 -omit_video_pes_length 0 file-3329.ts > > > > the output filesize changes by more than 10x

Re: [FFmpeg-devel] [RFC][PATCH 1/4] avutil/frame: add an internal field to store the size of AVFrame

2022-02-13 Thread Michael Niedermayer
On Sat, Feb 12, 2022 at 09:16:36AM -0300, James Almer wrote: > On 2/12/2022 9:08 AM, Michael Niedermayer wrote: > > On Fri, Feb 11, 2022 at 09:12:58PM -0300, James Almer wrote: > > > This is unfortunately needed to remove (or reduce the awfulness) of > > > certain > > > modules violating the AVFra

[FFmpeg-devel] [PATCH] avformat/id3v2: Add Grouping frame to id3v2.4 metadata table

2022-02-13 Thread Wolfgang Müller
The ID3v2.4.0 standard defines TIT1 as the "Content group description" tag [1]. This frame is usually referred to as the "Grouping" tag and in de-facto use under that name by Vorbis and APEv2 [2]. This commit introduces a mapping from "TIT1" to "grouping" in the id3v2.4 metadata conversion table.

Re: [FFmpeg-devel] [PATCH] Long path support for Windows (fixes #8885)

2022-02-13 Thread Timo Rothenpieler
Does this break compatibility with older Windows-Versions? smime.p7s Description: S/MIME Cryptographic Signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, o

[FFmpeg-devel] [PATCH] avformat/matroskadec: Check pre_ns

2022-02-13 Thread Michael Niedermayer
Fixes: division by 0 Fixes: 44615/clusterfuzz-testcase-minimized-ffmpeg_dem_WEBM_DASH_MANIFEST_fuzzer-6681108677263360 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavformat/matroskadec.c | 2 ++ 1

Re: [FFmpeg-devel] [PATCH] avcodec/setts_bsf: set the output packet duration to 0

2022-02-13 Thread James Almer
On 2/9/2022 12:28 PM, James Almer wrote: It's not possible to know the resulting packet's duration after applying the expression as it depends on the timestamp of the next packet, which we haven't seen yet. The old duration, if any, is no longer valid, so just remove it. Signed-off-by: James Alm

Re: [FFmpeg-devel] [PATCH] avcodec/setts_bsf: set the output packet duration to 0

2022-02-13 Thread Paul B Mahol
Too soon. Wait more, does this breaks something? ___ 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"

Re: [FFmpeg-devel] [PATCH] avcodec/setts_bsf: set the output packet duration to 0

2022-02-13 Thread James Almer
On 2/13/2022 2:14 PM, Paul B Mahol wrote: Too soon. Wait more, Ok. does this breaks something? There are no fate tests, and 0 is used when the duration is unknown, so it shouldn't break anything. ___ ffmpeg-devel mailing list ffmpeg-devel@ffm

Re: [FFmpeg-devel] [PATCH] avcodec/setts_bsf: set the output packet duration to 0

2022-02-13 Thread Andreas Rheinhardt
James Almer: > On 2/13/2022 2:14 PM, Paul B Mahol wrote: >> Too soon. >> >> Wait more, > > Ok. > >> does this breaks something? > > There are no fate tests, and 0 is used when the duration is unknown, so > it shouldn't break anything. > It breaks the simple use-case where this filter is used t

Re: [FFmpeg-devel] [PATCH] avcodec/setts_bsf: set the output packet duration to 0

2022-02-13 Thread James Almer
On 2/13/2022 2:22 PM, Andreas Rheinhardt wrote: James Almer: On 2/13/2022 2:14 PM, Paul B Mahol wrote: Too soon. Wait more, Ok. does this breaks something? There are no fate tests, and 0 is used when the duration is unknown, so it shouldn't break anything. It breaks the simple use-

Re: [FFmpeg-devel] [PATCH] avcodec/setts_bsf: set the output packet duration to 0

2022-02-13 Thread Andreas Rheinhardt
James Almer: > > > On 2/13/2022 2:22 PM, Andreas Rheinhardt wrote: >> James Almer: >>> On 2/13/2022 2:14 PM, Paul B Mahol wrote: Too soon. Wait more, >>> >>> Ok. >>> does this breaks something? >>> >>> There are no fate tests, and 0 is used when the duration is unknown, so >>>

Re: [FFmpeg-devel] [PATCH 0/3] avformat/avisynth: support frame properties

2022-02-13 Thread Stephen Hutchinson
On 2/8/22 6:02 AM, Stephen Hutchinson wrote: AviSynth+ 3.6.0 introduced support for frame properties, allowing various metadata to be passed between filters or read out by client programs. Using this, FFmpeg can read Color Range, Transfer Characteristics, Matrix, Color Primaries, Chroma Location

[FFmpeg-devel] [PATCH v6 0/1] Add IPFS protocol support.

2022-02-13 Thread Mark Gaiser
Hi, This patch series adds support for IPFS. V6: - Moved the gateway buffer (now called gateway_buffer) to IPFSGatewayContext - Changed nearly all PATH_MAX uses to sizeof(...) uses for future flexibility - The rest is relatively minor feedback changes V5: - "c->gateway" is now not modified anymore

[FFmpeg-devel] [PATCH v6 1/1] avformat: Add IPFS protocol support.

2022-02-13 Thread Mark Gaiser
This patch adds support for: - ffplay ipfs:// - ffplay ipns:// IPFS data can be played from so called "ipfs gateways". A gateway is essentially a webserver that gives access to the distributed IPFS network. This protocol support (ipfs and ipns) therefore translates ipfs:// and ipns:// to a http:/

Re: [FFmpeg-devel] [PATCH] avcodec/setts_bsf: set the output packet duration to 0

2022-02-13 Thread Gyan Doshi
On 2022-02-13 10:58 pm, James Almer wrote: On 2/13/2022 2:22 PM, Andreas Rheinhardt wrote: James Almer: On 2/13/2022 2:14 PM, Paul B Mahol wrote: Too soon. Wait more, Ok. does this breaks something? There are no fate tests, and 0 is used when the duration is unknown, so it shouldn'

[FFmpeg-devel] [PATCH] avfilter/af_aderivative: add timeline support

2022-02-13 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavfilter/af_aderivative.c | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/libavfilter/af_aderivative.c b/libavfilter/af_aderivative.c index baa272d609..ca8af6cec8 100644 --- a/libavfilter/af_aderivative.c +++ b/libavfi

[FFmpeg-devel] [PATCH 1/3] avcodec: add ADPCM IMA HVQM4 decoder

2022-02-13 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavcodec/Makefile | 1 + libavcodec/adpcm.c | 64 + libavcodec/allcodecs.c | 1 + libavcodec/codec_desc.c | 7 + libavcodec/codec_id.h | 1 + 5 files changed, 74 insertions(+) diff --git a/libavcodec/Ma

[FFmpeg-devel] [PATCH 2/3] [WIP] avcodec: add HVQM4 Video decoder

2022-02-13 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavcodec/Makefile |1 + libavcodec/allcodecs.c |1 + libavcodec/codec_desc.c |7 + libavcodec/codec_id.h |1 + libavcodec/hvqm4.c | 1719 +++ 5 files changed, 1729 insertions(+) create mode 100644 l

[FFmpeg-devel] [PATCH 3/3] avformat: add hvqm4 demuxer

2022-02-13 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/hvqm4dec.c | 265 +++ 3 files changed, 267 insertions(+) create mode 100644 libavformat/hvqm4dec.c diff --git a/libavformat/Makefile b/libavforma

[FFmpeg-devel] [PATCH v3] create av_media_type_get_string()

2022-02-13 Thread Scott Theisen
Identical to v2, but I reworded the second commit's message to add a context. ___ 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.

[FFmpeg-devel] [PATCH v3 1/2] libavutil: create av_media_type_get_string()

2022-02-13 Thread Scott Theisen
This deprecates av_get_media_type_string() which does return NULL. printf %s with a null pointer is undefined behavior This also matches behavior with avcodec_get_name() which never returns NULL, instead it returns "unknown_codec". --- doc/APIchanges | 3 +++ libavutil/avutil.h | 7 +++

[FFmpeg-devel] [PATCH v3 2/2] av_get_media_type_string(): replace with av_media_type_get_string()

2022-02-13 Thread Scott Theisen
printf %s with a null pointer is undefined behavior. --- doc/examples/demuxing_decoding.c | 10 +- doc/examples/extract_mvs.c | 4 ++-- fftools/cmdutils.c | 7 +++ fftools/cmdutils.h | 2 -- fftools/ffmpeg.c | 14 +++--- ffto

[FFmpeg-devel] [PATCH] lavf/mpeg.c: improve readability of packet identification logic

2022-02-13 Thread Scott Theisen
switch-case over es_type and then perform a linear search over startcode. --- libavformat/mpeg.c | 215 - 1 file changed, 132 insertions(+), 83 deletions(-) diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c index ca15d9f241..c1b1c7e7de 100644 --- a/l

Re: [FFmpeg-devel] [PATCH 1/3] avisynth: corrected interlace detection

2022-02-13 Thread Stephen Hutchinson
On 2/8/22 6:02 AM, Stephen Hutchinson wrote: From: emcodem AviSynth works on frame-based video by default, which can be either progressive or interlaced. Some filters can break frames into half-height fields, at which point it considers the clip to be field-based (avs_is_field_based can be used

Re: [FFmpeg-devel] [PATCH 2/3] avisynth: use AviSynth+'s frame properties to set various fields

2022-02-13 Thread Stephen Hutchinson
On 2/8/22 6:02 AM, Stephen Hutchinson wrote: * Field Order * Chroma Location * Color Transfer Characteristics * Color Range * Color Primaries * Matrix Coefficients The existing TFF/BFF detection is retained as a fallback for older versions of AviSynth that can't access frame properties. The othe

Re: [FFmpeg-devel] [PATCH 3/3] configure: check avisynth header version

2022-02-13 Thread Stephen Hutchinson
On 2/8/22 6:02 AM, Stephen Hutchinson wrote: The headers from version 3.7.1 are needed in order to support parsing of frame properties. avs/version.h has been generated as part of the AviSynth+ build process for a long time, but was never installed with the includes until version 3.7.1a. Checking

[FFmpeg-devel] [PATCH] avcodec/videotoolbox: add internal.h for header depenedency

2022-02-13 Thread lance . lmwang
From: Limin Wang Fixes build failures for videotoolbox Signed-off-by: Limin Wang --- libavcodec/videotoolbox.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/videotoolbox.c b/libavcodec/videotoolbox.c index 51d4eac..29c781c 100644 --- a/libavcodec/videotoolbox.c +++ b/libavcode

Re: [FFmpeg-devel] [PATCH] Long path support for Windows (fixes #8885)

2022-02-13 Thread Gyan Doshi
On 2022-02-14 01:56 am, nihil-admir...@tutanota.com wrote: BASE64 encoded. Rebase against current HEAD and submit via git send-email. If not possible, export mbox patch using git format-patch, test with git am locally. Then send as attachment. Regards, Gyan Feb 13, 2022, 19:54 by nihil-a

[FFmpeg-devel] [PATCH] libavcodec/qsvenc_hevc: encode RGB format rawvideo

2022-02-13 Thread Wenbin Chen
Add support for hevc_qsv to input RGB format frame. It will transform frame to yuv inside MediaSDK instead of using auto scale. Now hevc_qsv supports directly encoding BGRA and X2RGB10 format. X2RGB10 is only supported in VDENC (-low_power 1). The X2RGB10 correspond to the A2RGB20 format in MediaSD

[FFmpeg-devel] [patch] libavcodec/videotoolbox.c : fix missing AVCodecInternal

2022-02-13 Thread Pascal Massimino
attached. Just a missing include. skal/ 0001-fix-missing-AVCodecInternal-definition.patch Description: Binary data ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above,