question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: How can I download a Youtube video, and just the video and English subtitles?

See original GitHub issue

Apologies for another issue, I don’t mean to spam.

Currently I have SAVE_MEDIA = False in my config, but I’m getting lots of .vtt files downloaded, and the archive size gets big. Is there a way to archive only:

  1. the original video, in 1080p
  2. english subtitles
  3. the .description file

Thanks for your help!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
ghostcommented, Nov 16, 2021

@aidenmitchell Try this instead:

archivebox config --set YOUTUBEDL_ARGS='["--write-description", "--write-info-json", "--write-annotations", "--write-thumbnail", "--no-call-home", "--write-sub", "--all-subs", "--write-auto-sub", "--convert-subs=srt", "--yes-playlist", "--continue", "--ignore-errors", "--geo-bypass", "--add-metadata", "--max-filesize=500m", "--sub-lang=en"]'
1reaction
piratecommented, Nov 13, 2021

You can add arbitrary YoutubeDL arguments using archivebox config --set YOUTUBEDL_ARGS="...", just figure out what you need and modify the existing args from archivebox/config.py:YOUTUBEDL_ARGS and pass them into that config setting.

e.g. keeping all the default args and adding --sub-lang="en" looks like this:

archivebox config --set YOUTUBEDL_ARGS="--write-description --write-info-json --write-annotations --write-thumbnail --no-call-home --write-sub --all-subs --write-auto-sub --convert-subs=srt --yes-playlist --continue --ignore-errors --geo-bypass --add-metadata --max-filesize=500m --sub-lang=en"
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Download YouTube Video Subtitles - wikiHow
1. Navigate to a YouTube video with subtitles. Go to https://www.youtube.com in a web browser and use the search bar at the top...
Read more >
[2022] Top 11 Ways to Download YouTube Video Subtitles ...
The article will show you how to free download YouTube subtitles with 4 alternative methods, read on to choose one that suits you...
Read more >
How to Download YouTube Videos with Subtitles | Softorino Site
Step 1. Download Softorino YouTube Converter. · Step 2. Enable subtitles support in Preferences · Step 3. Copy the link of the video...
Read more >
How to download videos from YouTube with subtitles?
Make sure the video you're trying to download has actual subtitles uploaded from the owner. You can then use, for example: youtube-dl ...
Read more >
Which YouTube downloader has an inbuilt option for ... - Quora
Simply click on the video you want to download,down the video you will see share icon, click on it,it will open up,you will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found