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 04-11-2006, 01:27 PM   #1
nutthick
Member
 
Registered: Jun 2004
Distribution: Slack
Posts: 214

Rep: Reputation: 30
Cool MP3 players for Bash use


I'm working on a http system to play MP3 files from a bash script, but I need a way of getting data back from the playing file, so I display it on the screen. At the moment I'm using amp, which gives me a frame count, but not a total frame count, so I can't give a % complete.

Can anyone recommend some MP3 software that has good feedback on it's status. One that allows me to change volume etc. while playing would be even better.

Thanks
 
Old 04-11-2006, 01:36 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
mplayer all the way personally. you can even use the -slave option to make it accept commands from stdin, i.e. wrap it with your program to allow the end user to control it.
 
Old 04-11-2006, 04:06 PM   #3
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Mplay on mplayer.
 
Old 04-25-2006, 08:57 AM   #4
nutthick
Member
 
Registered: Jun 2004
Distribution: Slack
Posts: 214

Original Poster
Rep: Reputation: 30
I've had a look at mplayer and tried installing it, and failed. Before I kill myself getting it to install can you just confirm something for me that wasn't obvious on the mplayer site.

Can I control mplayer completely from the shell, by sending it commands? I'm not talking about doing CTRL+SOMETHING to make it play, but actually send it a command like 'mplayer -f my.mp3' to get it to play an mp3. The reason I ask is I would be controlling it from bash scipts. Also another function that I need is to just add a file to the playlist, and to clear the playlist, again through the command line.

Thanks for any help you can give
 
Old 04-25-2006, 09:03 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
like i said, use -slave mode. you can then start it off by catting a named pipe and then just write to the named pipe to send it to mplayer.
 
Old 04-25-2006, 09:21 AM   #6
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware
Posts: 1,135

Rep: Reputation: 277Reputation: 277Reputation: 277
not to take anything away from the mplayer option, but vlc has a remote control advanced telnet interface that I use; you can play, stop, pause, next, etc, plus control the playlist, etc. There's also a simple http interface that accomplishes the same.

it's not the most intuitive to setup, but once it's up and running it runs like clockwork - if you'd like to know more, just post here and I'll (we'll) help you out.


cheers,
 
Old 04-25-2006, 01:11 PM   #7
nutthick
Member
 
Registered: Jun 2004
Distribution: Slack
Posts: 214

Original Poster
Rep: Reputation: 30
@acid_kewpie: Thanks I just wanted to check, as I still find installing software difficult and didn't want to spend a day on it and find it wasn't even close to what I wanted.

@mrclisdue: I need more traditional command line at the moment, but I bear it in mind, if I get into problems.
 
  


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
MP3 Players brianthegreat Fedora 4 12-01-2005 07:50 AM
mp3 players Kaao Linux - Hardware 4 08-26-2005 04:47 PM
Other MP3 players RichardSimmons Linux - Software 4 02-22-2004 09:37 PM
mp3 players firefightin4fun Linux - Newbie 8 09-21-2003 11:13 AM
MP3 Players chamkila Linux - Hardware 18 09-03-2002 06:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:32 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
Open Source Consulting | Domain Registration