ffmpeg set bitrate h264 code example Example: ffmpeg set bitrate h264 ffmpeg -i input -c:v libx264 -b:v 2M -maxrate 2M -bufsize 1M output.mp4