CroatianMeteorNetwork / RMS

RPi Meteor Station
https://globalmeteornetwork.org/
GNU General Public License v3.0
178 stars 50 forks source link

Fix GStreamer Recording Hang #294

Closed Cybis320 closed 3 months ago

Cybis320 commented 3 months ago

This update addresses the issue where GStreamer stops recording and hangs until the night session is terminated. The code now verifies that the pipeline has successfully reached the PLAYING state before proceeding further. It allows the camera 10 seconds after a successful ping to initiate an RTSP handshake, then makes up to five retries to start the GStreamer pipeline. If these attempts fail, it falls back to cv2.

g7gpr commented 3 months ago

I'll be able to test this over the next 48 hours on Pi 4 32 bit, Pi 4 64 bit and Debian 12

markmac99 commented 3 months ago

finally had a chance to deploy this to one of my stations. Apologies, i've been very tied up with a website migration and family business. Will run it for a few days and try to simulate some failure conditions

dvida commented 3 months ago

Hi all, any results from the testing? I presume there were no issues?

markmac99 commented 3 months ago

apologies, meant to confirm earlier. No issues here. Looks good.