DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to compile mplayer with support for alsa. It doesn't seem to detect alsa running here, although I could play mp3 files with alsa and xmms ok.
If I just ./configure, it will not enable alsa, using oss instead. As I don't run oss, I don't have any sound output (null). If I force alsa (./configure --enable-alsa, according to "./configure --help"), its like i didn't use any switch. The output is the exact same.
When playing, it gives "Couldn't open /dev/dsp: no such file or dir...etc..." But dsp is in there!
I even tried to relink /dev/dsp to /dev/dsp1, instead of dsp0, which was the original. It gave me a crappy sound, but mplayer reported successfully opened oss audio.
The sound card is via82xx. xmms can play sound with alsa. Tvtime can play tv with it. mplayer complains.
Ok this might sound kinda simplistic...but the permissions are correct on /dev/dsp right?
I think you sorta have OSS, as in the alsa OSS emulation layer. So its technically there. Oh did you check the alsa mixer settings? Just to make sure it's all unmuted?
Was there any other output while the configure was running that would give a clue as to why it couldn't find alsa?
Oh and I think thers a commandline switch for mplayer to make it use alsa. I forget what it is offhand, but the manpage should tell you. I think its -ao alsa. mplayer --help should give you some stuff too.
mplayer -ao help will tell you about the audio options.
"...
Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /home/bruno/.mplayer/config
Available audio output drivers:
mpegpes DVB audio output
oss OSS/ioctl audio output
null Null audio output
pcm RAW PCM/WAVE file writer audio output
plugin Plugin audio output
"
no alsa, as you can see.
The alsa mixer channels are unmuted.
'
The mplayer man page shows nothing about cli switch to enable alsa. But even if it did, the current binary was compiled without support for it, as configure failed to detect it.
Hmm, seeing how you have snd_pcm_oss and snd_mixer_oss loaded (OSS emulation for ALSA), it's strange that mplayer would complain about not being able to open /dev/dsp. I don't experience any problems with e.g. Quake 3 (which uses OSS only, AFAIK).
That said, it's pretty easy to install all of the build dependencies for mplayer... well, if you upgrade to unstable anyways (marillat doesn't have a source directory for testing):
1. Add deb-src ftp://ftp.nerim.net/debian-marillat/ unstable main to /etc/apt/sources.list
2. Run apt-get update
3. Run apt-get build-dep mplayer -- you may need to resolve certain problems first, however. If you see something like this ...
Code:
# apt-get build-dep mplayer
Reading Package Lists... Done
Building Dependency Tree... Done
Package libdv-dev is a virtual package provided by:
libdv2-dev 0.99-1
libdv4-dev 0.103-1
You should explicitly select one to install.
E: Package libdv-dev has no installation candidate
E: Failed to satisfy Build-Depends dependency for mplayer: libdv-dev
... then you'll need to pick a specific package first (e.g. apt-get install libdv4-dev) and then try the build-dep command again.
Also, mplayer source (from tarballs and cvs) does come with a "debian" directory. This means that you can build an installable deb package from it (cd mplayer; chmod u+x debian/rules; fakeroot debian/rules binary). You can also add the marillat deb-src line and run apt-get source -b mplayer to accomplish the same thing.
Hi again!
It worked this time! Very happy, thank you all!
My marillat line at sources.list was actually pointing to stable, instead of unstable. Thanks for bringing me to this. I edited it, updated and I finally could be able to download an alsa-enabled mplayer!
I had even downgraded to oss... My via82xx sound chip works way better with alsa.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.