PJSIP and HD video

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

 



Hi,

To HD video call I have used something like this:
pj_status_t setHD()
{
pj_status_t status;

const pj_str_t codec_id = {"H264", 4};
pjmedia_vid_codec_param param;

status = pjsua_vid_codec_get_param(&codec_id, &param);
if(status!= PJ_SUCCESS) {
    //PJ_ERROR() get codec param
    return status;
}
param.enc_fmt.vid.size.w = 1921; // if i have exalcly 1920 then I don't see
video between two client
param.enc_fmt.vid.size.h = 1081; // / if i have exalcly 1080 then I don't
see video between two client

param.dec_fmtp.param[0].name = pj_str("profile-level-id");
param.dec_fmtp.param[0].value = pj_str("42e033"); // it can beetween level
4.0 to 5.1, (33 is 5.1 level)

status=pjsua_vid_codec_set_param(&codec_id, &param);
if(status!= PJ_SUCCESS){
    //PJ_ERROR() set codec param
     return status;
}
 return status;
}
this settings should be enough to hd video call, but I also change fps to
enc=20 dec=30, and bitrate to 512000-1024000.

have you read http://trac.pjsip.org/repos/wiki/Video_Users_Guide#modvcodec?
there is very helpfull HOW TO :)

BR
Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20120330/395b157e/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