Skip to main content

Questions tagged [youtube-dl]

A free command-line downloader primarily for YouTube videos, available on many platforms.

Filter by
Sorted by
Tagged with
1 vote
1 answer
580 views

How long the URL of a YouTube video last before expiring?

On executing youtube-dl -g <youtube_link> we get the urls for the video and the audio, we can play those urls with vlc for example. But for how long those urls are valid?, they're of the form: ...
user2495207's user avatar
1 vote
1 answer
307 views

Youtube playlist to m4b audiobook

Currently I download youtube playlists as audio -f 140, transfer the files via itunes to my iphone, then add a common artist/ablum metadata in itunes move it from music to audiobooks. However, this ...
Tom Huntington's user avatar
1 vote
0 answers
274 views

yt-dlp turns off my Telegram and Discord when I use --download-sections

I'm getting this problem on a macOS Monterey. When I run yt-dlp --download-sections, it takes a few seconds to reach the frame downloading part, but when it does get there, my Discord gets stuck on ...
Daviti Shalikiani's user avatar
3 votes
1 answer
2k views

No audio for WEBM format

I'm trying to download a video because I don't like the forced HDR by YouTube. I got the following output when entering this command yt-dlp -F "https://www.youtube.com/watch?v=19h1iUcC3QU" ...
Mordecai's user avatar
1 vote
1 answer
5k views

How to download sections from youtube videos from command line with bad internet

I want to download certain sections from a youtube stream, currently I'm using this command to get the job done: yt-dlp --download-sections "*30:15-1:40:25" $LINK the problem is that ...
Alejandro Garcia's user avatar
0 votes
0 answers
1k views

yt-dlp playlist re-stream FFMPEG constantly dropping

yt-dlp "https://www.youtube.com/playlist?list=PL63F0C78739B09958" --exec "ffmpeg -i {} -vcodec libx264 -c:a aac -b:a 160k -crf 23 -preset fast -f flv rtmp://127.0.0.1:1935/live/mytv10&...
HD TV's user avatar
  • 1
0 votes
0 answers
1k views

Burn subtitle in youtube video while downloading

How to burn a YouTube video with a subtitle while downloading (simultaneously) using yt-dlp and ffmpeg. Can you help me with a batch file or command line syntax?
Satish Kumar's user avatar
0 votes
0 answers
2k views

Why does piping yt-dlp tp FFmpeg fail with --download-sections?

I'm trying to download a clip of a video (including audio) in a streaming manner (i.e. with no temporary files) in a given format. This works fine: yt-dlp --ignore-config --no-config-locations -f 22 -...
user541686's user avatar
2 votes
2 answers
2k views

How to make youtube-dl (yt-dlp) generate subtitles properly and not duplicate the text?

I'm using yt-dlp to download some videos, and I've told it to embed the subtitles. This seems to work, except it's generating subtitles in the most horrible way by duplicating the text. For example, ...
Component's user avatar
-1 votes
1 answer
1k views

youtube-dl removed but still there

There's a ghost in the shell. I tried to remove youtube-dl through brew uninstall youtube-dl: -bash: brew: command not found cool, that means I have not even installed brew. I then checked if I could ...
Francesco Mantovani's user avatar
0 votes
1 answer
246 views

Prevent the youtube-dl process fork when downloading metadata for a video in a playlist

Storing the metadata for a video using in a file using youtube-dl can be done in bash by calling youtube-dl -j https://www.youtube.com/watch?v=${video_id} > metadata.json However, when the video ...
fuumind's user avatar
  • 433
9 votes
2 answers
18k views

youtube-dl not downloading any "age restricted" video

Youtube has started "age restricting" many videos, and I can't download them with youtube-dl for example youtube-dl https://www.youtube.com/watch?v=xeZ3k2ywQ6Y so user@droplet~/user# ...
barlop's user avatar
  • 24.2k
1 vote
3 answers
3k views

How do you download multiple files/videos, simultaneously, on a basic digitalocean droplet/VPS?

How do you download multiple files/videos, simultaneously, on a basic digitalocean droplet? Let's say I create a basic digitalocean droplet/VPS, that runs Ubuntu I start the console I do apt install ...
barlop's user avatar
  • 24.2k
0 votes
0 answers
2k views

Get URL of YouTube live stream

