I have an mp4 video file that is a recording of a basic text Powerpoint slideshow. It is about 1 hour long and has about 900 slides. You can think of it as a karaoke video: each slide shows just 1 sentence of text (or less).
None of the formatting of the text matters (and if there are any images on any of the slides, they don't matter).
I do not have the original Powerpoint file anymore.
I would love to be able to create an editable Powerpoint file out of this video.
Perhaps 3 steps are required:
Generate image files from the video, where there is a new image for each "scene change" of the video (i.e. when a new slide is shown).
Use some sort of automated optical character recognition program to convert those images into a long text file. Text would be grabbed from each image and appended to the text file. Each new line of the text file would represent a slide/image.
Somehow produce a Powerpoint file where each of its slides is generated by the text file (one slide per line of text). The Powerpoint can be completely basic (white background, default black centered text).
For Step 1, my current approach (which I'm not sure is the best way) is to use ffmpeg like this:
ffmpeg -i my_video.mp4 -frames:v 1 my_subfolder/my_slides-00000.jpg
ffmpeg -i my_video.mp4 -vf select="gt(scene\,0.01)" -vsync 0 -an my_subfolder/my_slides-%05d.jpg
I would appreciate any suggestions for Steps 2 and 3 (or improvements to Step 1).
Your suggestions do not need to be limited to consumer-friendly software; I'm a software engineer and am happy to write scripts / code if necessary. Thanks.