My setup looks like this:
- An ethernet camera connected to a wireless link node.
- The camera sends an H264 encoded stream (320*184 at 25 FPS) using UDP.
- Another wireless link node connected to a laptop (Windows 7).
- The laptop is running gstreamer.
- The received UDP packets are used to display the video without any latency.
The gstreamer command to display the videostream:
gst-launch-1.0 rtspsrc protocols=0x00000001 location=rtsp://10.0.0.3:554/stream1 latency=0 drop_on_latency=true ! decodebin ! videoscale ! video/x-raw,width=1280,height=800 ! autovideosink
Here is the issue:
- I interrupt the data stream by removing the ethernet cable between camera and first wireless link node for 5 seconds and then reconnecting the cable. Result: The display of the videostream stops and then recovers.
- I interrupt the data stream for 15 seconds. Result: The display of the videostream recovers but a very low framerate; About 1 frame per second. If I then restart gstreamer the videostream is again nicely presented.
How can I overcome this reduction in framerate? Automatically restarting gstreamer if this situation is detected would be an option for me.
Regards, doojoo
autovideosink sync=false
– Alper Kucukkomurler