Tuesday, April 23, 2019

My youtube-dl configuration / useful options

Here's my youtube-dl configuration (details about where to place the config-file below are here).
Of course you can also use any of these options in the command-line, without creating a dedicated config-file.


###############################################################
# This writes the video-IDs of the videos that have been downloaded
# into a file called archive.txt. Subsequent runs of youtube-dl will
# check that file and will skip videos that have already been downloaded.
--download-archive archive.txt

# Download subtitles in English, German, French and Amharic (if available)
# Note that these refer to human-generated subtitles (for example if
# the video-creator wrote them).
--write-sub --sub-lang en,de,fr,am

# Download subtitles in English, German, French and Amharic (if available)
# Note that these refer to Youtube's auto-generated subtitles (which can
# be hit or miss, but it's better than nothing, especially for English).
--write-auto-sub --sub-lang en,de,fr,am

# Get the best video quality available, but only up to 1080p.
# (with 4K videos, you'll end up with HUGE files, which one may
# want to avoid
-f 'bestvideo[height<=1080]+bestaudio/best[height<=1080]'

###############################################################
When downloading a playlist, I find it convenient to have the files with the playlist-order in the filename, since that's the way I like to sort them. To change the filename-template, use the "-o" option. For example, if this is what I want the 3rd song's filename in my playlist to look like:
3_NiceVideo_VideoID.mp4
This command will accomplish that:
youtube-dl -o "%(playlist_index)s_%(title)s_%(id)s.%(ext)s" 
For more info on output-templates (the stuff behind the "-o", read more here). Just in case someone finds this useful: Here's a web-based subtitle-scraper for YouTube: https://www.diycaptions.com/ And in the unlikely case one would want to download comments from a video, I haven't found a way to do this through the command-line. But I found this web-based-commend-scraper which seems to work fine: http://ytcomments.klostermann.ca/

