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
0 votes
1 answer
616 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 ...
  • 95
1 vote
1 answer
100 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 ...
0 votes
0 answers
144 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!*=...
  • 805
6 votes
3 answers
314 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 ...
  • 97
1 vote
1 answer
674 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 ...
0 votes
0 answers
44 views

Automatically redownload youtube-dl metadata

I want to create a cronjob that redownloads all metadata every couple of months. Given a list of folders it would recursively find .info.json files, get the link, check the media hasn't been removed, ...
1 vote
1 answer
90 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 ...
0 votes
0 answers
618 views

yt-dlp with external downloader has black frames

I have the following fish shell script for downloading a slice of a video using yt-dlp and ffmpeg function yt-dlp-trim -d "Download a slice of a video with yt-dlp" if test (count $argv) ...
1 vote
1 answer
65 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 ...
  • 495
0 votes
2 answers
582 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 ...
2 votes
1 answer
110 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?
6 votes
1 answer
3k 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 ...
  • 2,120
3 votes
1 answer
4k 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-...
  • 17.6k
-3 votes
2 answers
57 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 ...
0 votes
1 answer
742 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, ...
0 votes
1 answer
1k 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 ...
  • 103
1 vote
1 answer
1k 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 ...
  • 1,996
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? ...
0 votes
0 answers
250 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 -...
1 vote
0 answers
69 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 ...
0 votes
3 answers
12k 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 ...
0 votes
0 answers
9k 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'...
  • 295
3 votes
2 answers
2k 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 &...
0 votes
1 answer
4k 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
3k 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" ...
  • 13
0 votes
1 answer
68 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 - ...
-2 votes
1 answer
795 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/ [...
3 votes
1 answer
1k 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 ...
  • 826
0 votes
1 answer
467 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 ...
0 votes
1 answer
392 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-...
3 votes
1 answer
2k 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 ...
  • 11.7k
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<=...
  • 11.7k
12 votes
2 answers
13k 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 - (%(...
0 votes
1 answer
220 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?
  • 473
1 vote
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 ...
  • 31
0 votes
2 answers
86 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 -...
  • 561
4 votes
2 answers
638 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 ...
2 votes
1 answer
1k 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 ...
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 ...
-1 votes
1 answer
45 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
9k 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-...
  • 2,139
4 votes
4 answers
6k 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 ...
  • 2,139
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.
  • 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 ...
  • 161
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 ...
  • 15.9k
0 votes
1 answer
181 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 ...
  • 1,712
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 ...
  • 23
-5 votes
1 answer
640 views

Downloading a playlist youtube-dl

I have been trying to use this command on mac: youtube-dl "link" ffmpeg -i Lec*.mp4 -map_channel 0.1.1 -ac 1 -vcodec copy fixed.mp4 to download a playlist which has some audio cut off but I keep on ...
1 vote
2 answers
2k views

EOF error when using youtube-dl

I am currently trying to download a youtube video as usual with youtube-dl but keep getting a strange EOF error. When I check my download folder i have the download file split into various parts one ...
  • 305
3 votes
1 answer
12k views

How to download the highest quality .mp3 with youtube-dl on Sierra?

I'm trying to use youtube-dl to download the highest quality .mp3 files from youtube videos. I've installed youtube-dl and ffmpeg and downloaded libav. I found this command: youtube-dl -f bestaudio ...