View Single Post
Old 12-28-2025, 06:59 AM   #8
kbarni
Connoisseur
kbarni ought to be getting tired of karma fortunes by now.kbarni ought to be getting tired of karma fortunes by now.kbarni ought to be getting tired of karma fortunes by now.kbarni ought to be getting tired of karma fortunes by now.kbarni ought to be getting tired of karma fortunes by now.kbarni ought to be getting tired of karma fortunes by now.kbarni ought to be getting tired of karma fortunes by now.kbarni ought to be getting tired of karma fortunes by now.kbarni ought to be getting tired of karma fortunes by now.kbarni ought to be getting tired of karma fortunes by now.kbarni ought to be getting tired of karma fortunes by now.
 
kbarni's Avatar
 
Posts: 87
Karma: 289046
Join Date: Feb 2025
Device: Kindle PW5
@muggleMode Kindle doesn't support USB host mode (i.e. you can't connect USB peripherals like keyboard, mouse or audio device).

@bozza111 M4B is a container format, not an encoding format; it can use several encoders, like AAC, MP3, OGG... It needs a decoder library like libfaad (if the format is AAC).

I did some quick tests with faad - the debian bullseye armhf version runs on the Kindle - but it stops after a second of decoding. (while running fine on my laptop)
Anyway, it could be possible to modify sox media player to use faad instead of the sox library:

Code:
LD_LIBRARY_PATH=/mnt/us/M4BPlayer /mnt/us/M4BPlayer/faad -f 2 -b 1 -d -w "$1" |  /usr/bin/gst-launch \
     filesrc location=/dev/stdin \
     ! audio/x-raw-int, endianness='(int)'1234, signed='(boolean)'true, \
        width='(int)'16, depth='(int)'16, rate='(int)'48000, channels='(int)'2 \
     ! queue ! mixersink&
     ;;

Last edited by kbarni; 12-29-2025 at 07:21 AM. Reason: Some progress on M4B file decoding using faad.
kbarni is offline   Reply With Quote