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

Msrt embed tool #20

Merged
merged 4 commits into from
May 20, 2017
Merged

Conversation

scribblemaniac
Copy link
Collaborator

These changes are for the msrt_embed tool, which enables msrt files to easily be embedded in container video formats (.mkv, .mp4, and .mov). It also enables subtitles to be easily burned to any video format. FFMPEG needs to be installed to use, and it will probably need to be built with support for some specific libraries. Here are some example usages:

Embed English and Russian subtitles from morevna-ep3.msrt in the video file at ~/Downloads/morevna-episode-3.0.1.mp4, with English being enabled by default:

./msrt_embed.py morevna-ep3.msrt ~/Downloads/morevna-episode-3.0.1.mp4 --language eng rus --default eng

Burn the Russian subtitles from morevna-ep3.msrt onto the video file at ~/Downloads/morevna-episode-3.0.1.mp4 with the font DejaVu Serif and translucent green color and write to ~/Videos/morevna-ep3-russub.mkv:

./msrt_embed.py morevna-ep3.msrt ~/Downloads/morevna-episode-3.0.1.mp4 --language rus --burn --style 'FontName=DejaVu Serif,PrimaryColour=&HAA00FF00' --output ~/Videos/morevna-ep3-russub.mkv

@morevnaproject
Copy link
Collaborator

This is awesome, thank you! One question: what is the reason to use ISO 639-3 codes explicitly? I guess this is dictated by mp4 standard?

@scribblemaniac
Copy link
Collaborator Author

It's required by ffmpeg, not sure if it's a container-level requirement. It must be very common though as VLC can display the full language name from that ISO 639-3 code. Additional benefits:

  • settling on a specification leads to greater consistency
  • ISO 639-3 supports more languages than it's predecessors (and of course more languages than the two letter codes) and seems to be the best of the 639 series from what I can tell.
  • One of the languages we already have, Lojban, does not even have a 639-1 code.

@morevnaproject morevnaproject merged commit 3cc7ccc into morevnaproject-org:master May 20, 2017
@scribblemaniac scribblemaniac deleted the msrt-embed branch May 24, 2017 16:18
morevnaproject added a commit that referenced this pull request Apr 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants