Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 04-04-2020, 09:14 AM   #1
a0044c
Junior Member
a0044c began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2020
Device: Kindle PaperWhite 4 (2018) WiFi (8GB)
Using bluetooth to listen to non-amazon audiobook

Hi All

I have a JB PW4 on 5.10.1.3 (thx @ilovejedd).

I'd like to know if there is a way to play non-amazon audiobooks using a bluetooth connected headset?

I've searched but cant find anything recent on this. I'd really appreciate it if someone could point me in the right direction.
a0044c is offline   Reply With Quote
Old 04-04-2020, 09:25 AM   #2
stumped
Wizard
stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.
 
Posts: 3,305
Karma: 10259306
Join Date: May 2016
Device: kobo forma, Kobo Libra, Huawei media Tab, fire HD10, PW3 HDX8.9,
can't be done
there is no mp3 decoder in kindle PW
the only format it can decode is audible
stumped is offline   Reply With Quote
Advert
Old 04-04-2020, 09:30 AM   #3
a0044c
Junior Member
a0044c began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2020
Device: Kindle PaperWhite 4 (2018) WiFi (8GB)
perhaps another application exists for playing m4b/mp3/etc?

the unit happily displays epubs if i use koreader after all - not audio decoding, i know.

---

Any idea if mplayer would function on the pw4 as with older pw's?
a0044c is offline   Reply With Quote
Old 04-04-2020, 09:46 AM   #4
stumped
Wizard
stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.
 
Posts: 3,305
Karma: 10259306
Join Date: May 2016
Device: kobo forma, Kobo Libra, Huawei media Tab, fire HD10, PW3 HDX8.9,
A legit MP3 decoder needs a llcence.
Old kindles had one, newer ones do not
If you are all in on software piracy, you may find something, but I doubt you will find it here
stumped is offline   Reply With Quote
Old 04-04-2020, 11:02 AM   #5
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 11,156
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
Though MP3 is now out of copyright.
Likely Amazon only want Audible on a PW4.
The PW3 does text to speech via USB audio, no idea if it does MP3s. Ghastly interface and you need to install two official Amazon downloads.

The Keyboard and DXG have a 3.5mm jack and do play MP3s, but terrible interface, useless except for text to speech.

Use your phone.
Quoth is offline   Reply With Quote
Advert
Old 04-04-2020, 01:47 PM   #6
dhdurgee
Guru
dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.
 
Posts: 829
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
Quote:
Originally Posted by a0044c View Post
perhaps another application exists for playing m4b/mp3/etc?

the unit happily displays epubs if i use koreader after all - not audio decoding, i know.

---

Any idea if mplayer would function on the pw4 as with older pw's?
Don't know, but as I have used it on my K3 I might be able to check it out. Using kterm when I have a bluetooth device detected shows the following possibly related processes running:

Code:
root      2319     1  0 12:14 ?        00:00:00 audiomgrd
root      2331     1  0 12:14 ?        00:00:00 btd -f
root      2342     1  0 12:14 ?        00:00:00 bsa_server -d /dev/ttymxc2 -u /var/local/zbluetooth/ -p /opt/brcm_4343w/bluetooth/firmware/BCM4343A1_001.002.009.0083.0380.hcd -lpm
root      2359     2  0 12:14 ?        00:00:00 [kworker/u2:0]
I am making this guess due to the start time and presence of "audio" or "blue" in the text of the process. The question is if mplayer can work with whichever of these handles audio.

Dave

PS: copied the mplayer binary onto the PW4 and it will run from kterm, so need to try the various options and see what happens.

Last edited by dhdurgee; 04-04-2020 at 02:14 PM.
dhdurgee is online now   Reply With Quote
Old 04-07-2020, 12:58 PM   #7
dhdurgee
Guru
dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.
 
Posts: 829
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
I have now installed usbnet to my pw4 and successfully configured so that I can ssh via WiFi to it. I copied some mp3 files over, connected my bluetooth headset and attempted to play one with mplayer. It acts as if it is playing, but no sound. Here is what I see in ssh:

Code:
[root@kindle root]# /mnt/us/extensions/mplayer/mplayer /mnt/us/music/01-Diamond_Star.mp3 
MPlayer 1.0rc4-4.4.5 (C) 2000-2010 MPlayer Team

