Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex > iRex Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 04-06-2007, 11:35 AM   #1
Adam B.
Addicted to Porting
Adam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the rough
 
Adam B.'s Avatar
 
Posts: 1,695
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
Contentlister Based Music Player w/ Playlist support

Yokos has greatly improved upon the original script. Here are the current features:

Quote:
  • Playlist Control: You can load external .m3u playlists created with your favourite software music player, & generate playlists by searching for metadata in mpd database (artist, album, genre, date).
  • crossfading
  • seeking
  • Jukebox is now path independent. You can install it anywhere you want.
  • Installation script copies mpc to /usr/bin/mpc. If you use mrxvt, you can control jukebox in any path e.g. mpc next for play next song.
  • "Terminate mpd" button - this kills the mpd process.
  • Contentlister Link to "iLiad Settings" under "Other Con-trols"
  • mpd saves status when it terminates, therefore scripts can load status of last playback.
  • volume control
  • single track repeat mode
  • shuffle playlist
  • repeat playlist
I've setup a series of scripts to allow you to play music through the contentlister. It uses a program called MPD. MPD is a music player daemon, the same one used in the ipodlinux project. It's small, lightweight, and easy to use.

I've compiled it with the following Format Support:

Quote:
File Format Support:
ID3 tag support ...............enabled
mp3 support ...................enabled
Ogg Vorbis support ............enabled
using tremor.................no
Wave file support .............enabled
MOD support ...................enabled
It's controlled via a series of shell scripts. But, this allows it to play music in the background while you do other things (read, play chess, etc). I've tested it a bit, and as long as the bitrate is pretty low, you won't see any skipping. Otherwise, it may skip for a split second when you turn the page.


See the most recent update to this script by Yokos here: http://www.mobileread.com/forums/sho...5&postcount=34
Adam B. is offline   Reply With Quote
Old 04-06-2007, 11:56 AM   #2
nekokami
fruminous edugeek
nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.
 
nekokami's Avatar
 
Posts: 6,745
Karma: 551260
Join Date: Oct 2006
Location: Northeast US
Device: iPad, eBw 1150
How much faster does it seem to drain the battery?
nekokami is offline   Reply With Quote
Old 04-06-2007, 12:21 PM   #3
Adam B.
Addicted to Porting
Adam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the rough
 
Adam B.'s Avatar
 
Posts: 1,695
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
I'm not sure, I haven't tested it for that long yet. It will only consume resources after you start the player. I assume the drain will be very minimal when the music is stopped or paused. Right now the only way to kill the daemon is to restart the iLiad.
Adam B. is offline   Reply With Quote
Old 04-06-2007, 12:51 PM   #4
henkvdg
Groupie
henkvdg has read War And Peace ... all of ithenkvdg has read War And Peace ... all of ithenkvdg has read War And Peace ... all of ithenkvdg has read War And Peace ... all of ithenkvdg has read War And Peace ... all of ithenkvdg has read War And Peace ... all of ithenkvdg has read War And Peace ... all of ithenkvdg has read War And Peace ... all of ithenkvdg has read War And Peace ... all of ithenkvdg has read War And Peace ... all of ithenkvdg has read War And Peace ... all of it
 
Posts: 180
Karma: 66830
Join Date: Oct 2006
Device: IREX iLiad, Pocketbook Pro 903
Quote:
Originally Posted by Adam B.
I've setup a series of scripts to allow you to play music through the contentlister. It uses a program called MPD. MPD is a music player daemon, the same one used in the ipodlinux project. It's small, lightweight, and easy to use.

I've compiled it with the following Format Support:



It's controlled via a series of shell scripts. But, this allows it to play music in the background while you do other things (read, play chess, etc). I've tested it a bit, and as long as the bitrate is pretty low, you won't see any skipping. Otherwise, it may skip for a split second when you turn the page.

To Install
There are 2 versions, one for SD/MMC and one for Compact Flash.
  1. Extract the 3 folders to the root of your memory card.
  2. Place all your music in the mp3 directory
  3. Browse to the Music folder on your iLiad
  4. Select "Start MPD and update Playlist"

