Ask Your Question
0

RE Streaming to webserver Visual Studio 2017

asked 2017-09-08 15:04:50 -0600

AMBTB gravatar image

It is safe to say I have read nearly every post on Google about streaming the frames captured via OpenCV over the last few years :) I have only ever got a couple of things to work and they are terrible.

I am working now on a C++ project in Visual Studio 2017, I usually work in Python) I have a time restriction so I have to ask for some help on this, as have not been able to get a single example working over the last few weeks now.

What I need to achieve is simple or should be, the frames are captured and processed, and then streamed to a local server that can be connected to via a browser.

I have tried creating mjpg to then try and use something like mjpeg_streamer, but videowriter works with none of the available codecs I have, I installed FFDShow but none of the codecs installed with that program show up in openCV when using -1 in the codec section, I cannot even write avi files, this is not an issue on this one laptop, I have never been able to on all the devices in my office. I have looked literally everywhere for a solution for a stream, please could someone put me out of my misery please :)

There must be a working example somewhere that shows how to stream the feed on a local server with C++. Any suggestions please.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2017-09-10 17:12:40 -0600

AMBTB gravatar image

I have now solved this using a combination of ffmpeg, node js and websockets.

edit flag offensive delete link more
0

answered 2017-09-09 04:39:02 -0600

It is safe to say I have read nearly every post on Google about streaming the frames captured via OpenCV over the last few years :) I have only ever got a couple of things to work and they are terrible.

Ah the most reoccurring issue on this forum besides face detection. Simply put, OpenCV is NOT designed to work as streaming software and thus the best advice I can give is, take a second library for the streaming. Thats about every single one of us had to do, to get a robust and stable solution.

edit flag offensive delete link more

Comments

1

Thanks for the reply. I fully understand that, I know what OpenCV is, I was asking about solutions, I cannot find an example of anything that works, I figured that on here there would be people that have worked out a working solution, I have not been able to find one yet.

AMBTB gravatar imageAMBTB ( 2017-09-09 04:50:14 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-09-08 15:04:50 -0600

Seen: 334 times

Last updated: Sep 10 '17