compress video with ffmepg code example Example: compress video ffmpeg ffmpeg -i input.mp4 -vcodec libx265 -crf 28 output.mp4