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

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 02-03-2011, 03:52 PM   #1
Smarter
Member
Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.
 
Smarter's Avatar
 
Posts: 16
Karma: 30730
Join Date: Feb 2011
Device: Kindle 3 with 3G, UK version
Post MPlayer for Kindle 0.2.0: AAC/FLAC/MP3/OGG/... local and streaming, + Shuffle mode !

MPlayer for Kindle 0.2.0
Quote:
Changelog:
0.2.0:
* Added a "shuffle" mode to play music in a random order, default shorcut: "M R"
* Added detection of pls files
0.1.2:
* Fixed mp3 and m4a detection when using playall
* Drop unneeded arguments in the playlist default urls
0.1.1:
* Don't assign the same shortcut to pause and prev
* Improved the README
0.1:
* Initial release
Hi all!
Since this forum seems to be the main development channel, I've decided to release MPlayer for Kindle here .
This project is based on MPlayer 1.0rc4 and requires Launchpad to work.
MPlayer can be used to play local and remote files in a lot of different formats(and I did not even bother to compile optional libs which could add others formats). It's an audio and video player but obviously only interesting for its audio capabilities on the Kindle.
There is no real interface, just Launchpad commands, the launchpad/mplayer.ini file should tell you everything you need to know:
Code:
[Actions]

## Launch the playlist, see mplayer/playlist
M L = !/mnt/us/mplayer/control.sh playlist

## Play everything in the music directory
M A = !/mnt/us/mplayer/control.sh playall

## Play everything in the music directory, in random order (Shuffle)
M R = !/mnt/us/mplayer/control.sh playrand

M Space = !/mnt/us/mplayer/control.sh pause
M S = !/mnt/us/mplayer/control.sh stop
M P = !/mnt/us/mplayer/control.sh prev
M N = !/mnt/us/mplayer/control.sh next
To get it, just unzip the archive at the end of this post in the root of the Kindle filesystem mounted via USB, or build it from the gitorious repository: http://gitorious.org/kindlebrew/mplayer. You will need to restart Launchpad after that(the default shortcut for restart is "Shift, Shift, Space").
Please note that simply entering sleep mode(either the sleep mode with the screen saver or the one without) will not stop mplayer if it's running, this mean you can still hear music and the battery is still drained. To stop it use the stop shortcut which by default is "Shift, M, S"(see above).

I might write a GUI, either for mplayer or for mpd

Have fun!
Attached Files
File Type: zip mplayer-0.2.0.zip (3.97 MB, 19845 views)

Last edited by Smarter; 02-07-2011 at 12:59 PM.
Smarter is offline   Reply With Quote
Old 02-04-2011, 11:26 PM   #2
Gabrys
Junior Member
Gabrys began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Feb 2011
Device: Kindle 3G
kindle 3G support

Hi,
great job. Works perfectly on Wi-Fi. Doesn't work on 3G. Any suggestions? My device is Kindle 3G GB.
Gabrys is offline   Reply With Quote
Advert
Old 02-05-2011, 06:15 AM   #3
Smarter
Member
Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.
 
Smarter's Avatar
 
Posts: 16
Karma: 30730
Join Date: Feb 2011
Device: Kindle 3 with 3G, UK version
Apparently, the Kindle doesn't use the 3G like a standard network interface, you can't even do "ping http://google.com". I haven't found a way to use it yet, but I'm sure someone has already reverse-engineered that.
Smarter is offline   Reply With Quote
Old 02-05-2011, 07:06 AM   #4
Kenneth_irl
Addict
Kenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplane
 
Kenneth_irl's Avatar
 
Posts: 212
Karma: 55934
Join Date: Jan 2011
Location: Denmark
Device: Kindle 3 + Paperwhite 7th gen
The hoykey for 'prev' and 'pause' er both set to 'P' ?

I'm going to try it out now.
Kenneth_irl is offline   Reply With Quote
Old 02-05-2011, 07:23 AM   #5
Smarter
Member
Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.
 
Smarter's Avatar
 
