-
We're initiating an RTSP connection, sending a PLAY request, and we start getting RTP packets, as described in the ONVIF Streaming Spec. I believe I'm parsing the headers correctly, as they have a payload type of 96, the first available payload type; other header fields look right. However, the payload of these RTP packets just appears to be binary data. It doesn't look like XML or text at all. Is there some other step to get the XML out of that RTP data, like decompression or something like that? |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 12 replies
-
Tagging @svefredrik, as you've answered questions about ONVIF metadata streaming in the past. Any info you can give me about the encoding issue would be helpful. |
Beta Was this translation helpful? Give feedback.
-
Can you include a Wireshark trace here? I can't say what's happening exactly without a trace but I believe that 96 is normally used for video so I think that the profile you are using just sets up a video stream, no metadata stream. |
Beta Was this translation helpful? Give feedback.
-
I don't need a full trace. I'm mainly interested in the SDP answer to RTSP DESCRIBE. If there's a metadata track there or not. It would also be good to see the listing of the profile that you use, i.e. response to GetProfiles. |
Beta Was this translation helpful? Give feedback.
-
Please also include the GetProfiles response |
Beta Was this translation helpful? Give feedback.
-
You have to set a videoSourceConfiguration for the profile otherwise the MetadataConfiguration is pointless |
Beta Was this translation helpful? Give feedback.
-
You also need to set videoAnalyticsConfiguration |
Beta Was this translation helpful? Give feedback.
-
Since PTZ metadata is wanted, a PTZ configuration also needs to be associated with the media profile. See Media Service Specification section '5.2.8 AddPTZConfiguration' AnalyticsConfiguration and VideoSourceConfiguration are needed if you want to stream analytics metadata, so should not be needed for only PTZ metadata. |
Beta Was this translation helpful? Give feedback.
Since PTZ metadata is wanted, a PTZ configuration also needs to be associated with the media profile.
Solely a MetadataConfiguration is not enough.
I think that is the problem. The ONVIF media profile in use does not seem to have any PTZ configuration associated with it.
(ptzConfiguration=)
Try associating a PTZConfiguration along with the MetadataConfiguration in the profile and see if that doesn't solve the problem!
See Media Service Specification section '5.2.8 AddPTZConfiguration'
"Adding a PTZConfiguration to a media profile means that streams using that media profile can contain PTZ
status (in the metadata), and that the media profile can be used for controlling PTZ movement [...]"
A…