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

Gyan Doshi ffmpeg at gyani.pro
Wed Jan 19 16:31:32 EET 2022



On 2022-01-19 07:53 pm, Romain Beauxis wrote:
> This patch switches the logic around audio settings to let the caller drive the format.
>
> After experimenting with the AudioConverter, we realized that, even when adhering to a strict implementation of the documented API, we were still getting errors during conversions. The input device would randomly change from e.g. s32le to s24le between restarts and error out on conversion (using a freshly initialized converter).
  At present, the code uses the first frame to set attributes. If you 
wait for a few frames and then probe, the attributes are stable.

Regards,
Gyan


More information about the ffmpeg-devel mailing list