LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Download a Youtube video correctly even subtitle (https://www.linuxquestions.org/questions/linux-general-1/download-a-youtube-video-correctly-even-subtitle-4175711654/)

BudiKusasi 05-04-2022 01:06 AM

Download a Youtube video correctly even subtitle
 
How to download a Youtube video entirely including its subtitle e.g

Code:

yt-dlp -o t.mp4 -f 22+139 'https://youtu.be/NFTZbSU7X9I'
won't work

Please correct it to the working tool/command/script one
Thanks before

pan64 05-04-2022 02:58 AM

this is the first hit: https://www.4kdownload.com/howto/how...tube-subtitles
this is the second: https://ostechnix.com/download-youtu...ng-youtube-dl/

BudiKusasi 05-04-2022 04:21 AM

Thanks much... I'm on working for it

ondoho 05-05-2022 10:44 PM

Since you already have yt-dlp, you should study its man page or --help output:
Quote:

Subtitle Options:
--write-subs
Write subtitle file

--no-write-subs
Do not write subtitle file (default)

--write-auto-subs
Write automatically generated subtitle file (Alias: --write-automatic-subs)

--no-write-auto-subs
Do not write auto-generated subtitles (default) (Alias: --no-write-automatic- subs)

--list-subs
List available subtitles of each video. Simulate unless --no-simulate is used

--sub-format FORMAT
Subtitle format, accepts formats preference, for example: "srt" or "ass/srt/best"

--sub-langs LANGS
Languages of the subtitles to download (can be regex) or "all" separated by commas.
(Eg: --sub-langs "en.*,ja") You can prefix the language code with a "-" to exempt it
from the requested languages. (Eg: --sub- langs all,-live_chat) Use --list-subs for
a list of available language tags


All times are GMT -5. The time now is 02:03 PM.