Youtube-dl Playlist Download Command Extra Quality

0 views
Skip to first unread message

Clemencia Branski

unread,
Jan 20, 2024, 9:36:21 PM1/20/24
to casireele

NOTE :- If you install youtube-dl from Ubuntu software center. You can't update it from terminal.
Go Software center and update from it.
I test this commands on Wine because my youtube-dl also old. And I am unable to Update it.
If you can update your youtube-dl you can download play-list by using above commands.
I hope it helps...

As I said in the title. I would like to create a playlist on youtube and download the entire thing. I tried searching this sub for an answer but all I found were how to tweak stuff in a more advanced manner. Not how to start doing it. Sorry if this has been posted before.

youtube-dl playlist download command


Download Zip ⚙⚙⚙ https://t.co/6sYBm2EhoV



to download a playlist from YouTube, but I was wondering if there is a way I can, for example, download videos 2 through 8 (out of a playlist of 10 for example) or the first 5 videos or the last 6 videos or even from video 7 onward?

I've written a script for Youtube-dl which scans the number of files in a folder then starts downloading from a playlist from that number so that it only downloads new songs from that playlist. The problem is that it starts downloading from the oldest songs. However when I use --playlist-reverse it ignores it and still downloads the oldest. This is what I have it as now:

to download the entire playlist into a current folder. The idea is to keep this folder in sync with the playlist, in other words to delete videos from the local folder that are no longer in the playlist.Is there a simple way to do it?

I have a Youtube playlist, I want to download it but I want youtube-dl to name the files like 1-name, 2-name, ... n-name in order to be able to watch them in the same sequence as original Youtube playlist. In other words I need my downloaded videos to be prefixed with numbers. How can I do that?


You have a lot of options when it comes to downloading YouTube videos or videos from other video sites. One of the most advanced programs for that kind of task is youtube-dl. Since it is a command line program, it may not be the first choice for users who don't feel comfortable running commands on the command line.

While that is understandable, especially for single videos that you may want to download, you may miss out on one of the best tools that is available today. One of youtube-dl's strengths is the ability to download multiple videos from all supported sites.

This guide provides you with actionable information to get started downloading multiple videos with a single command. You may download videos using a list of video URLS, videos from a channel or videos from playlists using the method.

Before you can start using youtube-dl, you need to download the tool to your device. Instructions in this guide focus on the Windows version, but youtube-dl is also available for other operating systems.

Open a command prompt window by selecting Start, typing cmd, and selecting Command Prompt. If you have saved the file to the Downloads directory, switch to it with the command cd Downloads (provided that you are in your user folder).

If you want to download multiple video files that are not related to each other, e.g. from a single playlist file or channel, you may use a text file with video URLs to download the videos using youtube-dl. Just create a new text file, name it downloads.txt, and add one YouTube video URL per line to it.

Downloading videos from a playlist works similarly. Just replace the channel URL from the example above with a playlist URL, and youtube-dl will download all the linked videos from the specified playlist.

You may check out the entire command reference on the project's GitHub project site. Options include formatting the names of the downloaded video files, downloading thumbnails, encoding videos, downloading specific formats, and a lot more.

Remember that a copyright-enforcement organization (the RIAA, I think) succeeded in getting Microsoft to pull youtube-dl from GitHub a few years back based on a claim that it was a copyright-infringement tool. There was an uproar from journalists, lawyers, academics, and others who rely heavily on fair use, and youtube-dl was reinstated on GitHub within a couple/few weeks. Bottom Line: Tools like youtube-dl have legitimate, legal uses, and those uses are very important to a free, open, democratic society.

I wonder, considering the amount of attention the project has received in the last year or so, if someone has *paid* the developer(s) of youtube-dl off to halt development and let it *rot on the vine*?

What I do now is call a .bat file on a schedule basis with all my arguments, naming structures, archives, etc. So it's fairly automated except that I would have to download a newer youtube-dl version manually

Alternatively, I've come around this and this but I wouldn't know how to setup or if it could manage to handle my script. So I was thinking... is there a way that I could have unraid read my batch files on a regular basis and run youtube-dl? Much like I do right now on windows

