4

I'm working on a Project where I capture a Video using OpenCv on a Raspberry Pi and Process it. What I want is to create an Output Stream of this Processed Video. I'm working together on this with a buddy of mine. He creates a Website/Web-server on the device which should be able to view the Stream I create. Is there any way openCV is able to create an Output Stream? I don't want to create a Video nor do i want to write single Frames as "Images" to the File-System because this is way to slow.

hypnomaki
  • 593
  • 9
  • 22
  • I already tried to implement a udp Socket.... but my buddy cant think of any method how to implement data from the socket as video/live stream on the "website" – hypnomaki Sep 29 '15 at 20:12
  • Probably these can help: http://answers.opencv.org/question/26202/generate-video-output-streaming/ http://answers.opencv.org/question/22010/how-sent-a-live-streamudp-of-frames-captured-by-opencv/#22043 http://stackoverflow.com/questions/20205358/how-do-i-stream-an-opencv-video-to-an-html-webpage – Miki Sep 29 '15 at 20:29

1 Answers1

6

In the End I figured out that OpenCV is not capable of creating an Output-Live Video Stream. Its only possible to render a Video to File.

Instead i created my own little Http Motion-JPEG Stream How to Create a HTTP MJPEG Streaming Server With QTcp-Server Sockets?

I also want to Mention that VLC provides a very powerful Backend / libs. C++ LibVLC Create Stream from Frames/Images

Another Soloution could be to use GStreamer if you are on Linux

Community
  • 1
  • 1
hypnomaki
  • 593
  • 9
  • 22