February 2018
Beginner to intermediate
364 pages
10h 32m
English
The .ffmpeg file is actually an executable. The code executes the following ffmpeg command as a sub process:
ffmpeg -i BigBuckBunny.mp4 -ss 00:01:03.000 -frames:v 1 thumbnail.jpg -y
The input file is BigBuckBunny.mp4. The -ss option informs where we want to examine the video. -frames:v states that we want to extract one frame. Finally we tell ffmpeg to write that frame to thumbnail.jpg (and -y confirms overwriting an existing file).
Read now
Unlock full access