Questions tagged [youtube-dl]

youtube-dl is an opensource, small command-line program, written in Python, to download videos from YouTube.com and other sites.

youtube-dl is a small command-line program to download videos from YouTube.com and a few more sites. It requires the Python interpreter, version 2.6, 2.7, or 3.3+, and it is not platform specific. It should work on your Unix box, on Windows or on Mac OS X. It is released to the public domain, which means you can modify it, redistribute it or use it however you like.

You can download it with pip, from the download site or using git. In this link you can also find documentation, and some other options. Github repository is available via this link.

Note that questions about installing and using youtube-dl are off-topic for Stack Overflow. They may be more appropriate on SuperUser.

1035 questions
14
votes
1 answer

Convert audio download with youtube-dl to flac?

Is it possible to download a YouTube video as e.g. mp3 and then convert it to flac with ffmpeg? I can specify the arguments that ffmpeg shall use after the download with --postprocessor-args but I don't know how to get the file name…
Urasam
  • 169
  • 1
  • 1
  • 8
13
votes
1 answer

how to set directory in ydl_opts in using youtube-dl in python?

** What do i need to add to specify that all the download mp3 will go to this directory: e:/python/downloadedsongs ydl_opts = { 'format': 'bestaudio/best', 'download_archive': 'downloaded_songs.txt', 'outtmpl': '%(title)s.%(ext)s', …
Reynard Asis
  • 463
  • 1
  • 3
  • 11
13
votes
1 answer

How to extract a video snippet from a video file that is being written in by ffmpeg in realtime

At the moment i am recording a LIVE stream video from youtube with youtube-dl (https://github.com/rg3/youtube-dl) The command i use for this: youtube-dl --id -f 92 https://www.youtube.com/watch?v=VYlQJbsVs48 92 is a format code that i got after…
alex.b
  • 168
  • 14
12
votes
3 answers

How download a MPEG Dash with DRM?

Is possible download a MPEG Dash content with DRM? How can I decrypt using the MPD file? I tried download all M4S segments (audio and video) but when I join the segments the video doesn't work properly. The site is using Widevine platform for DRM. I…
aneto
  • 1,501
  • 2
  • 13
  • 19
11
votes
2 answers

youtube-dl: zsh: no matches found:

From Catalina OS X: youtube-dl --version 2020.09.06 youtube-dl https://www.youtube.com/watch?v=qohQD51F5bM zsh: no matches found: https://www.youtube.com/watch?v=qohQD51F5bM I have successfully used…
gatorback
  • 1,351
  • 4
  • 19
  • 44
11
votes
3 answers

How do I convert the WebVTT format to plain text?

Here is a sample of WebVTT WEBVTT Kind: captions Language: en Style: ::cue(c.colorCCCCCC) { color: rgb(204,204,204); } ::cue(c.colorE5E5E5) { color: rgb(229,229,229); } ## 00:00:00.060 --> 00:00:03.080 align:start position:0% …
magician11
  • 4,234
  • 6
  • 24
  • 39
11
votes
2 answers

Update youtube-dl on mac OS X

I tried to update latest release on youtube-dl but I can't update and while I tried got the error like "It looks like you installed youtube-dl with a package manager, pip, setup.py or a tarball. Please use that to update."
iPC
  • 5,916
  • 3
  • 26
  • 38
11
votes
3 answers

How can I list video resolutions in youtube-dl while using it as a python module?

Well, I can get the video formats directly by using this in terminal - $ youtube-dl -F "some youtube url" Output : [youtube] Setting language [youtube] P9pzm5b6FFY: Downloading webpage [youtube] P9pzm5b6FFY: Downloading video info webpage [youtube]…
Xplore
  • 361
  • 1
  • 2
  • 12
11
votes
1 answer

Youtube-dl downloading channel from vimeo

Does YouTube-dl allows to download all videos(not individual file) from a channel from sites other than YouTube. (Vimeo, daily motion) I understand that YouTube-dl can be used to download all videos in YouTube channel/user. The syntax is youtube-dl…
rush dee
  • 304
  • 1
  • 4
  • 13
10
votes
0 answers

youtube-dl How to get subtitles filename?

With youtube-dl, you can get the video filename (--get-filename) and you can get the list of available subtitles (--list-subs), but it doesn't seem to have anyway to retrieve the file name of the downloaded subtitles. If I want to only download the…
NhgrtPlayer
  • 101
  • 4
10
votes
4 answers

How can I download just thumbnails using youtube-dl?

I've been trying to download the thumbnails of a list of URL's (youtube videos) I have. I've been using youtube-dl and I've worked it out to this so far: import os with open('results.txt') as f: for line in f: …
TheOlDirtyBastard
  • 167
  • 1
  • 3
  • 12
10
votes
1 answer

How can i find all ydl_opts

ydl_opts = { 'verbose': True, #like this 'format': '{}'.format(int(comboget)), #format,vebrose,ottmpl 'outtmpl': '%(title)s-%(id)s.%(ext)s', #how can i find 'noplaylist': mt, #all…
bunyaminkirmizi
  • 540
  • 2
  • 6
  • 22
10
votes
2 answers

How to start youtube-dl autonumber from a different number than 1?

I was downloading a playlist from youtube using youtube-dl. I used autonumbering feature to number the videos which could be achieved by formatting the name of output file as follows -o "%(autonumber)s-%(title)s.%(ext)s". The download failed in…
Mohit Mittal
  • 643
  • 6
  • 13
9
votes
4 answers

youtube-dl playlist does not work anymore

in the past I have downloaded Youtube's playlists with youtube-dl without any problem. However, now it downloads 0 videos. Could it have something to do with RIAA's DMCA takedown? Any suggestion or solution? The code I usually use is youtube-dl -i…
9
votes
1 answer

Choose YouTube videos quality in IINA?

IINA is a good player. You can even play videos from YouTube (via youtube-dl) But how to choose videos quality? By default youtube-dl uses best possible quality. If video is 4K – you'll get 4K. Sometimes it is overkill for notebooks.
ckesc
  • 511
  • 4
  • 16
1 2
3
68 69