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

Executing shell script from inside php code

What I want to do is to execute youtube-dl -x --audio-format mp3 "token" using php and get json of following arguments: status (error = 0/success = 1) saved file url (You'll see it in console results example: [avconv] Destination: Jennifer Lopez -…
heron
  • 3,611
  • 25
  • 80
  • 148
-1
votes
2 answers

youtube-dl -citw downloads only one video instead of all

I used user@ubuntu:~/Arbeitsfläche$ sudo youtube-dl -citw ytuser: raz\ malca to download all videos from this channel. But it wodnloads only one: user@ubuntu:~/Arbeitsfläche$ sudo youtube-dl -citw ytuser: raz\ malca [generic] ytuser:: Requesting…
user3702181
  • 1
  • 1
  • 1
-1
votes
1 answer

issue with subprocess.call

Python 2.7.3 with ubuntu: Trying to run a program, (youtube-dl in this example) with subprocess.call with some arguments, I encounter the following issue. consider the following script: try.py: #!/usr/bin/python from subprocess import call url =…
user1555863
  • 2,567
  • 6
  • 35
  • 50
-2
votes
1 answer

As im trying to use my discord music bot. It gives me an error

So basicly i have been making a music bot and it worked fine with !play {url link}, but when i wanted to change it from link to search i have been getting many errors and now i dont know what to do. Here is the code: voice_clients = {} yt_dl_opts =…
ELIAS
  • 1
  • 1
-2
votes
1 answer

No module named sublime

I'm trying to work on some old code that used a library I'm not very familiar with anymore, and am getting the 'No module named' error. I'm using sublime text editor on windows. I had edited some things in build to run c++ previously if that might…
-2
votes
1 answer

What is the difference between a homebrew and wget install of youtube-dl?

When youtube-dl is installed through homebrew on an M1 Macbook Air with these commands, the resulting instance doesn't support reddit video downloads and requires some URLs to be in quotation marks: brew install youtube-dl Instead, if youtube-dl is…
user1395909
  • 157
  • 1
  • 3
  • 12
-2
votes
2 answers

how I could download a YouTube video in specific path (downloads folder) with python

I'm working on a web app python to download a YouTube video, and when I select the download button I want the video downloaded in my 'Downloads Folder' import streamlit as st import youtube_dl st.title(" YouTube Downloader") #Enter the URL link =…
Lama
  • 3
  • 4
-2
votes
2 answers

Play drm protected video

I downloaded video from this…
Aaditya Kumar
  • 39
  • 1
  • 1
  • 3
-2
votes
1 answer

Discord py music from yt queue link

I'm currently using ytdl and ffmpeg to run music with my discord bot...but I cant add queue from youtube queue links..Is there any way to add queue from youtube queue links??..and also a shuffle command would be also great..
Wahid Islam
  • 1
  • 1
  • 1
-2
votes
1 answer

Problem with downloading .mp3/webm format music/videos from youtube using python youtube_dl

So, it's not my code I found it on youtube tutorial(which I can't find now). from __future__ import unicode_literals import youtube_dl import os from sys import argv # Download data and config download_options = { 'format': 'bestaudio/best', …
-2
votes
1 answer

How to skip a batch file error when using a repeated command

I'm using a batch file and youtube-dl to download videos from a list in a txt file. The code is short: @ECHO off youtube-dl -a list.txt PAUSE Occasionally I get an http error 404 because I've missed a letter when copying & pasting the URL. When the…
-2
votes
1 answer

Is there a way to play songs from a dict? Discord.py

I have been trying to make a queue command. This successfully appends input to the dict, like ['song1', 'song2']. But attempts to play the next song without waiting for the current song to finish, resulting in already playing error. async def…
Lemon
  • 11
  • 2
-2
votes
2 answers

Does youtube-dl still work(newest version youtube-dl-2020.2.16)?

Used command: youtube-dl --max-filesize 30m -f m4a -o "/home/dc3014b3c6a1a23bba88b2a1fbcc1447.m4a" "https://www.youtube.com/watch?v=_Xa0ydtx8PM" youtube-dl can't work at all for me. Error happened like these: ERROR: Unable to download webpage:…
-2
votes
1 answer

how to download a specific no of videos from a youtube playlist using Youtube-dl?

I want to download a particular no. of videos from a Youtube playlist where they are arranged one after the other. How can I do so using youtube-dl and FFmpeg? Also, I want to number them according to their numbers in the playlist.
Sibasish Mishra
  • 15
  • 1
  • 1
  • 7
-2
votes
3 answers

downloading videos to a specific path with youtube-dl

I cant seem to find a way to download videos with youtube-dl to a specific path, I have tried -o but it just does something and says that it downloaded to that path but there are no videos there.
Pugly
  • 29
  • 1
  • 4
1 2 3
68
69