What is MIME type "video/vnd.mpegurl"?
A MIME type is a string that tells browsers and other tools how to handle a particular kind of file.
video/vnd.mpegurl is a MIME type that identifies a playlist file used for video streaming.It contains text instructions that tell media players which video segments to play in sequence. The file does not hold the video content itself but serves as a guide to fetch remote video fragments.
Files such as M4U and MXU use this MIME type.
- Stream Management: It organizes video segments for continuous playback.
- Adaptive Streaming: It helps players adjust quality based on network conditions.
- Platform Integration: It is used by various media servers and players to support streaming protocols.
Associated file extensions
Usage Examples
HTTP Header
When serving content with this MIME type, set the Content-Type header:
Content-Type: video/vnd.mpegurl
HTML
In HTML, you can specify the MIME type in various elements:
<a href="file.dat" type="video/vnd.mpegurl">Download file</a>
Server-side (Node.js)
Setting the Content-Type header in Node.js:
const http = require('http');
http.createServer((req, res) => {
res.setHeader('Content-Type', 'video/vnd.mpegurl');
res.end('Content here');
}).listen(3000);
Associated file extensions
FAQs
What is the purpose of the video/vnd.mpegurl MIME type?
This MIME type identifies playlist files that point to video streams rather than containing the video data itself. It acts as a guide for media players to locate and play remote MPEG video segments sequentially, often used with extensions like .m4u and .mxu.
Why is my .m4u or .mxu file so small compared to a normal video?
Files served as video/vnd.mpegurl are simple text files containing URLs, not actual video footage. Because they only store links and playback instructions, their file size is typically just a few kilobytes, even if they point to hours of high-definition video.
How do I configure Apache to serve video/vnd.mpegurl correctly?
To ensure browsers and players recognize the file type, add the following line to your .htaccess file or main configuration: AddType video/vnd.mpegurl .m4u .mxu. This tells the server to send the correct headers for these extensions.
What is the Nginx configuration for .m4u files?
In Nginx, you should add the MIME type mapping inside your mime.types file or the types block of your server config. Use the syntax: video/vnd.mpegurl m4u mxu;.
Can I open video/vnd.mpegurl files in a text editor?
Yes, since the underlying format is plain text, you can open files like .m4u in Notepad, TextEdit, or VS Code. This allows you to view the URLs of the video sources, though you need a media player to actually watch the content.
Which media players support video/vnd.mpegurl?
Versatile media players like VLC Media Player and MPV generally support this MIME type. They parse the playlist file and automatically stream the video content from the URLs listed inside.
Is video/vnd.mpegurl the same as HLS (application/vnd.apple.mpegurl)?
No, while both are playlist formats, application/vnd.apple.mpegurl is specific to Apple's HTTP Live Streaming (HLS) protocol used for .m3u8 files. video/vnd.mpegurl is typically associated with older or generic MPEG4 playlist standards used by mobile devices and specific streaming servers.
General FAQ
What is a MIME type?
A MIME (Multipurpose Internet Mail Extensions) type is a standard that indicates the nature and format of a document, file, or assortment of bytes. MIME types are defined and standardized in IETF's RFC 6838.
MIME types are important because they help browsers and servers understand how to process a file. When a browser receives a file from a server, it uses the MIME type to determine how to display or handle the content, whether it's an image to display, a PDF to open in a viewer, or a video to play.
MIME types consist of a type and a subtype, separated by a slash (e.g., text/html, image/jpeg, application/pdf). Some MIME types also include optional parameters.
How do I find the MIME type for a file?
You can check the file extension or use a file identification tool such as file --mime-type on the command line. Many programming languages also provide libraries to detect MIME types.
Why are multiple MIME types listed for one extension?
Different applications and historical conventions may use alternative MIME identifiers for the same kind of file. Showing them all helps ensure compatibility across systems.