Re: [FFmpeg-devel] [PATCH 16/41] avcodec/mpegvideo: Use typedefs for MPV(Main)?(Dec|Enc)?Context

2022-01-30 Thread Michael Niedermayer
On Sun, Jan 30, 2022 at 07:27:24AM +0100, Andreas Rheinhardt wrote: > This is in preparation for actually adding such contexts > and e.g. moving fields only used by the main thread to > the corresponding "Main" context. > > Signed-off-by: Andreas Rheinhardt This breaks build on mingw64 src/liba

Re: [FFmpeg-devel] [PATCH 16/41] avcodec/mpegvideo: Use typedefs for MPV(Main)?(Dec|Enc)?Context

2022-01-30 Thread Michael Niedermayer
On Sun, Jan 30, 2022 at 07:27:24AM +0100, Andreas Rheinhardt wrote: > This is in preparation for actually adding such contexts > and e.g. moving fields only used by the main thread to > the corresponding "Main" context. [...] > +} MPVContext; > > +typedef MPVContext MPVDecContext; > +typedef MPV

Re: [FFmpeg-devel] [PATCH 02/41] avcodec/mjpegenc: Remove nonsense assert

2022-01-30 Thread Michael Niedermayer
On Sun, Jan 30, 2022 at 07:27:10AM +0100, Andreas Rheinhardt wrote: > Writing optimal huffman tables is incompatible with using slices Fundamentally, this should not be i think CCITT Rec. T.81 says "If a table specification for a given destination occurs more than once in the compressed image da

Re: [FFmpeg-devel] [PATCH 02/41] avcodec/mjpegenc: Remove nonsense assert

2022-01-30 Thread Andreas Rheinhardt
Michael Niedermayer: > On Sun, Jan 30, 2022 at 07:27:10AM +0100, Andreas Rheinhardt wrote: >> Writing optimal huffman tables is incompatible with using slices > > Fundamentally, this should not be i think > > CCITT Rec. T.81 says > > "If a table specification for a > given destination occurs mor

[FFmpeg-devel] [PATCH] Add AudioToolbox audio input device.

2022-01-30 Thread toots
From: Romain Beauxis --- configure | 5 + doc/indevs.texi| 35 +++ libavdevice/Makefile | 1 + libavdevice/alldevices.c | 1 + libavdevice/audiotoolbox_dec.m | 520 + 5 files changed, 562 insertions(+) c

[FFmpeg-devel] [PATCH 0/4] Cleanup avfoundation input

2022-01-30 Thread toots
This is a series of patches that fix, enhance and cleanup support for audio and video input on macos using avfoundation in libavdevice. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscri

[FFmpeg-devel] [PATCH 1/4] Use appropriate method for device discovery, fix crash with bogus device index.

2022-01-30 Thread toots
From: Romain Beauxis This updates the code for avfoundation to use modern device lookup APIs and also adds a check to avoid querying the video devices array beyound its maximum size. --- libavdevice/avfoundation.m | 71 ++ 1 file changed, 56 insertions(+),

[FFmpeg-devel] [PATCH 2/4] libavdevice/avfoundation.m: Allow to select devices by unique ID

2022-01-30 Thread toots
From: Romain Beauxis This adds a backward-compatible method to select devices using a unique ID that should not change accross device reboot or when a device is added or removed. Signed-off-by: Romain Beauxis --- doc/indevs.texi| 6 ++-- libavdevice/avfoundation.m | 64 ++

[FFmpeg-devel] [PATCH 3/4] libavdevice/avfoundation.m: use setAudioSettings, extend supported formats

2022-01-30 Thread toots
From: Romain Beauxis This patch reworks the workflow for audio input to extend the range of supported input formats and delegate to the underlying OS the task of converting audio input format. Previous version of these changes used the AudioConverter API to perform audio conversion explicitly

[FFmpeg-devel] [PATCH 4/4] libavdevice/avfoundation.m: Replace mutex-based concurrency handling in avfoundation.m by a thread-safe fifo queue with maximum length

