ip-camera

IP camera video streaming using openCV in VC++

狂风中的少年 提交于 2019-12-09 02:04:02
问题 I have never written VC++ apps and now i am assigned a task of capturing IP camera and saving as files on the harddisk. i was surfing for last 2 days but cant find any suitable link or code for the same. the sample code i found on the net, captures webcam but nothing relevent to reading video streams on rtsp protocols with credentials. please help me for this.. Thanks & Regards 回答1: The below is the code snippet which accesses a public ip camera, which works fine for me. int main(int argc,

warning: Could not find codec parameters (../../modules/highgui/src/cap_ffmpeg_impl.hpp:540)

柔情痞子 提交于 2019-12-09 01:27:04
问题 I am trying to display the video feed from IP camera getting the following error warning: Could not find codec parameters (../../modules/highgui/src/cap_ffmpeg_impl.hpp:540) Here's the code for the same. #include <stdio.h> #include <opencv2/opencv.hpp> #include <iostream> using namespace cv; using namespace std; int main(int, char**) { VideoCapture vcap; Mat image; // This works on a D-Link CDS-932L const string videoStreamAddress = "http://admin:admin123@172.41.20.55:80/? action=stream?dummy

OpenCV IP camera application crashes [h264 @ 0xxxxx] missing picture in access unit

ⅰ亾dé卋堺 提交于 2019-12-08 16:23:41
问题 I have an opencv application in cpp. It captures video stream and saves it to video files with the simple constructs from opencv. It works perfectly with my webcam. But, it crashes maybe after about ten seconds, while I run it to capture the stream from IP Camara. My compile command is: g++ -O3 IP_Camera_linux.cpp -o IP_Camera `pkg-config --cflags --libs opencv` My Stream from IP cam is accessed like this: const string Stream = "rtsp://admin:xxxx@192.168.0.101/"; It does run perfectly, shows

How to deal with cv::VideoCapture decode errors?

旧街凉风 提交于 2019-12-08 15:35:15
问题 I'm streaming H264 content from an IP camera using the VideoCapture from OpenCV (compiled with ffmpeg support). So far things work ok, but every once in a while I get decoding errors (from ffmpeg I presume): [h264 @ 0x103006400] mb_type 137 in I slice too large at 26 10 [h264 @ 0x103006400] error while decoding MB 26 10 [h264 @ 0x103006400] negative number of zero coeffs at 25 5 [h264 @ 0x103006400] error while decoding MB 25 5 [h264 @ 0x103006400] cbp too large (421) at 35 13 [h264 @

ONVIF api capture image in C#

安稳与你 提交于 2019-12-08 04:55:07
问题 I have an ONVIF ip camera. I want to to capture an image from the camera so that I can process that image and save it to the file system. I found out that there is an onvif api which provides a method GetSnapshotUri which should provide me with an image snapshot: http://www.onvif.org/onvif/ver10/media/wsdl/media.wsdl I managed to import this api in visual studio by adding a service reference to it: How do I construct a client to call GetSnapshotUri from this service? 回答1: So, after lots of

PHP CURLOPT_WRITEFUNCTION doesn't appear to be working

笑着哭i 提交于 2019-12-08 03:49:46
问题 I'm trying to read just one chunk of a stream of data using curl. Ideally I would like to just retreive the first image in the stream and write that to a jpg file. I'm attempting to do this using WRITEFUNCTION and returning -1 if the length of the stream > say 20000. function receiveResponse($ch,$string) { $length = strlen($string); if($length >= 20000) { return -1; } return $length; } $ch = curl_init('http://<url>/videostream.cgi'); curl_setopt($ch, CURLOPT_USERPWD, '<user>:<password>');

IP camera RTSP address

廉价感情. 提交于 2019-12-08 02:01:26
问题 I have IP camera and I don't know it's full correct url address to RTSP stream. There is port only in RTSP settings but 192.168.1.132:554 is not enough as I understood. VLC says that rtsp stream is not found. How can I figure out correct url address? 回答1: How can I figure out correct url address? Ask hardware vendor for documentation on this (the best solution) As most cameras have a built-in web server and web client software to interact with the camera. Chances are that web client itself

capturing video from ip camera

独自空忆成欢 提交于 2019-12-08 01:10:31
问题 I am trying to capture video from ip camera into my application , its giving exception com.sun.image.codec.jpeg.ImageFormatException: Not a JPEG file: starts with 0x0d 0x0a at sun.awt.image.codec.JPEGImageDecoderImpl.readJPEGStream(Native Method) at sun.awt.image.codec.JPEGImageDecoderImpl.decodeAsBufferedImage(Unknown Source) at test.AxisCamera1.readJPG(AxisCamera1.java:130) at test.AxisCamera1.readMJPGStream(AxisCamera1.java:121) at test.AxisCamera1.readStream(AxisCamera1.java:100) at test

Black screen while trying to stream IP camera in android

时光毁灭记忆、已成空白 提交于 2019-12-07 17:52:07
问题 I’m developping an android app to monitor some IP cameras. I’m using the MjpegView Class to stream the video. I’ve three cameras. - Camera 1: A public camera i found on internet, without user/password. - Camera 2: A public camera but this one require username/password. - Camera 3: The camera I’m going to use finally in my app. It will also ask for credentials. The code in my main activity is the following: public class MainActivity extends Activity { private MjpegView mv; @Override protected

stream live video from IP Cams in iPhone SDK?

限于喜欢 提交于 2019-12-07 03:05:33
I have to develop plug-in module which will allow us to stream live video from IP Cams if the IP of the cameras are available. The format and encoding for the same is: MPEG4 RTSP/RTP but I dont know from where to start. I have search in many site, unable to find any thing related. while browsing the Apples doc's, I found AVFoundation is used to stream live video from IP Cam's. UPDATE I found this from GITHUB but dont know How to implement it in my App. Please help me by sample code or related app and suggest me to overcome this. thanks in Advance. Dipan Mehta I am adding some references for