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

[youtube] How to download sub that is translated from a specific write sub or auto sub? #14766

Open
4 of 8 tasks
wby238 opened this issue Nov 16, 2017 · 0 comments
Open
4 of 8 tasks

Comments

@wby238
Copy link

wby238 commented Nov 16, 2017

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

  • I've verified and I assure that I'm running youtube-dl 2017.11.15

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • 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


Description of your issue, suggested solution and other information

I have search the issues, such as #4555 , it says that i can use like this youtube-dl '8YoUxe5ncPo' --write-auto-sub --sub-lang 'es,it',
so i use youtube-dl --write-sub --sub-lang zh-TW,zh-Hans --convert-subs ass https://www.youtube.com/watch?v=Vqs5mx9vs-M but it only download the zh-TW sub. What i want is the zh-Hans sub that is translated from zh-TW.
So i try youtube-dl --write-auto-sub --sub-lang zh-Hans --convert-subs ass https://www.youtube.com/watch?v=Vqs5mx9vs-M, and it successfully download the sub I want.
So how to download sub that is translated from a specific write sub or auto sub?

Here's the debug log:

youtube-dl --write-sub --sub-lang zh-TW,zh-Hans --convert-subs ass https://www.youtube.com/watch?v=Vqs5mx9vs-M
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--write-sub', '--sub-lang', 'zh-TW,zh-Hans', '--con
vert-subs', 'ass', 'https://www.youtube.com/watch?v=Vqs5mx9vs-M', '-v']
[debug] Encodings: locale cp936, fs utf-8, out utf-8, pref cp936
[debug] youtube-dl version 2017.11.15
[debug] Python version 3.6.2 - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg 3.2.4, ffprobe 3.2.4, phantomjs 2.1.1
[debug] Proxy map: {}
[youtube] Vqs5mx9vs-M: Downloading webpage
[youtube] Vqs5mx9vs-M: Downloading video info webpage
[youtube] Vqs5mx9vs-M: Extracting video information
[youtube] Vqs5mx9vs-M: Downloading MPD manifest
WARNING: zh-Hans subtitles not available for Vqs5mx9vs-M
[debug] Default format spec: bestvideo+bestaudio/best
[info] Writing video subtitles to: ゆっくり妖夢と本当はこわいクトゥルフ神話Part3
 中文字幕-Vqs5mx9vs-M.zh-TW.vtt
WARNING: Requested formats are incompatible for merge and will be merged into mk
v.
[download] ゆっくり妖夢と本当はこわいクトゥルフ神話Part3 中文字幕-Vqs5mx9vs-M.mk
v has already been downloaded and merged
[ffmpeg] Converting subtitles
[debug] ffmpeg command line: ffmpeg -y -i "file:ゆっくり妖夢と本当はこわいクトゥ
ルフ神話Part3 中文字幕-Vqs5mx9vs-M.zh-TW.vtt" -f ass "file:ゆっくり妖夢と本当は
こわいクトゥルフ神話Part3 中文字幕-Vqs5mx9vs-M.zh-TW.ass"
Deleting original file ゆっくり妖夢と本当はこわいクトゥルフ神話Part3 中文字幕-Vq
s5mx9vs-M.zh-TW.vtt (pass -k to keep)
youtube-dl --write-auto-sub --sub-lang zh-Hans --convert-subs ass https://www.youtube.com/watch?v=Vqs5mx9vs-M
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--write-auto-sub', '--sub-lang', 'zh-Hans', '--conv
ert-subs', 'ass', 'https://www.youtube.com/watch?v=Vqs5mx9vs-M', '-v']
[debug] Encodings: locale cp936, fs utf-8, out utf-8, pref cp936
[debug] youtube-dl version 2017.11.15
[debug] Python version 3.6.2 - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg 3.2.4, ffprobe 3.2.4, phantomjs 2.1.1
[debug] Proxy map: {}
[youtube] Vqs5mx9vs-M: Downloading webpage
[youtube] Vqs5mx9vs-M: Downloading video info webpage
[youtube] Vqs5mx9vs-M: Extracting video information
[youtube] Vqs5mx9vs-M: Looking for automatic captions
[youtube] Vqs5mx9vs-M: Downloading MPD manifest
[debug] Default format spec: bestvideo+bestaudio/best
[info] Writing video subtitles to: ゆっくり妖夢と本当はこわいクトゥルフ神話Part3
 中文字幕-Vqs5mx9vs-M.zh-Hans.vtt
WARNING: Requested formats are incompatible for merge and will be merged into mk
v.
[download] ゆっくり妖夢と本当はこわいクトゥルフ神話Part3 中文字幕-Vqs5mx9vs-M.mk
v has already been downloaded and merged
[ffmpeg] Converting subtitles
[debug] ffmpeg command line: ffmpeg -y -i "file:ゆっくり妖夢と本当はこわいクトゥ
ルフ神話Part3 中文字幕-Vqs5mx9vs-M.zh-Hans.vtt" -f ass "file:ゆっくり妖夢と本当
はこわいクトゥルフ神話Part3 中文字幕-Vqs5mx9vs-M.zh-Hans.ass"
Deleting original file ゆっくり妖夢と本当はこわいクトゥルフ神話Part3 中文字幕-Vq
s5mx9vs-M.zh-Hans.vtt (pass -k to keep)
@ytdl-org ytdl-org deleted a comment from vzjrz Apr 8, 2018
@ytdl-org ytdl-org deleted a comment from vinibeloni Apr 8, 2018
@ytdl-org ytdl-org locked and limited conversation to collaborators Apr 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant