LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 03-12-2004, 01:04 AM   #1
xviddivxoggmp3
Member
 
Registered: Feb 2004
Location: scanf
Distribution: Redhat Enterprise 4.4 AS
Posts: 236

Rep: Reputation: 30
Question 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?
 
Old 03-12-2004, 01:12 AM   #2
Scruff
Member
 
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Rep: Reputation: 30
well, to just play a song i use 'xmms /path/to/file.mp3'
and thats it
 
Old 03-12-2004, 01:26 AM   #3
xviddivxoggmp3
Member
 
Registered: Feb 2004
Location: scanf
Distribution: Redhat Enterprise 4.4 AS
Posts: 236

Original Poster
Rep: Reputation: 30
how would you play a directory?
 
Old 03-12-2004, 01:33 AM   #4
Scruff
Member
 
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Rep: Reputation: 30
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....
 
Old 03-12-2004, 01:38 AM   #5
xviddivxoggmp3
Member
 
Registered: Feb 2004
Location: scanf
Distribution: Redhat Enterprise 4.4 AS
Posts: 236

Original Poster
Rep: Reputation: 30
are u running it from a window manager terminal??
 
Old 03-12-2004, 01:42 AM   #6
Scruff
Member
 
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Rep: Reputation: 30
Has to be. xmms needs an X server to run at all.
 
Old 03-12-2004, 01:46 AM   #7
rmanocha
Member
 
Registered: Oct 2003
Location: Austin,TX
Distribution: Debian SID-->fully content-->Love APT,kernel 2.6.4
Posts: 327

Rep: Reputation: 30
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.
 
Old 03-12-2004, 01:47 AM   #8
xviddivxoggmp3
Member
 
Registered: Feb 2004
Location: scanf
Distribution: Redhat Enterprise 4.4 AS
Posts: 236

Original Poster
Rep: Reputation: 30
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.
 
Old 03-12-2004, 01:53 AM   #9
Scruff
Member
 
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Rep: Reputation: 30
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.
 
Old 03-12-2004, 02:01 AM   #10
xviddivxoggmp3
Member
 
Registered: Feb 2004
Location: scanf
Distribution: Redhat Enterprise 4.4 AS
Posts: 236

Original Poster
Rep: Reputation: 30
.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.
 
Old 03-12-2004, 02:12 AM   #11
Scruff
Member
 
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Rep: Reputation: 30
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.
 
Old 03-12-2004, 02:22 AM   #12
Scruff
Member
 
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Amarok XMMS Meta tagging m4a and FAAC command line tool carl0ski Linux - Software 2 05-08-2005 02:20 AM
xmms command line 2639 Linux - Software 3 05-03-2005 09:13 PM
xmms command line controls oneandoneis2 Linux - Software 1 04-30-2004 01:15 PM
timidity.cfg syntax error in first line... Simon Bridge Linux - Software 0 04-25-2004 10:52 PM
Syntax for setting up the date via Command line. Lespuff Linux - Newbie 1 11-20-2003 08:35 PM


All times are GMT -5. The time now is 10:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration