Receiving 455: Method Not Valid in This State for VOD in Onvif Bridge

Hello,

I am attempting to use the Open Network Bridge to pull VOD via RTSP. I have set it up and can use the url via VLC for playback fine. However, I’m attempting to integrate this into a Gstreamer application, but am receiving a 455 error. I haven’t seen this documented anywhere so hoping one of you can shed some light.

I’m using a URL like:

rtsp://onvif:pw!@192.168.7.235:554/vod/DF7BF311-8637-4914-9A72-5F5D75412EEA

with a gstreamer command like:

GST_DEBUG=rtspsrc:6 gst-launch-1.0 rtspsrc location="rtsp://onvif:pw!@192.168.7.235:554/vod/DF7BF311-8637-4914-9A72-5F5D75412EEA" onvif-mode=true is-live=false tcp-timeout=0 onvif-rate-control=false ! queue ! rtponvifparse ! rtph264depay ! avdec_h264 ! videoconvert ! timeoverlay show-times-as-dates=true datetime-format="%a %d, %b %Y - %T" ! tee ! queue ! glimagesink

Note that this Gstreamer pipeline has been pulled from the Official Gstreamer Onvif Client code here: https://github.com/GStreamer/gst-rtsp-server/blob/master/examples/test-onvif-client.c

I’m receiving the following logs: https://gist.github.com/mattfeury/49220710a75fd95a0658acf804a006a8

Hi Matt,

My best guess will be that there are no recordings for that camera.

If that assumption is correct, the should be Warning in the RTSP log file saying something like “GetRecordingTime failure, hResult”.

Could you check those two, please ?

thanks for the response @Petar Vutov​. I didn’t see anything in the logs. However, I did notice things started working on another machine. This existing machine has a custom build gstreamer implementation using the latest developer release, so it seems like it’s perhaps related to a gstreamer version change. I was able to use gstreamer rtspsrc on another machine with a standard gstreamer install via apt-get. hopefully we don’t see this issue again and can close this out.