1

The main reason for this post is that I have movie.mp4 that I have downloaded an SRT for. When I manually add the SRT VLC uses its settings to change the font/size etc of the SRT. But if I Embed the subtitle file, it no longer works. I have found this is an issue with mp4/mov_text!

It is possible to Embed subtitles into MP4 BUT I have found out that VLC ignores subtitle Settings for MP4 and Can't see soft-coded subtitles of MP4

I want to convert

movie.mp4

to

movie.mkv

Without re-encoding (LossLess) & Add subtitles.

3 Answers3

4

This command will not work with a mp4 with embedded subtitles & extracting subtitles from an Mp4 will result in MOV_TEXT style subtitle file, which is not what you want. Basically, google for an SRT, test it out and then we are ready to go.

If you have embedded SRT you also need a seperate file with just video and audio. To strip the srt streams, leaving the just video and audio you want.

Example:

ffmpeg -i movie.mp4 -map 0:0 -vcodec copy -map 0:1 -acodec copy movienosubs.mp4

So lets assume you now have

subtitle.srt
movienosubs.mp4

The FFMPEG command would be this: (Note this only copies the first audio stream, you may need to mess around with mapping streams if you wan't to get more complicated, but you get the idea)

ffmpeg -i movienosubs.mp4 -i subtitle.srt -c:v copy -c:a copy -c:s copy movieFINAL.mkv
3

MKV file is a container in which you may put video, audio and text(subtitle). If you have difficulty with command line ffmpeg tool (as already suggested), you may try GUI tools such as MKVToolnix. There is no re-encoding during this proces, it's practically copying only.

toejoe
  • 31
0

You can use my program dmMediaConverter (which is a FFmpeg GUI exposing some of its features), it does just that, you can copy all the streams without transcoding. http://dmsimpleapps.blogspot.ro/2014/04/dmmediaconverter.html

enter image description here

mdalacu
  • 119