Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
03-12-2004, 01:04 AM
|
#1
|
Member
Registered: Feb 2004
Location: scanf
Distribution: Redhat Enterprise 4.4 AS
Posts: 236
Rep:
|
xmms command line syntax
How do you get xmms to play from the command line?
From the manual pages and help, I would assume it would be like the following.
Code:
xmms -e somesong.mp3 -p --play
or
Code:
xmms -e somesong.mp3
xmms -p
neither works...
what am I doing wrong?
|
|
|
03-12-2004, 01:12 AM
|
#2
|
Member
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949
Rep:
|
well, to just play a song i use 'xmms /path/to/file.mp3'
and thats it
|
|
|
03-12-2004, 01:26 AM
|
#3
|
Member
Registered: Feb 2004
Location: scanf
Distribution: Redhat Enterprise 4.4 AS
Posts: 236
Original Poster
Rep:
|
how would you play a directory?
|
|
|
03-12-2004, 01:33 AM
|
#4
|
Member
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949
Rep:
|
Ahh... Well, if you type 'xmms /path/to/dir/* it will open up the file window where you could simply click 'add all files in directory'. It seems there would be a more direct way to do it, but I couldn't find one from the man page either....
|
|
|
03-12-2004, 01:38 AM
|
#5
|
Member
Registered: Feb 2004
Location: scanf
Distribution: Redhat Enterprise 4.4 AS
Posts: 236
Original Poster
Rep:
|
are u running it from a window manager terminal??
|
|
|
03-12-2004, 01:42 AM
|
#6
|
Member
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949
Rep:
|
Has to be. xmms needs an X server to run at all.
|
|
|
03-12-2004, 01:46 AM
|
#7
|
Member
Registered: Oct 2003
Location: Austin,TX
Distribution: Debian SID-->fully content-->Love APT,kernel 2.6.4
Posts: 327
Rep:
|
if you are running it from the terminal and not from a X server then u might try out mplayer.It plys just about everything...even stuff that xmms does not...albait....xmms is the best when it comes to X.
|
|
|
03-12-2004, 01:47 AM
|
#8
|
Member
Registered: Feb 2004
Location: scanf
Distribution: Redhat Enterprise 4.4 AS
Posts: 236
Original Poster
Rep:
|
i thought you could run it from the core command line w/o the manager...
that explains the numerous failed attempts
can i run my .shn files on mplayer?
Last edited by xviddivxoggmp3; 03-12-2004 at 01:48 AM.
|
|
|
03-12-2004, 01:53 AM
|
#9
|
Member
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949
Rep:
|
None of these apps run without the X server. X provides ALL of the necessary drivers, software, and configuration required for anything other than the plain text session you are using without a window manager/desktop environment.
I have never heard of the *.shn extention before, but chances are if its playable in Linux, mplayer will do it. Check out their website for codecs/compatibility info.
edit: Im sorry, I forgot we were talking about mp3's here . mplayer will play mp3s w/out X.
Last edited by Scruff; 03-12-2004 at 01:54 AM.
|
|
|
03-12-2004, 02:01 AM
|
#10
|
Member
Registered: Feb 2004
Location: scanf
Distribution: Redhat Enterprise 4.4 AS
Posts: 236
Original Poster
Rep:
|
.shn is the shorten codec (etree.org)
the primary codec for bootleg concerts (greatfuldead, phish, etc.)
i have it installed for xmms.
i want to be able to telnet to my machine from a remote location and play the music player that has my bootlegs in the cdrom.
i want the music to pump through the speaker output on the remote pc.
for this i would need a player that supports the shorten codec and can be executed from the command line w/o the gui.
Last edited by xviddivxoggmp3; 03-12-2004 at 02:03 AM.
|
|
|
03-12-2004, 02:12 AM
|
#11
|
Member
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949
Rep:
|
I see. Thanks for the info on .shn .
I can just tell you how I do it: I use ssh first of all, and my desktop is usually logged in to an X session so I just use the command I told you earlier 'xmms filename.mp3'. However, mplayer does support an absolute TON of stuff and since you have a codec for xmms you should be able to get one for mplayer which will play music files without an X session.
I'll take a quick look around for some shn mplayer info.
|
|
|
03-12-2004, 02:22 AM
|
#12
|
Member
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949
Rep:
|
Well it doesn't look like it supports that format. All the searching I do returns mostly results on xmms. Take a quick look through the docs though... Simply installing it with the most popular codec packages might be enough to get the job done. I say this because audio is not written about in depth in the docs (i guess it is primarily a vid player), but I know it plays mp3's well. Also does .wma if you ever need it.
http://www.mplayerhq.hu/DOCS/HTML/en...html#id2835106
Sorry, I just can't recommend mplayer enough . I hope it plays the files you need it to. It is truely a great piece of software, though maybe a bit difficult to get configured the first time it does a damn good job with any of the different formats I have used it for: dvd, mpeg, avi, quicktime, realmedia, divx, xvid, etc. etc.
Try getting Windows Media Player, or Apples Quicktime to play that many formats (proprietry quicktime and wmv on one player even ).
Last edited by Scruff; 03-12-2004 at 02:28 AM.
|
|
|
All times are GMT -5. The time now is 03:49 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|