LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-20-2004, 09:07 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,661

Rep: Reputation: 54
Start mpg123 problem


Hi all folks,

Debian - unstable
GNOME 2.4 desktop

Any folk has experience running 'mpg123'

http://www.mpg123.de

I have installed it from Debian website

# apt-get install mpg123

# which mpg123
/usr/bin/mpg123
# whereis mpg123
mpg123: /usr/bin/mpg123 /usr/share/man/man1/mpg123.1.gz
# find / -name mpg123
/etc/alternatives/mpg123
/var/lib/dpkg/alternatives/mpg123
/usr/bin/mpg123

# mpg123 -V
mpg321 version 0.2.10. Copyright (C) 2001, 2002 Joe Drew.

I could not get 'mpg123' started on GNOME desktop. Neither can I find it from
Application -> Multimedia

# mpg123
can't start it.

Kindly advise how to start mpg123. Is it on GUI or only on command line.

TIA

B.R.
satimis
 
Old 01-21-2004, 01:30 AM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
I thought mpg123 was a proprietary program or something? mpg321 is the open source one I'm familiar with (symlinked to mpg123) and it's a console audio player. It requires an argument in the form of something to play but it should give a usage message if run without arguments. You pop up an xterm and type in 'mpg123' and nothing happens at all? No usage, no error, no nothing? If that's the case, I can't help, but I thought it might be a case of invoking it incorrectly. It should be run from the command line.
 
Old 01-21-2004, 01:50 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,661

Original Poster
Rep: Reputation: 54
Quote:
Originally posted by digiot
I thought mpg123 was a proprietary program or something? mpg321 is the open source one I'm familiar with (symlinked to mpg123) and it's a console audio player. It requires an argument in the form of something to play but it should give a usage message if run without arguments. You pop up an xterm and type in 'mpg123' and nothing happens at all? No usage, no error, no nothing? If that's the case, I can't help, but I thought it might be a case of invoking it incorrectly. It should be run from the command line.
Hi,

Thanks for your response.

$ mpg123
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2, and 3.
Version 0.59q (2002/03/23). Written and copyrights by Joe Drew.
Uses code from various people. See 'README' for more!
THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!

Usage: mpg123 [options] file(s) | URL(s) | -

Options supported:
--verbose or -v Increase verbosity
--quiet or -q Quiet mode (no title or boilerplate)
--gain N or -g N Set gain (audio volume) to N (0-100)
--skip N or -k N Skip N frames into the file
--verbose or -v Be more verbose in playing files
-o dt Set output devicetype to dt
[esd,alsa(09),arts,sun,oss]
--audiodevice N or -a N Use N for audio-out
--stdout or -s Use stdout for audio-out
--au N Use au file N for output
--cdr N Use wave file N for output
--wav N or -w N Use wave file N for output
--test or -t Test only; do no audio output
--list N or -@ N Use playlist N as list of MP3 files
--random or -Z Play files randomly until interrupted
--shuffle or -z Shuffle list of files before playing
-R Use remote control interface
--aggressive Try to get higher priority
--help or --longhelp Print this help screen
--version or -V Print version information

This version of mpg321 has been configured with the libao default as its defaultlibao output device.


I am not familiar with its command lines. Can you help?


Besides I just have 'mpgfe-1.0.0.tar.bz2' (mpg123 frontend) downloaded to a download folder and unpacked it to

# tar jxvf mpgfe-1.0.0.tar.bz2 -C /tmp/
# cd /tmp/mpgfe-1.0.0
#./configure
went throught without problem

# make
....
.....
get_input_lyrics.c: In function `get_input_lyrics':
get_input_lyrics.c:198: error: duplicate case value
get_input_lyrics.c:157: error: previously used here
make[2]: *** [get_input_lyrics.o] Error 1
make[2]: Leaving directory `/tmp/mpgfe-1.0.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/mpgfe-1.0.0'
make: *** [all] Error 2

I don't know how to proceed further. Can you help?

TIA

B.R.
satimis
 
Old 01-21-2004, 01:59 AM   #4
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Well, mpg321's easy - all I ever do is 'mpg321 *' or 'mpg321 [files I want to play] or, at worst, sometimes audio players don't like the output, so 'mpg321 -o oss [files] or 'mpg321 -o alsa [files]' or what have you gets it done. The rest of the options may be important if you especially want them but not usually to just getting it to play.

I didn't know there was a front-end for it. Interesting. As far as the compiling errors, I'm really not sure. Often it complains of missing libraries and you just track 'em down and install them and recompile. But that actually looks like it doesn't like the files you do have. I have come across packages with broken code. I've only been able to fix them if it's a tcl.tk app that won't run right (not that I know tcl/tk but I can almost puzzle it out sometimes). But as far as gcc complaining about that, I'm afraid that calls for a guru.

Guru!?
 
Old 01-21-2004, 02:02 AM   #5
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,185

Rep: Reputation: 52
try to download a debian package of that frontend or some other instead.
a newbie will never figure out compile problems easily.
i have gqmpeg and kmpg. xmms and freeamp are also good frontends.

syntax for mpg321
mpg321 /filename.mp3

think of it like a dos copy command or something

mpg321 is a command
then it needs to know what file operate on.

Last edited by whansard; 01-21-2004 at 02:15 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
Run mpg123: system("mpg123"); How to know what PID it gets? And a Emacs highlightin q kornerr Programming 10 08-06-2005 11:17 AM
using mpg123 bucovaina78 Linux - Software 1 11-11-2004 05:09 PM
Starting mpg123 problem satimis Linux - Software 4 01-20-2004 10:07 AM
mpg123 doralsoral Linux - Software 9 09-07-2003 10:59 PM
mpg123 doralsoral Linux - Software 1 09-07-2003 08:03 PM


All times are GMT -5. The time now is 05:00 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