5,337
edits
No edit summary |
|||
Line 45: | Line 45: | ||
* 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 | * Use <code>-vf "select=not(mod(n\,10))"</code> to select every 10th frame | ||
===Get a list of encoders/decoders=== | ===Get a list of encoders/decoders=== | ||
Line 120: | Line 113: | ||
==Filters== | ==Filters== | ||
Filters are part of the CLI | Filters are part of the CLI | ||
===Crop=== | |||
<syntaxhighlight lang="bash"> | |||
ffmpeg -i input_filename -vf "crop=w:h:x:y" output_filename | |||
</syntaxhighlight> | |||
* Here <code>x</code> and <code>y</code> are the top left corners of your crop. <code>w</code> and <code>h</code> are the height and width of the final image or video. | |||
===Resizing/Scaling=== | ===Resizing/Scaling=== |