FFmpeg Video not playing in HTML

I am using FFmpeg to record from my camera at home in mp4 format. For some reason I can only play this video in VLC even though mp4 should be playable across HTML5. I believe that the codec is the problem but I still do not know what codec is supported by HTML.
What parameters would I need to add or replace to make FFmpeg record in the correct codec?

Command: ffmpeg -framerate 30 -i /dev/video2 -preset ultrafast -t 00:00:10 output.mp4

1 Like

A quick Google search says it’s H. 264 (if that’s what a codec is)