Playing /mnt/us/music/01-Diamond_Star.mp3.
Audio only file format detected.
Clip info:
 Title: Diamond Star
 Artist: Point Valid with Catherine A..
 Album: Diamond Star
 Year: 2009
 Comment: Track 1
 Track: 1
 Genre: Alternative Rock
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
[AO_ALSA] alsa-lib: confmisc.c:768:(parse_card) cannot find card '0'
[AO_ALSA] alsa-lib: conf.c:4154:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
[AO_ALSA] alsa-lib: confmisc.c:392:(snd_func_concat) error evaluating strings
[AO_ALSA] alsa-lib: conf.c:4154:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
[AO_ALSA] alsa-lib: confmisc.c:1251:(snd_func_refer) error evaluating name
[AO_ALSA] alsa-lib: conf.c:4154:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
[AO_ALSA] alsa-lib: conf.c:4633:(snd_config_expand) Evaluate error: No such file or directory
[AO_ALSA] alsa-lib: pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM default
[AO_ALSA] Playback open error: No such file or directory
DVB card number must be between 1 and 4
AO: [null] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:  19.7 (19.6) of 310.0 (05:10.0) 19.6%                                                                                            

MPlayer interrupted by signal 2 in module: play_audio
A:  19.7 (19.6) of 310.0 (05:10.0) 19.6%                                                                                            
Exiting... (Quit)
[root@kindle root]#
So either I need to add some options to mplayer or perhaps some additional drivers need to be added or the bluetooth configuration must be tweaked.

Anyone familiar with bluetooth audio support on linux? I would appreciate some guidance before I go further.

Dave
dhdurgee is online now   Reply With Quote
Old 04-07-2020, 03:45 PM   #8
dhdurgee
Guru
dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.
 
Posts: 829
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
Just did a bit more searching and looking over my pw4. It appears that ALSA is part of the pw4 linux support. Unfortunately aplay -l shows no soundcards found even with bluetooth enabled and my headset attached.

A web search appears to indicate that I need to install the Bluez package and the bluez-alsa package to get this working.

Has anyone installed these to a pw4? Where can I get the proper packages for the pw4, which uname indicates is an armv7l based system? How can it be installed? I don't see apt-get or dpkg-deb present, so I don't know what tools are used for the installation.

Any further help would be appreciated.

Dave
dhdurgee is online now   Reply With Quote
Old 04-07-2020, 04:33 PM   #9
dhdurgee
Guru
dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.
 
Posts: 829
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
I had yet another thought and it might provide the missing support.

I recently purchased a Raspberry Pi zero W and am using it with my audio/visual system to overcome the limitations of my "Smart" HDTV and my "Smart" Blu-Ray player. The 0w uses a derivative of Debian Buster and uname -a shows:

Linux raspberrypi 4.19.97+ #1294 Thu Jan 30 13:10:54 GMT 2020 armv6l GNU/Linux

My pw4 shows:

Linux kindle 4.1.15-lab126 #1 SMP PREEMPT Tue Nov 27 03:27:44 PST 2018 armv7l GNU/Linux

Both systems are ARM processors. Both provide ALSA and neither provide pulseaudio. The repositories for the RPi include the missing Bluez packages. This suggested to me that I might find what I need in the Debian repositories.

As it happens this linux kernel coresponds to Debian Stretch and the Bluez packages are indeed there. Would these be compatible with the pw4? How can I install them if they are?

Dave
dhdurgee is online now   Reply With Quote
Old 04-07-2020, 04:58 PM   #10
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Nope, Kindle is softfloat, while the Pi will be hardfloat. It's also using a recent kernel (which is less of an issue with Rex/Zelda), and a much newer glibc (which is most likely going to be an an issue).

I don't recall which ancient arm softfloat Debian release people were pulling binaries from.

Last edited by NiLuJe; 04-07-2020 at 10:01 PM.
NiLuJe is offline   Reply With Quote
Old 04-07-2020, 08:08 PM   #11
j.p.s
Grand Sorcerer
j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.
 
Posts: 5,278
Karma: 98804578
Join Date: Apr 2011
Device: pb360
Quote:
Originally Posted by NiLuJe View Post
Nope, Kindle is softfloat, while the Pi will be hardfloat. It's also using a recent kernel (which is less of an issue with Rex/Zelda), and a much newer glibc (which is still probably an issue).

