rtsp: Add ONVIF metadata support
Submitted by Sergio
Some IP Cameras follow Onvif protocols (a standard for surveillance cameras). These usually have h.264 codecs. When trying to decode using playbin or uridecodebin there is an error showing:
Missing element: VND.ONVIF.METADATA RTP depayloader
Using the following pipeline works:
$ gst-launch-1.0.exe rtspsrc location=rtsp://user:firstname.lastname@example.org/rtspStream ! rtph264depay ! h264parse ! avdec_h264 ! autovideosink
However, if the camera's resolution is modified, the pipeline fails to detect the correct resolution. Possibly the correct resolution information is found in the metadata.
VLC does successfully decode the rtsp stream.