System and method of generating subtitling for media