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.
Automatically embed subtitles in mkv files #5410
Comments
|
This is an interesting idea, and to modify the program requires one to know the proper way to call mkvmerge. # Example Invocation muxing streams into a specified file:
mkvmerge -o "MyMuxedVideo.mkv" videostream.mp4 --default-track 0 subtitle.enUS.ass subitle.esLA.ass subtitle.ptBR.ass
# Above example, but adding language Identifiers:
# NOTE: Language codes are based on ISO639-2
mkvmerge -o "MyMuxedVideo_withLanguages.mkv" videostream.mp4 --default-track 0 \
--language 0:en subtitle.enUS.ass \
--language 0:es subtitle.esLA.ass \
--language 0:por subtitle.ptBR.ass |
|
Isn't that one already supported via the |
|
I can't tell if at the time, the option was available, or at least available for mkv videos. I did not dig in the source code, but maybe this option hardcode the subtitle into the video, altering the source. I wanted a way for softsubbing. |
Since it's possible to embed subtitles in mp4 (in a hard coded way probably), is there a way to embed subtitles files with mkvmerge or with ffmpeg in the post-processing option ?
(Maybe use the
--execcommand)