Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to download youtube Subtitles #15610

Closed
ramiua opened this issue Feb 15, 2018 · 2 comments
Closed

how to download youtube Subtitles #15610

ramiua opened this issue Feb 15, 2018 · 2 comments
Labels

Comments

@ramiua
Copy link

@ramiua ramiua commented Feb 15, 2018

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like this: [x])
  • Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.02.11. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • [x ] I've verified and I assure that I'm running youtube-dl 2018.02.11

Before submitting an issue make sure you have:

  • [x ] At least skimmed through the README, most notably the FAQ and BUGS sections
  • [x ] Searched the bugtracker for similar issues including closed ones
  • [x ] Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • [x ] Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add the -v flag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

I try to download subtitles of https://www.youtube.com/watch?v=xf16mefOJ6g
but it does not work.


[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--ignore-errors', u'--ignore-config', u'--proxy', u'socks5://127.0.0.1:1080', u'--format', u'bestvideo[ext=webm]+bestaudio[ext=webm]/bestvideo[ext=webm]+bestaudio/bestvideo+bestaudio/best[ext=webm]/best', u'--write-sub', u'-v', u'https://www.youtube.com/watch?v=xf16mefOJ6g']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.02.11
[debug] Python version 2.7.14 (CPython) - Linux-4.13.0-32-generic-x86_64-with-Ubuntu-17.10-artful
[debug] exe versions: ffmpeg 3.3.4-2, ffprobe 3.3.4-2, rtmpdump 2.4
[debug] Proxy map: {u'http': u'socks5://127.0.0.1:1080', u'https': u'socks5://127.0.0.1:1080'}
[youtube] xf16mefOJ6g: Downloading webpage
[youtube] xf16mefOJ6g: Downloading video info webpage
[youtube] xf16mefOJ6g: Extracting video information
WARNING: video doesn't have subtitles
[youtube] {22} signature length 42.43, html5 player vflGoYKgz
[youtube] {43} signature length 42.43, html5 player vflGoYKgz
[youtube] {18} signature length 42.43, html5 player vflGoYKgz
[youtube] {36} signature length 42.43, html5 player vflGoYKgz
[youtube] {17} signature length 42.43, html5 player vflGoYKgz
[youtube] {136} signature length 42.43, html5 player vflGoYKgz
[youtube] {247} signature length 42.43, html5 player vflGoYKgz
[youtube] {135} signature length 42.43, html5 player vflGoYKgz
[youtube] {244} signature length 42.43, html5 player vflGoYKgz
[youtube] {134} signature length 42.43, html5 player vflGoYKgz
[youtube] {243} signature length 42.43, html5 player vflGoYKgz
[youtube] {133} signature length 42.43, html5 player vflGoYKgz
[youtube] {242} signature length 42.43, html5 player vflGoYKgz
[youtube] {160} signature length 42.43, html5 player vflGoYKgz
[youtube] {278} signature length 42.43, html5 player vflGoYKgz
[youtube] {140} signature length 42.43, html5 player vflGoYKgz
[youtube] {171} signature length 42.43, html5 player vflGoYKgz
[youtube] {249} signature length 42.43, html5 player vflGoYKgz
[youtube] {250} signature length 42.43, html5 player vflGoYKgz
[youtube] {251} signature length 42.43, html5 player vflGoYKgz
[download] ITV The Story Of Cats 3 of 3 Super Cats-xf16mefOJ6g.webm has already been downloaded and merged


####
####


[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--ignore-errors', u'--ignore-config', u'--proxy', u'socks5://127.0.0.1:1080', u'--format', u'bestvideo[ext=webm]+bestaudio[ext=webm]/bestvideo[ext=webm]+bestaudio/bestvideo+bestaudio/best[ext=webm]/best', u'--all-subs', u'-v', u'https://www.youtube.com/watch?v=xf16mefOJ6g']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.02.11
[debug] Python version 2.7.14 (CPython) - Linux-4.13.0-32-generic-x86_64-with-Ubuntu-17.10-artful
[debug] exe versions: ffmpeg 3.3.4-2, ffprobe 3.3.4-2, rtmpdump 2.4
[debug] Proxy map: {u'http': u'socks5://127.0.0.1:1080', u'https': u'socks5://127.0.0.1:1080'}
[youtube] xf16mefOJ6g: Downloading webpage
[youtube] xf16mefOJ6g: Downloading video info webpage
[youtube] xf16mefOJ6g: Extracting video information
WARNING: video doesn't have subtitles
[youtube] {22} signature length 42.43, html5 player vflGoYKgz
[youtube] {43} signature length 42.43, html5 player vflGoYKgz
[youtube] {18} signature length 42.43, html5 player vflGoYKgz
[youtube] {36} signature length 42.43, html5 player vflGoYKgz
[youtube] {17} signature length 42.43, html5 player vflGoYKgz
[youtube] {136} signature length 42.43, html5 player vflGoYKgz
[youtube] {247} signature length 42.43, html5 player vflGoYKgz
[youtube] {135} signature length 42.43, html5 player vflGoYKgz
[youtube] {244} signature length 42.43, html5 player vflGoYKgz
[youtube] {134} signature length 42.43, html5 player vflGoYKgz
[youtube] {243} signature length 42.43, html5 player vflGoYKgz
[youtube] {133} signature length 42.43, html5 player vflGoYKgz
[youtube] {242} signature length 42.43, html5 player vflGoYKgz
[youtube] {160} signature length 42.43, html5 player vflGoYKgz
[youtube] {278} signature length 42.43, html5 player vflGoYKgz
[youtube] {140} signature length 42.43, html5 player vflGoYKgz
[youtube] {171} signature length 42.43, html5 player vflGoYKgz
[youtube] {249} signature length 42.43, html5 player vflGoYKgz
[youtube] {250} signature length 42.43, html5 player vflGoYKgz
[youtube] {251} signature length 42.41, html5 player vflGoYKgz
[download] ITV The Story Of Cats 3 of 3 Super Cats-xf16mefOJ6g.webm has already been downloaded and merged


###
###


[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--ignore-errors', u'--ignore-config', u'--proxy', u'socks5://127.0.0.1:1080', u'--format', u'bestvideo[ext=webm]+bestaudio[ext=webm]/bestvideo[ext=webm]+bestaudio/bestvideo+bestaudio/best[ext=webm]/best', u'--list-subs', u'-v', u'https://www.youtube.com/watch?v=xf16mefOJ6g']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.02.11
[debug] Python version 2.7.14 (CPython) - Linux-4.13.0-32-generic-x86_64-with-Ubuntu-17.10-artful
[debug] exe versions: ffmpeg 3.3.4-2, ffprobe 3.3.4-2, rtmpdump 2.4
[debug] Proxy map: {u'http': u'socks5://127.0.0.1:1080', u'https': u'socks5://127.0.0.1:1080'}
[youtube] xf16mefOJ6g: Downloading webpage
[youtube] xf16mefOJ6g: Downloading video info webpage
[youtube] xf16mefOJ6g: Extracting video information
WARNING: video doesn't have subtitles
[youtube] xf16mefOJ6g: Looking for automatic captions
[youtube] {22} signature length 42.43, html5 player vflGoYKgz
[youtube] {43} signature length 42.43, html5 player vflGoYKgz
[youtube] {18} signature length 42.43, html5 player vflGoYKgz
[youtube] {36} signature length 42.43, html5 player vflGoYKgz
[youtube] {17} signature length 42.43, html5 player vflGoYKgz
[youtube] {136} signature length 42.43, html5 player vflGoYKgz
[youtube] {247} signature length 42.43, html5 player vflGoYKgz
[youtube] {135} signature length 42.43, html5 player vflGoYKgz
[youtube] {244} signature length 42.43, html5 player vflGoYKgz
[youtube] {134} signature length 42.43, html5 player vflGoYKgz
[youtube] {243} signature length 42.43, html5 player vflGoYKgz
[youtube] {133} signature length 42.43, html5 player vflGoYKgz
[youtube] {242} signature length 42.43, html5 player vflGoYKgz
[youtube] {160} signature length 42.43, html5 player vflGoYKgz
[youtube] {278} signature length 42.43, html5 player vflGoYKgz
[youtube] {140} signature length 42.43, html5 player vflGoYKgz
[youtube] {171} signature length 42.43, html5 player vflGoYKgz
[youtube] {249} signature length 42.43, html5 player vflGoYKgz
[youtube] {250} signature length 42.43, html5 player vflGoYKgz
[youtube] {251} signature length 42.43, html5 player vflGoYKgz
Available automatic captions for xf16mefOJ6g:
Language formats
gu       vtt, ttml
zh-Hans  vtt, ttml
zh-Hant  vtt, ttml
gd       vtt, ttml
ga       vtt, ttml
gl       vtt, ttml
lb       vtt, ttml
la       vtt, ttml
lo       vtt, ttml
tr       vtt, ttml
lv       vtt, ttml
lt       vtt, ttml
th       vtt, ttml
tg       vtt, ttml
te       vtt, ttml
fil      vtt, ttml
haw      vtt, ttml
yi       vtt, ttml
ceb      vtt, ttml
yo       vtt, ttml
de       vtt, ttml
da       vtt, ttml
el       vtt, ttml
eo       vtt, ttml
en       vtt, ttml
eu       vtt, ttml
et       vtt, ttml
es       vtt, ttml
ru       vtt, ttml
ro       vtt, ttml
bn       vtt, ttml
be       vtt, ttml
bg       vtt, ttml
uk       vtt, ttml
jv       vtt, ttml
bs       vtt, ttml
ja       vtt, ttml
xh       vtt, ttml
co       vtt, ttml
ca       vtt, ttml
cy       vtt, ttml
cs       vtt, ttml
ps       vtt, ttml
pt       vtt, ttml
pa       vtt, ttml
vi       vtt, ttml
pl       vtt, ttml
hy       vtt, ttml
hr       vtt, ttml
ht       vtt, ttml
hu       vtt, ttml
hmn      vtt, ttml
hi       vtt, ttml
ha       vtt, ttml
mg       vtt, ttml
uz       vtt, ttml
ml       vtt, ttml
mn       vtt, ttml
mi       vtt, ttml
mk       vtt, ttml
ur       vtt, ttml
mt       vtt, ttml
ms       vtt, ttml
mr       vtt, ttml
ta       vtt, ttml
my       vtt, ttml
af       vtt, ttml
sw       vtt, ttml
is       vtt, ttml
am       vtt, ttml
it       vtt, ttml
iw       vtt, ttml
sv       vtt, ttml
ar       vtt, ttml
su       vtt, ttml
zu       vtt, ttml
az       vtt, ttml
id       vtt, ttml
ig       vtt, ttml
nl       vtt, ttml
no       vtt, ttml
ne       vtt, ttml
ny       vtt, ttml
fr       vtt, ttml
ku       vtt, ttml
fy       vtt, ttml
fa       vtt, ttml
fi       vtt, ttml
ka       vtt, ttml
kk       vtt, ttml
sr       vtt, ttml
sq       vtt, ttml
ko       vtt, ttml
kn       vtt, ttml
km       vtt, ttml
st       vtt, ttml
sk       vtt, ttml
si       vtt, ttml
so       vtt, ttml
sn       vtt, ttml
sm       vtt, ttml
sl       vtt, ttml
ky       vtt, ttml
sd       vtt, ttml
xf16mefOJ6g has no subtitles






...
<end of log>

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):

Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.


Description of your issue, suggested solution and other information

Explanation of your issue in arbitrary form goes here. Please make sure the description is worded well enough to be understood. Provide as much context and examples as possible.
If work on your issue requires account credentials please provide them or explain how one can obtain them.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Feb 15, 2018

This video has no subtitles, only automatic captions that is --write-auto-sub.

@dstftw dstftw closed this Feb 15, 2018
@dstftw dstftw added the invalid label Feb 15, 2018
@ramiua
Copy link
Author

@ramiua ramiua commented Feb 16, 2018

--write-auto-sub Write automatically generated subtitle file
(YouTube only)

what is above mean ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.