Questions tagged [yt-dlp]

For questions related to the command-line video and audio downloader yt-dlp.

For questions related to the command-line video and audio downloader yt-dlp.

26 questions
9
votes
1 answer

How to select maximum resolution and specify a format/codec in yt-dlp?

I use yt-dlp frequently and like it. But there is a problem I can't find documented anywhere. yt-dlp -v -f "bv*[height<=720]+ba*[ext=m4a]" -N 4 "https://www.youtube.com/xxx" Will find the best video that does not exceed 720 resolution. yt-dlp -v -f…
Bart Lederman
  • 367
  • 1
  • 4
  • 11
9
votes
1 answer

How to download all videos with yt-dlp from a youtube channel after the redesign?

Youtube has recently had a redesign of its UI and apparently it's APIs where video content are now divided by regular videos, live streamed videos, and shorts among others. And to download all videos from a channel prior to the change, I would use…
8
votes
3 answers

Upgrade/update yt-dlp via pip?

There used to be a top answer with a simple command to update yt-dlp via pip, and I swore it was pip install --upgrade yt-dlp, but maybe it was python3 pip install --upgrade yt-dlp. I cannot test it locally so I have to ask: I am being told there is…
Wolfpack'08
  • 1,364
5
votes
2 answers

How to get playlist title with yt-dlp?

I want to get the playlist title of a youtube playlist and store it in a variable in a bash script. I have already tried these things: -e flag but it lists only the video titles -o flag and --get-filename but again the same the best try was to run…
3
votes
1 answer

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" ID EXT RESOLUTION FPS HDR CH │ FILESIZE TBR PROTO │…
2
votes
0 answers

FFmpeg concat no working

I trying to concat videos downloaded from yt-dlp using and getting the error ffmpeg -y -f concat -safe 0 -i files.txt -map 0 -c copy merged.mp4 I also tried using 'vcodec vp9', '-bsf:a aac_adtstoasc', '-c:v libvpx' but to no avail getting the error…
xmsk
  • 21
2
votes
1 answer

How to update yt-dlp to nightly with Homebrew?

I used Homebrew to install yt-dlp. Now I need to update it to nightly. When I use the command: yt-dlp --update-to nightly I get following message: Unable to write to /usr/local/bin/yt-dlp; try running as administrator
2
votes
1 answer

How to take file name from yt-dlp and use it as ffmpeg output file name?

I'm trying to get the output name to be the same as the input name while using the pipe command in ffmpeg. Example: The file is called 1-Minute Audio Test for Stereo Speakers & Headphones [2ZrWHtvSog4].m4a. I'm trying to get the output filename to…
Rick T
  • 163
2
votes
2 answers

yt-dlp: ffmpeg working for some videos, but not for the others

I started using yt-dlp a few days ago, so I'm new to the whole thing. I needed to download some videos from youtube, but have them split into chapters. The command: yt-dlp --split-chapters URL seems to be doing the right thing. However, running…
Mikki99
  • 21
1
vote
0 answers

How to download recent YouTube livestream — dash segments fragments?

If I try to download a livestream that has recently finished, yt-dlp tries to make a http request for each fragment and gets rate limited by YouTube. I have to cancel, and retry the command multiple times. How to fix? C:\Users\tynda\Downloads>yt-dlp…
1
vote
2 answers

yt-dlp not downloading all videos from channel in Windows 11

I'm trying to download all 608 videos from this channel (https://www.youtube.com/@EndoJunts). However, when I use yt-dlp to download the channel, I only see 594 videos. This is the argument I used yt-dlp -P D:\music\RapYoutube\EndoJunts -f 233…
1
vote
2 answers

What does a YT-DLP batch file for MS-DOS look like which accepts URLs which have been copied to the clip-board?

Please view the batch file below. The goal ... is to run yt-dlp in a batch file, which then gives you a menu with six options: yt-dlp "%temp_file%" yt-dlp -f best "%temp_file%" yt-dlp --write-sub "%temp_file%" yt-dlp --sub-lang en…
1
vote
0 answers

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 loading screen and my Telegram gets the connecting…
1
vote
1 answer

How to make yt-dlp JSON data not return null when a YouTube video is in "upcoming" mode?

The following command works for me (meaning it returns JSON data for the video): yt-dlp.exe https://www.youtube.com/watch?v=1C0ZtmBlL-s --skip-download --dump-single-json --no-check-certificate --restrict-filenames However, the same command but for…
Satvik Kelsey
  • 13
  • 1
  • 4
1
vote
1 answer

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 if the connection is lost just for a few minutes, the…
1
2