From here, you can start playing. Basic controls are on the main screen, Fast forward and volume controls are in the "Player Controls" directory. You can choose any song in the Playlist directory to play.

I'm aware that the volume controls may not work correctly. It is set correctly in the MPD program, but the iLiad doesn't seem to care about that. Also, when you add or delete songs to your mp3 directory and need to update the playlist, you will need to select "Start MPD and update Playlist" twice.

I've included two royalty free songs http://incompetech.com/. Also, the icons are from the Tango Icon Library.

For SD/MMC Cards: http://projects.mobileread.com/iliad.../mpd/mpdcf.zip

For Compact Flash (CF) Cards: http://projects.mobileread.com/iliad.../mpd/mpdcf.zip

The first link should be :
For SD/MMC Cards: http://projects.mobileread.com/iliad...mpd/mpdmmc.zip

But both applications do not work for me.

(Do you have your iLiad back now?)

Last edited by henkvdg; 04-06-2007 at 01:04 PM.
henkvdg is offline   Reply With Quote
Old 04-06-2007, 01:02 PM   #5
Adam B.
Addicted to Porting
Adam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the rough
 
Adam B.'s Avatar
 
Posts: 1,695
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
Fixed.

If you normally have your sound turned off, you will need to reboot your iLiad after you turn it back on through the settings.
Adam B. is offline   Reply With Quote
Old 04-08-2007, 07:47 AM   #6
kapoira
Connoisseur
kapoira has a complete set of Star Wars action figures.kapoira has a complete set of Star Wars action figures.kapoira has a complete set of Star Wars action figures.
 
Posts: 81
Karma: 292
Join Date: Nov 2006
Device: i62HD + T68
i have tested the CF aplication and it doesn't work for me too, sorry...

if you wanna know something about the process running in the iliad tell and if i have time, i will post the info ;-)
kapoira is offline   Reply With Quote
Old 04-08-2007, 06:59 PM   #7
narve
iLiad fan
narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.
 
Posts: 210
Karma: 3864
Join Date: Oct 2006
Device: iRex iLiad
I didn't get it to work (from MMC card) either. Tried to use a shell to make it work, but it wasn't that easy. I will give it a new try another day. Perhaps this log will help somebody spot the problem:

Code:
root@ereader:/media/card/music# /mnt/card/mpd/bin/mpc add "Daytime TV Theme.mp3"
adding: Daytime TV Theme.mp3
root@ereader:/media/card/music# /mnt/card/mpd/bin/mpc add "Morning Snowflake.mp3"
adding: Morning Snowflake.mp3
root@ereader:/media/card/music# /mnt/card/mpd/bin/mpc playlist
>1) Kevin MacLeod - Daytime TV Theme
 2) Morning Snowflake.mp3
root@ereader:/media/card/music# /mnt/card/mpd/bin/mpc play
error: connection closed
root@ereader:/media/card/music# /mnt/card/mpd/bin/mpc play
MPD_HOST and/or MPD_PORT environment variables are not set
error: problems getting a response from "localhost" on port 6600 : Connection refused
root@ereader:/media/card/music#
But if this works, it looks just like what I need! Background music while reading...
narve is offline   Reply With Quote
Old 04-10-2007, 09:07 AM   #8
yokos
Pac-Man catched my iLiad.
yokos plays well with othersyokos plays well with othersyokos plays well with othersyokos plays well with othersyokos plays well with othersyokos plays well with othersyokos plays well with othersyokos plays well with othersyokos plays well with othersyokos plays well with othersyokos plays well with others
 
yokos's Avatar
 
Posts: 720
Karma: 2571
Join Date: Apr 2006
Location: Germany; next to Baltic Sea
Device: 1st gen iRex iLiad with 2nd ed. battery/case
Adam B.; your scripts can't work, because all your .sh files have windows encoding "CR LF". iLiad's contentlister needs Unix encoding "Line Feed only".

After changing CR LF to LF, scripts are working now for me.
[Edit I] Maybe somebody should update the .sh files. ;-)
[Edit II] files got an update.

