I have a weird task to convert a pdf presentation to video: that is in video slides have to change every 5 seconds or so. I'm on linux (kubuntu). It can be done with capturing the screen. Are there any other solutions?
1 Answer
Two tools should do the job nicely for you if you have to do this again in the future. Using ImageMagick's convert program can convert a PDF file to a sequence of JPEG files numbered numerically:
convert out.pdf out.jpg
This will result in numbered files: out-0.jpg, out-1.jpg, ...
There are several command-line options for convert
that can change the resolution of the output, etc. It is a very powerful image conversion tool. Then use ffmpeg (a similarly powerful command-line tool, except works on video and audio files) to convert those JPEGs to a video slide show (first hit on google search of "video slideshow ffmpeg"):
https://trac.ffmpeg.org/wiki/Create%20a%20video%20slideshow%20from%20images
avconv
can do it or amencoder
, or some pdf viewer likeimpress
, but I just don't know it. I hoped to get a quick answer. After 40 minutes, I did it using a screencapture tool, and cut the thing after that. Maybe I should delete the question now.