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
25
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
  • 14,514
  • 15
  • 67
  • 94
24
votes
2 answers

ERROR: unable to download video data: HTTP Error 403: Forbidden while using youtube_dl

I am trying to download songs from youtube using python 3.8 and youtube_dl 2020.3.24. But the weird thing is that most songs I try to download don't get downloaded. I'm talking 99% of them. The ones that do get downloaded get the following Error…
Lukas
  • 373
  • 2
  • 3
  • 11
23
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
  • 440
  • 1
  • 3
  • 14
22
votes
2 answers

how to use proxy on youtube-dl?

I wanna use the proxy and run this youtube-dl --proxy socks5://127.0.0.1:1080 this is an error below Usage: youtube-dl [OPTIONS] URL [URL...] youtube-dl: error: You must provide at least one URL. what is the problem here?
Liuuil
  • 1,441
  • 3
  • 16
  • 22
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
  • 4,265
  • 2
  • 16
  • 27
20
votes
1 answer

How to download 1080p + best audio using youtube-dl?

I'm trying to download 1920x1080 video with 192kb/s audio but I'm unable to extract both. For example: format code extension resolution note 249 webm audio only DASH audio 51k , opus @ 50k, 600.56KiB 250 …
dragos
  • 183
  • 1
  • 1
  • 13
18
votes
4 answers

Is there a way I can run a python Script when a button programmed in flutter is pressed?

Essentially , what I want to do is , press a button that I program in Flutter and when that button is pressed , a python script should start running on my Android device . I want to use youtube-dl (used to download Youtube videos) library in python…
Ankit Chawla
  • 364
  • 1
  • 5
  • 12
18
votes
1 answer

Can I use youtube-dl to provide the direct links and use other means to download them?

Specifically, I would like to use DownloadThemAll. Can I use youtube-dl to just give me the direct link I need?
Gray Sloth
  • 219
  • 1
  • 2
  • 3
17
votes
2 answers

Change the output name when download with youtube-dl using python

I tried to follow the tutorial to download a video from youtube: import youtube_dl ydl_opts = {} with youtube_dl.YoutubeDL(ydl_opts) as ydl: ydl.download(['https://www.youtube.com/watch?v=Bdf-PSJpccM']) But i see only when using the command(in…
AlphaWolf
  • 395
  • 2
  • 7
  • 16
17
votes
5 answers

Youtube-dl add metadata during audio conversion

Sorry if this question is misguided. I'm using youtube-dl to download song videos as mp3's before adding them to itunes. The problem is that the videos dont seem to contain the metadata in there. I read what i could understand about --add-metadata…
stackPusher
  • 6,076
  • 3
  • 35
  • 36
17
votes
3 answers

How to get information from youtube-dl in python ??

I am making an API for youtube-dl in tkinter & python and need to know: How to get the info dict from youtube-dl in realtime (speed, percentage finished, file size, etc.) ?? I have tried: import subprocess def execute(command): process =…
CannedAnchovy
  • 308
  • 1
  • 2
  • 7
16
votes
2 answers

How to rebuild python youtube-dl from the source

At first I want to admit that I am a noob in python programming. but still somehow I have managed to figure out how to modify some python regular expressions as the extractor can get some extra data for me. Unfortunately I don't know how to build…
coolsaint
  • 1,291
  • 2
  • 16
  • 27
16
votes
5 answers

Retry when connection disconnect not working

I am using youtube-dl for downloading the videos from YouTube. But in my office the internet will disconnect every 20Mb of download. [Error: Connection forcibly closed by remote server]. I have to type the URL again to resume the download and…
Olivarsham
  • 1,701
  • 5
  • 25
  • 51
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
14
votes
3 answers

Flask send_file not sending file

I'm using Flask with send_file() to have people download a file off the server. My current code is as follows: @app.route('/', methods=["GET", "POST"]) def index(): if request.method == "POST": link = request.form.get('Link') …
jackmerrill
  • 400
  • 2
  • 7
  • 21
1
2
3
68 69