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