First make sure you have libass enabled, otherwise you will need to convert the srt files to ass.
ffmpeg -version | grep libass
Then you can do:
ffmpeg -i input.mp4 -vf subtitles=input.srt output.mp4
This will take a bit as it needs to go frame by frame and burn in the subtitles.