here, it like this, but it for usual video data, it creates new stream in output mkv file, so mp4 file can't be outputed.
ffmpeg -i movie.mp4 -attach subs.srt -metadata:s:2 mimetype=application/x-truetype-font out.mkv
also for 3d movies it should works only if you play around crop's filters