A video on a web page that has to download completely before it plays is a classic annoyance. For MP4 the cause is often where the index sits in the file, and ffmpeg can move it.
The ffmpeg formats documentation describes the faststart flag of the MP4 muxer as a second pass that moves the index, the moov atom, to the beginning of the file. The syntax in its own examples has a plus sign in front of the flag:
ffmpeg -i in.mp4 -c copy -movflags +faststart out.mp4
With -c copy the audio and video are copied as they are, so the run is quick and nothing is re-encoded. You only get a new file with the index in front. A player can then start as soon as the first bytes arrive, instead of waiting for the end of the file where the index used to sit.
Use a new output name and keep the original until you have played the result. The flag belongs to the output, so it can also go on any other command that writes an MP4.
The caveat is in the docs: the extra pass can take a while, and it does not work in various situations, such as fragmented output. That is why faststart is not enabled by default. If you create fragmented MP4 for streaming, this flag is not the one you need. The documentation also mentions a separate tool called qt-faststart that does the same job.
Further reading: FFmpeg Formats Documentation