Forrest logo
back to the yt-dlp tool

yt-dlp:tldr:46154

yt-dlp: List the available downloadable formats for a video.
$ yt-dlp --list-formats "${https:--www-youtube-com-watch?v=oHg5SJYRHA0}"
try on your machine

The command yt-dlp --list-formats "${https:--www-youtube-com-watch?v=oHg5SJYRHA0}" is used to fetch and display the available video and audio formats for a YouTube video. Let's break down the command:

  • yt-dlp: It refers to a command-line tool used for downloading videos from various websites, including YouTube. Similar to its predecessor youtube-dl, yt-dlp provides additional features and bug fixes.

  • --list-formats: This flag tells yt-dlp to list the available formats for the given video URL instead of actually downloading the video. It is useful when you want to check the available formats before downloading.

  • "${https:--www-youtube-com-watch?v=oHg5SJYRHA0}": This part of the command is the URL of the YouTube video you want to fetch the formats for. In this example, the video URL is https://www.youtube.com/watch?v=oHg5SJYRHA0, which is a famous Rickroll video. The URL is enclosed within quotes and preceded by "${https:--www-youtube-com-watch?v=oHg5SJYRHA0}" syntax, which may not be necessary depending on the command execution context.

By running the command, the yt-dlp tool will connect to YouTube, analyze the provided video URL, and display a list of available formats with their respective quality specifications such as resolution, format type, and bitrate. It will assist in selecting the desired format for downloading the video if necessary.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the yt-dlp tool