Changes between Version 46 and Version 47 of Video_Users_Guide
- Timestamp:
- Apr 2, 2012 12:04:42 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Video_Users_Guide
v46 v47 301 301 302 302 pjsua_vid_codec_get_param(&codec_id, ¶m); 303 303 304 /* Modify param here */ 305 ... 306 304 307 pjsua_vid_codec_set_param(&codec_id, ¶m); 305 308 }}} … … 350 353 Note that there is a possibility that the value will be adjusted to follow remote capability. For example, if remote signals that maximum framerate supported is 10fps and locally the encoding direction framerate is set to 30fps, then 10fps will be used. 351 354 b. For decoding direction, two steps are needed: 352 1. {{{pjmedia_vid_codec_param.dec_fmt.det.vid.fps}}} should be set to the highest value expected for incoming video framerate. Note that it is even better if this is set to 1.5x (or more) of the expected incoming framerate because the renderer will use this setting for its clock and there is always possibility that remote clock runs a bit faster (clock drift), so setting it higher will avoid high latency issue caused by clock drift.355 1. {{{pjmedia_vid_codec_param.dec_fmt.det.vid.fps}}} should be set to the highest value expected for incoming video framerate. 353 356 2. signalling to remote, configured via codec specific SDP format parameter (fmtp): {{{pjmedia_vid_codec_param.dec_fmtp}}}. 354 357 - H263-1998, maximum framerate is specified per size/resolution basis, check [http://tools.ietf.org/html/rfc4629#section-8.1.1 here] for more info. … … 361 364 param.dec_fmtp.param[n].val = pj_str("1"); 362 365 }}} 363 - H264, similar to size/resolution, the framerate is implicitly specified in H264 level (check the standard specification , or http://en.wikipedia.org/wiki/H.264/MPEG-4_AVC#Levels) and the H264 level is signalled via H264 SDP fmtp {{{profile-level-id}}}, e.g:366 - H264, similar to size/resolution, the framerate is implicitly specified in H264 level (check the standard specification or [http://en.wikipedia.org/wiki/H.264/MPEG-4_AVC#Levels this]) and the H264 level is signalled via H264 SDP fmtp {{{profile-level-id}}}, e.g: 364 367 {{{ 365 368 /* Can receive up to 1280×720 @30fps */ … … 380 383 381 384 Notes: 382 - This setting is applicable for encoding and decoding direction, currently there is no way to set asymmetric bitrate. 385 - This setting is applicable for encoding and decoding direction, currently there is no way to set asymmetric bitrate. By decoding direction, actually it just means that this setting will be queried when generating bandwidth info for local SDP (see next point). 383 386 - The bitrate setting of all codecs will be enumerated and the highest value will be signalled in bandwidth info in local SDP (see ticket #1244). 384 387 - There is a possibility that the encoding bitrate will be adjusted to follow remote bitrate setting, i.e: read from SDP bandwidth info (b=TIAS line) in remote SDP. For example, if remote signals that maximum bitrate is 128kbps and locally the bitrate is set to 512kbps, then 128kbps will be used.