Default FFmpeg Parameters
Some FFmpeg parameters may also override explicit libxcoder parameters. Try to avoid using multiple parameters that control the same behavior.
Bitrate
If the FFmpeg -b argument is specified on the command line then this will set the bitrate, and will override any libxcoder bitrate parameter.
When using FFmpeg, it is recommended the FFmpeg -b:v bitrate parameter be used instead of the libxcoder parameter.
There are 4 situations for bitrate, these are
- No bitrate is specified on the command line, therefore the default bitrate will be used. This is 200,000 – see the
RCEnableparameter in Section 9.3. Note this only applies whenRCEnable=1. - If only the FFmpeg
-bcommand is specified then this will set the bitrate. - If only the libxcoder command
-xcoder-params is specified then this sets the bitrate. - If both the FFmpeg
-band the xcoder parameters are specified then the FFmpeg parameter will take priority and set the bitrate.