[FFmpeg-user] High audio latency (although low with ffplay!)

Arif Driessen arifd86 at gmail.com
Wed Sep 8 13:11:12 EEST 2021

Yes, my initial suspicion is buffer size, but it appears you can't set
buffer size with the alsa device.

It looks like there may be a compile-time constant MAX_BUFFER_SIZE but I
don't want to have to compile ffmpeg.

On Wed, Sep 8, 2021 at 12:01 PM Michael Koch <astroelectronic at t-online.de>

> Am 08.09.2021 um 11:44 schrieb Arif Driessen:
> > about 3 seconds latency.
> >
> > I have also experimented with these flags: -thread_queue_size, -fflags
> > nobuffer, -flags low_delay ,-strict experimental, -re, -deadline realtime
> >
> > Any ideas?
> I had a similar problem with the "dshow" input device and solved it by
> setting -audio_buffer_size to a small value. However I don't know if
> this is applicable to your pulse or alsa devices.
> Michael
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".

More information about the ffmpeg-user mailing list