How to find out which video ID (https://www.youtube.com/watch?v=VIDEO_ID) corresponds to current live stream available at URL like this: https://www.youtube.com/channel/CHANNEL_ID/live ? The software ...
Paul's user avatar
  • 944
0 votes
1 answer
2k views

How to download videos that have subtitles using youtube-dl "yt-dlp"?

I have the following command which tries to download videos that only have subtitles and ignore everything else. However, this command doesn't filter it out and downloads them anyway. Any idea why? yt-...
Gansaikhan Shur's user avatar
0 votes
1 answer
977 views

Downloading and merging mp3 in time-range from Youtube using youtube-dl and ffmpeg

Background I am trying to download best quality mp3 from Youtube videos in specified time range (first 30 seconds, 20-55 seconds etc), and then merge them to create one output file. Tools being used ...
Green goblin's user avatar
0 votes
1 answer
2k views

how pipe the 'get_url' of youtube-dl to ffmpeg stdin

I'm not getting pass the output from the first process with Youtube-dl through pipe to stdin of ffmpeg. It is as if the Youtube-dl force the execution of process after pipe instead wait for his own ...
Carlosp3's user avatar
0 votes
0 answers
5k views

Save a local file URL .m3u8 stream using youtube-dl

I have a local .m3u8 file containing stream information. I would like to use youtube-dl or a fork to download the stream. When I pass the local file to youtube-dl it gives the error that it is ...
pkamb's user avatar
  • 4,453
0 votes
1 answer
172 views

Youtube-dl acting up in Kubuntu 18.04 "can't download"

first thing I'd like to state that I didn't have any issues using youtube-dl in Windows 10. But not in Kubuntu 18.04, It doesn't work the command: $ sudo youtube-dl 'IllgR6kOieI' --external-downloader ...
mohsentux's user avatar
  • 115
0 votes
0 answers
637 views

Youtube-dl not downloading requested filesize

So I currently have "youtube-dl.exe" -l PL6NdkXsPL07IOu1AZ2Y2lGNYfjDStyT6O -f "[filesize<25M]" --audio-format "mp3" --ffmpeg-location "C:\Users\%Username%\...
Sheesh Man's user avatar
0 votes
0 answers
329 views

Drag & drop URL from address bar into folder = automagically convert + download

How would I go about finding out how to drag & drop shortcut URL from browser address bar into folder to auto download / convert to audio mp3? After dragging into folder, the output file would ...
Uncle Iroh's user avatar
0 votes
0 answers
273 views

Is downloading a media file twice and comparing their hash values enough to verify their integrity?

I often use youtube-dl to download videos. As far as I know, there is no data integrity verfication built in to youtube-dl, so what I do to verify that a video isn't corrupted in some way after ...
Uri's user avatar
  • 3
0 votes
0 answers
1k views

Download specific resolution with youtube-dl

How to download video with specific video resolution, lets say Full HD with best audio and merge them together. I need a one line command in which you just can change the video resolution if choose to....
IGRACH's user avatar
  • 489
0 votes
1 answer
397 views

Regex in youtube-dl arguments

I want to extract two paths from the youtube-dl arguments, the output template and ffmpeg location -o (.*%\(ext\)s).* --ffmpeg-location (.*) With the regex above I am able to capture both the output ...
HBatalha's user avatar
  • 145
2 votes
2 answers
7k views

Difference between ffmpeg versions

I am using ffmpeg and ffprobe to do video/audio conversions when using youtube-dl in a GUI interface. The current ffmpeg version command line tool on windows is very large, over 100MB. I want to ...
HBatalha's user avatar
  • 145
4 votes
1 answer
3k views

How to download a portion of a YouTube video

I often come across YouTube videos that I need to crop parts from, but these videos can be long and downloading the entire video just to process a small part of them would take too long and be very ...
Hashim Aziz's user avatar
0 votes
1 answer
66 views

Using `-to` instead of `-t` when using YouTube link as input

This answer shows how to get a portion of a YouTube video by using URLs as input. The command works mostly fine, but I want to avoid using -t as I need to cut between specific timestamps and I'd ...
Hashim Aziz's user avatar
0 votes
2 answers
3k views

Using read to capture multiple variables from a command's output

I have a youtube-dl command that when run outputs two new lines, and I'm trying to capture each of those to variables. Here is what I have so far, but for some reason I can't understand, it only ...
Hashim Aziz's user avatar
1 vote
1 answer
781 views

Youtube-dl - different config file for video & audio?

Is it possible to pass a specific config file to youtube-dl without writing all arguments in command line? Right now I'm using AHK to input in PowerShell for video youtube-dl.exe -o '%(playlist_index)...
Mafsi's user avatar
  • 113
0 votes
1 answer
3k views

How To Download Youtube Videos With Two Or More Subtitles Youtube-DL [duplicate]

I was wondering is there a way to download a Youtube videos with 2 or more Subtitles using Youtube-DL and ignore auto-generated subtitles?
Timothy Robert's user avatar
1 vote
1 answer
3k views

Is there a way to download the auto generated subtitles of videos in a private / public YouTube playlist?

I found this cool Reddit link here which basically does what the title says, but this stuff felt a bit confusing to me. Can somebody please suggest if there's a better way to download the ...
dongcopter's user avatar
0 votes
0 answers
287 views

How do I pass arguments to `youtube-dl.exe`

I have newly installed youtube-dl.exe How do I pass arguments to it that normally appear as www.example.com?A=1&B=2 and also headers that appear as -H Without change this gives an error: is not ...
user113823's user avatar
0 votes
0 answers
535 views

Using youtube-dl, how do I get the length of an extremely long playlist

Using youtube-dl:s json capabilities together with jq like so: youtube-dl -J --flat-playlist [playlist_url] | jq '.entries | length' I can get the number of videos in a playlist. This does consume an ...
fuumind's user avatar
  • 433
0 votes
2 answers
2k views

Unable to use youtube-dl or annie to download video from Bilibili

So I was trying to download a video from Bilibili using annie. I oroginally chose youtube-dl but unfortunately it doesn't seem to support Bilibili website, so I chose annie instead, following the ...
jxhyc's user avatar
  • 563
0 votes
0 answers
854 views

Ffmpeg downloading slow?

Mine download speed is slow when I use ffmpeg to download a video. When I use other programs that use ffmpeg I am getting no problem but downloading on termux I am getting slow speed.
For Fun's user avatar
  • 11
1 vote
1 answer
357 views

Downloading a video as a best quality mp4 without audio?

I'm trying to download videos from Youtube as their best quality mp4, without the audio. I know I can use youtube-dl -F to see all available formats, choose one and then run another command, but I ...
oscaro's user avatar
  • 113
0 votes
1 answer
322 views

Youtube Command Prompt

I tried to download a youtube video with the following command: C:\Users\[me\OneDrive\Desktop\Test>youtube-dl -fURL I've also tried: C:\Users\[me\OneDrive\Desktop\Test>youtube-dl -f[URL] but I ...
Yves Binda's user avatar
0 votes
0 answers
1k views

ffmpeg Fails to download segment

When I download a m3u8 video file with ffmpeg I'm getting this error "Failed to open segment 791 of playlist 0" on some segments. Ffmpeg skips segment 791.How can make ffmpeg not skip the ...
For Fun's user avatar
  • 11
3 votes
2 answers
5k views

How to extract all the youtube video links for a particular youtube channel using Youtube-dl?

How to extract all the youtube video links URL for a particular youtube channel using Youtube-dl ubuntu shell script? the file should contain certain information like: Video URL Video Title Video ...
Technology EFX TV's user avatar
3 votes
1 answer
3k views

How can I get youtube-dl to match all videos in a channel that have a particular word in the title?

I want to archive all the videos in a YouTube channel, but I want to save some at a lower quality and others at a higher quality based on their title. According to the docs, it seems like --match-...
Kaypro II's user avatar
  • 1,482
1 vote
0 answers
252 views

Skip a video in youtube-dl if number of fragments are > n

youtube-dl typically downloads a youtube video very fast but when it comes to downloading live streams, its painfully slow. Often live streams are processed as dash videos and we are given fragments. ...
not-lucky's user avatar
0 votes
1 answer
1k views

Audio Downloader from YouTube with youtube-dl and ffmpeg

I am trying to make an audio downloader with youtube-dl and ffmpeg which will: Download the best format of audio available on YouTube Embed thumbnail in the file. Convert the file to mp3. Delete ...
Um9vdAo's user avatar
4 votes
2 answers
4k views

Convert auto generated subtitle to srt format with youtube-dl

I want to download generated subtitle from youtube and convert it to srt format using command youtube-dl --write-auto-sub --sub-lang en --convert-subs=srt --skip-download <URL> it just output ....
Alifian's user avatar
  • 41
0 votes
2 answers
777 views

How can I get the best video (with audio) in MP4 format?

I am trying to download the best video and audio from the streaming url using youtube dl command line and below is the response. Knowing this, how can I get the best video (with audio) in MP4 format? ...
Satish Kumar's user avatar
1 vote
0 answers
951 views

mpv video freezes but audio plays when using youtube

I'm using mpv to play videos from different sources (e.g. youtube) in conjunction with my newsfeed-reader newsboat on my Debian Stable system (actually PureOS Amber which is based on Debian). But ...
n0542344's user avatar
  • 111
0 votes
1 answer
520 views

Formatting output from playlist-only download from youtube-dl

In reference to question youtube-dl; How download ONLY the playlist, NOT the files therein Can i get output like the following : https://youtu.be/0gvUCLL-UGE | video title https://youtu.be/...
Neel's user avatar
  • 101
0 votes
1 answer
15k views

How i can download youtube videos by using cmd [duplicate]

in the first time of learning command line i've saw the quick performance that it presents and its deal with files, directories, and programs efficiently. after all of that i think command line not ...
Walid Nagar's user avatar
1 vote
0 answers
322 views

How to download batch subtitles in Youtube-dl?

How do I download batch subtitles from a list of links? Generally I use this command: --all-subs --skip-download URL How do I batch it to download multiple subtitles?
uckthis's user avatar
  • 11
5 votes
3 answers
19k views

How to download aes encrypted m3u8 using ffmpeg or youtube-dl?

I have the m3u8 file and the key.bin, inside the m3u8 file is: #EXTM3U #EXT-X-VERSION:4 #EXT-X-PLAYLIST-TYPE:VOD #EXT-X-INDEPENDENT-SEGMENTS #EXT-X-TARGETDURATION:6 #EXT-X-MEDIA-SEQUENCE:0 #EXT-X-KEY:...
weakplayrxw's user avatar
0 votes
1 answer
1k views

youtube-dl + ffmpeg: Import description and URL of an original video to ID3 tags

Following bundle is used to download and encode audio: /usr/local/bin/youtube-dl --playlist-reverse -o "%(upload_date)s %(title)s.%(ext)s" --write-annotations --download-archive "....
Paul's user avatar
  • 944