Download a live-streaming and upload the dumped video to YouTube after the stream is ended. If upload video to YouTube failed, uploading to Google Drive instead.
- Linux
- Golang (1.16 or later)
- Streamlink
- RTMPDump (if Streamlink did not install it automatically)
- YouTube Data API (enable it and get the
client_secret.json) - Google Drive API (Optional)
client_secret.jsonat the same directory with this appyoutube-go.json(oauth2 file) at~/.credentialsdirectory
- Clone this repo
- Delete some functions in
streaminghandler.gothat you do not want to use. E.g.,func notifyVideoId(videoID string)
- Build and run
HttpServer.gothen it will be ready to gogo run HttpServer.go streaminghandler.go
- Press
Ctrl+Cto stop it
My GitHub web page template is powered by HTML5 UP
MIT