-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Exploring Deepfakes
By :

The conversion code included produces swapped images, but if we want to create a video, we’ll need to combine the output into a video file. There are multiple options here, depending on what you want to include:
ffmpeg -i {path_to_convert}\%05d.png Output.mp4
This command line will convert all the frames into a video with some default options. The Output.mp4
file will include the frames but won’t include any audio and will be at a default frame rate of 25 frames per second. This will be close enough to accurate for videos that came from film sources, such as Blu-rays or DVDs. If the video looks too fast or too slow, then your frame rate is incorrect, and you should look at the next option instead to match the correct frame rate.
ffmpeg -framerate {framerate} -i {path_to_convert}\%05d.png Output.mp4
This command...