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

Paul B Mahol onemda at gmail.com
Thu Sep 9 09:22:36 EEST 2021


On Wed, Sep 8, 2021 at 12:11 PM Arif Driessen <arifd86 at gmail.com> wrote:

> 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>
> wrote:
>
> > 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.
>

Set buffer_size for pulse output device.


> >
> > 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".
> >
> _______________________________________________
> 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