Posts: 16
Karma: 30730
Join Date: Feb 2011
Device: Kindle 3 with 3G, UK version
Quote:
The hoykey for 'prev' and 'pause' er both set to 'P' ?
Oh wow, I didn't even notice that :P I'll change it to use Space for pause.
Smarter is offline   Reply With Quote
Advert
Old 02-05-2011, 08:26 AM   #6
Kenneth_irl
Addict
Kenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplane
 
Kenneth_irl's Avatar
 
Posts: 212
Karma: 55934
Join Date: Jan 2011
Location: Denmark
Device: Kindle 3 + Paperwhite 7th gen
Okay, this is actually a really nice mod (is mod a correct term?). Anyway, I must admit that I at first thought this was basically an improved version of the standard Kindle player, but how nice to find out that is also a radio player for wifi !.

Edit:

I want to add this station

http://www.181.fm/playing.php?statio...school&embed=1

but how do I extrat, so to say, a direct link that'll work in the 'playlist.ini' file ?

Last edited by Kenneth_irl; 02-05-2011 at 08:40 AM.
Kenneth_irl is offline   Reply With Quote
Old 02-05-2011, 08:45 AM   #7
Smarter
Member
Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.
 
Smarter's Avatar
 
Posts: 16
Karma: 30730
Join Date: Feb 2011
Device: Kindle 3 with 3G, UK version
On http://181.fm click on the "Winamp/Itunes" link on the top right, then choose among the links the one you want and copy it to mplayer/playlist. Alternatively, from the url you can see that the name of the station is 181-oldschool, and the pls files url format is http://www.181.fm/winamp.pls?station=STATION, so just replace STATION by 181-oldschool.
Smarter is offline   Reply With Quote
Old 02-05-2011, 08:54 AM   #8
Kenneth_irl
Addict
Kenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplane
 
Kenneth_irl's Avatar
 
Posts: 212
Karma: 55934
Join Date: Jan 2011
Location: Denmark
Device: Kindle 3 + Paperwhite 7th gen
Quote:
Originally Posted by Smarter View Post
On http://181.fm click on the "Winamp/Itunes" link on the top right, then choose among the links the one you want and copy it to mplayer/playlist. Alternatively, from the url you can see that the name of the station is 181-oldschool, and the pls files url format is http://www.181.fm/winamp.pls?station=STATION, so just replace STATION by 181-oldschool.
Super, thanks, man

Kenneth_irl is offline   Reply With Quote
Old 02-05-2011, 11:02 AM   #9
Kenneth_irl
Addict
Kenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplane
 
Kenneth_irl's Avatar
 
Posts: 212
Karma: 55934
Join Date: Jan 2011
Location: Denmark
Device: Kindle 3 + Paperwhite 7th gen
A few observations:

1.

The 'M - A command' doesn't work. If I use it right after a reset it has no effect, although it seems to funktion as a playbutton if an ongoing stream is stopped using the 'M - space command'.

2.

The 'M - P command' only pauses the stream for a few seconds, then it will resume again.

3.

If you use the 'Alt - space command' It'll block the mplayer from working since Amazon's firmware can only pause a ongoing track and so you'll be forced to reset the Kindle.

Last edited by Kenneth_irl; 02-05-2011 at 11:04 AM.
Kenneth_irl is offline   Reply With Quote
Old 02-05-2011, 02:02 PM   #10
Smarter
Member
Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.
 
Smarter's Avatar
 
Posts: 16
Karma: 30730
Join Date: Feb 2011
Device: Kindle 3 with 3G, UK version
Quote:
The 'M - A command' doesn't work. If I use it right after a reset it has no effect, although it seems to funktion as a playbutton if an ongoing stream is stopped using the 'M - space command'.
What's the content of your music directory?
Quote:
The 'M - P command' only pauses the stream for a few seconds, then it will resume again.
That's because P is for prev, so it'll play the previous url/file from the playlist file(if you launched mplayer with M L) or from the music directory(if you launched it with M A)
Quote:
If you use the 'Alt - space command' It'll block the mplayer from working since Amazon's firmware can only pause a ongoing track and so you'll be forced to reset the Kindle. |
Yes, mixing two players is never really a good idea :P
Smarter is offline   Reply With Quote
Old 02-05-2011, 03:00 PM   #11
Kenneth_irl
Addict
Kenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplane
 
