Mind Dump, Tech And Life Blog
written by Ivan Alenko
published under license CC4-BY
posted in category Systems Software / ffmpeg
posted at 04. May '24

ffmpeg Cheatsheet

Change format

This will change the format (container, not video or audio) of a file while it copies settings from video and audio. ~~~bash ffmpeg -i in.ts -c copy -an out.mkv ~~~

Crop video

You can crop a video without opening a video editor quite easily, although it requires to measure some stuff.

ffmpeg -i in.mp4 -filter:v "crop=600:400:0:0" out.mp4

Parameters - video width, video height, start point width (X axis), start point height (Y axis).

Add Comment