Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Merge video with subtitles
#1
Hello,
I'm looking for a solution allowing to merge video file (.mp4) with subtitles file (.vtt).
Any suggestions ?
Thanks
Reply
#2
FFmpeg can do this,but can be long command as mp4 don't support .vtt out of the box,so have to convert to mov_text and choose right languages also.
MKVToolNix is really easy.
Using files that i downloaded before in your arte project.
Drag-drop .mp4 and .vtt file into mkvtoolnix,change filename output to .mp4 then click on start multiplexing done.
[Image: KAemLQ.png]
Reply
#3
Thanks
I've tried this tool.
There are several problems with it:
  1. Subtitles are not viewed with all players, e.g. when I play the resulting video with Ubuntu's default "Videos" player, the subtitles are not seen
  2. Embedded subtitles in VLC player does not look like subtitles in original video (please see 2 screenshots below: 1st - online video, 2nd - video file with embedded subtitles). Online video subtitles are much better.

[Image: frost-screenshot-arte.png]

[Image: frost-embedded-subtitles.png]
Reply
#4
Should get color text and the background will be black not transparent(that think i is not possible).
Look ok and the same embed or not in newest VLC 3.0.17 on Windows.
[Image: SWib1P.png]
[Image: EUVRTa.png]
Reply
#5
Before, I was using an editor (forgot which one) that allowed to embed subtitles like in the original online stream (without background)
Moreover, this editor has integrated the subtitles in such a way that they are visible in all players, not only in VLC.
Reply
#6
I remembered which tool I used to embed subtitles - GiliSoft Video Subtitle.
It do the job perfectly: (1) user can adjust the position, font and color of subtitles, (2) there is NO any background color beside subtitles, (3) the embedded subtitles are visible in any player, not just in VLC.
But this tool have some shortcomings: (1) It runs only on Windows (at least I didn't find Linux version), (2) There is no option for batch mode, i.e. setup multiple videos and then run.
Reply
#7
You can adjust the subtitle colors in vlc settings.
Reply
#8
Here is a way with free tool Subtitle Edit 3.6.6.
Load .vtt file and now change to .ass(Advanced SubStation Alpha File), then save this .ass file.
Open MKVToolNix and the same,but now drag in the new .ass file generated with Subtitle Edit.
Now get transparent background with the right colors.
[Image: ODuzYg.png]
[Image: YELPoI.png]
Reply
#9
(Jun-28-2022, 01:46 PM)Awi Wrote: Follow these steps:
1. Upload your MP4 file. Select the MP4 which you want to burn your subtitle file.
2. Upload the VTT file. Or click on "autogenerate subtitles" with Happy Scribe.
3. Customization. Customize your captions, and change the color, font, and position of your subtitles.
4. Download the MP4.
The interface of this "Happy Scribe" is quite tricky.
Once on the page, I didn't find how to upload .mp4, and .vtt
Reply
#10
(Jun-28-2022, 02:12 PM)Axel_Erfurt Wrote: You can adjust the subtitle colors in vlc settings.
I don't like VLC and use other players in both Windows and Ubuntu, where such options don't exist.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to 'soft-embedd' subtitles with python-ffmpeg Pavel_47 2 2,112 Jul-04-2022, 12:33 PM
Last Post: Pavel_47

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020