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

2021-10-13 Thread Moritz Barsnick
Hi Arif, On Sun, Sep 26, 2021 at 14:21:43 +0200, Arif Driessen wrote: > However, My inroad, as I see it, is essentially going from high level to > low level so probably somewhere in this order of contribution: > > 1) Documentation fixes / maybe other superficial maintenance tasks that > need

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

2021-09-26 Thread Arif Driessen
Well, definitely more the audio side than the video side. But I wouldn't be opposed to getting there eventually, or even first, if there's something relatively simple that needs doing! But at this point in my level of competence, (I think) I basically need someone wiser than me to just say, "do

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

2021-09-26 Thread Paul B Mahol
On Sun, Sep 26, 2021 at 1:55 PM Arif Driessen wrote: > > should be working, if not report bug. > Ah okay, I did some investigation, and indeed (as usual) I was wrong. The > option does appear in the documentation for the OUTPUT device: > https://ffmpeg.org/ffmpeg-devices.html#pulse-1 > > Kind of

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

2021-09-26 Thread Arif Driessen
> should be working, if not report bug. Ah okay, I did some investigation, and indeed (as usual) I was wrong. The option does appear in the documentation for the OUTPUT device: https://ffmpeg.org/ffmpeg-devices.html#pulse-1 Kind of a shame... I was excited about my first contribution to a major

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

2021-09-09 Thread Paul B Mahol
On Thu, Sep 9, 2021 at 12:44 PM Arif Driessen 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:

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

2021-09-09 Thread Arif Driessen
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

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

2021-09-09 Thread Paul B Mahol
On Wed, Sep 8, 2021 at 12:11 PM Arif Driessen 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

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

2021-09-08 Thread Arif Driessen
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 wrote: > Am 08.09.2021 um 11:44

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

2021-09-08 Thread Michael Koch
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

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

2021-09-08 Thread Arif Driessen
Hi guys, I want to have ffmpeg grab my microphone at a high sample rate, apply some processing, downsample and feed it to a virtual PulseAudio device to then be able to use live in any application. But even in the most vanilla setting, it is adding about 4 seconds of latency: $ ffmpeg -f alsa