View Single Post
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, 1524 views)
File Type: zip play-audiobook-0.2.3.zip (2.5 KB, 1047 views)

Last edited by janvanmaar; 02-01-2012 at 06:38 PM. Reason: bugfix
janvanmaar is offline   Reply With Quote