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 03-17-2011, 05:27 PM   #1
janvanmaar
Addict
janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.
 
Posts: 219
Karma: 404
Join Date: Nov 2010
Device: Kindle 3G, Samsung SIII
audiobook player

A simple audiobook player for Kindle 3 on top of mplayer and launchpad hacks (no GUI).

The official Kindle audiobook player suffers by several shortcomings which I wanted to workaround in this way. On the other hand, there is no GUI, so if you need graphical navigation then this is not for you.

Features
  • possible to listen to an audiobook while reading the same book
  • last position in all the audiobooks is automatically bookmarked
  • improved navigation

Installation
  1. Install the jailbreak, launchpad and mplayer hacks.
  2. Download the attached ZIP file and copy control-audiobook.sh file to /mnt/base-us/mplayer directory on the Kindle and mplayer-audiobook.ini file to /mnt/base-us/launchpad directory
  3. For each audiobook, create a directory in the /mnt/base-us/audible directory and copy all the audiobook files to this directory

Usage
The playback is controlled via the following launchpad keyboard shortcuts (as all launchpad shortcuts, the keys have to be pressed sequentially, not simultanously - have a look at the launchpad thread for more information):
Quote:
Shift, Space = toggle stop/start listening from where previously stopped
Shift, Q = go to the beginning of the currently played file
Shift, Q, Q = go to the beginning of the currently played audiobook
Shift, N = go to the next file of the currently played audiobook
Shift, N, N = go to the next audiobook
Shift, P = go to the previous file of the currently played audiobook
Shift, P, P = go to the previous audiobook
Shift, Z = back (~10 seconds)
Shift, Z, Z = rewind (~100 seconds)
Shift, X = forward (~10 seconds)
Shift, X, X = fast forward (~100 seconds)
Notes
  • No CPU is consumed by the audioplayer after the playback is stopped by Shift, Space
  • The bookmarked positions are saved as files, surviving sleep/restart
  • The playback order of books is alphabetical (of the book directories)
  • If you go to next/previous book(s) then the playback always starts from the bookmarked (=last) position in that book
  • If you go to next/previous file within a book (typically file within a book corresponds to chapter) then the playback always starts from the beginning of the file (chapter)
  • The audiobook playback should be compatible with the original mplayer intended for music playback, just adding different keyboard shortcuts.

Known issues
  • Occasionally, mplayer fails to recognize the correct position in some mp3 files. If you notice that bookmarking/seeking is sometimes shifted heavily then your best bet is to convert the files. I have never observed the issue with ogg files and most mp3 files work fine too.
  • The commands are executed with 1-2 seconds delay. This delay is caused by the underlying launchpad hack which seems to execute a graphical notification before the command itself. The speed would improve automatically as soon as the launchpad speed would improve.
  • Navigation through more than 3-4 audiobooks becomes somewhat cumbersome. Without a graphical interface, it is probably better to keep only those audiobooks on the Kindle that you are just listening to or planning to listen to soon. There is not too much space on the Kindle for many audiobooks anyway...
Attached Files
File Type: zip play-audiobook-0.2.2.zip (2.3 KB, 1515 views)
File Type: zip play-audiobook-0.2.3.zip (2.5 KB, 1005 views)

Last edited by janvanmaar; 02-01-2012 at 06:38 PM. Reason: bugfix
janvanmaar is offline   Reply With Quote
Old 03-23-2011, 04:16 AM   #2
Tanga
Zealot
Tanga shares his or her toysTanga shares his or her toysTanga shares his or her toysTanga shares his or her toysTanga shares his or her toysTanga shares his or her toysTanga shares his or her toysTanga shares his or her toysTanga shares his or her toysTanga shares his or her toysTanga shares his or her toys
 
Posts: 128
Karma: 5792
Join Date: Mar 2011
Location: Australia
Device: Kindle 3
Wow, nice. I'm not really into audiobooks, but for those that are this is truly awesome! Way to build functionality =).
Tanga is offline   Reply With Quote
Advert
Old 03-23-2011, 08:31 PM   #3
janvanmaar
Addict
janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.
 
Posts: 219
Karma: 404
Join Date: Nov 2010
Device: Kindle 3G, Samsung SIII
Updated to 0.2.1 (bugfix of not starting the next file at its beginning after seeking)

