You cannot exactly convert subtitles (such as SubRip .srt files) to a MPEG-4 video (.mp4), which mean srt to mp4 conversion in this sense is not possible.
The only thing feasible would be to import subtitles to a video file. This can be done with lots of various video editing tools or even dedicated subtitle importers.
Updated: August 2, 2022