View Single Post
Old 04-17-2020, 01:48 PM   #47
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: 910
Karma: 3000002
Join Date: Jun 2010
Device: K3W, PW4
Quote:
Originally Posted by NiLuJe View Post
Using mplayer for audio conversion is fairly overkill.

Look into using ffmpeg directly, or even something like sox.
My use of mplayer in particular was due to its availability on the site here for the kindle. I used it first on my K3 where audio output was built in. Other options as you noted are available, but I am unaware of binaries for our kindles.

Beyond that the problem of building the gst pipeline with the proper rate and channel count remains. With a WAVE header this is self defined, but the available gst elements on the kindle do not support this.

This suggest to me we need a program of some sort to accept the source to be played, which might be a local file or an internet stream, start playback to a buffer, create the gst pipeline with the rate and channel count defined from the source header and pipe the decoded raw pcm from the buffer to the gst pipeline for playback.

I am beyond my experience level in creating such a program to be run on the kindle, my limits here are simple scripts and probably creating a KUAL extension to make use of them. Hopefully someone else can expand on this.

I should note that the original question that started this topic is now answered, a converted audio book of any sort can be played with this approach.

Dave
dhdurgee is offline   Reply With Quote