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.

863 questions
136
votes
7 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
  • 4,415
  • 6
  • 39
  • 60
92
votes
5 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…
JulienFr
  • 1,792
  • 1
  • 20
  • 29
81
votes
8 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
  • 907
  • 1
  • 3
  • 10
74
votes
5 answers

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

Just wondering if that's possible or not- when I copy the video URL into YouTube-dl it spits out [https @ 0x7fc351416080] inflate return value: -3, incorrect header check Last message repeated 15 times After that it spits out of couple lines of red…
user2824852
  • 781
  • 1
  • 6
  • 8
54
votes
3 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
  • 13,421
  • 28
  • 94
  • 162
41
votes
4 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
  • 775
  • 3
  • 12
  • 25
38
votes
2 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
  • 536
  • 2
  • 6
  • 8
34
votes
6 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
  • 417
  • 1
  • 4
  • 17
33
votes
8 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
  • 405
  • 1
  • 4
  • 7
30
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
  • 5,871
  • 6
  • 41
  • 70
23
votes
1 answer

Given a MPEG DASH .mpd URL, is that possible to down all media segments through youtube_dl?

I'm looking for a MPEG DASH downloader and youtube_dl just hit on me. Given a .mpd URL, is that possible to use youtube_dl to download all media segments then?
Drake Guan
  • 12,774
  • 11
  • 52
  • 92
21
votes
5 answers

Shell Script to download youtube files from playlist

I'm trying to write a bash script that will download all of the youtube videos from a playlist and save them to a specific file name based on the title of the youtube video itself. So far I have two separate pieces of code that do what I want but I…
wvandaal
  • 3,813
  • 2
  • 14
  • 26
19
votes
6 answers

Changing name of the video while downloading via youtube-dl

I am trying to download a complete playlist in youtube, while downloading i want to enter serial number while downloading in front of the title of the video, For example if a playlist has a videos: A.mp4 E.mp4 K.mp4 C.mp4 B.mp4 I want it to…
Desmnd
  • 375
  • 1
  • 2
  • 13
16
votes
4 answers

youtube-dl python library documentation

is there any documentation for use youtube-dl as a python library in a project? I know that I can use the main class, but I can't find any documentation or example... import youtube_dl ydl = youtube_dl.YoutubeDL(params) ... ?
NaN
  • 175
  • 1
  • 1
  • 5
16
votes
1 answer

youtube-dl in Android

I am trying to retrieve a videoplayback URL from a YouTube link. I know this can be done with youtube-dl (youtube-dl --get-url http://www.youtube.com/watch?v=VIDEO_ID). youtube-dl is written in Python and I know that it is somehow possible to bridge…
sn0ep
  • 3,601
  • 8
  • 33
  • 59
1
2 3
57 58