To set a bitrate for a video encode in FFmpeg use -b:v which means bitrate for video, then specify the bitrate value. This can be k for kBits or m for megabits, -b:v 2M is 2 Megabits.
An example for a 3 Megabit video bitrate is
ffmpeg -i in.mp4 -b:v 3M out.mp4
As an extra you can also specify the audio bitrate using -b:a
A working example with this in use is
ffmpeg -i in.mp4 -b:v 2M -b:a 124K out.mp4
Using this method is a one pass encode which is not efficient, making using -crf a better approach (see here).
A drained and empty Kennington reservoir images from a drone in early July 2024. The…
Merrimu Reservoir from drone. Click images to view larger.
Some early September spring shots from a bushwalk, It is still too early for wildflowers.
I recently needed to clone over a smaller NVMe to a 2TB SK Hynix Platinum…
If you ever needed a simple solution in Laravel to delete an entire directory and…
How to enforce only one user to register or be registered in a Laravel web…