onvif | Simple management of onvif IP-devices cameras | Camera library
kandi X-RAY | onvif Summary
kandi X-RAY | onvif Summary
Simple management of onvif IP-devices cameras. onvif is an implementation of ONVIF protocol for managing onvif IP devices. The purpose of this library is convenient and easy management of IP cameras and other devices that support ONVIF standard.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get device struct by name
- get media struct by name
- RunApi runs the api
- Build a Probe Message
- xmlAnalize is used to convert a method struct to XML
- getPTZStructByName by name
- writeUDP is used to create a UDP connection
- sendUDPMulticast sends a UDP message to the given interface .
- NewDuration creates a new duration
- GetAvailableDevicesAtSpecificEthernetInterface returns all available devices for the given interface
onvif Key Features
onvif Examples and Code Snippets
dev, err := onvif.NewDevice("192.168.13.42:1234")
device := onvif.NewDevice("192.168.13.42:1234")
device.Authenticate("username", "password")
capabilities := device.GetCapabilities{Category:"All"}
ptzCapabilities := ptz.GetServiceCapabilities{}
c
Community Discussions
Trending Discussions on onvif
QUESTION
from onvif import ONVIFCamera
camera = ONVIFCamera(, , , , adjust_time=True)
camera.create_media_service()
osd = camera.media.create_type('CreateOSD')
osd.OSD = {
'token': 'token0',
'Position': {
'Type': 'UpperLeft',
},
'TextString': {
'PlainText': 'TEST',
'Type': 'Plain',
},
'Type': 'Text',
'VideoSourceConfigurationToken': 'token1',
}
response = camera.media.CreateOSD(osd)
print(response)
...ANSWER
Answered 2021-Jan-07 at 01:16Solved this by adding VideoSourceConfigurationToken
.
Final code:
QUESTION
I have written a code to parse and get the values.This is the code:
...ANSWER
Answered 2020-Nov-02 at 16:33Yes read from command line arguments like this:
QUESTION
Help me, please. I have okhttp3 and logging-interceptor 4.7.2 versions. I have java.lang.NoSuchMethodError: okhttp3.internal.Platform.log in "Okhttp Dispatcher" thread when I call ONVIF getDeviceInformation. If I set okhttp3 3.14.7 version I have java.lang.NoSuchFieldError: INSTANCE in "Okhttp Dispatcher" thread.
...ANSWER
Answered 2020-Jun-04 at 12:40I have okhttp3 and logging-interceptor 4.7.2 versions. I have java.lang.NoSuchMethodError: okhttp3.internal.Platform.log
It is a Dependency issue, You are using :
- okhttp-4.7.2
- logging-interceptor-4.7.2
- okhttp-digest-2.0
And Runtime dependency of okhttp-digest-2.0 is okhttp-4.0.1
Maven Repo: https://mvnrepository.com/artifact/com.burgstaller/okhttp-digest/2.0
So now you have two different versions of same library
1.okhttp-4.0.1 from okhttp-digest-2.0
2.okhttp-4.7.2
There was a change in log function(Which is what error is saying NoSuchMethodError:okhttp3.internal.Platform.log) we can see in the image
Solutions:
- You Can Update version of okhttp-digest which can work with okhttp-4.7.2
- You could exclude the okhttp dependency from okhttl-digest if you're not using the features relying on it.
QUESTION
I am trying to construct a UI for Onvif complaint devices. I've been beating my head against the wall for sometime now. I believe I have the custom URI correctly constructed. According to the ONVIF Programmers Guide we need to Get Profiles, GetStreamURI, Request Streaming. http://www.openipcam.com/files/ONVIF/ONVIF_WG-APG-Application_Programmer's_Guide.pdf
Using Wireshark I believe I see HTTP packets being sent (showing the appropriate requests), and what I believe are appropriate responses. The final GetStreamURI gets a successful response from the camera. Then when I try to call _mp.Play I see a few packets over HTTP and a few TCP packets back back from the camera. After this communication stops.
...ANSWER
Answered 2020-Sep-06 at 06:15Did you try --rtsp-user and --rtsp-pwd ? you could also set the RTSP password with the dialog API.
If that doesn't work, please share your full logs.
You should be able to copy/paste the URL from Onvif Device Manager right into VLC and see it play (provided that you entered the correct credentials). If it doesn't, that's already an issue on its own.
QUESTION
I am trying to construct a user interface to capture video from an IP Camera (Specifically an Onvif Device). I have constructed appropriate clients and binding elements. I am able to get the URI setup. I cannot however figure out how to use the VLC Wrapper to stream the video. I've imported the references/libraries using Nuget. I am able to add the VLC Active X plugin object to the windows forms.
Past this I am struggling to figure out how to set up. I know i need to set up a call to the player and past it my constructed Uri (with the port, host, and scheme), and username and password.
I'm not sure which steps to take next.
...ANSWER
Answered 2020-Sep-05 at 05:59The ActiveX control is deprecated. You should be using a .NET binding like LibVLCSharp.
The README will guide you through the steps of creating your first app.
Basic steps are:
- Install LibVLC through nuget
- Install LibVLCSharp through NuGet
- Call Core.Initialize()
- Create your VideoView and your MediaPlayer
QUESTION
I want to implement the PackBits algorithm.
The background is that I am writing some code for an ONVIF camera. I want to compress a pattern/string of 1's and 0's with PackBits, and I also want to decode an existing packed string.
JavaScript has my preference, but C, PHP or similar will do too.
I have been looking for some examples, but couldn't find any.
How can I implement the PackBits algorithm?
...ANSWER
Answered 2020-Aug-28 at 21:38The Wikipedia page for PackBits algorithm has a JS implementation example and other links. It has the following comment which includes a JSFiddle as well:
QUESTION
I am using ONVIF protocol to control IP-cameras. Currently got stuck on zoom controlls with different cameras. I am using PTZBinding wsdl [https://www.onvif.org/onvif/ver20/ptz/wsdl/ptz.wsdl], tried ContinuousMove and RelativeMove fucntions, but it apperars to work in different ways on different cameras.
ContinuousMove function takes velocity and timeout, RelativeMove function takes vector and velocity.
I. e., first camera works perfect with ContinousMove, but with RelativeMove it always apply maximum/minimus zoom, and vice versa with second camera. Didn't try AbsoluteMove because I can't find way to get current zoom value. Can't find universal method to control zoom on multiple cameras, asking for your help.
Any advices will be helpful, I will provide source code if needed.
...ANSWER
Answered 2020-Aug-26 at 13:21Solved this problem by getting current zoom value with GetStatus and then controlling using AbsoluteMove. There is a source code:
QUESTION
I am fairly new to c# and am trying to write a basic program to stream video via an Onvif camera device. I am able to mostly follow and understand this 8 min tutorial.
But a few things I can't figure out. Even after adding the Vlc references, and the two Onvif service reference there are a few pieces of the code that wont compile. The tutorial is difficult to follow because he skips major steps. I am trying to identify what Device
& Media
& EndPointAddress
represent in the following code (per his tutorial).
ANSWER
Answered 2020-Aug-24 at 11:27Both Device
and Media
are namespaces in your project with classes that are auto-generated from the web services that you have referenced. When you add a service reference via References > Add Service Reference, Visual Studio will create source code for a WCF client proxy from the WSDL metadata using the WCF Web Service Reference tool, so that can access that service.
WSDL or Web Services Description Language is an XML based language for describing the interface of web services, you can find the ones from the tutorial here:
Device
interface - See definition at https://www.onvif.org/ver10/device/wsdl/devicemgmt.wsdlMedia
interface - See definition at https://www.onvif.org/ver20/media/wsdl/media.wsdl
The EndpointAddress
class is located in the System.ServiceModel
assembly, you probably got a typo there. However, there is also a NuGet package for it, called System.Private.ServiceModel
, but you won't need that. From the documentation of EndpointAddress
:
Provides a unique network address that a client uses to communicate with a service endpoint.
QUESTION
I am using following NodeJS module for getting onvif device in the network https://github.com/futomi/node-onvif, and which works fine.
But using below code the list of device found is always empty. I checked the getDeviceData
function and which is getting the device and print data.
But using below code the line console.log(JSON.stringify(list));
execute before all scan process completed. How can I fix it.
ANSWER
Answered 2020-Jul-23 at 09:57Here is what you want:
You need to use await
to wait the promise to resolve with the data.
QUESTION
sorry for my english
I start a new thread with a while(true) to receive information from socket but when I want to quit I have to use the Windows task manager. In fact, the method OnApplicationQuit() is never reached and Unity freeze.
I would like to know if there a way to know if someone try to quit or other method.
Thank you in advance
PS : I've already seen this post : https://github.com/zeromq/netmq/issues/526
The method start :
...ANSWER
Answered 2020-Jun-23 at 09:32I just replace : var timeout = new System.TimeSpan(0, 0, 20); by var timeout = new System.TimeSpan(0, 0, 0);
and now it's ok
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install onvif
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