Skip to content

Tony-Liou/Youtube-Upload-Video

Repository files navigation

Youtube Upload Video

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.

Installation

Environment

  • Linux

Prerequisites

Deployment

  • client_secret.json at the same directory with this app
  • youtube-go.json (oauth2 file) at ~/.credentials directory

Usage

  1. Clone this repo
  2. Delete some functions in streaminghandler.go that you do not want to use. E.g.,
    func notifyVideoId(videoID string)
  3. Build and run HttpServer.go then it will be ready to go
    go run HttpServer.go streaminghandler.go
  4. Press Ctrl+C to stop it

Credit

My GitHub web page template is powered by HTML5 UP

License

MIT