tl;dr youtube-dl docker containers I tested can't handle some or all my output arguments for channels I regularly download to archive. is there a way to make unraid call a batch file (or similar) on a schedule basis and run youtube-dl to download newly added videos that are not listed in its output archive?

You can use the User.Scripts plugin to run a bash script on a schedule. So far as running youtube-dl specifically the best way is within a docker container. You would use a docker run command in your script (probably with the --rm option to delete the container when done) to launch a youtubedl container from your script. Depending on the image you choose you may need to override the container entrypoint to directly launch youtubedl and then your would pass your arguments in the docker cmd.

I may be going about this the wrong way but I have a Debian VM in unraid always running that even on my underpowered board uses barely any CPU (< 1% at idle.) With /mnt/user mapped in the VM it gives full access to the unraid shares and makes tasks like installing youtube-dl and other miscellaneous CLI apps much easier.

Today I tried this application to download a youtube playlist. Anyway, I tried to stop the process using CTRL+C and it just opens again and continues, until I close the terminal. Also, if I try to download a playlist, it stucks at the end of the first video. Anyone else has the same issues ?

As mentioned in that last few posts of the report you linked to. Your playlist url likely contained an ampersand, which has a special meaning on terminals and will lead to the youtube-dl job being backgrounded (hence you can't simply kill it with ctrl-c because it isn't in the foreground) read the link provided by dstftw as the last post provided in that conversation.

If you've got xsel installed you just have to select the youtube url in the browser address bar before running downloadpl in a terminal.
(The "$@" is just so you can throw in any extra youtube-dl options - I seldom do though.)

Generally I prefer to leave it up to youtube-dl to choose the format with the best quality sound, even if it means unnecessary download bandwidth. People paying by the byte will have different priorities I guess.

I've looked in the manual and haven't found a reference to '140'. Are you saying that 'youtube-dl -F url' should be run first in order to know what's available? If so, I think for a generic quick command -x might be better:

FORMAT SELECTION
By default youtube-dl tries to download the best available quality, i.e.
if you want the best quality you don't need to pass any special options,
youtube-dl will guess it for you by default.

Don't have an answer for that (It may be missing, but more meta request like 'bestaudio' may be also missing), as of quality I doubt that youtube, much less youtube-dl actually knows what's the best quality, they probably mean bitrate. < educated guess. edit: Best quality is probably opus, but it is contained in webm, so some ffmpeg post will be made to 'opus' it (again unless you target it directly '-f 251').

But my other point still remains, I think: to know that -f 140 is available for some particular download it's necessary to run 'youtube-dl -F' first. And sub-point: I haven't found anywhere where the format numbers are documented.

Since this kind of talking to cloud is blackbox approach, I think you need to assume stuff. I'd use -i to simply skip stuff that didn't work (One can always run the same command and hope there will be no skips the next time). You can assume that m4a stream will be there (if there is audio) since certain devices will prefer that (but yeah youtube can change all that tomorrow).

Really this is the difference between us I guess. I'm prepared to rely on the youtube-dl devs to know their stuff and just send -x meaning "do your best". For a quick-and-dirty rip of a free bit of audio from a public wiki that's all the time and effort I feel like putting in.

I was starting to wonder if I lived in a different universe from you two guys, because that's quite contrary to my experience. As you can see in the terminal o/p I posted above, for me "-x" takes almost exactly as long to run as "-f bestaudio" or "-f 140". The manual didn't shed any light, but inspiration came with the youtube-dl README on GitHub: -org/youtube-dl#format-selection

Since the end of April 2015 and version 2015.04.26, youtube-dl uses -f bestvideo+bestaudio/best as the default format selection (see #5447, #5456). If ffmpeg or avconv are installed this results in downloading bestvideo and bestaudio separately and muxing them together into a single file giving the best overall quality available. Otherwise it falls back to best and results in downloading the best available quality served as a single file. best is also needed for videos that don't come from YouTube because they don't provide the audio and video in two different files.

df19127ead
Reply all
Reply to author
Forward
0 new messages