Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

SDP parameters replacement allows to rise video streeam published bitrate. To do this, SDP parameter 'a' must be replaced by this template when publishing H264 stream:

Code Block
languagebash
themeRDark
a=fmtp:(.*) (.*)

to

bash
Code Block
language
themeRDark
a=fmtp:$1 $2;x-google-min-bitrate=2500

...

Similarly, video bitrate on start can be set (x-google-start-bitrate attribute) and maximum bitrate can be limited (x-google-max-bitrate attribute). Note that if minimum bitrate only is set, then resulting bitrate cannot be above 2500 kbps, probably maximum bitrate value is fixed on this level by default in Chrome browser. When higher bitrate values are required, for example, to publish high reso;ution streams, both minimum and maximum values must be explicitly set:

bash
Code Block
language
themeRDark
a=fmtp:$1 $2;x-google-max-bitrate=7000;x-google-min-bitrate=3000

...