lk/sound/youtube-dl.md
2022-01-18 13:24:25 +01:00

19 lines
494 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: "youtube-dl"
tags: [ "Documentation", "sound" ]
---
> youtube-dl --write-auto-sub <URL>
It will default to English, but you can specify another language with the flag --sub-lang:
> youtube-dl --sub-lang sv --write-auto-sub <URL>
You can list all available subtitles with:
> youtube-dl --list-subs <URL>
Its also possible to skip the video and only download the subtitle if you add the flag --skip-download:
> youtube-dl --sub-lang sv --write-auto-sub --skip-download <URL>