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
530
votes
9 answers

How do we download a blob url video

I want to download a video whose URL is not a simple MP4 file, but rather a blob type for example:
205
votes
8 answers

Youtube - downloading a playlist - youtube-dl

I am trying to download all the videos from the playlist: I am using youtube-dl for this and the command is: youtube-dl -citk –format mp4 –yes-playlist https://www.youtube.com/watch?v=7Vy8970q0Xc&list=PLwJ2VKmefmxpUJEGB1ff6yUZ5Zd7Gegn2 But this…
Dreams
  • 5,854
  • 9
  • 48
  • 71
129
votes
10 answers

Youtube_dl : ERROR : YouTube said: Unable to extract video data

I'm making a little graphic interface with Python 3 which should download a youtube video with its URL. I used the youtube_dl module for that. This is my code : import youtube_dl # Youtube_dl is used for download the video ydl_opt = {"outtmpl" :…
Bastien
  • 1,447
  • 3
  • 9
  • 19
115
votes
7 answers

How to use youtube-dl from a python program?

I would like to access the result of the following shell command, youtube-dl -g "www.youtube.com/..." to print its output direct url to a file, from within a python program. This is what I have tried: import…
julienfr112
  • 2,077
  • 2
  • 25
  • 37
101
votes
6 answers

How do you use youtube-dl to download live streams (that are live)?

Is it possible to use youtube-dl to download video from a .m3u8 stream file or other livestream formats? When I copy the video URL into YouTube-dl it spits out: [https @ 0x7fc351416080] inflate return value: -3, incorrect header check Last message…
user2824852
  • 1,151
  • 2
  • 8
  • 8
74
votes
5 answers

Download only audio from youtube video using youtube-dl in python script

There's a few posts on downloading audio from YouTube using youtube-dl, but none of them are concrete or too helpful. I'm wondering what the best way to do it from a Python script is. For example, here's the README example for downloading…
lollercoaster
  • 15,969
  • 35
  • 115
  • 173
70
votes
9 answers

Error: Unable to extract uploader id - Youtube, Discord.py

I have a veary powerfull bot in discord (discord.py, PYTHON) and it can play music in voice channels. It gets the music from youtube (youtube_dl). It worked perfectly before but now it dosn't wanna work with any video. I tried updataing youtube_dl…
nikita goncharov
  • 708
  • 1
  • 2
  • 13
70
votes
10 answers

Download the best quality audio file with youtube-dl

I have just download youtube-dl so I can download video and audio files from youtube. I want to download the best audio from the following video: https://www.youtube.com/watch?v=uWusmdmc0to When I do a search for all formats with youtube-dl I get…
WJ496582
  • 921
  • 1
  • 8
  • 10
62
votes
9 answers

Youtube-dl library and ERROR 403: Forbidden when using generated direct link by youtube-dl from different locations

I have a problem with youtube-dl library (https://rg3.github.io/youtube-dl/). I use youtube-dl not for directly downloading videos by this library, instead I first generate link using command like this: youtube-dl --simulate --dump-json…
Vedmant
  • 2,265
  • 1
  • 27
  • 36
61
votes
6 answers

youtube-dl, how do I resume a download after error?

I am using youtube-dl to download videos from Lynda (I have an account). After about the 40th video in a list I received this error: ERROR: Unable to download JSON metadata: HTTP Error 403: Forbidden Is there a way to 'restart' the downloads so I…
pelagos
  • 1,025
  • 3
  • 17
  • 27
59
votes
4 answers

How to use youtube-dl script to download starting from some index in a playlist?

How to download playlist using youtube-dl from start certain number to an upper limit? I tried to use in the code: youtube-dl -o '~/Documents/%(playlist)s/%(chapter_number)s - %(chapter)s/%(playlist_index)s - %(title)s.%(ext)s' URL and it stopped…
hadar
  • 824
  • 2
  • 8
  • 10
50
votes
8 answers

how to set up default download location in youtube-dl

how can I set default download location in youtube-dl so that everything that I download with youtube-dl goes into that default directory?
user101
  • 595
  • 1
  • 4
  • 18
39
votes
2 answers

youtube-dl rate limit download speed and auto resume download

I am using a shell script for video conversion. this is the shell script #!/bin/bash #downloading video youtube-dl www.someurl.com #video conversion operations Due to bandwidth issues, I have to lower the download speed. how do I limit the speed…
Tejus Prasad
  • 6,322
  • 7
  • 47
  • 75
30
votes
1 answer

Youtubedl CERTIFICATE_VERIFY_FAILED

I ran this code in Python: from __future__ import unicode_literals import youtube_dl ydl_opts = { 'format': 'bestaudio/best', 'postprocessors': [{ 'key': 'FFmpegExtractAudio', 'preferredcodec': 'mp3', …
user12867493
26
votes
5 answers

Batch script to convert, youtube-dl webm file to mp3 with ffmpeg

I'm using youtube-dl to extract the best possible audio quality from youtube videos. However the best quality audio usually turns out to be the webm format, which isn't useful. I would like to write a batch script that converts the webm file to an…
SneakyShrike
  • 723
  • 1
  • 10
  • 31
1
2 3
68 69