| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

mp3play

Page history last edited by Vasile 14 years, 11 months ago

 

mp3play

mp3play (/bin/mp3play) is a program used to play music from /cdrom/music directory while showing JPG files.

Version: 2.0.0

Status: 95% complete

 



 

Description

 

mp3play runs in the background during the JPG slideshow mode, playing the contents of the /cdrom/music or /cdrom/PartitionX/music folder sequentially.

 

Dvdplayer calls mp3play as:

 

/bin/mp3play /cdrom/music

 

Usage

 

mp3play <mp3dir>

 

To stop mp3play, use "kill -KILL " or similar system call.

 

Differences (New vs. Old)

 

  • The stock mp3play uses 100% CPU, no doubt due to nanosleep; the new mp3play uses process-friendly usleep (40-50% CPU for 192-320kbps network or disk stream). 
  • Stock mp3play only accepts directory names as an argument. The new mp3play also accepts a url (for eg. shoutcast stream), an mp3 filename, or a playlist filename (m3u or pls). 
  • Stock mp3play only plays directories in strict sequential order. The new mp3play also allows for directory shuffle play (-s), fast even over very large collections. 
  • The new mp3play can be stopped with Ctrl+C 
  • The new mp3play offers a console mode, with continuous metadata updates, and more keys for control
  • The new mp3play offers a FIP mode, with direct fip control and continuous metadata updates 
  • The new mp3play accepts multiple URLs/filenames as a command-line playlist (next/prev for navigation). 
  • mp3play now properly handles HTTP redirects at stream start 
  • mp3play now skips AC3/AAC streams 
  • mp3play now generates file meta info in correct format for fileplayer mode 
  • mp3play now loads remote playlists (m3u, pls), see Internet Radio page for details

 

mp3play [-r] [-s] [-p] [-c] [-k] [-n] { <file> | <dir> | <url> } [...]
    <file>  mp3, pls, or m3u local filename
    <dir>   directory to play all
    <url>   url of mp3 (http/icy) stream or playlist (http,pls/m3u)
    -r      use the FIP driver to control streams
    -s      shuffle the directory, playlist, or items
    -p      repeat the directory, playlist, or items
    -c      display friendly console interface
    -k      listen on socket command interface
    -n      present the fileplayer.bin interface

 

Keys

 

fip console socket fileplayer
Pause p p p
Play p or space p p
Stop r, x or q x or r x or r
FF f f f
Rew b b b
Vol+ + + (None)
Vol- - - (None)
Mute * * (None)
Next > > (None)
Prev < < (None)
TmSrch s#### s#### s####
Zoom z z# z#

 

License

 

 

GPL (v2.0.0)
Proprietary (v1.0.0)

 

Todo

 

  • Need to actually seek, ffwd, rewd for fileplayer mode
  • Need to actually iterate directories for mp3play mode

 

History

 

Version 2.0.0 - [John, July 2008]

  • Reworked to include remote streaming, playlists
  • Still needs directory tree walking written
  • Well integrated with dvdplayer

 

Version 1.0.0 - [AL Tech, 2004]

  • Reference version

 

Links

 

Comments

 


  • VB: Support mms: protocol
    • John: MMS is officially deprecated in favour of RTSP.
    • VB: yes, but there are a lot of mms streams out there :( and libmms looks alive. However, I'm not advocating spending time on this for now, it was just on the future todo list.

 


  • VB: Can you please build a new mp3play, with ASX support, so I can test it?
    • John: Sure, but don't you think it really belongs in fileplayer?
      • VB: do you think of something like asxplayer, to be called by the dispatcher and then launch mp3play? Or do you know how to binary patch fileplayer?
        • John: Maybe neither... We're replacing fileplayer to enable streaming WMA/(AVI?)... (MP4-wrapped AAC streams will also require a new mp4play). ASX support is of little use for MP3/MP4's, no? I also expect that the new browse menu will support playlists before we ever replace fileplayer. Perhaps a console-based menu system to match the GUI one, instead of multiplying the playlist code across N list-specific versions (m3uplayer,plsplayer,asxplayer) or N codec/container-specific versions (mp3play, aacplay, ...)? An mp3play with asx support was checked in for your testing, btw ;)
          • VB: ...ASX support is of little use for MP3/MP4's... I now understand why :-) All the asx redirections I found are based on MS technology, so they use mms: protocol and WMA codecs.
      • John: Does this mean it successfully loads .asx files?
        • VB: how can you tell? Here's the output:

 

/var/bin> mp3play -c http://www.rri.ro/stream/rri1.asx
old: 0   new: 0    ttl: 0     off: 0

 


 

VB: Just for the record, it seems that MG350 supports playing streams via PLS files (see here).

  • John: That's great! Was this always the case, or new to 1.11.1?
  • VB: don't know
    • John: Page 59 of the manual. Ah well. I do find it funny that the question is labelled 'MG-35' but the answer it about the MG-350. ;D
      • It's not a FAQ, just a post from a user. He probably missed some drop-down box for the MG model, and it probably defaults to MG35.

 


 

VB: some users complain that the radio volume is much higher than other media. I also experienced this but with only one station, so having a way to specify a per-stream volume setting could be useful. We should probably have an option to temporary alter the volume for a stream and/or for all the streams. Per-stream can be accomplished by using "-v +50" in the url. This will ask for "play" to parse the url in a different way and pass the volume parameter to "mp3play".

 

John: This would probably be a good place for that carrot you mentioned.

 

Comments (0)

You don't have permission to comment on this page.