5,337
edits
(→Crop) |
|||
Line 35: | Line 35: | ||
===Video to Images=== | ===Video to Images=== | ||
Extracting frames from a video | Extracting frames from a video | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
ffmpeg -i video.mp4 frames/%d.png | ffmpeg -i video.mp4 frames/%d.png | ||
</syntaxhighlight> | </syntaxhighlight> | ||
* Use <code>-ss H:M:S</code> to specify where to start | |||
* Use <code>-ss H:M:S</code> to specify where to start before you input the video | |||
* Use <code>-vframes 1</code> to extract one frames | * Use <code>-vframes 1</code> to extract one frames | ||
* Use <code>-vf "select=not(mod(n\,10))"</code> to select every 10th frame | |||
===Crop=== | ===Crop=== |