FFmpeg: Difference between revisions

No change in size ,  21 December 2020
no edit summary
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
===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.


===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===