logoalt Hacker News

pjc50today at 9:24 AM1 replyview on HN

Yes, serving an MP4 file directly into a <video> tag is the simplest possible thing you can do that works. With one important caveat: you need to move the "MOOV" metadata to the front of the file. There are various utilities for doing that.


Replies

panstromektoday at 9:42 AM

Yea, passing `-movflags +faststart` to ffmpeg when processing the file should be enough.