Questions tagged [youtube-dl]

A free command-line downloader primarily for YouTube videos, available on many platforms.

155 questions
264
votes
5 answers

How to download only subtitles of videos using youtube-dl

How can I download subtitles of a list of videos using youtube-dl? I need an option for this. However I could not find an option to download only subtitles
fivetech
  • 2,803
67
votes
1 answer

Downloading m3u8 videos

I am trying to download video from a .m3u8 livestream video format. How can I download m3u8 videos using software on my personal computer such as ffmpeg, youtube-dl, VLC, etc? M3U is a computer file format for a multimedia playlist. One common use…
28
votes
5 answers

How do I download ONLY the YouTube playlist, NOT the files therein?

In youtube-dl, I'm trying to get only the playlist content (should be 600+ entries) from a URL, thus: youtube-dl -i -v --flat-playlist --skip-download https://www.youtube.com/watch?v=CNotezuR73g&list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr which…
24
votes
3 answers

How to get best quality audio using youtube-dl?

I am using youtube-dl on Linux to download videos from YouTube and extract the audio. This is my way of building a small music collection. Anyways, I know that there is an option --audio-quality= with 0 being best and 9 being worst. Is this all I…
24
votes
1 answer

How can youtube-dl download videos that require user authentication and 2FA?

When I try to download on of my private videos I get the following: youtube-dl https://youtu.be/Q-xxxx-xxxx [youtube] Q-xxxx-xxxx: Downloading webpage [youtube] Q-xxxx-xxxx: Downloading video info webpage WARNING: Unable to extract video…
Dave
  • 1,047
24
votes
7 answers

youtube-dl: Download Opus audio or AAC audio?

No, this is not a duplicate of this question. I have been using youtube-dl to download some music videos from YouTube. I noted that left to its defaults, youtube-dl will use bestvideo+bestaudio, and with recent videos, for bestaudio it will nearly…
pepoluan
  • 1,332
22
votes
3 answers

How to download chapters of a youtube video as separate video files?

A New YouTube Feature YouTube recently enabled the option to add chapters in YouTube videos. This is done by simply adding the chapter timestamps (start time) in the description of the video. Related Topics Using youtube-dl/yt-dlp we…
Lyric Roy
  • 325
18
votes
1 answer

How to manually select video and audio format while using youtube-dl?

If I like to choose -f 248 for video and -f 171 for audio, how should I do it? I remember there is a single line command that can merge manually selected audio and video after downloading.
16
votes
3 answers

Recommended settings to convert Opus to AAC

I am downloading some music from Youtube, and it seems that in most cases (popular videos), the best quality audio is an opus file. I know that (1) Opus is the newest and more efficient codec, and (2) converting from one lossy codec to another is…
Peter K.
  • 464
14
votes
1 answer

youtube-dl optimal video resolution within a max limit

Typically youtube-dl aims to shoot for the highest quality possible. That's not always practical. Flip side I've seen was for minimum quality possible. That's not practical either. What would be a command to make youtube-dl find the highest quality…
Nikhil VJ
  • 361
14
votes
6 answers

Download an entire YouTube channel with youtube-dl and automatically resume if interrupted

I'm downloading an entire YouTube channel consisting of about 10,000 videos. Sometimes the download stops due to errors like "content too short" or "connection interrupted". However, is there a way to automatically restart the download? There is…
INeedHelp101
13
votes
2 answers

Why is “youtube-dl” not downloading any “age restricted” video?

YouTube has started "age restricting" many videos, and I can't download them with youtube-dl. For example youtube-dl https://www.youtube.com/watch?v=xeZ3k2ywQ6Y Results in this: user@droplet~/user# youtube-dl…
barlop
  • 25,198
11
votes
2 answers

youtube-dl changing the format output of %(upload_date)s

I've been downloading videos with youtube-dl using upload_date in the name of the file. This puts the date in YYYYMMDD format in the name file, but I will find more convenient if I could store them in something like: YYYY-MM-DD DD-MM-YYYY I know…
40detectives
  • 287
  • 1
  • 2
  • 9
11
votes
4 answers

Save video playing in mpv --ytdl to a file while playing

I would like to be able to play and save a video with mpv --ytdl. How do I got about doing that? What's particularly important is that the buffer gets saved too. Basically, I would like to play a video from youtube, then quit mpv and still be able…
PawkyPenguin
  • 393
  • 1
  • 2
  • 6
10
votes
3 answers

Convert YouTube DASH audio (youtube-dl) to m4a (AAC DL)

I am unable to listen to m4a DASH audio I download from YouTube via youtube-dl on Winamp. Is there an option in youtube-dl to remove the DASH audio part of m4a file and download/save it as an m4a (AAC LC) without loss of quality? So far, I am using …
Sun
  • 6,480
1
2 3
10 11