What is MIME type "video/mp2p"?

A MIME type is a string that tells browsers and other tools how to handle a particular kind of file.

video/mp2p is a MIME type that marks files as an MPEG-2 Program Stream.
It is used to pack video, audio, and extra data into one stream. This structure helps media players decode the file correctly.
Files in this format are common in broadcast systems, DVD media, and video streaming.
Common file types using this MIME type include MPG, MOD, MPEG, and MP2.

For more details, visit the MPEG-2 Wikipedia page.

Associated file extensions

Usage Examples

HTTP Header

When serving content with this MIME type, set the Content-Type header:


    Content-Type: video/mp2p    
  

HTML

In HTML, you can specify the MIME type in various elements:


    <a href="file.dat" type="video/mp2p">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/mp2p');    
      res.end('Content here');    
    }).listen(3000);    
  

Associated file extensions

FAQs

Can I play video/mp2p files directly in a web browser?

Generally, no. Most modern web browsers (such as Chrome, Firefox, and Safari) do not provide native support for MPEG-2 Program Streams via the HTML5 <video> tag. To ensure playback on the web, you should transcode these files to widely supported formats like H.264 (video/mp4) or WebM.

What is the difference between video/mp2p and video/mpeg?

video/mpeg is the generic, standard MIME type for MPEG-1 and MPEG-2 video files. video/mp2p is a more specific identifier for MPEG-2 Program Streams, often referenced in RTP streaming standards (RFC 3555). For standard file downloads, video/mpeg is usually preferred.

How do I configure Apache to serve files as video/mp2p?

You can map the MIME type to specific extensions in your .htaccess or server configuration file. Add the line AddType video/mp2p .mpg .mpeg .mod. However, verify if your client specifically requires this type, as standard players often expect video/mpeg.

Why are .MOD files associated with this MIME type?

The .MOD extension is used by many tapeless digital camcorders (like JVC and Panasonic) to save video. These files are technically MPEG-2 Program Streams, making video/mp2p (or video/mpeg) the correct MIME definition, despite the unique file extension.

How can I convert a video/mp2p file to MP4?

You can use the open-source tool FFmpeg to convert the stream without losing quality if the codecs are compatible, or re-encode it. A common command is ffmpeg -i input.mpg -c:v libx264 -c:a aac output.mp4, which converts the MPEG-2 stream to a browser-friendly format.

Is video/mp2p used for modern live streaming (HLS/DASH)?

Rarely. Modern adaptive streaming protocols like HLS typically use MPEG-2 Transport Streams (video/mp2t) or fragmented MP4, rather than the Program Streams defined by video/mp2p. Program Streams are designed for storage (like DVDs) rather than error-prone network transmission.

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.