Hi,
I'd like to add an srt file to an mp4 video file, and would appreciate some help. I i the srt should set uponput the mp4 video and add an object (srt file) but once all is entered IU'm not sure of the next steps. It would seem that another video track should be set up but I can't see how to do it.
+ Reply to Thread
Results 1 to 26 of 26
-
-
You can use MkvToolnix to add the srt to your mp4 an remux to mkv.
If you want the mp4 container as output you could try my clever FFmpeg-GUI.Last edited by ProWo; 20th Jan 2021 at 11:06.
-
Thanks for the reply. What you've suggested is what I normally do, but this is not making use of VSDC, which supposedly enables subtitle addition.
-
Not sure if this works, but here is a very short mp4 and it's associated srt, for those who want to play with VSDC.
https://forum.videohelp.com/attachment.php?attachmentid=56869&stc=1&d=1611177688https://forum.videohelp.com/attachment.php?attachmentid=56870&stc=1&d=1611177688 -
If you just click on the files above you can download them tomyour own PC, and then use them.
-
Actually VSDC was mentioned in one of my replies, and along with its many video effects it would be nice to have it accept srt files as well. But you have a point: there are many ways to skin a cat!
So far mkvtoolnix is what I've been using to make soft-coded video. -
ffmpeg and mkvtoolnix having a large community user base would be an advantage.
-
MP4 doesn't support ass subs, they would have to be converted to Timed Text -- like in the example I already gave. To mux ass subs into MKV you can just remove the conversion to Timed Text and change the output format to mkv:
Code:ffmpeg -i 1280.mp4 -i 1280.ass -c:v copy -c:a copy -c:s copy output.mkv
I've never compared the speed. I doubt it would be much different.Last edited by jagabo; 22nd Jan 2021 at 09:08.
-
You are really a fountain of information!
You are right - MKVTools does not mux into mp4, but the workaround for this is Handbrake, which will mux into mp4, and will accept ass subtitles.
The other program, VSDC, has a lot of video editing tools making it a kind of video Photoshop, but it will not mux the input subtitles, and will not accept ass subs.
Luckily for us, the aphorism still holds true: There are many ways to skin a cat! -
-
I don't have ffmpeg on my PC; why don't you use it and upload muxed mkv and mp4 files, using the files I uploaded, so I can compare them with Handbrake. The video is tiny, so it shouldn't take much time.
I'd like to see the results. and maybe it's time for me to look at ffmpeg again. It has always scared me. -
https://files.videohelp.com/u/297490/1280.mp4
The above file is a muxed Handbrake file, For whatever reason Handbrake labelled it an m4v, but it wouldn't upload unless I changed its name to an mp4.
Maybe you can now compare these files for whatever differences exist. -
I don't see any differences on my laptop or on my flat screen TV. It would be nice to know if you are using any criteria other than visual, and if so, what are they.
One other thing; there seem to be a number of ffmpeg front end (GUI) available. Do you have any preferences?
Thanks -
I compared them visually -- zooming in on still frames. Small low contrast detail is gone in the Hanbrake video. Edges of moving objects are rougher. Why waste time and reduce quality re-encoding the video when you can retain all the quality by simply muxing the subs? You can do the muxing with a batch file, even a whole folder full of files at once, reducing the effort to nearly nothing.
-
Hello Again,
Perhaps you might make a few more comparisons. I used VSDC to convert the original mp4 to mkv and mkv with subtitles. If you will, could you compare these files with the ffmpegs you posted.
https://files.videohelp.com/u/297490/1280.mkv
https://files.videohelp.com/u/297490/1280_subs.mkv
Thanks -
You have lost quality unnecessarily and you have burned in the subtitles, which in most cases is undesirable and disturbs the picture quality.
For example, if you watch a movie with Ar 2.35:1 on the TV, there are black bars at the top and bottom.
The soft subtitles are displayed in this black area and do not interfere with the picture, unlike the burned-in subtitles.
If you use mkv as container, then you can set the soft subtitles as forced, i.e. on a pc they are displayed automatically by the player, with mp4 you can't set the forced flag (at least not with ffmpeg).
On TVs the forced flag is detected on some, not on others. Then you have to activate the subtitle in the TV player menu.
The soft subtitles are already included in jagabo's post #15. Download the two versions to a USB stick and watch them on your TV.
If it works, you can simply add the subtitles in the future without quality loss. This can be done g.e. with my clever FFmpeg GUI. -
-
I only did it because VSDC won't do softcoded subs. Does the file without the subs show up as degraded?
-
Similar Threads
-
Replace subtitle in a sub/srt file
By Adhyskonydh Bobobobo in forum SubtitleReplies: 2Last Post: 15th Apr 2020, 02:45 -
How to position a subtitle in a .srt file ?
By momo1984 in forum SubtitleReplies: 24Last Post: 24th Feb 2019, 04:01 -
Retrieve subtitle file embedded in an MP4 video
By kasfig in forum SubtitleReplies: 5Last Post: 20th Feb 2019, 21:27 -
Remux mp4 adding subtitle - PLEASE HELP
By maverickluke in forum SubtitleReplies: 17Last Post: 18th May 2017, 13:10 -
Why this subtitle file .srt does not work?
By winsen in forum SubtitleReplies: 6Last Post: 21st Jul 2016, 08:00