View Single Post
Old 10-22-2020, 12:34 PM   #46
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,312
Karma: 16800000
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by kovidgoyal View Post
@jackie_w: FYI I have added wrappers for all functions i described earlier to calibre, so you dont need to depend on any external libraries. In fact I have even added code to directly output mp3 files, so you can drop lame.exe as well.

You can see how to use it by reading the tests in this file: https://github.com/kovidgoyal/calibr...ows/winsapi.py

It was surprisingly easy, only about 500 lines of code.
Quote:
Originally Posted by kovidgoyal View Post
Oops I spoke to soon, mp3 output doesnt work, but wav output does.
Thank you for your efforts. I just came here to ask for more advice but you've beaten me to it

Are you able to pursue the mp3 creation or are you wanting me to do something? If the latter how do I get access to the new winstuff?

BTW I haven't been idle I've spent the last 2 days trying to get Doitsu's suggested comtypes method working. I thought it was going to be fine because I could run the jobs.process_file() function via a simple calibre-debug script and both WAV/MP3 were created OK for both v4.23 (via win32com) and v5.2 (via comtypes). But as soon as I tried to run it under the calibre jobs system in v5.2 I could no longer create a WAV. v4.23 still worked OK under jobs, both WAV and MP3.
jackie_w is offline   Reply With Quote