Last edited by janvanmaar; 03-23-2011 at 08:33 PM.
janvanmaar is offline   Reply With Quote
Old 03-24-2011, 12:08 PM   #4
atay
Junior Member
atay began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Mar 2011
Device: Kindle 3G
great feature, thank You

is it possible to do Shift+Space as Start and Stop ? what should I change ?

In this version there is S Space for Start and S Space Space for stop.
atay is offline   Reply With Quote
Old 03-24-2011, 12:33 PM   #5
janvanmaar
Addict
janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.
 
Posts: 219
Karma: 404
Join Date: Nov 2010
Device: Kindle 3G, Samsung SIII
good idea, toggle is now default in 0.2.2
janvanmaar is offline   Reply With Quote
Advert
Old 12-11-2011, 09:46 AM   #6
janvanmaar
Addict
janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.
 
Posts: 219
Karma: 404
Join Date: Nov 2010
Device: Kindle 3G, Samsung SIII
The audiobook was intended for listening to audiobooks while reading, thus screensaver appearing after 10 minutes should not be a problem - however, if you want to prevent this, it can be done by replacing the following line in the control-audiobook.sh file:

$MPLAYER "$first" -ss $time -playlist ${PLAYLIST}_temp >$LOG 2>&1 &

by this line:

( lipc-set-prop com.lab126.powerd preventScreenSaver 1; $MPLAYER "$first" -ss $time -playlist ${PLAYLIST}_temp >$LOG 2>&1; lipc-set-prop com.lab126.powerd preventScreenSaver 0 ) &

Thanks to k3lover for pointing this out!

(I am not incorporating this change to the zip file as it is not required for the intended purpose and to be safer - it is unlikely that the script would be killed from some reason and the lipc command to turn the screensaver on again would not be executed but it is not impossible)
janvanmaar is offline   Reply With Quote
Old 02-01-2012, 06:36 PM   #7
janvanmaar
Addict
janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.
 
Posts: 219
Karma: 404
Join Date: Nov 2010
Device: Kindle 3G, Samsung SIII
A bug leading to occasionally wrong previous/next file navigation has been fixed in 0.2.3.
janvanmaar is offline   Reply With Quote
Old 03-08-2012, 02:08 AM   #8
soylencho
Junior Member
soylencho began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Mar 2012
Device: Kindle 3
Hi, I just installed this player, but the speed to which it's reading the files is faster than 1x, any comments on why this is happening?
soylencho is offline   Reply With Quote
Old 03-11-2012, 06:15 PM   #9
janvanmaar
Addict
janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.
 
Posts: 219
Karma: 404
Join Date: Nov 2010
Device: Kindle 3G, Samsung SIII
hi soylencho, it sounds like this mplayer bug:
https://www.mobileread.com/forums/sho...ayer&page=5#68
your best bet to fix it would probably be converting the files (the thread also mentions -srate option but you would need to set that manually for each song, I think)
janvanmaar is offline   Reply With Quote
Old 06-29-2012, 07:57 AM   #10
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Lightbulb Lag via Launchpad - is it not in the config...

Quote:
Known issues

* The commands are executed with 1-2 seconds delay. This delay is caused by the underlying launchpad hack which seems to execute a graphical notification before the command itself. The speed would improve automatically as soon as the launchpad speed would improve.
Hi. you mention a lag via lauchpad commands.

There is a paramater withing the launchpad config (um... or ini I forget)
to reduce this detection delay time, it is set to 700 (.7 of a second) by default IIRC. Whilst this may not be 100% of the problem perhaps it may contribute?

enough time to mash 3 keys for we mere mortals

Perhaps playing with this value could adjust performance to your liking.

I don't run this so untested. Interesting use of mplayer though. perhaps I will.
Cheers

Last edited by twobob; 06-29-2012 at 08:01 AM. Reason: Added quote, pinch of salt and lack of actual proof or any knowledge whatsoever
twobob 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
Audiobook Chaptering Chirishman Amazon Kindle 3 01-25-2023 11:45 PM
Kindle as and Audiobook Player eville Amazon Kindle 12 04-14-2013 05:18 PM
Jumping between e-reader and audiobook? Kilarney Workshop 5 01-22-2010 02:44 PM
Audiobook Conversion for Kindle Chirishman Amazon Kindle 0 08-03-2009 01:59 AM
Free Audiobook from Borders kilohertz53 Deals and Resources (No Self-Promotion or Affiliate Links) 1 07-17-2008 08:59 PM


All times are GMT -4. The time now is 03:23 AM.


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