Ask Your Question

how to play live network stream

asked 2013-01-24 04:58:46 -0500

shlem gravatar image

updated 2013-01-24 05:41:12 -0500

Hi. How to play a live network stream by opencv in Windows7?
I spent a lot of time, read forums and documentation, tried everything (udp, multicast udp, rtp, even named pipe), but nothing works.

VideoCapture cap;"udp://:1234); //does not work"udp://; //does not work"rtp://:1234); //does not work"rtp://@:1234); //does not work"rtp://; //does not work"rtp://@; //does not work"\.\pipe\MyPipe); //does not work


edit retag flag offensive close merge delete


^^ please don't make an answer, if youdon't have one..

berak gravatar imageberak ( 2016-06-23 20:06:00 -0500 )edit

3 answers

Sort by ยป oldest newest most voted

answered 2013-01-24 05:59:04 -0500

Daniil Osokin gravatar image

Hi! @sammy have done this some times ago. This should work:"rtp://");
Check details here.

edit flag offensive delete link more



shlem gravatar imageshlem ( 2013-01-24 06:13:23 -0500 )edit

It does not work if your stream is password-protected. The simplest way to test for other errors (misconfiguration, firewall issues) is to try to connect with VLC. IF it works without errors, and without asking for parrsword, it's a good chance it will work for you. The other option is to use ffmpeg directly.

sammy gravatar imagesammy ( 2013-01-25 07:38:39 -0500 )edit

answered 2013-02-08 07:55:25 -0500

pprahul gravatar image

I tried with OpenCV 2.4 with the following code."rtp://");

and it worked. I think you missed a "/" at the end.

edit flag offensive delete link more

answered 2013-02-08 08:11:52 -0500

Network streaming support depends from video decoding back-end that you use. If you use GStreamer or FFMPEG network streaming modules/plug-ins must be installed. If you use FFMPEG plug-in, try to open stream use ffmpeg console tool.

edit flag offensive delete link more


@pprahul can you give me a small piece of complete code. I am new to openCV and is planning to give some vision to my robot

subhendusc gravatar imagesubhendusc ( 2013-08-06 06:00:50 -0500 )edit
Login/Signup to Answer

Question Tools


Asked: 2013-01-24 04:58:46 -0500

Seen: 10,628 times

Last updated: Jun 23 '16