How to Hardsub Sinhala subtitles on Linux using FFmpeg

The process of burning subtitles to a video is called "Subtitle Hard-subbing" or "Subtitle Hard-coding". This is very useful when you want to watch movies with Sinhala subtitles on TVs without Unicode support. This will basically paint subtitles on relevant frames.

Before doing this remember, you can't separate subtitle from a hard-subbed video. So, always keep the original video and subtitle file. This process is not equal to the "Mux" option in mkvtoonix.

To make everything smooth, I made this simple Python script to do this. (I'm not a Python expert. So, pardon me if this code is shit.)

You can run this script as below,

1) First give executable permission to the script.
sudo chmod +x si_hardsub.py
2) Then run it. ./si_hardsub.py -i test.mp4 -s test.srt

0 comments:

Post a Comment

 

Copyright © FOSS Noob™ All Rights Reserved.

Designed by Templateism