[FFmpeg-user] Audio captured via AVFoundation is unusable

Gyan Doshi ffmpeg at gyani.pro
Tue Jun 3 07:01:24 EEST 2025



On 2025-06-01 05:58 am, FFmpeg via ffmpeg-user wrote:
> I'm currently attempting to move from a Windows audio/video capture rig to a Mac. On Windows, I relied heavily on FFmpeg & DirectShow to capture clean audio/video feeds from PCIe capture cards, as well as audio from my RME audio interfaces. I was hoping that I could do the same on macOS with FFmpeg & AVFoundation, but I'm surprised to find that audio captured via FFmpeg + AVFoundation is completely unusable. The resulting output is pitch shifted, riddled with pops and clicks, etc.

With AVFoundation, sometimes audio parameters aren't initialized at 
start of capture. The OS initializes the audio very shortly afterwards, 
but ffmpeg uses the parameters advertised in the beginning, which will 
be incorrect.
I wrote a patch few years back to fix this - I'll find it and update it. 
I'll post it if you can test it.

Regards,
Gyan



More information about the ffmpeg-user mailing list