HS is a python script that simplifies re-encoding a video with subtitles irreversibly merged into its frames.
It starts from a video source file and its SubRip text file format (at this moment only srt files are supported) and it will produce a new video file of the same type of the source but with subtitles merged into video track.
It supports AVI, Matroska and MPEG-4 containers.
This script is useful if you have an old video decoder which does not support external srt files or if you prefer that subtitles for your video have to be immutable.
This page is intentionally left blank.
At least until #3 will be resolved.
Once installed, the command syntax is:
hs -o <output_dir> source_dir
where:
- output_dir is the directory where reencoded video will be placed
- source_dir is the directory where video file(s) and relatives subititle file(s) has been placed. Please note that the srt file and video file must have the same name otherwhise the script will not consider this video as a source file.
HS has also additional paramteres:
- -h that shows an inline help
- -v that displays the underliying command that will be used for reencoding
- -s that states the size of subtitle text (1 - normal, 4 - blinded, any value inside this range is accepted).
hs -o out/ in/
will encode any video file present in in folder that has an srt file with the same name of video file and will output the new files in out folder.
hs -s 4 -o out/ in/
same as above but the subtitle text will be gigantic.