MP4
Quick look-up table
MP4 | |
---|---|
Type of streaming | Pseudo streaming |
Development State | Maintained |
Expected Latency | < 5s |
Connection type | HTTP(S) |
Container type | MP4 |
Where | Browsers, players |
Default Port | 80, 443 |
Modern codecs | All |
Difficulty of read | Beginner |
Notes | Container format only |
What do I need to know about MP4?
MP4 is also known as MPEG-4. MPEG stands for Moving Pictures Expert Group, a group that has been defining media standards since 1988. MP4 began its life as MOV, which was created by Apple together with the QuickTime Player. A slightly modified version was later standardized as MP4, and they remain mostly compatible with each other. It is one of the most commonly known container formats used for consumer devices. To the point that it is recognisable by people with no media knowledge. Generally you can assume that if you have a player or browser it will support MP4. VoD MP4 streams are also supported natively by Apple devices.
While usually a single file, MP4 can be split up in multiple files which we call fMP4 (fragmented MP4). This is especially common in segmented streaming methods, and was later standardized as CMAF.
When would you use MP4?
Playback of media, storage
You would use MP4 when you need to reach users. Storing media in MP4 has a benefit of making it easier to use when reaching users, however it is not always the best format to store media in. The MP4 header is complex, which means that reading or writing the header is relatively inefficient in terms of CPU and memory usage. A big benefit to the header however is that it allows for trick play options like seeking without any need for custom players. As MP4 is a container only format there is no scheme to note.
Things to know about MP4
- The header can be repeated every so often or set at the front of the MP4 file. Setting it at the front is more efficient, MistServer will do this for all MP4 playback.
Advantages of MP4
- Perhaps the broadest support for consumer devices available
- Can contain all modern codecs
- Header supports seeking in the file
Disadvantages of MP4
- The header is inefficient
- No protocol, between server transport is inefficient
How do you get started with MP4?
Interested how to reach out to your users using MP4, but wondering how to go from your current media inputs to MP4? Luckily MistServer is specialized in making sure your media gets delivered in the format you need. Contact us to learn how we can help.