[Live-devel] DeviceSource and OpenCV

Ross Finlayson finlayson at live555.com
Sun Jan 15 04:30:24 PST 2012


> I am creating an application using OpenCV. There is a need to use the video stream. I created a class based on DeviceSource.Based on the debug output cycle frame reception from the camera will not start. If i need to use event triggers, I do not understand how to do it.

You need to arrange for your "signalNewFrameData()" function to be called whenever a new frame (or, in your case, a new H.264 NAL unit) becomes available.  That is something that you will have to figure out yourself how to do (because only you understand the environment in which your application will run).

Another thing that's wrong with your code is your "H264VideoCamServerMediaSubsession::createNewStreamSource()" function.  It needs to be feed its input source into a "H264VideoStreamDiscreteFramer" (because "H264VideoRTPSink" expects a "H264VideoStreamFramer" (or a subclass) as input).


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120115/781bab46/attachment-0001.html>


More information about the live-devel mailing list