Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [youtube-dl]

youtube-dl is a command-line program to download videos from YouTube.com and a few more sites.

Filter by
Sorted by
Tagged with
3 votes
1 answer
280 views

jq skip iteration over null

I am using jq 1.7 Data I am operating on info.json downloaded by yt-dlp yt-dlp --write-info-json --skip-download https://www.youtube.com/watch?v=vlIO-7Rpi7c JQ - Task Now I want to remove all array ...
Porcupine's user avatar
  • 2,056
0 votes
0 answers
210 views

mpv fails to play youtube videos

I've been using mpv for a while, but now whenever I try to play a youtube video the following output shows up: [ffmpeg] https: HTTP error 403 Forbidden Failed to open https://rr5. . . EDL: Could not ...
Ash's user avatar
  • 145
0 votes
1 answer
43 views

Dolphin service menu to run konsole command with copied data in working directory

I would like to combine these two elements that I already use: Konsole terminal running a yt-dlp command in order to download from a copied link (like konsole -e yt-dlp 8 %u) A Dolphin service menu ...
cipricus's user avatar
  • 1,599
3 votes
2 answers
565 views

How to watch video while still downloading including audio?

If I download a video using youtube-downloader I can watch the part file while downloading (in my case using mpv). Suppose I cannot or don't want to select a format containing both video and audio ...
student's user avatar
  • 18.4k
0 votes
0 answers
71 views

Not a directory but have contents

So I use Compute Engine VM in Google Cloud to download youtube videos. I use Youtube-dl to download it. I follow the documentation in here: https://github.com/ytdl-org/youtube-dl/blob/master/README....
Flitzcore's user avatar
  • 101
2 votes
1 answer
4k views

Mpv not running youtube urls because youtube-dl is out of date

I'm using Linux Mint 21.1 and I recently installed mpv. When I run mpv followed by a youtube url I get the following lines: [ytdl_hook] ERROR: Unable to extract updater id: please report this issue on ...
Ash's user avatar
  • 145
1 vote
1 answer
253 views

How to write a function that takes an argument string that does not need to be quoted?

