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
7
votes
1 answer

Downloading YouTube to mp3 and writing metadata (artist/song title) to mp3 file using youtube-dl

I am extracting audio only from youtube videos using youtube-dl. I would like to write the metadata (i.e. Artist Name and Song Title) into the mp3 file after downloading. My attempt to accomplish this starts with this code: @echo off set…
IRNotSmart
  • 351
  • 6
  • 18
7
votes
2 answers

Embedding thumbnail to mp3 with Youtube-dl raise exception

I am trying to use youtube-dl to download some youtube video sound as mp3 and embed the thumbnail as well. But i get the following error every time i try: thumbnail_filename = info['thumbnails'][-1]['filename'] KeyError: 'filename' Here is my…
Gigalala
  • 439
  • 1
  • 8
  • 24
7
votes
1 answer

youtube-dl and php exec

I have installed youtube-dl on my CentOS 6 / Plesk 10 Dedicated server, and via SSH, everything works like a charm ! The thing is I'm trying to write a php script which takes a POST parameter in containing the URL of the video I want to copy to the…
Charleshaa
  • 2,218
  • 2
  • 21
  • 25
6
votes
2 answers

Does youtube-dl library support download stories from instagram?

I Use library called YouTube-dl, which can download from many sites. it's support cookies files. I made the following code: youtube-dl -j —-cookies /path/to/cookies.txt URLgoesHere What I want is how to download stories from Instagram using this…
6
votes
3 answers

Extract specific frames of youtube video without downloading video

I need to extract specific frames of an online video to work on an algorithm but I don't want to download the whole video because that would make it highly inefficient. For starters, I tried working with youtube videos. I can download whole of the…
Kashish Arora
  • 900
  • 5
  • 25
  • 39
6
votes
3 answers

ffmpeg "Manifest too large" when downloading youtube video

TL;DR I'm trying to programmatically download a part of a YouTube video. The widely known procedure doesn't work for some videos and I'd like to overcome this situation. Context I'm trying to programmatically download a part of a YouTube video. As…
ynn
  • 3,386
  • 2
  • 19
  • 42
6
votes
1 answer

youtube-dl filename formatting lowercase and dashes

I'm using youtube-dl frequently and have a quite simple file-naming scheme: lower case only and things of the same group are connected with "-" (minus, dash, etc.) while different things are connected with "_" (underscores). I'm not into regex and…
alex
  • 1,103
  • 1
  • 14
  • 25
6
votes
1 answer

Why can only download the first episode video on bilibili with youtube-dl?

I can download the first episode of a series. yutube-dl https://www.bilibili.com/video/av90163846?p=1 Now I want to download all episodes of the series. for i in $(seq 1 55) do yutube-dl https://www.bilibili.com/video/av90163846?p=$i done…
showkey
  • 482
  • 42
  • 140
  • 295
6
votes
2 answers

runtime/cgo: pthread_create failed: Resource temporarily unavailable

I currently have this function, that pipes multiple youtubedl commands thru ffmpeg, and then pipes the output of ffmpeg to an HTTP client. func pipeThruFfmpegToMp4(vi *VideoInfo, rw web.ResponseWriter) error { var ffmpeg *exec.Cmd ffmpeg =…
nadermx
  • 2,596
  • 7
  • 31
  • 66
6
votes
2 answers

Specify subtitle options while downloading YouTube subtitles only using youtube-dl

I want to download the subtitle of a YouTube playlist with the following specifications: Only in English In srt format Just the subtitles files and not the video itself I have tried the following code snippet. But it is downloading the subtitles…
Shrayani Mondal
  • 160
  • 1
  • 7
6
votes
4 answers

youtube-dl: How to skip videos with unavailable fragments in playlist, but not to abort playlist downloading?

I want to download a playlist of videos from youtube using youtube-dl for further offline viewing. Some videos have unavailable fragments (but for some reason there is no problem when viewing through browser). I want to download the playlist, but…
Araneus0390
  • 556
  • 1
  • 5
  • 18
6
votes
1 answer

Choosing download location for youtube-dl python

I'm using youtube-dl for a discord bot in python and it works fine, however it downloads the files to the root directory of the project. Since it will be downloading LOTS of videos, I would prefer for it to download to a directory inside of the…
reticivis
  • 489
  • 2
  • 7
  • 13
6
votes
2 answers

zsh: /usr/local/bin/youtube-dl: bad interpreter: /usr/local/opt/python/bin/python2.7: no such file or directory

macOS 10.12 Seems like the same problem here but top answers just led to more questions. Top answer says to do: brew link --overwrite python which yields: Warning: Already linked: /usr/local/Cellar/python/3.6.5 To relink: brew unlink python &&…
A__
  • 1,616
  • 2
  • 19
  • 33
6
votes
3 answers

YouTube-dl - Give each download a custom album name

I'm wondering if theres a way to give a custom album name to every download i make on YouTube-dl. You see I download a lot of podcast videos from YouTube and extract the audio for offline use. I've already managed to specify the download location…
SneakyShrike
  • 723
  • 1
  • 10
  • 31
6
votes
1 answer

youtube-dl python script postprocessing error: FFMPEG codecs aren't being recognized

My python script is trying to download youtube videos with youtube-dl.py. Works fine unless postprocessing is required. The code: import youtube_dl options = { 'format':'bestaudio/best', 'extractaudio':True, 'audioformat':'mp3', …
stackPusher
  • 6,076
  • 3
  • 35
  • 36