ip-camera

Playing RTSP with python-gstreamer

荒凉一梦 提交于 2019-11-27 13:49:45
I use gstreamer for playing RTSP stream from IP cameras (like Axis.) I use a command line like this: gst-launch-0.10 rtspsrc location=rtsp://192.168.0.127/axis-media/media.amp latency=0 ! decodebin ! autovideosink and it work fine. I want to control it with a gui in pygtk so I use the gstreamer python bindings. I've wrote this piece of code: [...] self.player = gst.Pipeline("player") source = gst.element_factory_make("rtspsrc", "source") source.set_property("location", "rtsp://192.168.0.127/axis-media/media.amp") decoder = gst.element_factory_make("decodebin", "decoder") sink = gst.element

IP Camera access using OpenCV

对着背影说爱祢 提交于 2019-11-27 13:16:29
问题 The code given below is for accessing an Axis IP camera using OpenCV. On running the program it first displays "Error in opening cap_ffmpeg_impl..." and then it displays Camera not found. #include <opencv\cv.h> #include <opencv2\highgui\highgui.hpp> #include <opencv2\imgproc\imgproc.hpp> #include <iostream> #include <stdio.h> using namespace std; using namespace cv; int main() { Mat frame; namedWindow("video", 1); VideoCapture cap("http://IPADDRESS/video.mjpg"); if(!cap.isOpened()) { cout<<

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

IP Camera stop streaming after some time

六眼飞鱼酱① 提交于 2019-11-27 08:52:42
问题 I am working on one application where I want to use IP camera for displaying video streaming and and some other major operations on image captured by the IP Camera . Libraries used in Camera capture For Camera Capture : Emgu.CV Library Below is the code which I am using in C#. Variable Declaration private Capture capture; //takes images from camera as image frames private Emgu.CV.UI.ImageBox img; // Dynamic Picture Controls private int nCam; // no of cameras Code for Processing Image private

ONVIF - beginning of Device discovery

一个人想着一个人 提交于 2019-11-27 06:57:49
问题 I am planning to do a java onvif application. I have created a new project and generated sources from devicemgmt.wsdl.Also generated the classes from remote discovery.wsdl. How can I discover a device in a network using theses generated classes? Thanks for any help. 回答1: devicemgmt.wsdl is not related to discovery process, the ONVIF discovery process is based on http://specs.xmlsoap.org/ws/2005/04/discovery it use SOAP over UDP. If you are using apache-cxf, this can be achieve using org

Use an IP-camera with webRTC

老子叫甜甜 提交于 2019-11-27 05:35:41
问题 I want to use an IP camera with webrtc. However webrtc seems to support only webcams. So I try to convert the IP camera's stream to a virtual webcam. I found software like IP Camera Adapter, but they don't work well (2-3 frames per second and delay of 2 seconds) and they work only on Windows, I prefer use Linux (if possible). I try ffmpeg/avconv: firstly, I created a virtual device with v4l2loopback (the command was: sudo modprobe v4l2loopback ). The virtual device is detected and can be feed

Receiving RTSP stream using FFMPEG library

大兔子大兔子 提交于 2019-11-27 00:06:28
I have an IPCamera on my LAN streaming video using RTSP. I have been able to capture and display it successfully using ffplay command: ffplay rtsp://admin:123456@192.168.2.50:7070 (with authentication) So I would like to achieve the same using programming in C/C++ using ffmpeg library. I guess this must be possible. So let me phrase two simple questions : How do I receive the stream in a C/C++ program using FFMPEG library? (just provide some URL/tutorial, as google was not helpful) How do I display the received video? (same here, some good URL to direct me). For rtsp streams the following is

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

Playing RTSP with python-gstreamer

断了今生、忘了曾经 提交于 2019-11-26 16:19:09
问题 I use gstreamer for playing RTSP stream from IP cameras (like Axis.) I use a command line like this: gst-launch-0.10 rtspsrc location=rtsp://192.168.0.127/axis-media/media.amp latency=0 ! decodebin ! autovideosink and it work fine. I want to control it with a gui in pygtk so I use the gstreamer python bindings. I've wrote this piece of code: [...] self.player = gst.Pipeline("player") source = gst.element_factory_make("rtspsrc", "source") source.set_property("location", "rtsp://192.168.0.127

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