PJSIP and HD video

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
thanks for fix my code, your time was not wasted, you have learned
something about pjsip and video.
 to video hd you need to change level. default is 1.0 ( 0x0A)
if (h264_fmtp->profile_idc == 0) {
h264_fmtp->profile_idc = 0x42;
h264_fmtp->profile_iop = 0x00;
 h264_fmtp->level = 0x0A;//default
}

so to beter resoution you need to change profile level id, you can change
this by api method like:
status = pjsua_vid_codec_get_param(&codecName, &prm);
(optional) find where param name is profile-level-id by  for example some
 if(...)
change:
prm.dec_fmtp.param[index].name = pj_str(paramName);
prm.dec_fmtp.param[index].val = pj_str(paramValue);
and set
status = pjsua_vid_codec_set_param(&codecName, &prm);

please read http://en.wikipedia.org/wiki/H.264/MPEG-4_AVC section about
levels

BR
Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20120330/b88ecd40/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux