Thanks for letting us know the workaround.
I’m thinking one can export to something like DNxHD with the markers, then transcode that in ffmpeg to h.264 or h.265. Keep in mind that mp4 is a container, not a codec. Both matter.
Glad you got something to work,
Robert