[FFmpeg-devel] [PATCH 4/5] fftools/ffmpeg: Ignore PTS checking for arib_superimpose

2021-06-12 Thread zheng qian
arib_superimpose codec doesn't has PTS (AV_NOPTS_VALUE) Signed-off-by: zheng qian --- fftools/ffmpeg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index e97d879cb3..d60ab49533 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -8

[FFmpeg-devel] [PATCH 5/5] avcodec/libaribb24: Enable decoding support for arib_superimpose

2021-06-12 Thread zheng qian
ARIB superimpose packet could also be decoded by libaribb24 Signed-off-by: zheng qian --- libavcodec/allcodecs.c | 1 + libavcodec/libaribb24.c | 14 ++ 2 files changed, 15 insertions(+) diff --git a/libavcodec/allcodecs.c b/libavcodec/allcodecs.c index 623db2a9fa..5d5b536e97 1006

[FFmpeg-devel] [PATCH 3/5] avformat/mpegtsenc: Add muxing support for arib_superimpose

2021-06-12 Thread zheng qian
Signed-off-by: zheng qian --- libavformat/mpegtsenc.c | 30 +++--- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index 98dac17994..68f69d5df8 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc

[FFmpeg-devel] [PATCH 1/5] avcodec/codec: Add arib_superimpose subtitle codec

2021-06-12 Thread zheng qian
This patchset introduces ARIB STD-B24 superimpose support. ARIB superimpose is almost same as ARIB caption but has a silent difference. ARIB superimpose is utilized to transmit emergency alert and newsflash in Japan DTV. Since superimpose is designed to be displayed once received by the television

[FFmpeg-devel] [PATCH 2/5] avformat/mpegts: Recognize arib_superimpose by ARIB data coding descriptor

2021-06-12 Thread zheng qian
Signed-off-by: zheng qian --- libavformat/mpegts.c | 26 -- 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index a02965bacf..6c5fb53c51 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -2106,8 +2106

[FFmpeg-devel] [PATCH] configure: bump default nvcc arch to compute_35

2021-06-12 Thread Anton Khirnov
From: Matthieu Patou compute_30 seems to be removed from CUDA SDK 11.0 Suggested-by: ffm...@fb.com Signed-off-by: Anton Khirnov --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 6bfd98b384..d9e649d030 100755 --- a/configure +++ b/conf

Re: [FFmpeg-devel] [PATCH] configure: bump default nvcc arch to compute_35

2021-06-12 Thread Timo Rothenpieler
On 12.06.2021 12:43, Anton Khirnov wrote: From: Matthieu Patou compute_30 seems to be removed from CUDA SDK 11.0 It is, that's why just a few lines below there is a check that tests for that and upgrades the version if necessary. smime.p7s Description: S/MIME Cryptographic Signature

Re: [FFmpeg-devel] [PATCH] avfilter: add format_cuda filter

2021-06-12 Thread Timo Rothenpieler
On 12.06.2021 07:07, Lynne wrote: Jun 12, 2021, 00:26 by t...@rothenpieler.org: On 11.06.2021 17:33, Steven Liu wrote: 在 2021年6月11日,22:43,Timo Rothenpieler 写道: Hi Timo, --- configure | 2 + doc/filters.texi| 46 ++ libavfilter/Makefile

Re: [FFmpeg-devel] [PATCH 0/4] avdevice/dshow: implement capabilities API

2021-06-12 Thread Diederick C. Niehorster
Nicolas, I agree with what you said, and you obviously have given this more thought than me. Your and Anton's replies provide two by now pretty clear different views, I hope more will chime in. I will only highlight some things below. On Fri, Jun 11, 2021 at 3:17 PM Nicolas George wrote: > Input

Re: [FFmpeg-devel] [PATCH 0/4] avdevice/dshow: implement capabilities API

2021-06-12 Thread Diederick C. Niehorster
Reorganized a bit for easier replying. Also, while i think this is an important discussion, i do not see why it should stop de-deprecation of a good API. Deprecating the device capabilities API cleaned up avformat a bit, but various other function pointers are left. A redesign would clean them all

Re: [FFmpeg-devel] [PATCH v2] avformat/hls Implement support for using AVSEEK_FLAG_BACKWARD when seeking

2021-06-12 Thread Gustav Grusell
On Fri, Jun 11, 2021 at 6:29 PM Lingjiang Fang wrote: > On Sat, 5 Jun 2021 22:42:26 +0200 > Gustav Grusell wrote: > > > Before, seeking in hls streams would always seek to the next keyframe > > after the given timestamp. With this fix, if AVSEEK_FLAG_BACKWARD is > > set, seeking will be to the

[FFmpeg-devel] [PATCH] configure: msys also has .exe suffix

