'AForge MJPEGStream Received an invalid status line
I'm trying to get a mjpeg camera stream that is coming from a raspberry pi connected to my network, i have no problem streaming the video from VLC with the connection string "tcp/mjpeg://192.168.5.2:5000", but when i try to do it with AForge, i get an error saying: "Received an invalid status line". What am i doing wrong here?
public MainWindow()
{
InitializeComponent();
stream = new MJPEGStream("http://192.168.5.2:5000");
stream.NewFrame += new NewFrameEventHandler(video_NewFrame);
stream.VideoSourceError += new VideoSourceErrorEventHandler(videoSource_Error);
stream.Start();
}
private void video_NewFrame(object sender, NewFrameEventArgs eventArgs)
{
Bitmap bmp = (Bitmap)eventArgs.Frame.Clone();
ImageBox.Source = BitmapSourceConvert.CreateBitmapSourceFromBitmap(bmp);
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