50 comments:

  1. Hey there, unfortunately the youtube scraper doesn't seem to work anymore, and is not supported by the developer... I wrote a similar script that does the same thing, hope this helps: https://seobots.io/bots/youtube-comment-scraper

    ReplyDelete
  2. Hello, this weekend is good for me, since this time i am reading this enormous informative article here at my home. how to buy youtube views

    ReplyDelete
  3. This is my first time visit to your blog and I am very interested in the articles that you serve. Provide enough knowledge for me. Thank you for sharing useful and don't forget, keep sharing useful info: youtube to mp3

    ReplyDelete
  4. I wish more authors of this type of content would take the time you did to research and write so well. I am very impressed with your vision and insight. Youtube to MP3 Converter Online

    ReplyDelete
  5. Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info. youtube downloader

    ReplyDelete
  6. Wow, cool post. I'd like to write like this too - taking time and real hard work to make a great article... but I put things off too much and never seem to get started. Thanks though. buy youtube watch hours india

    ReplyDelete
  7. I found that site very usefull and this survey is very cirious, I ' ve never seen a blog that demand a survey for this actions, very curious... youtube watch hours buy

    ReplyDelete
  8. Wow, cool post. I’d like to write like this too – taking time and real hard work to make a great article… but I put things off too much and never seem to get started. Thanks though. buy instant youtube views

    ReplyDelete
  9. To make solid brands an advertiser needs scale and a nearness. smm panel

    ReplyDelete
  10. this is really nice to read..informative post is very good to read..thanks a lot! a course in miracles

    ReplyDelete
  11. Thank you because you have been willing to share information with us. we will always appreciate all you have done here because I know you are very concerned with our. Youtube downloader

    ReplyDelete
  12. I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article. a course in miracles

    ReplyDelete
  13. Are you a movie enthusiast? Would you like to watch videos on different platforms? If the answer is yes, then you must have very good and fast video converter software. best tool to convert youtube to mp3

    ReplyDelete
  14. I want to say thanks for beautiful blog sharing with us. Your blog really great resource to update my knowledge. youtube video to mp3 2020

    ReplyDelete
  15. You can take your YouTube channel to the next level Today by promoting your videos to thousands of viewers. Buy YouTube Promotions today. It's fast, easy & affordable. buy youtube subscribers

    ReplyDelete
  16. You can take your YouTube channel to the next level Today by promoting your videos to thousands of viewers. Buy YouTube Promotions today. It's fast, easy & affordable. buy youtube subscribers

    ReplyDelete
  17. Many people want to know how to make money on YouTube videos. This is not surprising because YouTube is known and used in many households throughout the civilised world and is actually the third most used search engine in the world. In fact it gets enough video uploaded every three minutes to play non-stop for more than a week. That video is then watched in 39 countries and in 54 languages.There are different ways to make money with YouTube videos, and this article is about one of the easiest ways to do just that. Youtube

    ReplyDelete
  18. You have a few videos on YouTube, now what? Showcase your Web videos in style by customizing your YouTube channel. Youtube

    ReplyDelete
  19. There is not a great deal of difference in these players in terms of what they do. The MP4 Touch Screen Player, plays music, entertains you with videos and or movies, allow you to view pictures, play and record songs directly from the radio, take pictures and record motion videos, record messages as well as play a popular game.youtube to mp4

    ReplyDelete
  20. The down to earth approach of the essayist in this blog is commendable.
    giantlikes

    ReplyDelete
  21. I think this is an informative post and it is very beneficial and knowledgeable. Therefore, I would like to thank you for the endeavors that you have made in writing this article. All the content is absolutely well-researched. Thanks... Mark Lutchman

    ReplyDelete
  22. Hey what a brilliant post I have come across and believe me I have been searching out for this similar kind of post for past a week and hardly came across this. Thank you very much and will look for more postings from you. https://www.postinweb.com/ontiva-the-best-tool-for-youtube-converter/

    ReplyDelete
  23. In this particular article, you will see a summary, satisfy browse this post. youtube to mp4

    ReplyDelete
  24. Thanks for a very interesting blog. What else may I get that kind of info written in such a perfect approach? I’ve a undertaking that I am simply now operating on, and I have been at the look out for such info. postinweb.com

    ReplyDelete
  25. By hiring a professional YouTube marketing service, you can take advantage of marketing through videos. Video marketing is one of the best ways to position your business and brand name in the minds of the masses. YouTube offers you an amazing facility to introduce your business, products/services and most importantly your message, out to a large number of people on the Internet through video sharing. https://d-addicts.com/how-to-download-music-from-youtube-for-free/2020/

    ReplyDelete
  26. You have made an exceptional appearing. I will in all probability tunnel it and for the most part recommend to my sidekicks. I am certain they will be benefitted from this site. go here

    ReplyDelete
  27. Many people want to know how to make money on YouTube videos. This is not surprising because YouTube is known and used in many households throughout the civilised world and is actually the third most used search engine in the world. In fact it gets enough video uploaded every three minutes to play non-stop for more than a week. That video is then watched in 39 countries and in 54 languages.There are different ways to make money with YouTube videos, and this article is about one of the easiest ways to do just that. free youtube subscribers

    ReplyDelete
  28. You have a few videos on YouTube, now what? Showcase your Web videos in style by customizing your YouTube channel. free youtube views

    ReplyDelete
  29. Most Influential Enterntaiment, Music, Video Download & Entertainment News Platform Nigeria Music

    ReplyDelete
  30. If you are a smart internet marketer then you already know the value of placing your own videos on YouTube and using YouTube as a medium for marketing yourself and your products. However, placing videos on YouTube is only a first step and the importance to get more YouTube friends who will become your YouTube followers should be high on your priority list. Music player

    ReplyDelete
  31. Wow, What an Outstanding post. I found this too much informatics. It is what I was seeking for. I would like to recommend you that please keep sharing such type of info.If possible, Thanks. YouTube Vanced

    ReplyDelete
  32. Most people buy Flat Panel TVs making them all the rage now. They have been hot sellers this year and are expected to be so next year. The main reason why people buy them is their brilliant picture and sound quality. They bring pictures to life and sensationalize sound. You get pictures in a wide dynamic range including darker colors and richer grays and blacks. You get to watch pictures in their full splendour and reality so much so that "you get into them." views kaufen

    ReplyDelete
  33. A large number of followers will also make one look more credible and thus will give a boost to one account among other competitors. buy auto Instagram likes

    ReplyDelete
  34. बहुत तेज YouTube से MP3 कन्वर्टर 320 kbps तक और वीडियो डाउनलोडर अपने पसंदीदा म्यूजिक की खोज करें कनवर्टर

    ReplyDelete
  35. In order for any business to be successful, you must put ethics first and foremost. This means staying with what really works and staying away from what doesn't work. This isn't as easy as it seams as you will see from the article. However, it can be achieved. youtube smm panel

    ReplyDelete
  36. Over the past few years, unemployment rates have increased to higher levels than ever before, which has resulted in many people deciding to start up their own small businesses instead. While small business ownership is a good thing, many entrepreneurs can in fact benefit greatly from using small business loans or other types of business funding to help them get ahead. smm panel

    ReplyDelete
  37. Social media marketing is one of the most cost effective ways to promote your online business. The right social media marketing strategy can get you cheap ad space, free promotion, and help you save money on costly services. Discover how social media sites can be a powerful and cost effective marketing tool. Facebook marketing and Twitter are one of the most powerful way to promote your business using this new media strategy. Freshdrop coupon

    ReplyDelete
  38. To sell your music on locales like iTunes, Rhapsody, eMusic, and more you will require an UPC code. There numerous approaches to get this code, be that as it may, all the time individuals wind up spending nearly $800 for it when they might have saved their self $750. yttomp3

    ReplyDelete
  39. Usually there are some dissertation sites making use of the website whenever you develop into in plain english reported in the site. how to monetize youtube videos

    ReplyDelete
  40. We can use YouTube for watching video clips or even whole movies now. We can also create something called 'Infomercials' and load them onto YouTube. These can be used as a YouTube promotion marketing strategy for your product or service. check this link

    ReplyDelete
  41. Wow i can say that this is another great article as expected of this blog.Bookmarked this site.. online youtube to mp3 converter

    ReplyDelete
  42. Thanks for the nice blog. It was very useful for me. I'm happy I found this blog. Thank you for sharing with us,I too always learn something new from your post. https://hackernoon.com/15-ways-to-increase-youtube-subscribers-organically-in-2020-7g1o32sv

    ReplyDelete
  43. Thanks for every other informative site. The place else may just I get that kind of information written in such an ideal means? I have a venture that I’m just now operating on, and I have been on the look out for such information. https://www.buyyoutubesubscribers.in/

    ReplyDelete
  44. This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here keep up the good work https://www.buyyoutubesubscribers.in/

    ReplyDelete
  45. Message position for social systems administration and Facebook post included pictures are significant for show. your input here

    ReplyDelete
  46. Great info! I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have. fisa oniriajo india

    ReplyDelete
  47. Thanks for Nice and Informative Post. This article is really contains lot more information about This Topic. professional life coach singapore

    ReplyDelete
  48. Great post, you have pointed out some fantastic points , I likewise think this s a very wonderful website. YT Trend

    ReplyDelete
  49. Traffic for your social media post relies upon the initial 10 minutes of great importance you post the substance. download someone's instagram photos

    ReplyDelete
  50. Nice article thank you for this. Check the Kenya visa photo requirements before you apply for the Kenya visa through online visa application. The e visa application offers the fast visa services. Thank you

    ReplyDelete