Results 1 to 9 of 9

Thread: headless mp3 player

  1. #1
    Low Bitrate
    Join Date
    Sep 2005
    Posts
    82

    headless mp3 player

    Hi everyone,

    Can somebody recommend a good backend to play audio files? This would have to be something that can be run without X, and that can be controlled from stdin or from a socket or something (just play/pause/stop a single file, no playlist management needed). It would also be nice if it printed out it's progress every second, but that's not really necessary.

    So far I've been using mpg123, and that does exactly what I need it to do, but looks like it ONLY plays mp3s. Although that's mostly what I have, I'd like to be able to also play wma, ogg, etc.

  2. #2
    Constant Bitrate reece146's Avatar
    Join Date
    Sep 2004
    Location
    ON, Canada
    Posts
    126
    I'm not certain but does mpg321 support the other formats? It is an ALSA app meant to replace the OSS only mpg123. That may be a stumbling block for you depending on your audio hw physical configuration and/or if you haven't moved to ALSA yet.

    Also look at XMP and ogg123 (vorbis-tools). Dunno if it does everything you want though or if they are OSS/ALSA/whatever.

    HTH

  3. #3
    Newbie
    Join Date
    Sep 2005
    Posts
    5
    Have you looked at mplayer?

  4. #4
    Variable Bitrate intuitionsys's Avatar
    Join Date
    Jul 2005
    Location
    Northern Virginia
    Posts
    293
    If you're using arts you can use artsdsp to wrap mpg123 to use arts calls instead of directly openning /dev/dsp. It works okay for me. I know arts is a pig but it has some handy features.
    Silverwolf 2 is dead.
    Silverwolf 3...?

  5. #5
    Low Bitrate
    Join Date
    Sep 2005
    Posts
    82
    well, the only problem I have with mpg123 is that it only plays mp3s. mpg321 looks pretty cool, I didn't even know that mpg123 was not gpl. I might switch to 321 if it really is a drop-in replacement.

    I (briefly) tried mplayer and it didn't behave well for me - it played a file just fine, but when I tried rewinding/fast forwarding through it I got a ton of frame errors and then it crashed. But I'll try it again with a different file sometime, maybe that one was just flakey...

    Has anybody tried using the gstreamer API? Looks like it could be really cool... it even supports LADSPA filters, so theoretically it could do surround processing, etc. Problem is, I have no idea where to start. It looks pretty massive.

  6. #6
    Variable Bitrate intuitionsys's Avatar
    Join Date
    Jul 2005
    Location
    Northern Virginia
    Posts
    293
    mpg321 isn't a _complete_ drop-in replacement. The socket connection ability isn't there, something I use in mine. But you're right it would be nice to be able to play other formats.
    Silverwolf 2 is dead.
    Silverwolf 3...?

  7. #7
    Newbie Jagaer's Avatar
    Join Date
    Sep 2005
    Location
    Kingston, Ontario
    Posts
    52
    Have you looked at mpd?

    It is headless, but can support many different types of frontends, from cli, kde, gnome or web. It can also play mp3, ogg, flac. I don't know if it can play wma, because I stay away from closed type formats.

  8. #8
    Low Bitrate
    Join Date
    Sep 2005
    Posts
    82
    Hi everyone,

    Decided to use mplayer. At first glance it didn't seem to do quite what I wanted, but then I discovered the -slave option - makes it listen for commands through stdin. It can also output to JACK or stdout (as well as ALSA, etc.) and you can insert LADSPA filters as command-line options. I think it actually might use the gstreamer API? Dunno.

    Also, it also looks like it can duplicate audio channels (to play a stereo mp3 through a 4/6 channel sound card and hear it on all speakers. Just what I needed.

    Anyone interested in mplayer slave mode, here's the command list I found: http://www.mplayerhq.hu/DOCS/tech/slave.txt

    Thanks for the input everyone..

  9. #9
    Newbie
    Join Date
    Jan 2006
    Posts
    3

    try some other..

    hi.. looks like i'm reading this quite late... try amacdys for a change. that is if you only want backend of course. but it only for some legacy hardware. have fun!!

Similar Threads

  1. Generic MP3 player emulator ( iPod, Zen etc )
    By jbors in forum Input Devices
    Replies: 24
    Last Post: 03-11-2010, 01:06 PM
  2. Connecting portable mp3 player to car speakers.
    By HomelessGuy in forum Car Audio
    Replies: 8
    Last Post: 10-16-2007, 10:51 PM
  3. iTunes Purchased Music / In Dash MP3 PLayer (CDC-MP3)
    By MichaelK in forum Software & Software Development
    Replies: 15
    Last Post: 01-21-2005, 10:51 AM
  4. mp3 player recommendations
    By gambit32 in forum Off Topic
    Replies: 5
    Last Post: 11-09-2004, 02:04 PM
  5. Integrate mp3 player w/ Alpine FM modulator ?
    By L0C0 in forum General Hardware Discussion
    Replies: 0
    Last Post: 03-04-2004, 01:45 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •