IpCamera | Openhab 2 that allows you to use IP Cameras | Camera library
kandi X-RAY | IpCamera Summary
kandi X-RAY | IpCamera Summary
A binding for Openhab 2 that allows you to use IP Cameras without the need to disable authentication.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of IpCamera
IpCamera Key Features
IpCamera Examples and Code Snippets
Community Discussions
Trending Discussions on IpCamera
QUESTION
I try to add 3 buttons inside a Gtk.Box, this Box was created in my Window design (with Glade). See the code;
...ANSWER
Answered 2021-Apr-26 at 20:07The problem is not that you're adding multiple buttons, but that you're trying to re-use a GtkImage in multiple GtkButtons. Rather than trying to re-use the widget, you should create a new one each time.
In other words, your current code does this:
QUESTION
I am developing a camera application in Android for this I need to pair any ipcamera to a WI-FI network. For pairing process I need to scan a QR code which contains SSID and PASSWORD of current connected WI-FI network. I am able to get SSID by means of WifiManager but not able to get password.
Any help is useful "Thanks In Advance".
...ANSWER
Answered 2021-Jan-06 at 06:41As the Wi-Fi password is kept in system, there is no way to access it without root! Unfortunately, you will have to get the user to input the password manually as you cannot get it from the device.
QUESTION
First this is not a duplicate I m not reading from camera stream. so I have not found any tutorial or documentation in this subject.
I m building a server client application, my server is using ffmpeg to transcode and stream some ipcameras content, and my electron client is consuming and displaying this cameras in my app.
to do so I have the following implementation
a player adding function
...ANSWER
Answered 2020-Apr-25 at 07:26I think the solution is in events Hls.Events.BUFFER_APPENDING
or Hls.Events.BUFFER_APPENDED
.
BUFFER_APPENDING is fired when a segment append to the buffer - data: { segment : segment object }
BUFFER_APPENDED is fired when appending a segment to the buffer data is done: { parent : segment parent that triggered BUFFER_APPENDING, pending : nb of segments waiting for appending for this segment parent, timeRanges : { video: TimeRange, audio: TimeRange }
I couldn't test it, but you can try:
QUESTION
I'm about to play an fmp4 in HTML5 video element.
I was successfully created a websocket to pass ffmpeg's output into MSE.
However when I try to open the page in Firefox (72.0.1, 64bit, under Ubuntu 18.04LTS), it always results an error:
...ANSWER
Answered 2020-Jan-23 at 12:40The problem was on the server's side.
With this line:
QUESTION
I am attempting to automate Hikvision camera configuration using the Hikvision IPMD XML API. I am able to retrieve camera data using any of the documented services, but my attempts to change field values are failing. Here's the code I'm using the deviceInfo to change the System Device Name.
...ANSWER
Answered 2020-Jan-22 at 04:05Almost two and a half years later, the Hikvision camera model I was using is now obsolete and the API has changed again. Because I bought the cameras from Amazon, Hikvision would not provide any support, not even to point me to a valid document on the API. So I turned to a different solution.
I switched to using Ruby and Watir to work with the camera through the web interface. Not surprisingly, this proved difficult because the HTML on each configuration page lacked unique information to select form elements. Still, with enough work, I was able to write a script that fully automated camera configuration. Here are a few key snippets from that script.
QUESTION
I'm trying to call ffmpeg command using subprocess.call() on linux, but I'm unable to get the arguments right. Before hand, I used os.system and it worked, but this method is not recommended.
Using arguments with a dash such as "-i" gets me this error
...ANSWER
Answered 2018-Sep-14 at 14:10You have to split the options:
QUESTION
I have an IPCamera (Dlink DCS930l) connected to a network which requires authentication to access the stream.
Are there any Android libraries or frameworks that have the functionality to access an authenticated network stream?
...ANSWER
Answered 2018-Mar-09 at 05:29I was able to do something similar with a GoPro via Wifi connection.
Method 1: This can be achieved using OpenCV. Based on the type of authentication used, you will need to specify the corresponding protocol, username and password when you provide the IP to access the camera. The syntax required to open the camera stream using OpenCV is provided here (1).
You will need to use OpenCV for Android and JNI bindings to the native C++ OpenCV API. Some sample applications here demonstrate how to make calls to the native API in an Android project.
xuchong has developed a sample Android application demonstrating how to read an mp4 file natively via OpenCV on Android. Update the video path in the MainActivity.java
OnCreate()
method to the IP camera feed with the syntax from (1) to read from a camera requiring authentication.
Method 2: An example application demonstrating an alternative method that does not use OpenCV but instead uses the mjpeg library can be found here.
Method 3: Using just VideoView
, assuming you have a http stream using Basic Auth for authentication, you can set headers when you provide the URI link in the following way:
QUESTION
I cannot access ipcamera on opencv, I'm using ipcctrl app to view camera preview and it's working fine, but when I try to paste the URL into my code it displays warning: Error opening file (/build/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:578) what's the problem here ?here is the proof that it is working fine in ipcctrl
...ANSWER
Answered 2017-Oct-10 at 01:09I already solved this problem, turns out that I have an incorrect URL for the videostream address, the hard part is my camera is not that known and had a little documentations about how to configure it. I used the ispy app to generate a proper URL for my kedacom camera, tested it on VLC and on the app and viola ! it worked.
QUESTION
I'm trying to open an IP camera in OpenCV using gstreamer pipleine. I can open the IPcamera using Gstreamer in terminal, using :
gst-launch-1.0 -v rtspsrc location="rtsp://192.168.0.220:554/user=admin&password=admin&channel=1&stream=0.sdp?real_stream--rtp-caching=10" latency=10 ! rtph264depay ! h264parse ! omxh264dec ! videoconvert ! xvimagesink
Now with this how can I open the same camera in OpenCV videoCapture()
.
Any help is appreciated.
...ANSWER
Answered 2017-Apr-04 at 12:07You can copy the same pipe and use it in VideoCapture (if you built OpenCV with gstreamer modules).
Important point is you need to finish the pipe with an appsink
element.
QUESTION
I use code as below to download Image with query string, it is no any problems.
...ANSWER
Answered 2017-Feb-23 at 15:11With the PIL Image module you can do like this
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install IpCamera
Use the cameras URL so it passes from the camera to your end device ie a tablet, without passing any data through the openHAB server. This is always the best option if it works.
Request a snapshot with the url http://192.168.xxx.xxx:54321/ipcamera.jpg. The IP is for your Openhab server not the camera, and 54321 is the SERVER_PORT number that you specified in the bindings setup. If you find the snapshot is old you can set the gif preroll to a number above 0 and this forces the camera to keep updating the stored jpg in ram. This file does not exist on disk and is served out of ram to keep disk writes to a minimum with this binding. The binding can serve a jpg file much faster than a camera can directly, as a camera waits for a keyframe, then has to compress the data, before it can finally be sent. All of this takes time giving you a delay compared to serving the file from Ram and can make a sitemap or habpanel UI feel slow to respond if the pictures take time to appear. The ipcamera.jpg can also be cast, as most cameras can not cast their snapshots without using the binding.
Use the http://192.168.xxx.xxx:54321/snapshots.mjpeg to request a stream of snapshots to be delivered in mjpeg format. See the streaming section for more info.
Use the update GIF feature and use a preroll value >0. This creates a number of snapshots in the ffmpeg output folder called snapshotXXX.jpg where XXX starts at 0 and increases each poll amount of time. This means you can get a snapshot from an exact amount of time before, on, or after triggering the GIF to be created. Handy for cameras which lag due to slow processors and buffering, or if you do not want a hand blocking the image when the door bell was pushed. These snapshots can be fetched either directly as they exist on disk, or via this url format. http://192.168.xxx.xxx:54321/snapshot0.jpg Where the IP is your Openhab server and the port is what is setup in the binding as the SERVER_PORT.
The Image channel can be used but is not recommended unless the poll time is above 8 seconds as the image data passes through the event bus of Openhab that can create bottlenecks.
Also worth a mention is that you can off load cameras to a software package running on a separate hardware server. These have their advantages, but can be overkill depending on what you plan to do with your camera/s. Motion, Shinobi and Zoneminder are opensource projects worth checking out.
To create a tmpfs of 20mb at /tmpfs/ run this command to open the file for editing. Recommend using 20Mb per camera that uses this location although it could use less than half that amount if carefully streamlined for less ram. If using the ffmpeg -hls_wrap wrap option (causes issues for my Home Hub), you can get away with 5Mb per camera. Enter and save this at the bottom of the file using ctrl X when done.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page