Generate video output (streaming)
Hi
I'm working in a proof of concept and I have a computer with a webcam and I need to stream video from that computer but after having processed it with OpenCV.
I have an application that reads the video and draw rectangles above detected faces, and I need to stream that output (the video with the detected faces) to the network.
I haven't found a direct way of doing this. I'd like the video to be encoded in mp4 or something that's rendered in HTML5 but I can transcode it if it's in a different format.
Can you give me some guidance?
Platform: OS X / Python
Thanks in advance
See this answer might be helpful.
and here is a simple(single-thread mjpg) idea in python
Thanks guys, that shed some light and I'm back on track!
I think there is one more thing you can do about this. You can use the 'appsrc' element in GStreamer to do this. I haven't tried it out myself. But I just know its possible. Check it out if you are still exploring. :)
I will take a look at that since I'm now looking for a performant (not a word, sorry) way of streaming a video in a format that's suitable for all modern browsers (IE doesn't render mjpeg streams).