Kenneth_irl's Avatar
 
Posts: 212
Karma: 55934
Join Date: Jan 2011
Location: Denmark
Device: Kindle 3 + Paperwhite 7th gen
Quote:
Originally Posted by Smarter View Post
What's the content of your music directory?
Just ordinary MP3s. (320kbps) M - A is successfully loaded.

Quote:
That's because P is for prev, so it'll play the previous url/file from the playlist file(if you launched mplayer with M L) or from the music directory(if you launched it with M A)
I see, my mistake. I was pretty sure that there was a 'stop command'. My nerouns must have misfired reading your readme.

Quote:
Yes, mixing two players is never really a good idea :P
Well, if this app can play MP3s I'll really only need one player.

Last edited by Kenneth_irl; 02-05-2011 at 03:05 PM.
Kenneth_irl is offline   Reply With Quote
Old 02-05-2011, 03:15 PM   #12
Smarter
Member
Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.
 
Smarter's Avatar
 
Posts: 16
Karma: 30730
Join Date: Feb 2011
Device: Kindle 3 with 3G, UK version
(Private message I got)
Quote:
Originally Posted by lame
Hi! Thank you for your work!
Quote:
Originally Posted by Kenneth_irl View Post
A few observations:

1.

The 'M - A command' doesn't work
I had the same problem with .mp3 only, so I opened /mnt/us/mplayer/control.sh and found missing "/" in "|m4a|mp3\|". Now it works fine.
Thanks! Fixed in 0.1.2.
Smarter is offline   Reply With Quote
Old 02-05-2011, 04:46 PM   #13
Kenneth_irl
Addict
Kenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplaneKenneth_irl makes transoceanic flights without the assistance of an airplane
 
Kenneth_irl's Avatar
 
Posts: 212
Karma: 55934
Join Date: Jan 2011
Location: Denmark
Device: Kindle 3 + Paperwhite 7th gen
Here's for hoping for a future QUI for this !
Kenneth_irl is offline   Reply With Quote
Old 02-05-2011, 06:13 PM   #14
lrizzo
Member
lrizzo can tie a knot in a cherry stem with his or her tonguelrizzo can tie a knot in a cherry stem with his or her tonguelrizzo can tie a knot in a cherry stem with his or her tonguelrizzo can tie a knot in a cherry stem with his or her tonguelrizzo can tie a knot in a cherry stem with his or her tonguelrizzo can tie a knot in a cherry stem with his or her tonguelrizzo can tie a knot in a cherry stem with his or her tonguelrizzo can tie a knot in a cherry stem with his or her tonguelrizzo can tie a knot in a cherry stem with his or her tonguelrizzo can tie a knot in a cherry stem with his or her tonguelrizzo can tie a knot in a cherry stem with his or her tongue
 
Posts: 23
Karma: 22222
Join Date: Oct 2010
Device: kindle3
Quote:
Originally Posted by Kenneth_irl View Post
A few observations:

...

3.

If you use the 'Alt - space command' It'll block the mplayer from working since Amazon's firmware can only pause a ongoing track and so you'll be forced to reset the Kindle.
If i remember well one way to stop the internal mp3 player and free the audio device without reset is to select an "Audiobook" without starting to play it (to do that, you need to have an mp3 file in /mnt/us/audible).

I am not sure if there is a dbus event or some other message that you can use for that.
lrizzo is offline   Reply With Quote
Old 02-06-2011, 12:51 AM   #15
Ticallion
Connoisseur
Ticallion began at the beginning.
 
Posts: 61
Karma: 12
Join Date: Jan 2010
Device: Kindle PW
Is there some reason why Amazon didn't include an mp3 player interface by default? The Nook has one, doesn't it?
Ticallion is offline   Reply With Quote
Reply

Tags
aac, mplayer, music, ogg, streaming

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
jukebox [player of mp3, ogg, mpc, mikmod, wav, flac files] yokos iRex 37 09-01-2009 09:37 AM


All times are GMT -4. The time now is 10:16 AM.


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