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.json
at the same directory with this appyoutube-go.json
(oauth2 file) at~/.credentials
directory
- Clone this repo
- Delete some functions in
streaminghandler.go
that you do not want to use. E.g.,func notifyVideoId(videoID string)
- Build and run
HttpServer.go
then it will be ready to gogo run HttpServer.go streaminghandler.go
- Press
Ctrl+C
to stop it
My GitHub web page template is powered by HTML5 UP
MIT