Hello everybody, I am testing pjsua for answer an incoming video call made
with xlite, but when pjsua tries to use SDL, the program crash.
Answer with code (100-699) (empty to cancel): 200
14:15:47.343 pjsua_call.c !Answering call 1: code=200
14:15:47.359 pjsua_media.c ...Call 1: updating media..
14:15:47.359 pjsua_aud.c ....Audio channel update..
14:15:47.359 strm018D4EE4 .....VAD temporarily disabled
14:15:47.359 strm018D4EE4 .....Encoder stream started
14:15:47.375 strm018D4EE4 .....Decoder stream started
14:15:47.375 pjsua_media.c ....Audio updated, stream #0: PCMU (sendrecv)
14:15:47.375 pjsua_vid.c ....Video channel update..
14:15:47.421 vstenc018D963C .....Encoder stream started
14:15:47.421 vstdec018D963C .....Decoder stream started
14:15:47.421 pjsua_vid.c .....Setting up RX..
14:15:47.421 pjsua_vid.c ......Creating video window: type=stream,
cap_id=-1
, rend_id=3
14:15:47.437 vid_port.c .......Opening device SDL renderer [SDL] for
render
: format=I420, size=352x288 @45000:1001 fps
//Here windows tells me that an invalid memory space.
Can somebody tell me, how can I fix this?
Thanks.
Hi!
I'm not sure, but line
14:15:47.437 vid_port.c .......Opening device SDL renderer [SDL] for
render
: format=I420, size=352x288 @45000:1001 fps
confuses me.
FPS=44.95 is to big. Maybe try 15 or 30 FPS.
How can I change the fps? I tried to use
vid codec fps H263-1998/96 30000 1001
but pjsua answered with
10:27:09.312 pjsua_app.c !Invalid command, use 'vid help'
Invalid input 0 1001
2012/7/25 Fedot Fedotov fedot.fedotov@gmail.com
Hi!
I'm not sure, but line
14:15:47.437 vid_port.c .......Opening device SDL renderer [SDL] for
render
: format=I420, size=352x288 @45000:1001 fps
confuses me.
FPS=44.95 is to big. Maybe try 15 or 30 FPS.
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
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, ¶m);
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 = 2501000;
param.enc_fmt.det.vid.max_bps = 2501000*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, ¶m);