Error message when trying to output to a52 alsa module.
SlackwareThis Forum is for the discussion of Slackware 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.
Error message when trying to output to a52 alsa module.
I'm running a recent copy of slackware-current, with ffmpeg from their git server and alsa-plugins version 1.1.18 to match the version of the installed alsa. I'm only slightly lost on how to get my .asoundrc setup for the a52 encoding to work, this is what I have so far for it
Except, no matter what I try to do with the config to set device settings or anything, I get this same error message when I test it with speaker-test -Dplug:a52encode
Code:
ALSA lib pcm.c:2162:(snd_pcm_open_conf) Cannot open shared library /usr/lib/alsa-lib/libasound_module_pcm_a52.so
Playback open error: -2,No such file or directory
ALSA lib pcm.c:2162:(snd_pcm_open_conf) Cannot open shared library /usr/lib/alsa-lib/libasound_module_pcm_a52.so
Playback open error: -2,No such file or directory
The asterisks at the end is an shell/prompt setting to show that the file is executable and isn't typed when you type the name since filenames never includes an *
Is it a terminal setting or type of terminal emulator that does that? With Rh9, FC3, FC6, FC10 and FC11 no asterisks are displayed - can I turn it on somehow? Seems like a useful feature...
I have always used ls -laF, the -F is what makes it list file types at the end, * is for executable.
I tried
Code:
ln -s /usr/lib/alsa-lib /usr/local/lib
to no effect
Could the problem be with dependencies that a52 has? Maybe it finds the a52 library file and then when trying to open the library it has a problem linking to another shared library?
pcm.a52encode {
type a52
slavepcm "card3"
}
pcm.card3 {
type hw
card CMI8788
device 1
format S16_LE
rate 48000
}
and I still get the same error message when using
Code:
bash-3.1$ speaker-test -Dplug:a52encode
speaker-test 1.0.20
Playback device is plug:a52encode
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
ALSA lib pcm.c:2171:(snd_pcm_open_conf) Cannot open shared library /usr/lib/alsa-lib/libasound_module_pcm_a52.so
Playback open error: -2,No such file or directory
But I tried using mplayer and it actually worked..
Code:
bash-3.1$ mplayer test.wav -ao alsa:device=a52encode
MPlayer SVN-r29408-4.3.3 (C) 2000-2009 MPlayer Team
Playing test.wav.
Audio only file format detected.
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 48000 Hz, 2 ch, s16le, 1536.0 kbit/100.00% (ratio: 192000->192000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
[ac3 @ 0x8f72660]No channel layout specified. The encoder will guess the layo
but it might be incorrect.
AO: [alsa] 48000Hz 6ch s16le (2 bytes per sample)
Video: no video
Starting playback...
[AO_ALSA] alsa-lib: pcm_hw.c:607:(snd_pcm_hw_start) SNDRV_PCM_IOCTL_START fai
: File descriptor in bad state
So I have been trying to sort out what could be going on between here and there, maybe some conversion of some sort that needs to be done? I haven't had much more luck past that, and:
ALSA lib pcm.c:2162:(snd_pcm_open_conf) Cannot open shared library /usr/lib/alsa-lib/libasound_module_pcm_a52.so
Playback open error: -2,No such file or directory
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.