2021-06-12 Thread Timo Rothenpieler
--- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index bdd23479ba..41449eac5f 100755 --- a/configure +++ b/configure @@ -4424,7 +4424,7 @@ fi exesuf() { case $1 in - mingw32*|mingw64*|win32|win64|cygwin*|*-dos|freedos|opendos|o

Re: [FFmpeg-devel] [PATCH 1/3] avformat/flvdec: Check data before casting

2021-06-12 Thread Michael Niedermayer
On Tue, Jun 08, 2021 at 09:29:39PM +0200, Michael Niedermayer wrote: > Fixes: -nan is outside the range of representable values of type 'long' > Fixes: signed integer overflow: 1000 * -9223372036854775808 cannot be > represented in type 'long' > Fixes: > 34890/clusterfuzz-testcase-minimized-ffmpe

Re: [FFmpeg-devel] [PATCH 2/4] avcodec/utils: do "calc from frame_bytes, channels, and block_align" in 64bit

2021-06-12 Thread Michael Niedermayer
On Wed, Apr 28, 2021 at 05:06:34PM +0200, Michael Niedermayer wrote: > Fixes: signed integer overflow: 104962766 * 32 cannot be represented in type > 'int' > Fixes: > 33614/clusterfuzz-testcase-minimized-ffmpeg_dem_RSD_fuzzer-6252129036664832 > > Found-by: continuous fuzzing process > https://g

Re: [FFmpeg-devel] [PATCH 1/9] avformat/utils: check dts/duration to be representable before using them

2021-06-12 Thread Michael Niedermayer
On Mon, Apr 19, 2021 at 08:23:38PM +0200, Michael Niedermayer wrote: > Fixes: signed integer overflow: 6854513951393103890 + 3427256975738527712 > cannot be represented in type 'long' > Fixes: > 32936/clusterfuzz-testcase-minimized-ffmpeg_dem_R3D_fuzzer-5236914752978944 > > Found-by: continuous

Re: [FFmpeg-devel] [PATCH 1/3] avformat/utils: Avoid overflow in codec_info_duration computation for subtitles

2021-06-12 Thread Michael Niedermayer
On Thu, Jun 10, 2021 at 03:58:09PM +0200, Michael Niedermayer wrote: > Fixes: signed integer overflow: 9223126845747118112 - -2594073385365397472 > cannot be represented in type 'long' > Fixes: > 34936/clusterfuzz-testcase-minimized-ffmpeg_dem_MATROSKA_fuzzer-6739888002170880 > > Found-by: conti

Re: [FFmpeg-devel] [PATCH] Stop using _explicit atomic operations where not necessary.

2021-06-12 Thread Andreas Rheinhardt
Anton Khirnov: > Quoting Andreas Rheinhardt (2021-06-06 19:20:38) >> Anton Khirnov: >>> Quoting Andreas Rheinhardt (2021-06-06 11:13:00) Anton Khirnov: > Memory ordering constraints other than the default (sequentially > consistent) can behave in very unintuitive and unexpected ways, a

Re: [FFmpeg-devel] [PATCH] configure: msys also has .exe suffix

2021-06-12 Thread Hendrik Leppkes
On Sat, Jun 12, 2021 at 2:31 PM Timo Rothenpieler wrote: > > --- > configure | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/configure b/configure > index bdd23479ba..41449eac5f 100755 > --- a/configure > +++ b/configure > @@ -4424,7 +4424,7 @@ fi > > exesuf() { > c

Re: [FFmpeg-devel] [PATCH] configure: msys also has .exe suffix

2021-06-12 Thread Timo Rothenpieler
On 12.06.2021 18:08, Hendrik Leppkes wrote: On Sat, Jun 12, 2021 at 2:31 PM Timo Rothenpieler wrote: --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index bdd23479ba..41449eac5f 100755 --- a/configure +++ b/configure @@ -4424,7 +4424,7

[FFmpeg-devel] [PATCH v2] avfilter: compress CUDA PTX code if possible

2021-06-12 Thread Timo Rothenpieler
--- .gitignore | 1 + compat/cuda/ptx2c.sh| 34 configure | 17 ++ ffbuild/.gitignore | 1 + ffbuild/bin2c.c | 76 ++ ffbuild/common.mak | 28 -- liba

Re: [FFmpeg-devel] [PATCH v2] avformat/hls Implement support for using AVSEEK_FLAG_BACKWARD when seeking

2021-06-12 Thread Lingjiang Fang
On Sat, 12 Jun 2021 14:16:22 +0200 Gustav Grusell wrote: > On Fri, Jun 11, 2021 at 6:29 PM Lingjiang Fang > wrote: > > > On Sat, 5 Jun 2021 22:42:26 +0200 > > Gustav Grusell wrote: > > > > > Before, seeking in hls streams would always seek to the next > > > keyframe after the given timestam

[FFmpeg-devel] [PATCH 1/2] lavc/libaomenc: Show encoder config as a warning in case of failed initialization

2021-06-12 Thread Thilo Borgmann
Hi, if init fails, it's likely originating from the library's config. This and 2/2 are for easier debugging in that case instead of having to run again with loglevel DEBUG. -Thilo From c165947450383da4e81ef0b0a1ec82509c698479 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Sat, 12 Jun 2021

[FFmpeg-devel] [PATCH 2/2] lavc/libvpxenc: Show encoder config as a warning in case

2021-06-12 Thread Thilo Borgmann
$subject -Thilo From 77ec6561c69bc35b338f92af551f277066f71b88 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Sat, 12 Jun 2021 21:01:40 +0200 Subject: [PATCH 2/2] lavc/libvpxenc: Show encoder config as a warning in case of failed initialization Suggested-By: ffm...@fb.com --- libavcodec/li

Re: [FFmpeg-devel] [RFC] Type descriptors

2021-06-12 Thread Diederick C. Niehorster
On Thu, Dec 31, 2020 at 2:35 PM wrote: > > This mail is about a project I have to make FFmpeg's API and > infrastructure more convenient. For a common introduction, see this > thread: > https://ffmpeg.org/pipermail/ffmpeg-devel/2020-December/274167.html > > For each simple type, including enumerat

Re: [FFmpeg-devel] [RFC] Internal error messages

2021-06-12 Thread Diederick C. Niehorster
On Thu, Dec 31, 2020 at 9:52 PM wrote: > > On 31/12/2020 13:36, Nicolas George wrote: > > This mail is about a project I have to make FFmpeg's API and > > infrastructure more convenient. For a common introduction, see this > thread: > > https://ffmpeg.org/pipermail/ffmpeg-devel/2020-December/27416

Re: [FFmpeg-devel] [RFC] Global state into structure

2021-06-12 Thread Diederick C. Niehorster
On Thu, Dec 31, 2020 at 2:33 PM <(unknown sender)> wrote: > > This mail is about a project I have to make FFmpeg's API and > infrastructure more convenient. For a common introduction, see this > thread: > https://ffmpeg.org/pipermail/ffmpeg-devel/2020-December/274167.html > > Global mutable state h

Re: [FFmpeg-devel] [PATCH v2] avformat/hls Implement support for using AVSEEK_FLAG_BACKWARD when seeking

2021-06-12 Thread Gustav Grusell
On Sat, Jun 12, 2021 at 6:51 PM Lingjiang Fang wrote: > On Sat, 12 Jun 2021 14:16:22 +0200 > Gustav Grusell wrote: > > > On Fri, Jun 11, 2021 at 6:29 PM Lingjiang Fang > > wrote: > > > > > On Sat, 5 Jun 2021 22:42:26 +0200 > > > Gustav Grusell wrote: > > > > > > > Before, seeking in hls strea

[FFmpeg-devel] [PATCH v2 1/5] avcodec/codec: Add arib_superimpose subtitle codec

2021-06-12 Thread zheng qian
This patchset introduces ARIB STD-B24 superimpose support. ARIB superimpose is almost same as ARIB caption but has a silent difference. ARIB superimpose is utilized to transmit emergency alert and newsflash in Japan DTV. Since superimpose is designed to be displayed once received by the television

[FFmpeg-devel] [PATCH v2 2/5] avformat/mpegts: Recognize arib_superimpose by ARIB data coding descriptor

2021-06-12 Thread zheng qian
Signed-off-by: zheng qian --- libavformat/mpegts.c | 26 -- 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index a02965bacf..6c5fb53c51 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -2106,8 +2106

[FFmpeg-devel] [PATCH v2 3/5] avformat/mpegtsenc: Add muxing support for arib_superimpose

2021-06-12 Thread zheng qian
Signed-off-by: zheng qian --- libavformat/mpegtsenc.c | 30 +++--- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index 98dac17994..68f69d5df8 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc

[FFmpeg-devel] [PATCH v2 4/5] fftools/ffmpeg: Ignore PTS checking for arib_superimpose

2021-06-12 Thread zheng qian
arib_superimpose codec doesn't has PTS (AV_NOPTS_VALUE) Signed-off-by: zheng qian --- fftools/ffmpeg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index e97d879cb3..d60ab49533 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -8

[FFmpeg-devel] [PATCH v2 5/5] avcodec/libaribb24: Enable decoding support for arib_superimpose

2021-06-12 Thread zheng qian
ARIB superimpose packet could also be decoded by libaribb24 Signed-off-by: zheng qian --- configure | 1 + libavcodec/allcodecs.c | 1 + libavcodec/libaribb24.c | 14 ++ 3 files changed, 16 insertions(+) diff --git a/configure b/configure index 6bfd98b384..00a38b4cd

[FFmpeg-devel] [PATCH] Add -strftime_mkdir to image2 and segment outputs (based on HLS).

2021-06-12 Thread Roger Hardiman
Add -strftime_mkdir to create any directories in the output file path for Image2 and Segment outputs. Based on existing function in HLS output. This allows strftime re-writes eg %Y %d %d (Year/Month/Day) and %H %M %S (Hours/Minutes/Seconds) to be used in the directory path of files ffmpeg create