0

I have just installed arch linux (no DE) on my computer, then installed mpg123 and mplayer to play mp3 from command-line by either of them. But the sound is not coming, what's wrong?
(I did got some errors about sound card etc, but couldn't note them down)

I have gstreamer and pulseaudio installed already
this is the error I get:

Playing: /mnt/ubuntu/home/edward/Music/Infected Mushroom-Artillery www.mp3c.cc .mp3
[ffmpeg/demuxer] mp3: Estimating duration from bitrate, this may be inaccurate
 (+) Audio --aid=1 (mp3)
File tags:
 Artist: Infected Mushroom
 Album: Vicious Delicious
 Album_Artist: Infected Mushroom
 Composer: Amit Duvdevani/Erez Aizen/K. Hendriks/S. Bunting/Swollen Members
 Genre: Electronica
 Title: artillery
 Track: 2
[ao/alsa] Playback open error: No such file or directory
[ao/oss] Can't open audio device /dev/dsp: No such file or directory
[ao/jack] cannot open server
Could not open/initialize audio device -> no sound.
Audio: no audio
9
  • It's probably a misconfiguration of one of the nodes (or edges) in this diagram: tuxmachines.org/images/linuxaudio-1024x690.png
    – Atsby
    Commented Apr 2, 2015 at 9:59
  • @Atsby what to do to get proper config ?
    – Alex Jones
    Commented Apr 2, 2015 at 10:02
  • capture the errors to a file, post to pastebin, and link from question?
    – Atsby
    Commented Apr 2, 2015 at 10:03
  • Hope you have installed all the needed codecs like gstreamer Commented Apr 2, 2015 at 10:18
  • @GovindKailas i have already installed gstreamer
    – Alex Jones
    Commented Apr 2, 2015 at 10:51

1 Answer 1

0

The problem why I was not getting sound was pulseaudio was not running in background. The reason I didn't know that because pulseaudio was supposed to start automatically on startup, but it didn't.
After I started pulseaudo by pulseaudio --start I started getting sound. Now I have to add pulseaudio to startup list to get sound every time I start my computer.

Also I was not able to play song from root account, but from non-root I could.

1
  • @nwildner sir clear enough now ?
    – Alex Jones
    Commented Apr 2, 2015 at 17:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .