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

Paul B Mahol onemda at gmail.com
Thu Sep 9 20:43:09 EEST 2021


On Thu, Sep 9, 2021 at 12:44 PM Arif Driessen <arifd86 at gmail.com> wrote:

> Hi Paul OMG! buffer_size is a hidden parameter!!
>
> I have looked all over (the ffmpeg documentation and beyond) for some kind
> of setting that would appear to do this, because the documentation does not
> list it as an option: https://ffmpeg.org/ffmpeg-devices.html#pulse
>
> Because of your prompt I decided to try it anyway. And it worked!
>
> We need to update the documentation. I had a quick look in the github repo,
> it's not very obvious where the documentation for pulse lives.
>
> ffmpeg -h outdev=pulse

should be working, if not report bug.


>
> On Thu, Sep 9, 2021 at 8:23 AM Paul B Mahol <onemda at gmail.com> wrote:
>
> > 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".
> > >
> > _______________________________________________
> > 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