[MPlayer-dev-eng] AV out of sync with "-ao alsa" in gmplayer, mplayer works ok
Reimar Döffinger
Reimar.Doeffinger at stud.uni-karlsruhe.de
Wed Dec 29 09:41:01 CET 2004
Hi,
On Tue, Dec 28, 2004 at 10:55:33PM -0500, Lee Revell wrote:
> Using 1.0pre6, "gmplayer -ao alsa" results in the sound and video being
> out of sync. "mplayer -ao alsa" works fine, as does "-ao oss" with
> either mplayer or gmplayer.
Are you sure this isn't caused either by different settings in gmplayer
or because the computer is too slow? Please provide a full -v log.
> This is quite annoying, as I was expecting to FINALLY have a gmplayer
> release usable with ALSA. Previous versions were unusable due to that
> stupid "/dev/mixer" bug.
>
> What's the deal? Why is it so hard for the mplayer developers to get
> ALSA support right? I hack on ALSA a lot, so if there is some problem
> with the ALSA API, we would like to hear about it on the mailing list.
Yes, please fix the huge memory leak with ALSA output, especially when
changing the volume (it is cause by the call to snd_mixer_load, but I
couldn't find an ALSA function that frees that memory again
snd_mixer_free has absolutely no effect :-( ).
Also the problem is more that the Gui is not well supported.
> Or do you all just use OSS still?
The OSS interface is actually a lot nicer, so yes it is supported better.
> From the users perspective things like this make ALSA look bad, while
> the problem is really with gmplayer's shoddy ALSA support.
>From what I saw of ALSA as a developer it is bad, but that's a bit of
personal opinion of course. What I refer to is very slow software mixing, no way to use it
without getting into synchronization hell because it uses threads,
hundreds of function calls to initialize it, and those memory leaks that
to my best knowledge seem to come from the alsa lib (my best guess is
that this is because like in conf.c, in _snd_config_make pointers
are overwritten without being freed first).
What makes it a bit difficult to use it that it's quite difficult to
find the function that is supposed to free things again, they e.g.
often aren't located directly below the allocation function in the
headers, and that there is a snd_mixer_load function but no
snd_mixer_unload as I would expect it.
All these things together made me give up on ALSA.
Greetings,
Reimar Döffinger
More information about the MPlayer-dev-eng
mailing list