c# Recive UDP steam whit Emgu.CV.runtime.windows 4.5.3.4721 #627
Replies: 5 comments
-
|
can someone help me? Thanks |
Beta Was this translation helpful? Give feedback.
-
|
This may be useful: When creating the videocapture, try to use FFMPEG backend and see if that helps. Please also make sure the udp stream can be viewed from other apps before trying to load it with Open CV / Emgu CV. |
Beta Was this translation helpful? Give feedback.
-
|
Thank for help. ffmpeg -y -f dshow -r 25 -video_size 1920x1080 -pixel_format uyvy422 -i video="Decklink Video Capture" -s 640x480 -c:v libxvid -r 25 -an -f mpegts "udp://127.0.0.1:2001" |
Beta Was this translation helpful? Give feedback.
-
|
Good to know. Thank you for the update. |
Beta Was this translation helpful? Give feedback.
-
|
How can i fisheye return to this example https://stackoverflow.com/questions/49770563/virtual-ptz-camera-via-physical-fisheye-camera-and-open-cv |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I'm triyng to recive a UDP stream from IP camera.
If i use this line:
capture = new Emgu.CV.VideoCapture(@"D:\3.mxf");
i see my video file corretcly.
If i use this line:
capture = new Emgu.CV.VideoCapture("udp://127.0.0.1:2001");
i can't see anything
This is my code:
if (capture == null)
{
capture = new Emgu.CV.VideoCapture(@"D:\3.mxf");
capture.ImageGrabbed += CaptureImmageGrabber;
capture.Start();
}
private void CaptureImmageGrabber(object sender, EventArgs e)
{
textBox1.AppendText("xx");
try
{
Mat m = new Mat();
capture.Retrieve(m ,0);
pictureBox1.Image = m.ToImage<Bgr, byte>().ToBitmap();
Thread.Sleep(5);
}
catch (Exception ex)
{
}
}
Thanks in advance for help
Beta Was this translation helpful? Give feedback.
All reactions