Last edited by yokos; 04-10-2007 at 10:22 AM.
yokos is offline   Reply With Quote
Old 04-10-2007, 09:15 AM   #9
Adam B.
Addicted to Porting
Adam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the rough
 
Adam B.'s Avatar
 
Posts: 1,695
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
Odd....I wonder why I never have a problem running my scripts.

I'll make the change.

Edit: Done.

Last edited by Adam B.; 04-10-2007 at 09:56 AM.
Adam B. is offline   Reply With Quote
Old 04-10-2007, 10:22 AM   #10
yokos
Pac-Man catched my iLiad.
yokos plays well with othersyokos plays well with othersyokos plays well with othersyokos plays well with othersyokos plays well with othersyokos plays well with othersyokos plays well with othersyokos plays well with othersyokos plays well with othersyokos plays well with othersyokos plays well with others
 
yokos's Avatar
 
Posts: 720
Karma: 2571
Join Date: Apr 2006
Location: Germany; next to Baltic Sea
Device: 1st gen iRex iLiad with 2nd ed. battery/case
Cool

I just checked the download of post #1. Both zip files got an update. Line Feed bug is history.
[Edit:] As a positive proof I attached a screenshot; greetings to all fans of Tori Amos out there.
Attached Thumbnails
Click image for larger version

Name:	tori.png
Views:	515
Size:	77.7 KB
ID:	3080  

Last edited by yokos; 04-10-2007 at 11:02 AM. Reason: screenshot
yokos is offline   Reply With Quote
Old 04-10-2007, 04:00 PM   #11
vranghel
Addict
vranghel began at the beginning.
 
vranghel's Avatar
 
Posts: 285
Karma: 10
Join Date: Apr 2006
Location: Vancouver, Canada
Device: Proud Iliad owner
Quote:
Originally Posted by yokos
I just checked the download of post #1. Both zip files got an update. Line Feed bug is history.
[Edit:] As a positive proof I attached a screenshot; greetings to all fans of Tori Amos out there.

Good taste in music Yokos!
vranghel is offline   Reply With Quote
Old 04-10-2007, 06:56 PM   #12
The GreatGonzo
Old Yeller
The GreatGonzo is on a distinguished road
 
The GreatGonzo's Avatar
 
Posts: 180
Karma: 67
Join Date: May 2006
Device: Iliad & Kindle - The Best of Both Worlds
Very nifty - thanks for the hard work, Adam. While mp3 capability is certainly not something I bought the Iliad for, it is very nice to have it now.

One question though, regarding the "listening to music while reading" bit -
right now, the music briefly stops during any kind of page refresh. Is it reasonable to expect that to go away in future mp3 players or will the Iliad hardware always do that? Anybody care to hazard a guess?
The GreatGonzo is offline   Reply With Quote
Old 04-11-2007, 03:28 PM   #13
kapoira
Connoisseur
kapoira has a complete set of Star Wars action figures.kapoira has a complete set of Star Wars action figures.kapoira has a complete set of Star Wars action figures.
 
Posts: 81
Karma: 292
Join Date: Nov 2006
Device: i62HD + T68
the CF is working, ;-)
kapoira is offline   Reply With Quote
Old 04-11-2007, 03:46 PM   #14
Adam B.
Addicted to Porting
Adam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the rough
 
Adam B.'s Avatar
 
Posts: 1,695
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
Quote:
Originally Posted by The GreatGonzo
One question though, regarding the "listening to music while reading" bit - right now, the music briefly stops during any kind of page refresh. Is it reasonable to expect that to go away in future mp3 players or will the Iliad hardware always do that? Anybody care to hazard a guess?
I think this may be softare related. Near as I can figure, the 'click' sound when you turn a page is interfering with the music playing. If iRex would give us the option to disable the click, without disabling sound, it might fix the problem.

Either that, or it's a hardware issue. Perhaps the iLiad's cpu is spiking when flipping pages, and momentarily slowing down the mp3 player. I can't be 100% sure what it is.

I'd also like to know why the iLiad doesn't seem to care what the sound is set at in mpd. Perhaps this isn't supported by the internal sound system (since by default, it only handles the click).

