Youtube-dl download archive not working
For example, to download the worst quality video-only format you can use -f worstvideo. If you want to download multiple videos and they don't have the same formats available, you can specify the order of preference using slashes. Note that slash is left-associative, i. If you want to download several formats of the same video use a comma as a separator, e.
Any string comparison may be prefixed with negation! Note that none of the aforementioned meta fields are guaranteed to be present since this solely depends on the metadata obtained by particular extractor, i. Formats for which the value is not known are excluded unless you put a question mark?
Format selectors can also be grouped using parentheses, for example if you want to download the best mp4 and webm formats with a height lower than you can use -f ' mp4,webm [height. Since the end of April and version 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. If you want to only download some DASH formats for example if you are not interested in getting videos with a resolution higher than p , you can add -f bestvideo[height to your configuration file. Note that if you use youtube-dl to stream to stdout and most likely to pipe it to your media player then , i.
If you want to preserve the old format selection behavior prior to youtube-dl You may want to add it to the configuration file in order not to type it every time you run youtube-dl. Videos can be filtered by their upload date using the options --date , --datebefore or --dateafter. They accept dates in two formats:.
If you've followed our manual installation instructions , you can simply run youtube-dl -U or, on Linux, sudo youtube-dl -U. If you have used pip, a simple sudo pip install -U youtube-dl is sufficient to update.
If you have installed youtube-dl using a package manager like apt-get or yum , use the standard system update mechanism to update.
Note that distribution packages are often outdated. As a rule of thumb, youtube-dl releases at least once a month, and often weekly or even daily. Unfortunately, there is nothing we youtube-dl developers can do if your distribution serves a really outdated version. You can and should complain to your distribution in their bugtracker or support forum.
As a last resort, you can also uninstall the version installed by your package manager and follow our manual installation instructions. For that, remove the distribution's package, with a line like. Afterwards, simply follow our manual installation instructions :. YouTube changed their playlist format in March and later on, so you'll need at least youtube-dl If you have installed youtube-dl with a package manager, pip, setup. Note that Ubuntu packages do not seem to get updated anymore.
Since we are not affiliated with Ubuntu, there is little we can do. Feel free to report bugs to the Ubuntu packaging people - all they have to do is update the package to a somewhat recent version. See above for a way to update. Make sure you are not using -o with any of these options -t , --title , --id , -A or --auto-number set in command line or in a configuration file.
Remove the latter if any. By default, youtube-dl intends to have the best options incidentally, if you have a convincing case that these should be different, please file an issue where you explain that.
Therefore, it is unnecessary and sometimes harmful to copy long option strings from webpages. In particular, the only option out of -citw that is regularly useful is -i. Most people asking this question are not aware that youtube-dl now defaults to downloading the highest available quality as reported by YouTube, which will be p or p in some cases, so you no longer need the -b option. For some specific videos, maybe YouTube does not report them to be available in a specific high quality format you're interested in.
In that case, simply request it with the -f option and youtube-dl will try to download it. On some sites - most notably YouTube - videos can be retrieved in a higher quality format without sound.
Videos or video formats streamed via RTMP protocol can only be downloaded when rtmpdump is installed. Once the video is fully downloaded, use any video player, such as mpv , vlc or mplayer. It depends a lot on the service. Use the --cookies option to write the required cookies into a file, and advise your downloader to read cookies from that file.
Some sites also require a common user agent to be used, use --dump-user-agent to see the one in use by youtube-dl. It may be beneficial to use IPv6; in some cases, the restrictions are only applied to IPv4. Some services sometimes only for a subset of videos do not restrict the video URL by IP address, cookie, or user-agent, but these are the exception rather than the rule. If you are using -g , your own downloader must support these as well.
If you want to play the video on a machine that is not running youtube-dl, you can relay the video content from the machine that runs youtube-dl. You can use -o - to let youtube-dl stream a video to stdout, or simply allow the player to download the files written by youtube-dl in turn.
YouTube has switched to a new video info format in July which is not supported by old versions of youtube-dl. See above for how to update youtube-dl. YouTube requires an additional signature since September which is not supported by old versions of youtube-dl. That's actually the output from your shell.
Since ampersand is one of the special shell characters it's interpreted by the shell preventing you from passing the whole URL to youtube-dl.
To disable your shell from interpreting the ampersands or any other special characters you have to either put the whole URL in quotes or escape them with a backslash which approach will work depends on your shell.
In February , the new YouTube player contained a character sequence in a string that was misinterpreted by old versions of youtube-dl. These two error codes indicate that the service is blocking your IP address because of overuse.
Since June youtube-dl is packed as an executable zipfile, simply unzip it might need renaming to youtube-dl. To recompile the executable, run make youtube-dl. If you put youtube-dl and ffmpeg in the same directory that you're running the command from, it will work, but that's rather cumbersome. From then on, after restarting your shell, you will be able to access both youtube-dl and ffmpeg and youtube-dl will be able to find ffmpeg by simply typing youtube-dl or ffmpeg , no matter what directory you're in.
If you want this for all of your downloads, put the option into your configuration file. In order to extract cookies from browser use any conforming browser extension for exporting cookies. For example, cookies. Passing cookies to youtube-dl is a good way to workaround login when a particular extractor does not implement it explicitly. YouTube, CloudFlare. You will first need to tell youtube-dl to stream media to stdout with -o - , and also tell your media player to read from stdin it must be capable of this for streaming and then pipe former to latter.
For example, streaming to vlc can be achieved with:. Use download-archive feature. Each subsequent run with the same --download-archive will download only new videos and skip all videos that have been downloaded before. Note that only successful downloads are recorded in the file. Each subsequent run will only download new videos if any:.
When youtube-dl detects an HLS video, it can download it either with the built-in downloader or ffmpeg. When youtube-dl knows that one particular downloader works better for a given website, that downloader will be picked. Otherwise, youtube-dl will pick the best downloader for general compatibility, which at the moment happens to be ffmpeg. In particular, the generic extractor used when your website is not in the list of supported sites by youtube-dl cannot mandate one specific downloader.
If you put either --hls-prefer-native or --hls-prefer-ffmpeg into your configuration, a different subset of videos will fail to download correctly. Instead, it is much better to file an issue or a pull request which details why the native or the ffmpeg HLS downloader is a better choice for your use case. As a matter of policy as well as legality , youtube-dl does not include support for services that specialize in infringing copyright. Not exactly what I needed but it is ok. Add a comment.
Active Oldest Votes. You can use it as follows: youtube-dl --download-archive downloaded. Improve this answer. Eliah Kagan k 51 51 gold badges silver badges bronze badges. Martin Thornton Martin Thornton 3, 10 10 gold badges 26 26 silver badges 36 36 bronze badges.
Valuable answer here. It solves my problem. What is -cwix here? It's worth mentioning that while this works perfectly for YouTube, youtube-dl also works with other sites e. Soundcloud where the -x option seems to break the output. You can safely remove that flag if you're downloading from an audio source. You can also redirect from the whole loop to avoid multiple file-writes.
Sign up or log in Sign up using Google. That's my guess. So open cmd in a folder where you can write e. Desktop or navigate there or set an output folder. Youtube-dl has good documentation. Thanks for your help guys.
All good. At the last attempt it worked. I don't understand. But I'm happy while it is working. I will study a bit, that's obviously what I need to do. Originally Posted by Sviests. Originally Posted by abrogard. Put youtube-dl and its support files in their own folder somewhere. I am not trying to do it.
The system does it. Best of my understanding is that it does it because I have a 64 bit system and the output from 32 bit apps go into it. That's on C: I've also got another on D: from an old windows install. I'd like to know just what I can do - delete all contents, don't touch, what?
Do not delete random files from syswow That is where 64 bit Windows keeps important files for running 32 bit programs dll files, utilities, etc. If you delete the wrong files in that folder you will screw up your Windows installation. Only for Youtube. Thx for your offering a solution, but, the issue still exists. I can confirm reinstalling works as I just did a fresh install yesterday, however this isn't necessary, there is a built-in update function.
If you click the settings icon there is an option "update", that downloads the latest version of youtube-dl. Remember youtube-dl requires Python version 2. Same issue with portable version.
Windows 10 updated to recent version and Python too Python 2. Win10 Exception in thread Thread Traceback most recent call last : File "threading. If anyone still has this problem, I could solve it by pasting the normal command line youtube-dl files youtube-dl.
It now works perfectly. In response to dragonheirtw: Thank you for providing that link. It works very well and previously I was having error messages. I have the same problem.
0コメント