The tool to use is called aegisub A nice tutorial is here