Вырезать кусок видео по времени
ffmpeg -i input.mp4 -vcodec copy -acodec copy -ss 01:11:11 -to 01:22:22 output.mp4

Преобразовать видео в gif
ffmpeg -i 002.mp4 -vf "fps=20,scale=480:-1:flags=lanczos, palettegen=stats_mode=diff:max_colors=64" -y "palette.png"
ffmpeg -y -i 002.mp4 -i "palette.png" -lavfi "fps=20,scale=480:-1:flags=lanczos [x]; [x][1:v] paletteuse=dither=floyd_steinberg" 003.gif

ffmpeg -i 002.mp4 -vf "fps=20,scale=320:-1:flags=lanczos, palettegen=stats_mode=diff:max_colors=64" -y "palette.png"
ffmpeg -y -i 002.mp4 -i "palette.png" -lavfi "fps=20,scale=320:-1:flags=lanczos [x]; [x][1:v] paletteuse=dither=floyd_steinberg" 003.gif

ffmpeg -i 002.mp4 -vf "fps=10,scale=240:-1:flags=lanczos, palettegen=stats_mode=diff:max_colors=64" -y "palette.png"
ffmpeg -y -i 002.mp4 -i "palette.png" -lavfi "fps=10,scale=240:-1:flags=lanczos [x]; [x][1:v] paletteuse=dither=floyd_steinberg" 003.gif

Обрезать кадр (crop=ширина:высота:Xнач:Yнач)
ffmpeg -i input.mp4 -vf crop=300:200:10:20 output.mp4