Maybe an iRex dev can help us out...
Adam B. is offline   Reply With Quote
Old 04-17-2007, 06:46 AM   #15
yokos
Pac-Man catched my iLiad.
yokos plays well with othersyokos plays well with othersyokos plays well with othersyokos plays well with othersyokos plays well with othersyokos plays well with othersyokos plays well with othersyokos plays well with othersyokos plays well with othersyokos plays well with othersyokos plays well with others
 
yokos's Avatar
 
Posts: 720
Karma: 2571
Join Date: Apr 2006
Location: Germany; next to Baltic Sea
Device: 1st gen iRex iLiad with 2nd ed. battery/case
little mpd add-on

I attached a little add-on for Adam B.'s mpd post.

content of Readme file:
Quote:
--------------
--------------
||MDP ADD-ON||
--------------
--------------

Thanks Adam B. for mdp & scripts
Thanks Bert for java program ILiadManifestCreator

********************
**Why this add-on?**
********************
Some tiny mods made my life more easier. ;-)
Maybe you like it, too.

****************
**Installation**
****************
[Sticky] Adam B.'s mpd folders are copied to root of CF. This is a add-
on.
[1] Delete the old directory "Music" in root of CF.
[2] Copy dir "Music" from zip file to root of CF.
[3*] Copy without removing files on memory card the dirs "mp3" & "mpd" from
zip file to root of CF.
[4**] Copy dir "000_mpd" from zip file to root of CF.

* [A NOT NEEDED STEP]: just a visual gimmick [icon, title, & description for
Contentlister]
** [A NOT NEEDED STEP]: I added this, because dir "music" is not on page 1 on
MY CF card in Contentlister - maybe useful, if you don't want to link
hardware buttons to Music Box folder. I have never used iLiad's sorting
feature. ;-)
This creates a top entry "Music Box"-"Click on me to jump to MPD directory" in
Contentlister.

*********
**Usage**
*********
[1] Copy music files to folder "mp3" on your CF,SD,MMC.
[2] Search for "Music Box"-"MPD Playlist Script" in Contentlister.
[3] Click on "Update Playlist, Start MPD & Playback" to start playback.
[4] All other buttons are self-explaining. ;-)

other entries:
"Link to Button Scripts" -> e.g. link news button to Music Box
"Contentlister Playlist" -> choose a song to skip to

*******************************
**What I have changed & added**
*******************************
[1] Reorded script entries in Contentlister
[2] new covers, manifest.xml
[3] "Update Playlist" script starts playback
[6] now 2 "Update Playlist" Scripts: w/ & w/o Contentlister Playlist
[4] Combined pause/play button
[5] "Update Playlist", "Previous Song", "Next Song", "Pause/Resume" update the
Status message
[6] Contentlister Playlist:
# removed no-cover bug [manifest.xml likes only relative cover image path]
# removed mudlle [#1,#10,#11,...,#2]
[5] added scripts "Symbolic Link to the 4 Hardware Buttons"

Have fun with your little iLiad,
yokos
[very OT]: on screenshot pagebar is above toolbar.
Attached Thumbnails
Click image for larger version

Name:	Music_Box.png
Views:	611
Size:	114.8 KB
ID:	3171  
Attached Files
File Type: zip mpd_add_on_CF.zip (48.6 KB, 504 views)
File Type: zip mpd_add_on_MMC_SD.zip (48.6 KB, 504 views)
yokos is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where are the playlists for the Music player stored on the EE? leo315 enTourage eDGe 2 08-28-2010 02:49 AM
PRS-600 Music player hansvanderveeke Sony Reader 3 03-27-2010 03:59 PM
Seriously thoughtful Looking for music player software for Win 2000 Ralph Sir Edward Lounge 4 10-13-2009 07:42 AM
PRS-505 as a Music Player SwissSteve Sony Reader 5 01-05-2009 10:59 PM
iLiad What file Extensions should FBReader support from the contentlister? Adam B. iRex Developer's Corner 6 09-12-2007 04:53 PM


All times are GMT -4. The time now is 02:40 PM.


MobileRead.com is a privately owned, operated and funded community.