LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-04-2022, 01:06 AM   #1
BudiKusasi
Member
 
Registered: Apr 2017
Distribution: Artix
Posts: 345

Rep: Reputation: 15
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
 
Old 05-04-2022, 02:58 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,930

Rep: Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320
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/

Last edited by pan64; 05-04-2022 at 02:59 AM.
 
Old 05-04-2022, 04:21 AM   #3
BudiKusasi
Member
 
Registered: Apr 2017
Distribution: Artix
Posts: 345

Original Poster
Rep: Reputation: 15
Thanks much... I'm on working for it
 
Old 05-05-2022, 10:44 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Download A Portion Of Youtube Video with Youtube-dl And FFmpeg In Linux LXer Syndicated Linux News 0 04-18-2021 06:50 AM
LXer: How To Cast YouTube Videos From Your Phone To Raspberry Pi Using YouTube On TV (youtube.com/tv) LXer Syndicated Linux News 0 04-16-2021 01:30 AM
Linux Mint 18.3 - YouTube video audio extremely choppy, video portion smooth even at HD AceMcHammer Linux - Newbie 6 03-21-2018 02:31 AM
LXer: youtube-dl – download Youtube videos from linux command Line LXer Syndicated Linux News 0 06-24-2014 12:11 PM
LXer: Youtube-dl - Download videos from Youtube in openSUSE LXer Syndicated Linux News 1 08-14-2008 08:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration