Fallbacksrc behavior and video capabilities
My team and I use Gstreamer to handle a distant video stream broadcasted on my local network through the RTSP protocol.
We currently set up a classic Gstreamer pipeline with "rtspsrc" to deal with it.
But the video source can be unstable and we have difficulties to handle the pipeline correctly during these moments. That is why I am studying alternatives. I think your plugin fallbacksrc could really resolve our problems and in a robust way.
I tried it and it worked well. But it always gave a RAW video output. I need to let the video compressed in h265 (native codec of the stream)
When I check the plugin documentation with gst-inspect it is written that the video src capabilities are "ANY".
I wanted to know:
- Could I let the video be compressed on fallbacksrc source pad ?
- If so, how could I do it?
I am new to Gstreamer, so it is possible that the solution is a Gstreamer caps manipulation I don't know. Sorry to have bothered you if it was the case.
I use GStreamer 1.16.2, installed with package manager on an Ubuntu 20.04 environment. I compiled fallbacksrc with cargo as indicated in your README.
Here are some of the commands I tried : gst-launch-1.0 fallbacksrc uri=rtsp://my-uri ! h265parse ! video/x-h265 ! avdec_h265 ! autovideoconvert ! autovideosink
gst-launch-1.0 -v fallbacksrc uri=rtsp://my-uri ! video/x-h265 ! avdec_h265 ! autovideoconvert ! autovideosink
gst-launch-1.0 -v fallbacksrc uri=rtsp://my-uri ! avdec_h265 ! autovideoconvert ! autovideosink
The working one (with raw output) : gst-launch-1.0 -v fallbacksrc uri=rtsp://my-uri ! autovideoconvert ! autovideosink
Thank you for your time! Best regards.