I don't recall which ancient arm softfloat Debian release people were pulling binaries from.
The first post in the thread
https://www.mobileread.com/forums/sh...d.php?t=321103
says that "other threads" say that armel packages from wheezy or jessie should work for PW3.
j.p.s is offline   Reply With Quote
Old 04-07-2020, 09:11 PM   #12
dhdurgee
Guru
dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.
 
Posts: 829
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
Quote:
Originally Posted by NiLuJe View Post
Nope, Kindle is softfloat, while the Pi will be hardfloat. It's also using a recent kernel (which is less of an issue with Rex/Zelda), and a much newer glibc (which is still probably an issue).

I don't recall which ancient arm softfloat Debian release people were pulling binaries from.
Sounds like this is getting beyond my capabilities to address. I was looking to match the kernel versions, which is why I was looking a stretch as opposed to buster which is what my Pi runs. But the debian repositories do appear to be for "hard float" and thus not compatible.

Any chance you or someone else more capable would take an interest in this? I think I can handle creating a KUAL package for the mplayer binary and associated scripts, but building and installing the bluetooth audio underpinnings is beyond my current experience.

Dave

PS: Stop the presses! I missed something when searching Debian repositories. They DO have the soft float versions available. They are "armel" as opposed to "armhf" and can be downloaded. Perhaps you could review the dependencies and tell me if the PW4 meets them:

https://packages.debian.org/stretch/bluez

That is the base module and several others are necessary as well. The question then becomes how do I install a deb on the pw4?

Dave

Last edited by dhdurgee; 04-07-2020 at 09:30 PM. Reason: add PS
dhdurgee is online now   Reply With Quote
Old 04-07-2020, 10:03 PM   #13
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
It won't meet *any* of the dependencies, that's going to be (one of) the tricky part.

You'll have to pull the whole deptree by hand (or possibly with Debian's help if something in its package manager tooling allows to do something like printing the whole depgraph for a specific package. I haven't used Debian is over 15 years, though, so, no idea ).

Or go with a chroot like @knc1 did at one point (with a hardfloat tree, IIRC), in which case you still need the whole deptree, but you bypass the glibc issues, because you'll then rely on the Debian glibc & dynamic loaded. The only compatibility left with that approach is the kernel.

And in that case, you don't really have to bother because people have already made Alpine chroots tailored to the Kindle .

Last edited by NiLuJe; 04-07-2020 at 10:09 PM.
NiLuJe is offline   Reply With Quote
Old 04-07-2020, 10:06 PM   #14
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
But as far as Debian is concerned, stretch is too new (glibc 2.24). Jessie's perfect though (2.19, which is what the Kindle runs).
NiLuJe is offline   Reply With Quote
Old 04-07-2020, 10:17 PM   #15
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
FWIW, things get extremely hairy for a multimedia package.

Here's what Gentoo's tooling (equery g --depth=0) has to say about mpv's depgraph:

Code:
[ media-video/mpv-0.32.0-r1 stats: packages (3505), max depth (333) ]
(I omitted the actual output, because that's *a truckload* of packages. Keeping in mind that this is Gentoo, so that's the *full* depgraph, compile-time, run-time, and post-merge, with *every* feature enabled. On a binary distro, it'd be slightly tamer, because you only need the runtime deps, and you basically only care about alsa & mp3 as far as features are concerned).
NiLuJe is offline   Reply With Quote
Reply

Tags
audiobook, bluetooth, jailbreak, m4b, mp3


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Issue with finding audiobook metadata on Amazon angelyne Calibre 6 10-21-2018 08:52 AM
Listen Audiobook Player question Hrafn Audiobook Hardware & Software 0 06-16-2018 02:36 AM
Listen Up - We've got a brand new audiobook forum Alexander Turcic Announcements 11 09-10-2014 06:18 PM
Amazon Ebooks and downloaded Audiobook ErikaGC Kindle Fire 1 06-10-2013 12:13 PM
Sony & Amazon, etc. - Why No Wifi or Bluetooth? poohbear_nc News 8 08-26-2009 04:29 PM


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


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