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

select English Sub (if unavailable--> automatically go for auto caption) #14831

Closed
ParsaFakhar opened this issue Nov 22, 2017 · 2 comments
Closed

Comments

@ParsaFakhar
Copy link

@ParsaFakhar ParsaFakhar commented Nov 22, 2017

Download a Single Video with Embedded Subtitle, En lang Sub

youtube-dl -v -f mp4 --write-sub --sub-lang en --sub-format ttml --convert-subtitles srt --embed-subs https://www.youtube.com/watch?v=F0c8U3x_vKM

Download a Single Video with Embedded Subtitle (Auto-Caption)

youtube-dl -v -f mp4 --write-auto-sub --sub-format ttml --convert-subtitles srt --embed-subs https://www.youtube.com/watch?v=Uiy_YuE8lCA

iSSUE: BUT how to tell youtube-dl to look for written Sub first and if there wasn't any the use auto-caption?

(for example PewDiePie uses his own sub if I write --write-auto-sub I would lose his sub)
and if I write --write-sub (if there wasn't any I would lose the chance to download auto-caption)

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Nov 22, 2017

By using --write-sub and --write-auto-sub at the same time.

@dstftw dstftw closed this Nov 22, 2017
@ParsaFakhar
Copy link
Author

@ParsaFakhar ParsaFakhar commented Nov 23, 2017

@dstftw I tried but it didn't work

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.