This means that the output MKV file (e.g. MKVToolNix muxes/multiplexes the subtitles track/stream along with the video track/stream. and then run it, right-click the Source files area in order to add your video file and your subtitles file (step 1, at the picture below), specify the location of the destination MKV video file (step 2) and then click on Start multiplexing (step 3). running a terminal/shell command such as: sudo apt-get install mkvtoolnix mkvtoolnix-gui -y I think that MKVToolNix is the simplest and easiest-to-use free tool available for you to merge a video file with a subtitles file. You can even extract them, fix typos, and mux them back in. You can also extract them later and search them if you're trying to remember a line from the movie. If you don't care about file size because you're just streaming it to your TV, transcoding with x264 with -preset veryfast -crf15 can run quickly and lose minimal quality.Īnother advantage to muxing subs is that you can then toggle the subs on/off, or have your player show them in a different position on screen. x264 with -preset slower, or if your player supports it, x265 if you're willing to spend a huge amount of CPU time to make smaller files that still look good). It's impossible to avoid losing quality when transcoding, and it takes a lot of CPU time to even come close to the quality-per-filesize of a well-encoded source. The major advantage to this is that you avoid degrading the quality with another decode/encode cycle of generation loss. It has a lot of options to let you control things like the subtitle offset. There's an mkvtoolnix-gui package, with a gui frontend.
![ffmpeg add subtitles to video ffmpeg add subtitles to video](https://i.stack.imgur.com/gVu7w.jpg)
It takes about as long as copying the file, since it doesn't have to decode/re-encode the video.
#Ffmpeg add subtitles to video mp4
That will include all tracks from the mp4 (video, audio, chapters), and subs from the srt as a text subtitle track. mkvmerge -o movie_with_subs.mkv movie.mp4 subs.srt
![ffmpeg add subtitles to video ffmpeg add subtitles to video](https://windows-cdn.softpedia.com/screenshots/FFmpeg-Batch-A-V-Converter_3.png)
If your TV can play movies that have subtitles muxed into the same file as the video, there are many advantages to adding the subtitles as a subtitle track, instead of burning them into the video.