mjpeg

Cross-browser solution for displaying MJPEG stream

痞子三分冷 提交于 2019-11-27 12:25:27
Is there a lightweight, free, and reliable way to display MJPEG in a cross-browser environment? I'm trying to display an MJPEG stream from an Axis 2120 IP camera on a site that I'm developing, and I've found that this is quite reliable in current versions of Firefox. However, after some testing I've found that IE, Opera and Chrome all have varying degrees of trouble doing this (no Mac access, so I'm not sure about Safari). Internet Explorer has no support for MJPEG and doesn't work at all. Opera takes literally 10-15 seconds to display anything after the initial GET was sent. Chrome works

MJPEG streaming and decoding

北城余情 提交于 2019-11-27 11:03:43
I want to receive JPEG images from an IP camera (over RTSP). For this, I tried cvCreateFileCapture_FFMPEG in OpenCV. But ffmpeg seems to have some problem with the MJPEG format of the streaming (since it automatically tries to detect the streaming info) and I end up with the following error mjpeg: unsupported coding type I, then, decided to use live555 for streaming. Till now, I can successfully establish streaming and capture (non-decoded) images through openRTSP. The question is how can I do this in my application, e.g., in OpenCV. How can I use openRTSP in OpenCV to get images and save them

creating my own MJPEG stream

↘锁芯ラ 提交于 2019-11-27 06:08:51
问题 I'm trying to create an MJPEG stream, I have a series of jpegs that I want to put together into a stream so that a user can just hit a URL and get an mjpeg stream. I've been trying for the last few days to get this to work, and it may just not be possible. I've brought up ethereal and listened to the packets coming from an axis camera on the net somewhere, and tried to mimmick it. I originally tried using WCF, and returning a "stream" but then later found out that I would need to set the

Canvas tainted by cross-origin data

柔情痞子 提交于 2019-11-27 04:25:23
I'm loading a motion jpeg from third-party site, which I can trust. I'm trying to getImageData() but the browser (Chrome 23.0) complains that: Unable to get image data from canvas because the canvas has been tainted by cross-origin data. There are some similar questions on SO, but they are using local file and I'm using third party media. My script runs on a shared server and I don't own the remote server. I tried img.crossOrigin = 'Anonymous' or img.crossOrigin = '' (see this post on the Chromium blog about CORS ), but it didn't help. Any idea on how can I getImageData on a canvas with cross

How to parse mjpeg http stream from ip camera?

混江龙づ霸主 提交于 2019-11-26 19:30:48
Given below is the code written for getting live stream from an IP Camera. from cv2 import * from cv2 import cv import urllib import numpy as np k=0 capture=cv.CaptureFromFile("http://IPADDRESS of the camera/axis-cgi/mjpg/video.cgi") namedWindow("Display",1) while True: frame=cv.QueryFrame(capture) if frame is None: print 'Cam not found' break else: cv.ShowImage("Display", frame) if k==0x1b: print 'Esc. Exiting' break On running the code the output that I am getting is: Cam not found Where am I going wrong? Also, why is frame None here? Is there some problem with the conversion? Zaw Lin import

MJPEG streaming and decoding

别说谁变了你拦得住时间么 提交于 2019-11-26 17:58:56
问题 I want to receive JPEG images from an IP camera (over RTSP). For this, I tried cvCreateFileCapture_FFMPEG in OpenCV. But ffmpeg seems to have some problem with the MJPEG format of the streaming (since it automatically tries to detect the streaming info) and I end up with the following error mjpeg: unsupported coding type I, then, decided to use live555 for streaming. Till now, I can successfully establish streaming and capture (non-decoded) images through openRTSP. The question is how can I

How to disable output buffering in PHP

此生再无相见时 提交于 2019-11-26 14:35:32
I wrote a simple relay script that connects to a web camera and reads from the socket, and outputs this data using the print function. The data is MJPG data with boundaries already setup. I just output the data that is read. The problem is PHP seems to be buffering this data. When I set the camera to 1 FPS, the feed will freeze for 7-8 seconds, then quickly display 8 frames. If I set the resolution to a huge size, the camera move at more or less 1 frame per second. I assume then some buffering is happening (since huge sizes fill the buffer quickly, and low sizes don't), and I can't figure out

Android ICS and MJPEG using AsyncTask

瘦欲@ 提交于 2019-11-26 12:07:32
I modified the MJPEG viewer code from Android and MJPEG to work using an AsyncTask (and thus work on Ice Cream Sandwich (ICS), 4.0.4) and here is my code. If anyone has any suggestions on how to optimize, cleanup, or do something more proper with the code please let me know. Two issues I'd appreciate help addressing: If you have the device on a stream then lock the screen and unlock the screen it does not resume playing until you either kill and resume the app or rotate the screen. All my attempts at using OnResume() to do something or other resulted in app crashes. In particular I'd like to

Canvas tainted by cross-origin data

时光毁灭记忆、已成空白 提交于 2019-11-26 11:10:28
问题 I\'m loading a motion jpeg from third-party site, which I can trust. I\'m trying to getImageData() but the browser (Chrome 23.0) complains that: Unable to get image data from canvas because the canvas has been tainted by cross-origin data. There are some similar questions on SO, but they are using local file and I\'m using third party media. My script runs on a shared server and I don\'t own the remote server. I tried img.crossOrigin = \'Anonymous\' or img.crossOrigin = \'\' (see this post on

How to parse mjpeg http stream from ip camera?

不羁岁月 提交于 2019-11-26 06:59:35
问题 Given below is the code written for getting live stream from an IP Camera. from cv2 import * from cv2 import cv import urllib import numpy as np k=0 capture=cv.CaptureFromFile(\"http://IPADDRESS of the camera/axis-cgi/mjpg/video.cgi\") namedWindow(\"Display\",1) while True: frame=cv.QueryFrame(capture) if frame is None: print \'Cam not found\' break else: cv.ShowImage(\"Display\", frame) if k==0x1b: print \'Esc. Exiting\' break On running the code the output that I am getting is: Cam not