Just to confirm, are you saving a video file to the internal memory of the camera?
If so, the camera specifications limit the continuous shooting to 25 minutes at 30fps with the video file saved to the camera
I thought that the problem you were encountering was that the camera would shut off after 30 minutes of a live stream to YouTube.
Do you need one continuous video file? Or, can you take a series of 25 minute clips? You can use the API to start, stop, and download the video file to a computer automatically. There would be a gap of about a minute between clips.