mjpeg

MJPEG stream fails to open in OpenCV 2.4

女生的网名这么多〃 提交于 2019-12-06 12:00:35
问题 I am having an issue getting OpenCV 2.4 to capture from an MJPEG stream from a Raspberry Pi, I have checked the stream URL in a browser and it seems to be working fine, however when I try to open it in OpenCV it seems to hang when I attempt to open it (I get neither the error or success messages on the terminal). cv::VideoCapture vcap; cv::Mat raw_image; const string videoStreamAddress = "http://192.168.0.28:8080/?action=stream"; if(!vcap.open(videoStreamAddress)) { cout<<"Error opening video

Windows Form vs Unity3D HttpWebRequest Performance

£可爱£侵袭症+ 提交于 2019-12-06 11:32:36
I am working on a simple program that grabs image from a remote IP camera. After days of research, I was able to extract JPEG images from MJPEG live stream with sample codes I got. I did a prototype with using Windows Form. With Windows Form, I receive appropriately 80 images every 10 second from the IP camera. Now I ported the code to Unity3D and I get about 2 frames every 10 seconds. So basically about 78 Images are not received . The thing looks like medieval PowerPoint slide show . I am running the function in new Thread just like I did in the Windows Form. I first thought that the problem

Node.js - MJPEG TCP stream to base64 images

泪湿孤枕 提交于 2019-12-06 10:43:08
Based on paparazzo.js lib, I'm trying to get base64 images from a MJPEG stream (streamed over TCP with GStreamer) in a Node.js server, and to send them to the clients via websockets. I think I'm pretty close, but my images are corrupted. Here is the code I'm using : var boundary = "----videoboundary"; var data = ""; var tcpServer = net.createServer(function (socket) { socket.on('data', function(chunk) { var boundaryIndex = chunk.toString().indexOf(boundary); if (boundaryIndex !== -1) { // Get the image's last piece of data : data += chunk.toString().substring(0, boundaryIndex); // Convert the

Frame loss for above FullHD resolution .Is AVI Decompressor transform filter available in MediaFoundation?

﹥>﹥吖頭↗ 提交于 2019-12-06 03:03:18
I'm developing a multimedia streaming application for Desktop using SourceReader MediaFoundation technique. I'm using USB camera device to show streaming. The camera supports 2-video formats: YUY2 and MJPG . For 1980x1080p YUY2 video resolution, receiving only 48fps for 60fps. I fetched YUY2-RGB32 conversion from MSDN page and using in my application ( Note: I didn't use any transform filter for color conversion). For MJPG video format, I used MJPEG Decoder MFT to convert MJPG - YUY2 - RGB32 and then displaying on the window using Direct3D9. For specific resolution, I'm facing framerate drops

Creating a Motion JPEG frame by frame with variable frame-rate

懵懂的女人 提交于 2019-12-05 12:01:19
I'm analyzing a number of solutions to the problem that I have in hand: I'm receiving images from a device and I need to make a video file out of it. However, the images arrive with a somewhat random delay between them and I'm looking for the best way to encode this. I have to create this video frame by frame, and after each frame I must have a new video file with the new frame, replacing the old video file. I was thinking of fixating the frame-rate a little "faster" than the minimum delay that I might get and just repeat the last frame until a new one arrives, but I guess that this solution

MJPEG stream fails to open in OpenCV 2.4

南笙酒味 提交于 2019-12-04 17:48:45
I am having an issue getting OpenCV 2.4 to capture from an MJPEG stream from a Raspberry Pi, I have checked the stream URL in a browser and it seems to be working fine, however when I try to open it in OpenCV it seems to hang when I attempt to open it (I get neither the error or success messages on the terminal). cv::VideoCapture vcap; cv::Mat raw_image; const string videoStreamAddress = "http://192.168.0.28:8080/?action=stream"; if(!vcap.open(videoStreamAddress)) { cout<<"Error opening video stream"<<endl; return -1; } cout<<"Stream opened"<<endl; I am using MJPEG-Streamer to provide the

Frame-by-frame MJPEG streaming with C#/ASP.NET MVC

扶醉桌前 提交于 2019-12-04 09:03:10
I have been trying to setup a MJPEG stream in ASP.NET. I want to retrieve a MJEPG stream from a URL, and send every frame that I get to every connected client. Examples that I have been able to find only read from a set file, instead of a continues stream from URL, and send the entire file through MultiStreamContent . Since I retrieve frame-by-frame, I cannot do this. I would like to know if it is possible to do what I want with ASP.NET MVC. I'm currently using AForge video to retrieve the MJPEG stream from a link. My code for the controller class: using System.Net.Http; using System.Web.Http;

Solutions to 'convert' http traffic to https? Proxy? (relay)

一笑奈何 提交于 2019-12-03 23:40:24
Our app is all HTTPS, but we grab mjpeg streams from low-budget devices that do not support SSL. So, this means that we can either: i. Mix content and have browsers freak out. (Unacceptable since we train users not to trust mixed content pages.) ii. Make the site non-https. (REALLY unacceptable.) I was thinking that we could run a relay on one of our servers, for which the browsers could hit using SSL, this server would then act as a proxy to the non-SSL mjpeg streams. We know the IPs of the cameras (static), so we can check that and guard against dns attacks. And you can't establish a TCP-IP

Read stream from specific link

感情迁移 提交于 2019-12-03 15:19:55
问题 I need to read stream from mjpeg with OpenCV library. In more details, I need to read http://194.126.108.66:8887/ . But when I try to do it with VideoCapture ipCam; ipCam.open("http://194.126.108.66:8887/") I get the error icvOpenAvi_XINE(): Unable to initialize video driver . I have tested this code with another link to mjpeg - http://c-cam.uchicago.edu/mjpg/video.mjpg It works fine. What is the difference between these 2 links? And how to read http://194.126.108.66:8887/ ? 回答1: OpenCV

Motion jpeg in html5 canvas

五迷三道 提交于 2019-12-03 12:18:36
I'm trying to wrap motion jpeg (mjpeg) stream (from webcam) into html5 canvas. I know Safari and Chrome have native support for mjpeg so that I can put it into img to make it work. The reason I want to wrap it in canvas is that I want to do some post processing on it. I know i can use drawImage to load an image (and mjpeg): <html> <body> <canvas id='test_canvas' width='640px' height='480px' style='border:1px solid #d3d3d3'> </canvas> <script language="JavaScript"> var ctx = document.getElementById('test_canvas').getContext('2d'); var img = new Image(); img.onload = function() { ctx.drawImage