![]() |
#76 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 910
Karma: 3000002
Join Date: Jun 2010
Device: K3W, PW4
|
I just had a thought that might address the wget issue, but I am unsure if it is workable. The response when sox attempts to use the BusyBox wget is:
Code:
wget: unrecognized option '--no-check-certificate' BusyBox v1.17.1 (2018-11-27 03:29:06 PST) multi-call binary. Usage: wget [-csq] [-O FILE] [-Y on/off] [-P DIR] [-U AGENT] URL Retrieve files via HTTP or FTP Options: -s Spider mode - only check file existence -c Continue retrieval of aborted transfer -q Quiet -P Set directory prefix to DIR -O FILE Save to FILE ('-' for stdout) -U STR Use STR for User-Agent header -Y Use proxy ('on' or 'off') Is such a patch possible? I would think at a minimum replacing the bogus parameter with spaces would work, unless some sort of signature check of the binary would result in it becoming unusable. Dave |
![]() |
![]() |
![]() |
#77 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Unlike using a real wget, it won't support HTTPS, but you should be able to replace that with spaces so that the length doesn't change, yeah.
|
![]() |
![]() |
Advert | |
|
![]() |
#78 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 910
Karma: 3000002
Join Date: Jun 2010
Device: K3W, PW4
|
|
![]() |
![]() |
![]() |
#79 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,800
Karma: 103362673
Join Date: Apr 2011
Device: pb360
|
Quote:
See: https://vi.stackexchange.com/questio...files-with-vim |
|
![]() |
![]() |
![]() |
#80 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 910
Karma: 3000002
Join Date: Jun 2010
Device: K3W, PW4
|
Quote:
Dave |
|
![]() |
![]() |
Advert | |
|
![]() |
#81 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 910
Karma: 3000002
Join Date: Jun 2010
Device: K3W, PW4
|
SUCCESS! I just tried manually creating an internet radio pipeline which played:
Code:
[root@kindle sox]# LD_LIBRARY_PATH=./lib ./sox -t mp3 http://provisioning.streamtheworld.com/pls/WMALFM.pls -t raw - | /usr/bin/gst- launch -v filesrc location=/dev/stdin ! 'audio/x-raw-int,endianness=(int)1234,signed=(boolean)true,width=(int)16,depth=(int)16,rate= (int)22050,channels=(int)2' ! queue ! mixersink Setting pipeline to PAUSED ... Pipeline is PREROLLED ... Setting pipeline to PLAYING ... New clock: GstSystemClock /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)16, depth=(int)16, rate=(int)22050, channels=(int)2 /GstPipeline:pipeline0/GstQueue:queue0.GstPad:sink: caps = audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)16, depth=(int)16, rate=(int)22050, channels=(int)2 /GstPipeline:pipeline0/GstQueue:queue0.GstPad:src: caps = audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)16, depth=(int)16, rate=(int)22050, channels=(int)2 /GstPipeline:pipeline0/MixerSink:mixersink0.GstPad:sink: caps = audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)16, depth=(int)16, rate=(int)22050, channels=(int)2 ^CCaught interrupt -- handling interrupt. Interrupt: Stopping pipeline ... Execution ended after 30319214671 ns. Setting pipeline to PAUSED ... Setting pipeline to READY ... /GstPipeline:pipeline0/MixerSink:mixersink0.GstPad:sink: caps = NULL /GstPipeline:pipeline0/GstQueue:queue0.GstPad:src: caps = NULL /GstPipeline:pipeline0/GstQueue:queue0.GstPad:sink: caps = NULL /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = NULL Setting pipeline to NULL ... Freeing pipeline ... [root@kindle sox]# Dave |
![]() |
![]() |
![]() |
#82 |
Addict
![]() Posts: 315
Karma: 26
Join Date: Jul 2012
Device: Kindle Paperwhite 4 (2018)
|
i have a jailbroken paperwhite 4 myself. thanks for doing all the hard work, i'm looking forward to trying your tool.
are you envisioning be able to play local mp3 files? or things in the cloud? what's the goal? |
![]() |
![]() |
![]() |
#83 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 910
Karma: 3000002
Join Date: Jun 2010
Device: K3W, PW4
|
Quote:
At this point I have tried mp3 files and streams, but others should work as well. Dave |
|
![]() |
![]() |
![]() |
#84 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 910
Karma: 3000002
Join Date: Jun 2010
Device: K3W, PW4
|
Quote:
Dave |
|
![]() |
![]() |
![]() |
#85 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 910
Karma: 3000002
Join Date: Jun 2010
Device: K3W, PW4
|
I'm probably doing something stupidly wrong, but as I can't spot it I hope another pair of eyes will.
Attached please find my shell script and a log of what happens when I run it on my pw4. I should note that I have also tried it without the back quotes and get the same error. I can copy/paste the printed command line with an LD_LIBRARY_PATH prefix and that will run correctly. Once I get this script working I plan to write a similar one to play an internet stream. With both of those done I can put together an initial KUAL package. Dave |
![]() |
![]() |
![]() |
#86 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 96
Karma: 100000
Join Date: Dec 2018
Location: London
Device: Kobo Libra H2O
|
I would have written it like this : https://gist.github.com/tomtastic/a8...f25323d74b6026
No idea if that helps though |
![]() |
![]() |
![]() |
#87 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 910
Karma: 3000002
Join Date: Jun 2010
Device: K3W, PW4
|
Quote:
Please note that it is expected to be unzipped into the /mnt/us/extensions as any KUAL extension would be. I am uploading it here as github would not accept a zip file, strange omission there. Once again nothing in the script worked, but a simply copy/paste from above prefixed with the LD_LIBRARY_PATH does. I did not include my music file, obviously you should try one of your own. Supposedly any file sox knows about should work. If you are unsure then run sox -h to get a list of supported types. Thank you in advance for any further assistance with this project. Dave |
|
![]() |
![]() |
![]() |
#88 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Don't put a full pipeline in a variable, that won't work.
Code:
~ $ cmdline="ls -lash /var/tmp | sort -u" ~ $ $cmdline ls: |: No such file or directory ls: sort: No such file or directory i.e., this actually ends up running something along the lines of ls -lash /var/tmp "|" sort -u Last edited by NiLuJe; 04-30-2020 at 12:08 PM. |
![]() |
![]() |
![]() |
#89 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 96
Karma: 100000
Join Date: Dec 2018
Location: London
Device: Kobo Libra H2O
|
Ahh, I obviously wasn't reading the error log!
The -v from gst-launch is being interpreted by sox as it's volume argument, some wackiness going on there from busy box maybe as it should have noticed there was a pipe in there! Use this : /mnt/us/extensions/sox/sox $1 -t raw - -- | /usr/bin/gst-launch blah blah blah NB: Tried, and working on my PW4 |
![]() |
![]() |
![]() |
#90 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 910
Karma: 3000002
Join Date: Jun 2010
Device: K3W, PW4
|
Quote:
Dave |
|
![]() |
![]() |
![]() |
Tags |
audiobook, bluetooth, jailbreak, m4b, mp3 |
|
![]() |
||||
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 |