Skip to content

.NET Core app for downloading and streaming YouTube videos as audio

Notifications You must be signed in to change notification settings

MattJeanes/YouTubeDL

Repository files navigation

YouTubeDL

.NET Core app for streaming YouTube videos as audio

Installation

  • Pull Docker image
  • Set ApiKey environment variable to YouTube API Key
  • Optionally set MaxSizeMegabytes environment variable (default 50) to prevent large streams from being loaded
  • Optionally set TranscodeFormat environment variable (default '') to transcode before streaming to e.g. mp3, ogg, etc
  • Optionally set the AllowUserTranscode environment variable (default 'false') to allow user selection of transcode format with the format query parameter

Usage

First use /get?id=<youtubeid> to get information about the video and request conversion. It returns a JSON table as a response containing information about the video, any errors and success state

Then use /play?id=<youtubeid> to request the video stream. This returns a content type of audio/mpeg by default (unless TranscodeFormat is set) and will attempt to stream the video in audio format back to the browser

About

.NET Core app for downloading and streaming YouTube videos as audio

Resources

Stars

Watchers

Forks

Releases

No releases published