ip-camera

Android App to Stream IP Camera using P2P mode over Mobile port?

China☆狼群 提交于 2019-12-07 01:46:42
问题 I am trying to stream the video via IP camera on an Android App. I have been successful to get the video using the following: RTSP using Media Player and Surface View. RTSP using Video View. Redirecting to VLC for streaming the video. Redirecting to Native Video Player for streaming the video. Now, all these cases are working but with a lag of 7-8 seconds on average even over the local network. I see some apps that steam without any lag even on remote network, that use mobile port (18600) .

RTSP stream in android with username and password

我的未来我决定 提交于 2019-12-06 14:21:28
问题 My task is to create an android application in android to check some IP cameras of the city. Using the existing RTSP url which is rtsp://admin:pms7112@xxx.xx.xx.xxx:554/cam/realmonitor?channel=1&subtype=0 I can get the stream in VLC player but no luck in android. I have tried videoview native player and media player . Almost every solution gave me MediaPlayer: setDataSource IOException happend : java.io.FileNotFoundException: No content provider: rtsp://... Should this problem happen because

IP Camera - Streaming video with the basic authentication on Chrome

◇◆丶佛笑我妖孽 提交于 2019-12-06 12:43:28
问题 I have an Amcrest IP Camera. I would like to stream video to my web page. Its url is rtsp://mycamera.com:5554/stream In order to get the stream of the camera, the camera has a following API http://mycamera.com/video.mjpg It requires the basic authentication to work. By formatting the URL and putting it into the image tag like below, I can make it work on Firefox, Safari <img src="http://username:password@mycamera.com/video.mjpg" /> However, Chrome (v.40 on mine) does not allow this kind of

Access IP camera with OpenCV

风格不统一 提交于 2019-12-06 01:04:01
问题 Can't access the video stream. Can any one please help me to get the video stream. I have searched in google for the solution and post another question in stack overflow but unfortunately nothing can't solve the problem. import cv2 cap = cv2.VideoCapture() cap.open('http://192.168.4.133:80/videostream.cgi?user=admin&pwd=admin') while(cap.isOpened()): ret, frame = cap.read() cv2.imshow('frame', frame) if cv2.waitKey(1) & 0xFF == ord('q'): break cap.release() cv2.destroyAllWindows() 回答1: You

Android App to Stream IP Camera using P2P mode over Mobile port?

僤鯓⒐⒋嵵緔 提交于 2019-12-05 06:03:21
I am trying to stream the video via IP camera on an Android App. I have been successful to get the video using the following: RTSP using Media Player and Surface View. RTSP using Video View. Redirecting to VLC for streaming the video. Redirecting to Native Video Player for streaming the video. Now, all these cases are working but with a lag of 7-8 seconds on average even over the local network. I see some apps that steam without any lag even on remote network, that use mobile port (18600) . This port is normally associated with P2P mode on a camera.(This assumption is purely based on my

Recording IP Camera stream with FFMPEG

流过昼夜 提交于 2019-12-05 04:29:34
问题 Hey I am trying to record the IP camera stream using FFMPEG . But it is giving me Input/Output error . Here is the command ffmpeg -i http://admin:@ip:81/livestream.cgi E:\Video\my.h264 My camera is H264 encoded. Now Please help how to remove this error . Any Help would be appreciated . 回答1: I am saving my content using this and its working fine. Check if the input is correct or try to put the specifics of the video while receiving the stream. ffmpeg -i http://admin:admin@192.2.2.1:554/dd-a -c

RTSP stream in android with username and password

眉间皱痕 提交于 2019-12-04 19:51:08
My task is to create an android application in android to check some IP cameras of the city. Using the existing RTSP url which is rtsp://admin:pms7112@xxx.xx.xx.xxx:554/cam/realmonitor?channel=1&subtype=0 I can get the stream in VLC player but no luck in android. I have tried videoview native player and media player . Almost every solution gave me MediaPlayer: setDataSource IOException happend : java.io.FileNotFoundException: No content provider: rtsp://... Should this problem happen because the username and password is in the string ? how could you add the username and password as query

IP Camera - Streaming video with the basic authentication on Chrome

僤鯓⒐⒋嵵緔 提交于 2019-12-04 19:21:32
I have an Amcrest IP Camera. I would like to stream video to my web page. Its url is rtsp://mycamera.com:5554/stream In order to get the stream of the camera, the camera has a following API http://mycamera.com/video.mjpg It requires the basic authentication to work. By formatting the URL and putting it into the image tag like below, I can make it work on Firefox, Safari <img src="http://username:password@mycamera.com/video.mjpg" /> However, Chrome (v.40 on mine) does not allow this kind of URL, the browser will promt the user password form to be filled, or simply refuses the request. Setting

How to discover onvif devices in C#

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 18:21:12
问题 I'm developing an application that will probe ONVIF devices attached on network for auto-discovery. According to ONVIF Core specification SOAP format of Probe message is : <?xml version="1.0" encoding="UTF-8"?> <e:Envelope xmlns:e="http://www.w3.org/2003/05/soap-envelope" xmlns:w="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:d="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:dn="http://www.onvif.org/ver10/network/wsdl"> <e:Header> <w:MessageID>uuid:84ede3de-7dec-11d0-c360

Access IP camera with OpenCV

巧了我就是萌 提交于 2019-12-04 06:12:49
Can't access the video stream. Can any one please help me to get the video stream. I have searched in google for the solution and post another question in stack overflow but unfortunately nothing can't solve the problem. import cv2 cap = cv2.VideoCapture() cap.open('http://192.168.4.133:80/videostream.cgi?user=admin&pwd=admin') while(cap.isOpened()): ret, frame = cap.read() cv2.imshow('frame', frame) if cv2.waitKey(1) & 0xFF == ord('q'): break cap.release() cv2.destroyAllWindows() You can use urllib to read frames from video stream. import cv2 import urllib import numpy as np stream = urllib