Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have a project in C# using Emgu.CV.

In my project I have a IP camera with video encoder H.264. The encode gave 2 strings to access the camera video,
1) http://192.168.0.11:35271/image1
2) rtsp://192.168.0.11/stream1.sdp

With the following code I can access the video and show it in ImageBox

C#
_capture = new VideoCapture("http://192.168.0.11:35271/image1", VideoCapture.API.Any);

which seems MJPEG format

But for the following code I can not access the video and show it in ImageBox in same way,

_capture = new VideoCapture("rtsp://192.168.0.11/stream1.sdp", VideoCapture.API.Any);

which seems H.264.

I need H.264 format to keep the storage low and low bandwidth as ultimately I am going to add radio communication instead of Ethernet cable.

Do anybody have similar issue? Can somebody help please?

I add this code,
var flag = _capture.IsOpened;
Console.WriteLine(flag); //for the rtsp flag = false?

What I have tried:

C#
_capture = new VideoCapture("http://192.168.0.11:35271/image1", VideoCapture.API.Any);// successful further code can show the live stream in an ImageBox

_capture = new VideoCapture("rtsp://192.168.0.11/stream1.sdp", VideoCapture.API.Any); // Not successful

var flag = _capture.IsOpened;
Console.WriteLine(flag); //for the rtsp flag = false?
Posted
Updated 10-Jan-20 7:42am
v2

1 solution

Lots of users are having problems with this, maybe you can try another EMGU version, see: c# - EmguCV capture rtsp ip camera stream ffmpeg - Stack Overflow[^]

Or try this CodeProject article: Stream Player Control[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900