W. H. Heydt
Posts: 7310
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Can someone point me to a commandline music palyer?

Thu Jun 28, 2012 8:40 pm

I would use the LXDE one (I did an early test of it, but since I can't currently use a keyboard directly on the RPi and haven't gotten any useful advice on how to fix *that* issue), but since I can't get to the LDXE desktop, I don't even know what the executable is named...and poking around in the /user/pi directories hasn't turned up anything that is identifiable as such...nor has a search of the RPi Wiki, not a general internet search...

I have all the ALSA installs done and amxier sets up witout complaint, so...

If I want to do an audio output of a wav file from a command line...what program exists to do so?

(Ultimate plan is an "alarm clock" streaming from the internet. First cut will be just using cron to start a wav file at a specified time.)

ghans
Posts: 7323
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Can someone point me to a commandline music palyer?

Thu Jun 28, 2012 9:27 pm

OMXPlayer , aplay , mplayer do that.
The first two come pre-installed.

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5097
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Can someone point me to a commandline music palyer?

Thu Jun 28, 2012 10:29 pm

ghans wrote:OMXPlayer , aplay , mplayer do that.
The first two come pre-installed.
(in Wheezy image)

nadir
Posts: 112
Joined: Sun Jun 10, 2012 5:45 am

Re: Can someone point me to a commandline music palyer?

Thu Jun 28, 2012 11:59 pm

xmms2, moc, gst123
I use xmms2,
lots of people like moc (as far i can tell).
I got gst123 installed, but never used it (so i can't say much about it, but i seem to remember that someone experienced with such liked it very much).
I take the easy way and install xmms2-plugin-all, else you can install the plugins one by one (the ones you need).
You didn't ask, but i use pacpl for converting.

nadir
Posts: 112
Joined: Sun Jun 10, 2012 5:45 am

Re: Can someone point me to a commandline music palyer?

Fri Jun 29, 2012 12:02 am

if you are searching for programs from the cli, apropos might help:
ROOT@rp-server# apropos audio
aumix (1) - adjust audio mixer
ROOT@rp-server# apropos player
aplay (1) - command-line sound recorder and player for ALSA soundcard driver
arecord (1) - command-line sound recorder and player for ALSA soundcard driver
lxmusic (1) - lightweight music player
xlsfonts (1) - server font list displayer for X
xprop (1) - property displayer for X
xwud (1) - image displayer for X
ROOT@rp-server#
(i didn't say i am good with it, only that it might help. As you see xmms2 is not listed, though it is installed).

W. H. Heydt
Posts: 7310
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: Can someone point me to a commandline music palyer?

Fri Jun 29, 2012 12:49 am

Ah...so *that* old Berkeleyism (apropos) has crept into Linux...

Actually...I have solved the problem (so far, anyway) through a thread in general of someone with sound problems... I'm using mplayer.

Return to “Beginners”

Who is online

Users browsing this forum: scotty101 and 43 guests