Quantcast
Channel: MediaSPIP
Viewing all articles
Browse latest Browse all 118141

Handling RTSP Camera Offline with Image showing issue in GStreamer

$
0
0

I am using below list of version.

Gstreamer-1.24.10, windows 10.

I'm working on a GStreamer pipeline to handle RTSP camera streams. When the RTSP camera goes offline, I want to display a image instead of stopping the pipeline. Once the RTSP stream is back online, the pipeline should automatically switch back to the live stream.

Below pipeline work but rtsp server not response that time stop showing image (After 19 seconds...) that's not fulfill my requirements

Do let me know If you can solve this issue with ffmpeg.

I have already tried pipeline belowed:

gst-launch-1.0 compositor name=comp sink_0::xpos=0 sink_0::ypos=0 sink_1::xpos=640 sink_1::ypos=0 sink_2::xpos=1280 sink_2::ypos=0 ! videoconvert ! autovideosink input-selector name=selector1 ! queue ! videoconvert ! videoscale ! video/x-raw,width=640,height=360 ! queue ! comp. rtspsrc location=rtsp://?? latency=0 ! rtph265depay ! h265parse ! avdec_h265 ! videoconvert ! queue ! selector1.sink_0 uridecodebin uri=file:///?? ! imagefreeze ! videoconvert ! videoscale ! video/x-raw,width=640,height=360 ! queue ! selector1.sink_1 input-selector name=selector2 ! queue ! videoconvert ! videoscale ! video/x-raw,width=640,height=360 ! queue ! comp. rtspsrc location=rtsp://?? latency=0 ! rtph265depay ! h265parse ! avdec_h265 ! videoconvert ! queue ! selector2.sink_0 uridecodebin uri=file:///?? ! imagefreeze ! videoconvert ! videoscale ! video/x-raw,width=640,height=360 ! queue ! selector2.sink_1 input-selector name=selector3 ! queue ! videoconvert ! videoscale ! video/x-raw,width=640,height=360 ! queue ! comp. rtspsrc location=rtsp://?? latency=0 ! rtph265depay ! h265parse ! avdec_h265 ! videoconvert ! queue ! selector3.sink_0 uridecodebin uri=file:///?? ! imagefreeze ! videoconvert ! videoscale ! video/x-raw,width=640,height=360 ! queue ! selector3.sink_1

gst-launch-1.0 rtspsrc location=rtspt://USERNAME:PASSWORD@IP:PORT/Streaming/Channels/101 ! decodebin ! videoconvert ! autovideosink filesrc location=IMAGE_PATH ! decodebin ! imagefreeze ! videoconvert ! autovideosink

gst-launch-1.0 input-selector name=selector ! videoconvert ! autovideosink rtspsrc location=rtspt://USERNAME:PASSWORD@IP:PORT/Streaming/Channels/101 ! decodebin ! selector. filesrc location=IMAGE_PATH ! decodebin ! imagefreeze ! selector.

Can you please let me know.How to deal with this issue??


Viewing all articles
Browse latest Browse all 118141

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>