| 294 | === Modifying video codec parameters (video size, fps, bps) === |
| 295 | |
| 296 | The default video size setting for outgoing video is specified in the encoded format field in the codec param, i.e: {{{pjmedia_vid_codec_param.enc_fmt.vid.size}}}. For H.264, its profile level limits the video size, so the remote H.264 SDP fmtp "profile-level-id" should allow this size. If the remote endpoint is also PJSIP, the SDP fmtp, e.g: "profile-level-id", can be set in {{{pjmedia_vid_codec_param.dec_fmtp}}}. |
| 297 | |
| 298 | Here is a sample code to configure profile-level-id: |
| 299 | {{{ |
| 300 | ... |
| 301 | param.setting.dec_fmtp.param[N].name = pj_str("profile-level-id"); |
| 302 | param.setting.dec_fmtp.param[N].val = pj_str("...."); |
| 303 | ... |
| 304 | pjsua_vid_codec_set_param(&codec_id, ¶m); |
| 305 | }}} |
| 306 | |
| 307 | The outgoing frame-rate and bps setting can be set the same way as video size setting above, e.g: for 10 fps, just set |
| 308 | {{{pjmedia_vid_codec_param.enc_fmt.vid.fps}}} to {10, 1} then call {{{pjsua_vid_codec_set_param()}}}. |