Browser support is the core issue I believe in most cases.
I have used mp4 successfully with Tiddlywiki5 and Mozilla, Chrome etc.
HOWEVER if you are using TiddlyDesktop(1) then mp4 will be an issue - I use webm (2) now as a result, I use ffmpeg on the command line to transcode to webm. I actually have a tiddler in my wiki with these incantations because I find I am always needing them and can never recall the syntax.
-
TiddlyDesktop uses headless chrome - there are royalty issues with mp4 hence lack of codecs/support.
-
For anyone wanting to convert to webm using ffmpeg here is a starting point - in this case converting mkv to webm but mp4 would be the same - this is my standard incantation for preparing TiddlyDesktop videos ( webm with vp9 codec ).
ffmpeg -i myVideo.mkv -c:v libvpx-vp9 -b:v 512k myVideo.webm
Others may correct what I have said which is all based on memory - I guess with these sorts of things once we have a formula that works for us we rarely revisit the topic and so the advice tends to be a bit “historic”
Update: webm is supposed to be marginally better than mp4 in terms of compression, when transcoding I try by means of trial and error to hit very roughly the same file size as the original mp4 file by altering the bit rate - shown as 512k in the example - a video expert would probably shudder at this crude ‘guesstimation’ but it works out in practise for me.