##Desktop PC App to Audiobooks
This is an R script that was used to convert a desktop windows application to an audiobook. The application was a study guide for the CFA Level 3 curriculum. It contained a video of someone talking about each topic and a window with a slideshow that would auto-advance along with the video.
Since it was difficult to spend so much time in front of a PC, I wanted to be able to watch the content on my phone/tablet and listen to it in the car or the gym. I also wanted a printout of the slides to refresh and for taking notes. This script extracted a set of audiobooks and pdfs. The slides from the desktop application were inserted into the audiobook as chapter book covers -- so each time the audio would move to a new chapter, the slide would change in the audiobook.
Before (on the windows desktop application)
After (on my phone)
###Note
This code requires that you own the original content and license. I no longer have a copy and the format of the application has probably changed since this was created (2010). The code most likely won't work with the latest release and should only be used as a reference for similar projects. Also, I think the changing of the slides in the audiobook only worked on an iphone/ipad, not on android -- at least at that time.
###Overview
I ended up creating this script that takes the following steps:
-
reads in the XML configuration file for the application
-
scans the XML for timestamped sections of the video and images that match
-
extracts the audio from the flash video files and saves them
-
creates a POD config file for the audiobook assembly
-
assembles an audiobook for each section, assigning a slide image to serve as the 'book cover' for each chapter
-
saves a PDF version of the slides that can be printed for note taking
Required:
- the R XML package
- slideshowassembler
- ffmpeg
- ImageMagick convert