How to get video frames?

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

 



Thank you very much for your solution, i'm gonna try and come back to you if i fail to set a custom callback.


If anyone has another idea, please dont hesitate :)


From: frogersik@xxxxxxxxx
To: pjsip at lists.pjsip.org
Date: Thu, 5 Jul 2012 09:40:11 +0200
Subject: Re: How to get video frames?














Hi,

I know that my solution  is not
effective but it works very well. so I gets frames from sdl_device . First I
hide all windows by  ?SDL_HideWindow(strm->window);? in
?sdl_create_rend()?, then I gets frames by my own callback in
method ?put_frame(?)?.  

To recognize which windows are for which
calls (or maybe previews) I use SDL_GetWindowWMInfo(stream->window,
&sysWMinfo) and then I send sysWMinfo.info.win.window in callback, where
sysWMinfo is SDL_SysWMinfo. For me it?s enough. 

I think that, you could use something
similar to other devices? Or you can write your own devices which will be
do itJ. it is highly likely, that there is a more efficient solution but I
don?t have time to find and testing it (maybe in vid_stream.c)

Good luck

Andrew

 







_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip at lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20120705/584d4968/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