agsh / onvif

ONVIF node.js implementation
http://agsh.github.io/onvif/
MIT License
692 stars 234 forks source link

what get metadata onvif #201

Closed Hareis closed 1 year ago

Hareis commented 2 years ago

what get metadata onvif?

RogerHardiman commented 2 years ago

ONVIF metadata can come from several difference places. 1) it can be included in the RTSP as an additional stream along side the Video and Audio. I know the NodeJS RTSP client called Yellowstone has some code to receive the metadata over RTSP as I wrote it a year or two ago. Yellowstone will deliver the raw metadata from the RTP packets.

2) some metadata can be included as data values in ONVIF Events. This library (agsh/onvif) can subscribe to ONVIF Events and receive the ONVIF Event XML messages. On my Axis cameras's I've seen ONVIF Events with co-ordinates for the bounding boxes of objects. There is an example program (example6.js) that will list ONVIF events and then receive the events. You may need to add additional support for events with the metadata.

Let us know how you get on.

Hareis commented 2 years ago

@RogerHardiman

企业微信截图_16303773136802

企业微信截图_16303777841485

企业微信截图_16303778328635

I was thinking that this might not be an event. Sorry, I didn’t see the custom event monitoring in example6 that meta type is "videoAnalytics"