My TV can only play subtitles if they are embedded into the file (eg a MKV or hardcoded over the video).
So given a film in a format (eg MP4) and a subtitle as something like a SRT, how can I combine them into something my TV can play?
My TV can only play subtitles if they are embedded into the file (eg a MKV or hardcoded over the video).
So given a film in a format (eg MP4) and a subtitle as something like a SRT, how can I combine them into something my TV can play?
Short answer
You could use mkvmerge (
apt-get install mkvtoolnix
) to create a Matroska container and include the subtitles in the output:This does not require re-encoding, so it is pretty fast.
Further customization
You may set the language and name of each subtitle track:
Note that we used for both languages the same track ID (
0:
), which corresponds to the input video track.The
--language
needs to be properly encoded. You can list all allowed ISO 639-2 and ISO 639-1 codes with:Other useful features
You may also set the title of the output video with:
We can check how all subtitles were added to the output:
If you really want to "burn" the subtitles in the video, you may use
ffmpeg
instead.Try HandBrake. HandBrake is an open-source, GPL-licensed, multiplatform, multithreaded video transcoder, available for MacOS X, Linux and Windows. it allows users to add subtitles as a part of the movie with the option to turn the subtitle on and off. Something like DVD movie subtitles.
To install HandBrake from Ubuntu PPA:
sudo add-apt-repository ppa:stebbins/handbrake-releases
Your system will now fetch the PPA's key.sudo apt-get update
OR
If you are using Karmic (9.10) or later, you can just click on "Technical details about this PPA" link on the PPA page and select your Ubuntu version. sources.list entries hence shown can be added directly to your system's software sources:
System Setting > Software Sources > Other Software(Tab)
.you can use avidemux.
To install
The procedure:
1.Launch avidemux.
2.Open the .avi file.
3.Select a video encoder from the pull-down menu on the left pane, where it says Video.
4.Configure the encoder by clicking the "Configure" button.
5.Add a subtitler filter. First click on the "Filters" button in the left pane (under Video).
7.To finalize the process, click Save and type in a name for the output file.
More You can use VLC
Make a new folder and keep the movie file inside that folder.
put the subtitle file into the folder that you have created.
Rename the subtitle with the movie name and use .srt extension at the last
Read more on.
I added them with avconv like:
Use ffmpeg: