On Fri, Feb 13, 2015 at 02:47:51AM -0200, Henrique Lengler wrote:
> Hi, Just an update.
> I continue with the lag. So I decided to try other players, and I discovered
> that ffplay from ffmpeg don't lag, this is the only one I found that works,
> with
> both audio and video. But the problem isn't solved yet since I like cmus and
> mplayer and I wanna use them. This is really strange, why this could happen?
One second lag is cleary a bug. Could you get this file:
http://caoua.org/tmp/beep.wav
and test the lag with this command:
aucat -i beep.wav
The lag is supposed to be of 0.2 seconds. To debug this, you could
kill sndiod, run tmux and start:
sudo sndiod -dd <your_options_if_any>
Then, when you start a program it displays information about what
programs do, example:
mplayer0: 48000Hz, s32le, play 0:1, 13 blocks of 960 frames
mplayer0: attached at -7680, delta = 0
which allows to calculate the expected lag:
13 * 960 / 48000 = 0.26 seconds of lag
Do you see any warning messages?
[...]
Whenever the device starts, sndiod displays:
snd0: device started
when you observe the lag, does above message appear delayed as
well?
If you let:
aucat -i /dev/zero
running, do cmus and mplayer keep lagging?
-- Alexandre