2022-01-30 Thread toots
From: Romain Beauxis These changes rewrite the concurrency model in the avfoundation input to avoid concurrent situations where the consuming thread might get late by a frame or more, leading to input data being dropped. This issue was particularly noticeable when working with audio input. Si

Re: [FFmpeg-devel] [PATCH 1/2] avutil/random_seed: Speed up fate test

2022-01-30 Thread Michael Niedermayer
On Fri, Jan 28, 2022 at 01:18:45PM +0100, Anton Khirnov wrote: > Quoting Michael Niedermayer (2022-01-25 11:21:08) > > This decreases the quality of the seeds during the test, it does not affect > > the seeds outside the test. > > There is a small chance that this causes test failures, if that happ

[FFmpeg-devel] [PATCH v1 1/4] avformat/imf: open resources only when first needed

2022-01-30 Thread pal
From: Pierre-Anthony Lemieux IMF CPLs can reference thousands of files, which can result in system limits for the number of open files to be exceeded. The following patch opens and closes files as needed. --- libavformat/imfdec.c | 15 --- 1 file changed, 8 insertions(+), 7 deletion

[FFmpeg-devel] [PATCH v1 2/4] avformat/imf: fix missing error reporting when opening resources

2022-01-30 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/imfdec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index d03dcd623d..6b50b582f6 100644 --- a/libavformat/imfdec.c +++ b/libavformat/imfdec.c @@ -550,7 +550,9 @@ static int set_co

[FFmpeg-devel] [PATCH v1 3/4] avformat/imf: fix packet pts, dts and muxing

2022-01-30 Thread pal
From: Pierre-Anthony Lemieux The IMF demuxer does not set the DTS and PTS of packets accurately in all scenarios. Moreover, audio packets are not trimmed when they exceed the duration of the underlying resource. Closes https://trac.ffmpeg.org/ticket/9611 --- libavformat/imfdec.c | 225

[FFmpeg-devel] [PATCH v1 4/4] avformat/imf: document IMFVirtualTrackResourcePlaybackCtx

2022-01-30 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/imfdec.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index 05dcb6ff31..9f9087f936 100644 --- a/libavformat/imfdec.c +++ b/libavformat/imfdec.c @@ -95,12 +95,12 @@ typedef

Re: [FFmpeg-devel] [PATCH v1 3/4] avformat/imf: fix packet pts, dts and muxing

2022-01-30 Thread Andreas Rheinhardt
p...@sandflow.com: > From: Pierre-Anthony Lemieux > > The IMF demuxer does not set the DTS and PTS of packets accurately in all > scenarios. Moreover, audio packets are not trimmed when they exceed the > duration of the underlying resource. > > Closes https://trac.ffmpeg.org/ticket/9611 > > ---

Re: [FFmpeg-devel] [PATCH v1 3/4] avformat/imf: fix packet pts, dts and muxing

2022-01-30 Thread Pierre-Anthony Lemieux
On Sun, Jan 30, 2022 at 2:16 PM Andreas Rheinhardt wrote: > > p...@sandflow.com: > > From: Pierre-Anthony Lemieux > > > > The IMF demuxer does not set the DTS and PTS of packets accurately in all > > scenarios. Moreover, audio packets are not trimmed when they exceed the > > duration of the under

Re: [FFmpeg-devel] [PATCH 16/41] avcodec/mpegvideo: Use typedefs for MPV(Main)?(Dec|Enc)?Context

2022-01-30 Thread Andreas Rheinhardt
Michael Niedermayer: > On Sun, Jan 30, 2022 at 07:27:24AM +0100, Andreas Rheinhardt wrote: >> This is in preparation for actually adding such contexts >> and e.g. moving fields only used by the main thread to >> the corresponding "Main" context. >> >> Signed-off-by: Andreas Rheinhardt > > This br

[FFmpeg-devel] [PATCH] ffprobe: allow side-data selection by element

2022-01-30 Thread Gyan Doshi
At present, side data printing forces display for all levels i.e. stream, packets and frames. This can bloat output and also force decode of all frames in selected streams. Now, stream_side_data[=type], packet_side_data[=type] & frame_side_data[=type] can be used with -show_entries to specify carr