onvif | ONVIF node.js implementation | Video Utils library
kandi X-RAY | onvif Summary
kandi X-RAY | onvif Summary
ONVIF node.js implementation
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Listen for keyboard input
- Call this function to the initial start of the device .
- Move to a tile .
- Strip namespace from topic
- Send a preset
- Generate a list of IP addresses
- Calculate the range of ipp ip address
- Process an event .
- Sends the pan - screen command .
- Convert a IP address to a Long integer .
onvif Key Features
onvif Examples and Code Snippets
Community Discussions
Trending Discussions on onvif
QUESTION
I am trying to send an ONVIF PTZ soap message to get the status of the camera as a simple test. I am also trying to keep this pure JavaScript. I can't use Node.js because the rest of the application is written in a different language, and I need this to be client side. One of the tests I am trying to do is replicate the results from the ONVIF TM Application Programmer's Guide. I can send the soap message to get the status from SoapUI, but SoapUI doesn't use the WS-UsernameToken.
This is a the simple HTML file:
...ANSWER
Answered 2022-Mar-11 at 23:50I am posting this here so anyone else looking for an answer will have it. I found the answer with some Googling, a link from a colleague, and trial and error. I was able to replicate the example using two JavaScript code files. I combined them into one below for ease.
QUESTION
I want to get a video with start time and end time from RTSP server. From Maxim-zapryanov's answer at the discussion, I know to do it, I need set time range at PLAY packet's "range" header field
To play from a specific time you need to use the RTSP header field "range" for the PLAY command. See section 6.5.1 of https://www.onvif.org/specs/stream/ONVIF-Streaming-Spec.pdf and https://datatracker.ietf.org/doc/html/rfc2326#section-12.29
I used Live555 lib to set the field to PLAY packet success. But I want set the field by FFmpeg lib instead of Live555 lib.
So, does FFmpeg lib support set time range at PLAY packet's "range" header field when get video from RTSP? If yes, how to do it?
If anyone know the answer, please tell me know. Thank you so much!
...ANSWER
Answered 2022-Mar-10 at 03:59You can read answer at ffmpeg libav-user mail list
QUESTION
I'm trying to set the point called "Preset001" with a well-defined Speed but I can't as I get the following error on console:
...ANSWER
Answered 2022-Feb-19 at 14:52I have found the solution. The correct way to pass data is:
QUESTION
like the title says, I am wondering if for example I send an endpoint some XML with the namespace being: 'http://www.external.com/customNS', would the receiving end fetch that namespace? I think logically the answer is yes (unless there are rules that prevent fetching from external sources) but I need to verify this.
Question 2: just in case the answer is yes for the first question, reason I am asking is I have a task dealing with Onvif at work, which uses XML to send commands to IP cameras, and when the onvif XML namespace servers went down (Dec/28), some requests started failing, but I need to make sure this was the cause instead of faulty requests, so do you think cameras actually have the namespaces pre-loaded, and do absolutely no external fetching, or do they just fetch them on at least the first time a request with the specific namespace is received? I tried creating a server, and sending it to the camera as a namespace, but I didn't receive any requests, but this might just mean that the camera rejects requests with servers that aren't onvif's.
Example request I send to the camera (without header and footer):
...ANSWER
Answered 2022-Jan-09 at 10:24would the receiving end fetch that namespace?
No.
Namespaces are strings. Their purpose in life is to be unique within the document, that's all.
That it's possible to use URLs as namespaces, and then set up a web server that gives more information at that URL is a bonus. There is no requirement for that, there is no technical definition of what kind of data has to be at such a URL, and the XML parser does not need it to do its job.
There might be other things (XML schemas, external DTDs, maybe XLink/XInclude) that could trigger requests during parsing or handling of the document, but namespace URIs definitely won't.
QUESTION
Using ONVIF, how can I determine if the device has a fisheye camera and subsequently if it supports dewarping stream?
...ANSWER
Answered 2021-Dec-21 at 12:31In ONVIF, For any feature to be confirmed as supported by the device usually can be done in one or more ways (including but not limited to the list) listed below
- Reading the device/service capabilities using GetServiceCapabilities interface provided by every service
- Reading the configurations provided by device using 'Get[entity]Configurations' interface
- Reading the configuration parameter options using Get[entity]ConfigurationOptions interface
The "entity" varies depends on the feature, Check the entities list here
- https://www.onvif.org/specs/srv/media/ONVIF-Media2-Service-Spec.pdf Section 4.1 Media profile)
For your query about dewarp feature support, option 2 has to be checked. So you have to read VideoSourceConfiguration from the device via 'GetVideoSourceConfiguration' interface and check the response.
The response from device shall adhere to the specification as quoted below
Ref: https://www.onvif.org/specs/srv/media/ONVIF-Media2-Service-Spec-v1712.pdf
- Section : 5.2.2 Video source configuration
- View Mode
- Fisheye – Undewarped viewmode from a device supporting fisheye lens
- Dewarp – Dewarped view mode for device supporting fisheye lens
- View Mode
QUESTION
I am working on a script to extract info from a CSV file and paste it into a .txt file. After I have that text extracted a run that txt file through a script that is supposed to remove any duplicates. Each row of data has a lot of information. Every row should have an IP Address and MAYBE a Logical ID. here is a sample of my csv file.
...ANSWER
Answered 2021-Dec-13 at 21:44It looks like every line in the CSV you provided has either a Logical ID or an IP Address, never both (i.e. every line containing Logical ID:
doesn't have an IP address, and vice-versa).
Since no line has both a logical id and IP, it seems like you'd be able to add a \n
every time you append a value to the text file.
If I misunderstood you in some way, please edit your question accordingly. Thanks!
QUESTION
I have a bunch of CSV files with the name (modelnumber)_filter. The user is asked which model they are searching for so
example user input : "1.3C-H4SL-D1"
So then the file path will be loaded:
"C:\Users\ADMIN-SURV\Desktop\data_pull\1.3C-H4SL-D1_filter.csv"
EX CSV
...ANSWER
Answered 2021-Dec-13 at 15:10Ran it with Python 3.8.0, the result was a file in ../filter_results with no extension. I changed it to be .txt and this is its content:
<_io.TextIOWrapper name='C:\Users\maxim\PycharmProjects\FB_Books\data_pull\1.3C-H4SL-D1_filter.csv' mode='r' encoding='cp1252'>
QUESTION
NEW Update 11:30am CST Below is my full code
Desired results would be a txt file in this format:
Logical ID: (&) 192.168.xx.xxx (if it has both)
192.168.xx.xxx
Logical ID:
192.168.xx.xxx
192.168.xx.xxx
Logical ID:
Logical ID:
192.168.xx.xxx
**Latest Code-> I want to print the LOGICAL ID if one exists, if not I want it to print the IP Address (to a new form)
The code shows that I have specified a model.csv to write to a model.txt and have to manually change it model by model. So if there is a fix for that that would be great too
...ANSWER
Answered 2021-Dec-10 at 17:40The top of your CSV file contains lines with less than 4 columns. To avoid the IndexError try testing the row length first:
QUESTION
I'm consumning this ONVIF service: https://www.onvif.org/ver10/media/wsdl/media.wsdl using Visual Studio 2019, which automatically generates a client wrapper from the WSDL file.
I cannot figure out how to use the 'Extension' element of OSDTextConfiguration to add an element to OSDTextConfiguration which has not been specified in the WSDL.
...ANSWER
Answered 2021-Nov-09 at 21:27I figured out a way to do this and post it here in case it's useful to someone else. The function below inserts an element 'IsPersistent' with value '0' or '1'.
QUESTION
I have a project that requires the program to stream in metadata in a form of XML. I have tried various way found online to iterate through the XML but I only managed to print out the inner text of the XML.
How can I iterate through the XML and get the value for tt:object "ObjectID" and its child "Gender"?
This is an example of the XML.
...ANSWER
Answered 2021-Sep-12 at 06:36Thanks all for the help. I managed to get the elements and value through LINQ to XML queries.
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