I'm writing a function, adding it to ~/.zshrc on my Mac. It's in order to more quickly handle commands to youtube-dl. I have this: function dlv() { cd /Users/admin/Downloads youtube-dl ...
Alfie Stoppani's user avatar
0 votes
0 answers
917 views

Downloading a segment of a youtube video and cropping it precisely

I have an interesting little problem. I want to download a specific section of a youtube video, this is easy enough to do with the magic of yt-dlp: yt-dlp -f "(bestvideo+bestaudio)[protocol!*=...
Acorn's user avatar
  • 845
6 votes
3 answers
687 views

If no input URL is supplied use list from text file

I am trying to create a shell script for yt-dlp that takes an URL as input from the command line or if no input is given use an internal list. The script works when given input, but crashes when no ...
Kasam's user avatar
  • 97
1 vote
2 answers
1k views

Download playlist with youtube-dl. Saving all data including the archive file into the uploader's folder for each video

This can't be done just with arguments as it says here: Set download-archive path with args I want to make two similar scripts. One that downloads the videos and archive file in the uploader's folder ...
user avatar
1 vote
1 answer
454 views

command not found: xsel -ob

I'm using Manjaro Linux. I've changed my yt-dlp's zsh configuration and now I get ❯ ytvp deal_with_long_filename:1: command not found: xsel -ob deal_with_long_filename:2: command not found: xsel -ob ...
user avatar
1 vote
1 answer
80 views

what starts youtube-dl automatically in linux?

In the last two days, I've noticed that something starts youtube-dl when I start my system (Debian 11); it seems to be as soon as I login. The reason I noticed is that it steals all resources and I ...
j4nd3r53n's user avatar
  • 715
0 votes
2 answers
928 views

"Unsupported URL: https://www.youtube.com/"

How to grab a youtube video if youtube-dl reports "ERROR: Unsupported URL: https://www.youtube.com/"? Complete error: [generic] watch?app=desktop: Requesting header [redirect] Following ...
user199589's user avatar
2 votes
1 answer
122 views

Separate the "youtube-dl -g" results

I am using the following command: youtube-dl -g "video-url" > file-path and I want to separate the two results into two different files; how would I do this?
SoaringGecko's user avatar
10 votes
3 answers
7k views

How to list chapter titles from a YouTube video using youtube-dl / yt-dlp

Some YouTube content creators split their videos into chapters. A subset of them kindly offer the list of chapters titles on description video, with their starting timestamp. Sometimes they decide not ...
Pablo A's user avatar
  • 2,752
4 votes
1 answer
8k views

Download and sort list of all videos from a youtube channel with youtube-dl

I want to download a list of all videos of a youtube channel and sort it by duration. Here is what I tried with youtube-dl resp. yt-dlp: yt-dlp --skip-download "url_to_channel" --get-...
student's user avatar
  • 18.4k
-3 votes
2 answers
70 views

Youtube on Linux

I downloaded youtube_dl and found it where it is on my C drive - being a New User for Linux Mint Cinnamon I do not know how to Run the youtube_dl to DOWNLOAD Songs etc. like I did on Realplayer in the ...
Elvis 1357's user avatar
0 votes
1 answer
1k views

youtube-dl — optimizing transcoded videos with regard to file size

When I use youtube-dl, I use --recode-video mp4 to ensure output to MP4 (as well as -f bestvideo[height<=1080]+bestaudio/best[height<=1080]/best to limit downloads to 1080p resolution, max). So, ...
Tina Russell's user avatar
1 vote
1 answer
2k views

With youtube-dl how to download all videos before a specific date more efficiently?

I want to downloand all videos by a specific YouTube channel uploaded before a specific date with youtube-dl. Hence, I did youtube-dl <url_to_youtube_channel> --datebefore <date>. Before ...
Joe's user avatar
  • 113
1 vote
1 answer
2k views

What is the right way to set header in the youtube-dl config file

I checked the documentation: --add-header FIELD:VALUE Specify a custom HTTP header and its value, separated by a colon ':'. You can use this ...
Ahmad Ismail's user avatar
  • 2,688
0 votes
1 answer
2k views

Output file #0 does not contain any stream [duplicate]

ffmpeg $(youtube-dl -g 'https://www.youtube.com/watch?v=zSyNOO_gvUY' | sed "s/.*/-ss 02:04 -i &/") -t 02:18 -c copy out.mkv from How to download portion of video with youtube-dl command? ...
Timer Tak's user avatar
0 votes
0 answers
378 views

download part of video up to certain resolution

This command will download part of the video youtube-dl -g "https://www.youtube.com/watch?v=mFlrc16xjik" | awk '{ if(NR==1) print $0 }' | sed "s/^/'/;s/$/'/" | xargs -I {} ffmpeg -...
testoflow's user avatar
  • 117
1 vote
0 answers
99 views

youtube-dl with replay of live events

I used youtube-dl to get a live event. The result is a file of over 3 GB that plays on VLC and Quicktime in 5 seconds and skims over the several hours of footage. How can I download a live event onto ...
emonigma's user avatar
  • 165
0 votes
3 answers
16k views

How can you download 4k youtube videos in mp4 using youtube-dl?

I have observed that the size of mp4 videos are larger than webm for a same resolution video. Which makes me wonder that either there is some quality loss or compression in webm. youtube-dl -F url ...
Vin Raghav's user avatar
0 votes
0 answers
10k views

youtube-dl error -- YouTube said: Unable to extract video data

My youtube-dl is the latest version: youtube-dl --version 2020.07.28 I found that some url can be downloaded, some can't. #url which can be downloaded url='https://www.youtube.com/watch?v=5dZ_lvDgevk'...
showkey's user avatar
  • 383
3 votes
2 answers
3k views

How do I get the path of the downloaded Youtube-DL file?

I have designed a script to easily and quickly download videos from YouTube that uses options at the end to ask if you want to download another. Here's my script: #!/bin/bash cd ~/Videos read -p &...
AKASGaming's user avatar
0 votes
1 answer
5k views

Watch and download video from YouTube with MPV only

I watch YouTube videos by piping URLs to mpv. Sometimes I would like to keep the video file after having watching it; just like if I had downloaded it with youtube-dl. I was wondering if there is a ...
user avatar
0 votes
1 answer
4k views

"Not a valid identifier" on file read

In a Putty remote connection, I am trying to read a file line by line, cut each line by delimiter (";"), and run a command if the variables satisfy a condition. However, I get "not a valid identifier" ...
Elie's user avatar
  • 23
0 votes
1 answer
72 views

Most efficient way to partially match filenames to textfile and delete accordingly?

I have a file that has about 1000 entries that look like this: ... U9FzgsF2T-s ... Basicly full of youtube video ids. Then I have a folder that is full of videos that are named like this: 007 - ...
user2741831's user avatar
-2 votes
1 answer
1k views

Youtube-dl fails on youtube and works on other sites

I started having this issue a few days ago: youtube-dl no longer works for links to YouTube, but works fine for other sites such as Instagram: $ youtube-dl https://www.instagram.com/p/B47c667AKPo/ [...
emonigma's user avatar
  • 165
4 votes
1 answer
2k views

How to execute a script after a youtube-dl download is finished?

I would like to execute a script via youtube-dl's own options/settings/adjustments after a download is finished. Reading through the documentation, I have not found anything that is relevant or ...
henry's user avatar
  • 894
0 votes
1 answer
542 views

Automaticly download and update youtube playlist

I am using youtube-dl to download my music playlist. Theres only one problem: youtube-dl doesn't realize which videos it has already downloaded, so it simply redownloads every single video. I would ...
user2741831's user avatar
0 votes
1 answer
482 views

How to set bitrate for ffmpeg's native Opus encoder using youtube-dl?

I don't have libopus library. According to ffmpeg docs there is have basic control over bitrate settings. Passing params to ffmpeg with -postprocessor-args ARGS. --no-check-certificate --prefer-...
Alex Zubkov's user avatar
3 votes
1 answer
3k views

way to transform vtt, ttml, srv3, srv2 or srv1 insto srt?

When I use youtube-dl to list-subs I usualy get something like the following - en vtt, ttml, srv3, srv2, srv1 Is there a way to transform any of these subtitle formats to .srt format using ...
shirish's user avatar
  • 12.5k
0 votes
1 answer
1k views

How to get a specific configuration in youtube-dl?

I want to make the following as my best parameter to youtube-dl to consider while downloading a media file. /media/$ youtube-dl -c -f youtube-dl 'bestvideo[height<=720]+bestaudio/best[height<=...
shirish's user avatar
  • 12.5k
14 votes
2 answers
19k views

How can I download just the info-json files using youtube-dl, without downloading the actual video?

I'm a novice data hoarder, and have a few hundred videos archived from YouTube, using the following youtube-dl config file: -i -o "%(uploader)s (%(uploader_id)s)/%(upload_date)s - %(title)s - (%(...
willem.hill's user avatar
0 votes
1 answer
254 views

youtube-dl : how to skip downloads lower than 480p resolution?

When using the popular program youtube-dl, how can I skip download of certain videos, particularly ones that have a lower quality than 480p resolution?
Anonymous's user avatar
  • 523
2 votes
1 answer
4k views

youtube-dl 'Filename too long' error

I am storing a url inside a variable in bash. It has nothing to do with real file paths but it keeps giving me the error File name too long. How do I tell bash to ignore looking for filenames and ...
josh's user avatar
  • 41
0 votes
2 answers
90 views

Phantom binary installed with curl

I upgraded binary youtube-dl following this instruction. locate seems to find it, not ls, and it cannot be invoked. What is happening? /usr/bin $ sudo apt-get remove youtube-dl /usr/bin $ sudo curl -...
Erwann's user avatar
  • 667
4 votes
2 answers
1k views

How to list all files less than 1080p

There are a number of Youtube channels that I archive using a daily cron script that runs youtube-dl. However, in checking over the videos to make sure my script is working, I noticed for one of the ...
DragonFury's user avatar
3 votes
1 answer
2k views

youtube-dl, how to write all subs of a youtube playlist to ONE single file?

I'm on Fedora 28 OS and have youtube-dl version 2019.03.18 and I wanted to download all the subs and only the subs of a Crashcourse playlist off of youtube, consisting of 45 videos. I want all the ...
WobblyWindows's user avatar
1 vote
1 answer
3k views

Download error with youtube-dl and axel

I am trying to download following video: https://www.youtube.com/watch?v=pQWj2Fgxdrc by combining 'youtube-dl' and 'axel'. I am trying to download this video in such a way that I want these two ...
Zetro Track's user avatar
-1 votes
1 answer
47 views

Grab last youtube video index and re-download .description

after I had download youtube videos with youtube-dl -cit -f 140 ' , I forget to download the .description as well... so I have bunch of files without description, I want to redownload the description ...
user avatar
7 votes
1 answer
10k views

Combining youtube-dl and VLC without a pipe

youtube-dl -o - <webpage> | vlc - shows a video in VLC. However, the video is piped (through something like fd://0), which inhibits the possibility to jump forwards/backwards. However, youtube-...
forthrin's user avatar
  • 2,299
4 votes
4 answers
8k views

CLI utility to search and view/download YouTube videos

Is there a utility that can search YouTube from the command line, and then either view or download the search results according to user input? $ youtube-search madonna 1 Madonna - Hung Up (Official ...
forthrin's user avatar
  • 2,299
4 votes
2 answers
3k views

How do I embed a JPG thumbnail to a ogg/opus audio file with a script?

I am using youtube-dl to download ogg audio files with their respective thumbnail, but I am not sure how to embed the thumbnail into the audio file.
Hyrial's user avatar
  • 143
0 votes
1 answer
2k views

How to queue up videos or media using mpv?

In particular I'd like a command for mpv that will automatically play youtube links I add in order. For example, at a party I might want to queue up songs as we think of them, and have them ...
dessalines's user avatar
9 votes
1 answer
7k views

youtube-dl download autotranslate subs

I would like to download auto-generated subtitles with youtube-dl as follows $ youtube-dl --write-auto-sub \ --skip-download \ https://www.youtube.com/watch?v=vbLEf4HR74E It ...
xralf's user avatar
  • 15.5k
0 votes
1 answer
186 views

Why Windows download under VirtualBox is 20x faster than in native Linux? [closed]

I'm using Linux Debian Jessie 64-bit (Host), and have Windows 7 (Guest) running on Oracle VirtualBox. I'm using youtube-dl to download a video from YouTube. Since a friend asked me how to use it and ...
Rodrigo's user avatar
  • 1,832
1 vote
1 answer
2k views

Ffmpeg - youtube-dl

I have try to use ffmpeg to download youtube media in mp3. ffmpeg -i <url> -f mp3 output.mp3 It's working with other urls, but not with youtube-dl retrived youtube video urls. Ffmpeg returns ...
edadam's user avatar
  • 23