08-26-2011, 07:31 PM | #1 |
fbdev
Posts: 107
Karma: 70177
Join Date: Jul 2011
Device: kindle
|
kinamp (v2) audio player for kindle
installation:
0) extract either the tarball or zip into /mnt/us/system 1) assign a shortcut to /mnt/us/system/kinamp in launchpad kinamp requires mplayer to be: /mnt/us/system/mplayer running: the simplest way to run the program is: kinamp file file1 file2 file3 .... keep in mind that the executable will want the /mnt/us/ prefix for files in the userspace file system. when you run the executable, it will kill any running instance you have previously run. keys: alt-DEL (previous file) alt-L (play/pause) alt-K (fast forward) alt-J (next file) alt-H (quit) display: you will see a progress bar along the bottom of the screen indicating the current percentage from the start of the file. when the file changes, the file name will be displayed in the bottom left corner of the screen for ~5 seconds, then disappear. notes: the executable transparently passes its parameters to mplayer. some useful options: -loop 0: loop the playlist forever -playlist <filename>: load <filename> as a playlist -volume 400: amplify the file volume 4x (useful for quiet audio) example: kinamp -loop 0 -volume 400 -playlist /mnt/us/music/myplaylist for more options see the mplayer manual: http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html about 60 seconds after your kindle goes to screensaver, you will notice kinamp stops playing. to prevent this behavior, use kaffeine: https://www.mobileread.com/forums/sho...d.php?t=151207 Last edited by fbdev; 10-09-2011 at 06:30 PM. |
08-26-2011, 07:50 PM | #2 |
Connoisseur
Posts: 79
Karma: 2718
Join Date: Aug 2011
Device: Kindle 3G
|
That was the only change eh? Rockin.
|
08-27-2011, 04:14 PM | #3 | |
Connoisseur
Posts: 79
Karma: 2718
Join Date: Aug 2011
Device: Kindle 3G
|
I think you responded to my last post in the v1 thread so quickly that you didn't see my edit, so here it is agaaaaain.
Quote:
|
|
08-27-2011, 04:37 PM | #4 | |
fbdev
Posts: 107
Karma: 70177
Join Date: Jul 2011
Device: kindle
|
i imagine it's a multi-byte character problem.
if one of the bytes is 0, the reading of the string will terminate. i don't really work with character sets; ascii is as far as i go. Quote:
|
|
08-27-2011, 04:38 PM | #5 | |
fbdev
Posts: 107
Karma: 70177
Join Date: Jul 2011
Device: kindle
|
i advise against editing your posts and instead posting addenda.
i am almost certainly going to miss edits. Quote:
|
|
08-27-2011, 04:48 PM | #6 |
Connoisseur
Posts: 79
Karma: 2718
Join Date: Aug 2011
Device: Kindle 3G
|
Ah. That makes sense. Darn.
Ten-four on the editing. I'm used to doing that after being on boards where it was frowned on to post after yourself. |
08-27-2011, 04:52 PM | #7 |
Connoisseur
Posts: 79
Karma: 2718
Join Date: Aug 2011
Device: Kindle 3G
|
In other other news, I was playing around with the various commands in slave mode, trying to see if there was anything else interesting enough that I'd want to bribe you into adding to kinamp.... and I came across the loop and volume options. Obviously I'm already controlling everything I need to with scripts, but IMHO it sure would be nice to toggle repeat without having to restart playback. Same goes for volume-boosting, though to a much lesser degree.
I couldn't really get either of them to work though. Changing loop from within slave mode seems to break playback in a similiar way to how seeking does (delayed death) and the volume boosting ... well, perhaps I could get it to work by playing more with the af_* commands, but I realized that I don't currently have any reason to need boosting; I was only looking into it for completeness' sake. So anyway. Loop breaking the whole world? Is this your experience as well? Keyboard shortcut not possible? |
08-27-2011, 04:54 PM | #8 | |
fbdev
Posts: 107
Karma: 70177
Join Date: Jul 2011
Device: kindle
|
i dunno. i only wanted a player when i wrote it. not a swiss army knife. =]
Quote:
|
|
08-27-2011, 05:00 PM | #9 |
Connoisseur
Posts: 79
Karma: 2718
Join Date: Aug 2011
Device: Kindle 3G
|
You're fired!
|
08-27-2011, 06:01 PM | #10 |
fbdev
Posts: 107
Karma: 70177
Join Date: Jul 2011
Device: kindle
|
|
08-27-2011, 07:34 PM | #11 |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
Posts: 3,002
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
Forget your perfect offering
There is a crack in everything That's how the light gets in. http://www.leonardcohen.com/music.ph...=16&song_id=27 I'm realy a fan of Leonard Cohen. |
08-28-2011, 04:26 AM | #12 |
Connoisseur
Posts: 79
Karma: 2718
Join Date: Aug 2011
Device: Kindle 3G
|
|
08-31-2011, 11:04 AM | #13 |
doofus
Posts: 2,507
Karma: 12615905
Join Date: Sep 2010
Device: Kobo Libra 2, Kindle Voyage
|
Thank you for the great work, fbdev. Is it possible to display the streaming station's name in the status instead of the URL? Or just display any comment appended after the URL in the playlist.
Http://xxxxxxxxxxxxx/xxxxxxxxxxxxx ## Radio Paradise Also, may I suggest you merge all the kinamp threads? You can update the first post with latest version and info. This way, all the tricks and tips are in one thread, and when someone finds a thread of the old version and posts to it, it doesn't jump to the front page in favor of the newer threads. (a mod may need to do this) Ps, anyone looking for near CD quality Internet radio, try tuner2.com. Limited selection, but really great audio quality. |
09-02-2011, 06:37 AM | #14 |
Connoisseur
Posts: 79
Karma: 2718
Join Date: Aug 2011
Device: Kindle 3G
|
I know how you feel about the threads fbdev, but I agree with Barty--I think it's much less likely that important info will be lost & buried if we keep things to one major thread.
Also, regarding Barty's kinamp request: I couldn't figure it out from the source, but I'm assuming you currently use the mplayer slave cmd get_file_name for the fb display? And that in order to fulfill his request you would need to change it to get_meta_title, right? That would suck for local file playing.. well, for the way I use it at least. Currently I can get all the info I need by seeing the file name (ALBUM/##. TITLE) .... Long story short, if you decide to mess with this at all fbdev, I would propose conditionally using get_meta_title only on streams. On the other hand, whatever you do.. I could use a reason to setup scratchbox and really start messing with this myself. OH speaking of which: If you haven't already, please follow a tail on messages while kinamp + mplayer are playing a file. Please tell me you haven't noticed this before. Either way, don't you think it's a bit crazy to be causing syslog-ng (& tinyrot) to be writing to the flash so much? I only just realized this today and haven't taken the time to figure out adding an exception for all that eink_fb crap (tho I did try stopping syslog-ng to no avail--something restarts it within 10 seconds). Last edited by ryran; 09-02-2011 at 06:44 AM. |
09-03-2011, 01:02 AM | #15 |
Enthusiast
Posts: 31
Karma: 12
Join Date: Jul 2011
Location: São Paulo, Brasil/Brazil
Device: Kindle 3 3G
|
This seems cool. Does it have a GUI?
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
audio player for kindle (kinamp?) | fbdev | Kindle Developer's Corner | 6 | 01-17-2012 04:42 AM |
Android Mortplayer and your fav audio player???? | canezila | enTourage Archive | 10 | 11-26-2010 08:12 PM |
How to Stop Audio Player? | kenjennings | enTourage Archive | 0 | 04-19-2010 04:54 PM |
Classic Audio Player | ssbkt | Barnes & Noble NOOK | 1 | 12-18-2009 11:00 AM |
Audio Player | rfw | Sony Reader | 5 | 01-13-2007 01:25 PM |