Assume I have an existing well-encoded MP4 video WITHOUT subtitles.
Now I want to add the text "foobar testtext" with fontsize=18 and fontfamily Verdana into video beginning at 1min23sec and ending at 3min44sec centralized 30 pixels above lower border.
How can I most easily achieve this?
If possible/necessary the text could be put fix encoded into video and not only as traditional subtitle.
Peter
+ Reply to Thread
Results 1 to 5 of 5
-
-
If you want to play the video with external subs, then create a subtitle file for it with the same name as the video. Aegisub can set up the styles (font, text size ) for you and create the subs.
Encoding the subs into the video degrades the video and should be avoided. You can embed the subs without reencoding. I don't know if MP4 allows for that but repacking it as an MKV does allow for it, -
Last edited by Sharc; 10th Dec 2018 at 12:28.
-
Open you video with Aegisub:
1. Mark the start and end position of your subtitle
2. Export it to *.srt
3. Get the latest MP4Box, install MeGUI to get the last one, my version is "MP4Box - GPAC version 0.7.2-DEV-rev357-g7115eeb8-master"
4. Convert the .srt to .ttxt with the command below:
Code:mp4box -ttxt your_subtitle.srt -out converted_subtitle.ttxt Timed Text (SRT) import - text track 400 x 60, font Serif (size 18) Conversion done
6. To mux it in to your mp4 use the command below:
Code:mp4box -add converted_subtitle.ttxt:lang=eng":name=English":layout=0x60x0x-1:group=2 your_video.mp4 -out subtitled_video.mp4 Timed Text (GPAC TTXT) Import Saving to subtitled.mp4: 0.500 secs Interleaving
This extra information will be listed inside your MP4:
Code:Text ID : 3 Format : Timed Text Codec ID : tx3g Duration : 4 min 55 s Bit rate mode : Variable Bit rate : 65 b/s Stream size : 2.36 KiB (0%) Title : English Language : English Default : Yes Forced : No Alternate group : 2 Encoded date : UTC 2018-12-22 21:01:44 Tagged date : UTC 2018-12-22 21:01:44
Similar Threads
-
How to add new subtitles to an existing DVD
By Baldrick in forum User guidesReplies: 432Last Post: 28th Dec 2022, 13:36 -
How to add new subtitles to an existing Blu-ray folder
By Ryugen in forum SubtitleReplies: 2Last Post: 6th Jun 2016, 22:20 -
How do I Mux subtitles into MP4 as a plain text
By limpo in forum SubtitleReplies: 1Last Post: 23rd Feb 2016, 13:20 -
How do I Mux subtitles into MP4 as a plain text
By A700 in forum SubtitleReplies: 4Last Post: 8th Oct 2014, 11:11 -
How to add subtitles permanently to existing mp4 h.264 file???
By Patrick_H in forum SubtitleReplies: 20Last Post: 7th Aug 2014, 07:35