How to get video frames?

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

 



Hi everyone,


I would like to catch the video frames of a call to display the images by myself with openCV.


Which solution should I use?


I found the method pjmedia_vid_dev_stream_get_frame(pjmedia_vid_dev_stream *strm, pjmedia_frame *frame);
So I can call it every 33 ms for example but I need the pjmedia_vid_dev_stream object. I only get a pjmedia_stream with the help of the callback on_stream_created(pjsua_call_id call_id, pjmedia_stream *strm, unsigned stream_idx, pjmedia_port **p_port).


Another solution could be to add an appropriate callback in PjSIP but it's tricky to change the source code of the lib and I dont really know how to do it.


Thank you very much :)
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20120703/fa110972/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