ip-camera

OpenCV cv2.VideoCapture() stopping to read RTSP IP camera

青春壹個敷衍的年華 提交于 2021-02-10 04:45:09
问题 Hello im learning opencv and im reading a ip camera through rtsp:// videoStream = "rtsp://admin:123456@10.0.0.1:554/Streaming/Channels/1" capture = cv2.VideoCapture(videoStream) im reading this stream and im making a facial detection in opencv but after 1 or 2 minutes my script crashes whit a h264 message and my opencv code gives me a error: [h264 @ 0x27e49570] error while decoding MB 55 12, bytestream -12 no video and if i use a webcan it not happening some one can help me whit how is the

PTZ for Onvif IP Camera

久未见 提交于 2021-02-08 08:10:55
问题 I have an application running on Android to connect and view the IP Camera. Now I'm trying to add PTZ support to application. Below are the requirements for PTZ. 1) When user drags the screen to any coordinates on the application, IP Camera should move(pan/tilt) accordingly. 2) When user zoom in/out on the particular area of the application, IP Camera should zoom that area. Problems I'm facing are. 1) I'm not able to map the x,y coordinates of the user action to Onvif pan/tilt vector. Because

PTZ for Onvif IP Camera

a 夏天 提交于 2021-02-08 08:06:16
问题 I have an application running on Android to connect and view the IP Camera. Now I'm trying to add PTZ support to application. Below are the requirements for PTZ. 1) When user drags the screen to any coordinates on the application, IP Camera should move(pan/tilt) accordingly. 2) When user zoom in/out on the particular area of the application, IP Camera should zoom that area. Problems I'm facing are. 1) I'm not able to map the x,y coordinates of the user action to Onvif pan/tilt vector. Because

How to make .avi, .mp4 file with jpeg frames?

痴心易碎 提交于 2021-02-05 06:43:11
问题 I'm working with IP camera, and I have got Jpeg frames and audio data (PCM) from camera. Now, I want to create video file (both audio and video) under .avi or .mp4 format from above data. I searched and I knew that ffmpeg library can do it. But I don't know how to using ffmpeg to do this. Can you suggest me some sample code or the function of ffmpeg to do it? 回答1: If your objective is to write a c++ app to do this for you please disregard this answer, I'll just leave it here for future

opencv read error:[h264 @ 0x8f915e0] error while decoding MB 53 20, bytestream -7

穿精又带淫゛_ 提交于 2020-08-07 05:43:35
问题 My configuration: ubuntu 16.04 opencv 3.3.1 gcc version 5.4.0 20160609 ffmpeg version 3.4.2-1~16.04.york0 and I built opencv with: cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D PYTHON_EXECUTABLE=$(which python) -D OPENCV_EXTRA_MODULES_PATH=/home/xxx/opencv_contrib/modules -D WITH_QT=ON -D WITH_OPENGL=ON -D WITH_IPP=ON -D WITH_OPENNI2=ON -D WITH_V4L=ON -D WITH_FFMPEG=ON -D WITH_GSTREAMER=OFF -D WITH_OPENMP=ON -D WITH_VTK=ON -D BUILD_opencv_java=OFF -D BUILD_opencv

opencv read error:[h264 @ 0x8f915e0] error while decoding MB 53 20, bytestream -7

一曲冷凌霜 提交于 2020-08-07 05:43:30
问题 My configuration: ubuntu 16.04 opencv 3.3.1 gcc version 5.4.0 20160609 ffmpeg version 3.4.2-1~16.04.york0 and I built opencv with: cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D PYTHON_EXECUTABLE=$(which python) -D OPENCV_EXTRA_MODULES_PATH=/home/xxx/opencv_contrib/modules -D WITH_QT=ON -D WITH_OPENGL=ON -D WITH_IPP=ON -D WITH_OPENNI2=ON -D WITH_V4L=ON -D WITH_FFMPEG=ON -D WITH_GSTREAMER=OFF -D WITH_OPENMP=ON -D WITH_VTK=ON -D BUILD_opencv_java=OFF -D BUILD_opencv

IP Camera with opencv: error ffmpeg

自作多情 提交于 2020-01-17 01:35:06
问题 i am using VIVOTEK IP camera. I am trying to interface it with OPENCV. internet explorer shows fine video at this url, after entering username and password. the code is given below const std::string videoStreamAddress ="http://192.168.100.128/main.html"; //i have also tried "http://username:pasword@192.168.100.128/main.html" but the same //result //and also tried ""http://192.168.100.128" i.e without "main.html" if(!vcap.open(videoStreamAddress)) { std::cout << "Error opening video stream or