Generate video output (streaming)

asked 2014-01-07 11:07:33 -0600

Rodrigo Uroz gravatar image

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

edit retag flag offensive close merge delete

Comments

1

See this answer might be helpful.

Haris gravatar imageHaris ( 2014-01-08 01:20:37 -0600 )edit
1

and here is a simple(single-thread mjpg) idea in python

berak gravatar imageberak ( 2014-01-08 04:22:41 -0600 )edit

Thanks guys, that shed some light and I'm back on track!

Rodrigo Uroz gravatar imageRodrigo Uroz ( 2014-01-08 13:22:50 -0600 )edit

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. :)

Prasanna gravatar imagePrasanna ( 2014-01-09 08:28:38 -0600 )edit

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).

Rodrigo Uroz gravatar imageRodrigo Uroz ( 2014-01-14 06:57:56 -0600 )edit