PDA

View Full Version : [SOLVED] Can't play songs is terminal



Linyx
February 16th, 2011, 03:59 PM
I am trying to play mp3-Songs in terminal, for that i had install XMMS, but when i run Command:-


play song.mp3

It returns:-


play FAIL formats: no handler for file extension `mp3'

From the above error it seems that i am missing codecs, but i can run my musics through every GUI-Player,

Moreover i am able to run Music by mplayer in terminal but i want to use XXMS....

Any suggestions...?

AlphaLexman
February 16th, 2011, 04:15 PM
Shouldn't the command be:

xmms --play song.mp3?

Linyx
February 16th, 2011, 04:17 PM
Shouldn't the command be:

xmms --play song.mp3?

I don't think so, because the Terminal Output is:-

xmms --play Dont_matter.mp3
No command 'xmms' found, did you mean:
Command 'lmms' from package 'lmms' (universe)
Command 'xmms2' from package 'xmms2-client-cli' (universe)
Command 'xmds' from package 'xmds' (universe)
Command 'xdms' from package 'xdms' (universe)
xmms: command not found

sydbat
February 16th, 2011, 04:36 PM
I don't think so, because the Terminal Output is:-The error gives you the answer - try xmms2.

AlphaLexman
February 16th, 2011, 04:37 PM
i had install XMMS, but i want to use XXMS....We may have a language barrier, but I will try to help.

I am not familiar with the executable 'play'

Try these commands separately,
which play
locate mpg123
locate mpg321If you can confirm just one of the above two commands. Try that one from the terminal, for example:
mpg123 Dont_matter.mp3

Linyx
February 16th, 2011, 04:43 PM
OK, so now i had tried this command :-


xmms2 play song.mp3

it shows me the Output:-


This program is deprecated and will be replaced by nyxmms2.
Consider setting runnycli to 'true' in config file to get future behaviour
(or set iknowoldcliisdeprecatedandwillgoaway to 'true' to hide this warning)
The config file is located at:
/home/assassin/.config/xmms2/clients/cli.conf


I done that & now when i try command:-

xmms2 play song.mp3

Nothing happens, Terminal isn't showing me any error neither it play song.....!

Linyx
February 16th, 2011, 04:49 PM
@Alphalexman:-

mpg123 is another tool...I had Removed xmms2 and install mpg123,and it working well...thankx

AlphaLexman
February 16th, 2011, 04:56 PM
@Alphalexman:-

mpg123 is another tool...I had Removed xmms2 and install mpg123,and it working well...thankxYou're welcome. I believe xmms2 is actually a daemon that runs in the backgroud and needs a separate frontend to control it. Quite daunting imo to just play an mp3.

Linyx
February 16th, 2011, 05:03 PM
You're welcome. I believe xmms2 is actually a daemon that runs in the backgroud and needs a separate frontend to control it. Quite daunting imo to just play an mp3.

Ok, so now i had type xxms2 in terminal> Screen-Shot & it shows me the Entering Section...Where i am able to enter Commands,

Anyway, Problem is Solved.

emazep
February 17th, 2011, 07:38 PM
I am trying to play mp3-Songs in terminal, for that i had install XMMS, but when i run Command:-


play song.mp3It returns:-



From the above error it seems that i am missing codecs...


Linyx, if you run play you're really calling sox, not xmms.
However, you were perfect right about the missing codec: just install libsox-fmt-mp3 and you'll be able to play an mp3 through:

play song.mp3Ciao!

Linyx
February 18th, 2011, 08:10 AM
Linyx, if you run play you're really calling sox, not xmms.
However, you were perfect right about the missing codec: just install libsox-fmt-mp3 and you'll be able to play an mp3 through:

play song.mp3Ciao!

Nice suggestion, it worked !!

thanks:P

andrew.46
February 18th, 2011, 12:28 PM
I am trying to play mp3-Songs in terminal, for that i had install XMMS, but when i run Command:-


play song.mp3



The play command is part of sox rather than xmms...