Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Translate subtitles (captions) option #4555
Comments
|
You can use the |
|
That doesn't work in my case though unfortunately. As mentioned, the video doesn't have automatic captions, it only has subtitles in a single language (which I want to invoke translate on). Thus, the following is output (using the above commands)
|
|
@beltex Can you post the full output you get when you run youtube-dl with |
|
@phihag I’m running the latest version, installed via Homebrew yesterday. The example given by @jaimeMF is different than my case, it has automatic captions, but no subtitles. Here's my case:
|
|
It will work in the next version, thanks for the report. As you have seen, not posting even the url makes it really hard to give good answers or fix the issue. |
|
Awesome, thank you very much @jaimeMF! My apologies, I will make sure to do so next time! :) |
First off, thanks for the awesome project! :)
I’m running into a case were the video in question only has subtitles in a single language and no automatic captions. YouTube provides the option to automatically translate the subtitles to another language (Translate captions option under settings). Adding the option to invoke the auto-translator for subtitles would be handy.
From an options perspective, one possibility could be that when
--sub-langis invoked, if the desired language is not available natively, then the auto-translator is used. Otherwise, something like a--sub-transoption could be added.