Questions tagged [youtube-dl]

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

76 questions
222
votes
21 answers

How to download portion of video with youtube-dl command?

I am using Ubuntu, and the youtube-dl command is working absolutely fine. However, now I want to download only a portion a video that is too long. So I want to download only a few minutes of that video, e.g. from minute 13 to minute 17. Is there any…
user3181614
  • 2,321
  • 2
  • 10
  • 6
158
votes
5 answers

Download only format mp4 on youtube-dl

How can I use the download-dl to download video through url playlist only format mp4 instead format .mkv or .webm? I use this command to download videos: youtube-dl -itcv --yes-playlist https://www.youtube.com/playlist?list=.... The result this…
Edgar Oliveira
  • 1,941
  • 3
  • 11
  • 12
12
votes
2 answers

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 - (%(duration)ss) [%(resolution)s] [%(id)s].%(ext)s" #…
willem.hill
  • 231
  • 1
  • 2
  • 6
12
votes
4 answers

How to enable YouTube autoplay with youtube-dl & mpv?

Is there a way to play a video and make it follow YouTube autoplay videos? Can this be done with youtube-dl and/or mpv?
smrdo_prdo
  • 509
  • 1
  • 5
  • 14
11
votes
1 answer

Play youtube playlist with youtube-dl with shuffling or repeat

I use mpv to play a youtube playlist, and it would be extremely cool if I could turn on shuffling and repeat. Is this possible to do with youtube-dl?
smrdo_prdo
  • 509
  • 1
  • 5
  • 14
11
votes
2 answers

Restarting youtube-dl

I feel like this should be a really simple thing to do, but I don't know how to do it. I recently updated the config file for youtube-dl and I also upgraded to the latest version. The update message says to restart the program to complete the…
vaindil
  • 301
  • 3
  • 8
  • 18
9
votes
1 answer

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 downloads file The habits of happiness _…
xralf
  • 16,149
  • 29
  • 101
  • 149
8
votes
1 answer

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 to show them. How can I get the list of chapters…
Pablo A
  • 2,307
  • 1
  • 22
  • 34
8
votes
2 answers

how to download with youtube-dl without merging

How can I disable audio and video merging in youtube-dl? In other words, how do I force youtube-dl to download a single incrementally playable video? The problem with separate audio and video files is that you don't have any video to watch until…
VasyaNovikov
  • 1,096
  • 1
  • 11
  • 22
8
votes
3 answers

How to install a software on my linux box when I don't have root access (sudo)?

I have a Debian server which is a "shared server" so I don't have root access but I want to install youtube-dl on it. Is it possible to install it some other way? Like it only accessing current directory or other limitations?
idn
  • 83
  • 5
7
votes
1 answer

Combining youtube-dl and VLC without a pipe

youtube-dl -o - | 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-dl -j lists JSON data which contains several…
forthrin
  • 2,209
  • 2
  • 27
  • 46
6
votes
3 answers

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 input is given and thus using the internal…
Kasam
  • 97
  • 4
4
votes
1 answer

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 helpful in this regard. Is this possible or not…
henry
  • 844
  • 2
  • 9
  • 23
4
votes
2 answers

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 channels I archive, a couple of the most recent…
DragonFury
  • 41
  • 1
4
votes
4 answers

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 Music Video) madonna ♩ 180M views 9 years…
forthrin
  • 2,209
  • 2
  • 27
  • 46
1
2 3 4 5 6