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

Generate downloadable mp4s with embedded multilanguage closed captions #31

Open
angrave opened this issue Jun 9, 2020 · 1 comment
Open
Assignees

Comments

@angrave
Copy link
Collaborator

angrave commented Jun 9, 2020

We will need an ffmpeg task to create the mp4
https://video.stackexchange.com/questions/22197/ffmpeg-how-to-add-several-subtitle-streams
We will want to add the audio description/enhanced text description track too.

(We could even add chapter markers from the epub data)

For discussion: How do we not litter the storage with old mp4s?

Some tricky timing corner cases to work out (e.g. captions being updated while mp4 being regenerated)

@eric1932 eric1932 self-assigned this Feb 25, 2021
@angrave
Copy link
Collaborator Author

angrave commented Mar 2, 2021

First steps: Determine appropriate ffmpeg options to add more than one language.

Here's how to add one vtt file:

ffmpeg -i elephant.mp4 -i subtitles-en.vtt   -c copy -c:s mov_text -metadata:s:s:0 language=eng elephant-embedded.mp4

https://uofi.app.box.com/folder/130180363259?s=tq3ydxt93in3not7y1tew7ups8g92utt

Note vlc supports embedded captions but as of March 2021, the Windows10 player does not support them; Instead the Wind10 player can load caption files in the same directory.

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

No branches or pull requests

2 participants