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.
Using FTP and PHP to get an array of file details such as size and…
Creating and using Laravel form requests to create cleaner code, separation and reusability for your…
Improving the default Laravel login and register views in such a simple manner but making…
Laravel validation for checking if a field value exists in the database. The validation rule…