Table of Contents

FFMPEG

https://ffmpeg.org

A complete, cross-platform solution to record, convert and stream audio and video.

ffmpeg cli snippets

Cutting Videos

-ss is starting time, -to is duration of cut, -c is codec and copy is input's codec copied to output's.

Making GIFs

-s mm:ss time from beginning to start the gif, running for -t mm:ss lengh of time, from -i input.mp4. -vf “…” sets the filters: fps, gif resolution width @ 320 and maintain aspect ratio; sets flags for use of lanczos scaling algo, split flag makes it possible to do this in one command. -loop -1/0/.. sets GIF looping to No Loop, Infinite Loop, or counted loop respectively. Output is the gif you made.