Problem with SDL and pjsua

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

 



I just think that you set 45 FPS by yourself.

for change FPS I use next code (before init account, call it from method
main_func, file main.c):

pjmedia_vid_codec_param param;
const pj_str_t codec_id = {"H264", 4};
pjsua_vid_codec_get_param(&codec_id, &param);

param.enc_fmt.det.vid.size.w = 800;
param.enc_fmt.det.vid.size.h = 600;

param.enc_fmt.det.vid.fps.num = 5;//5 FPS
param.enc_fmt.det.vid.fps.denum = 1;

param.enc_fmt.det.vid.avg_bps = 250*1000;
param.enc_fmt.det.vid.max_bps = 250*1000*2;

param.dec_fmtp.param[0].name = pj_str("profile-level-id");
param.dec_fmtp.param[0].val = pj_str("42e01f");

pjsua_vid_codec_set_param(&codec_id, &param);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20120725/398f29e3/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