What is an M2V File?

An M2V file contains an elementary MPEG-2 video stream without multiplexed audio or a general-purpose container. Timing or companion audio may therefore be supplied by another file or authoring system.

How M2V Files work

M2V carries the coded picture sequence produced by an MPEG-2 video encoder: a sequence header, optional group-of-pictures headers, and picture headers with their picture data. Container-level facilities such as named tracks, presentation timestamps, and interleaved sound are absent. Authoring software pairs the stream with separately encoded audio and multiplexes both into an MPEG program stream, a transport stream, or a DVD-oriented structure, where the systems layer adds timestamps in its packet headers. Because multiplexing copies the coded pictures, the video can be re-muxed without another lossy encode.

Key facts

  1. The .m2v extension is a naming convention for a raw H.262/MPEG-2 video bitstream and proves nothing by itself. Tools identify the content from its start codes: FFmpeg’s raw MPEG video probe counts sequence, picture, and slice start codes and rejects data that contains program-stream pack headers or audio packets.
  2. An M2V file has no presentation timestamps, but its video syntax still describes playback timing. The sequence header declares picture size, aspect ratio information, and a frame_rate_code that selects rates such as 24000/1001, 25, or 30000/1001 frames per second. Each MPEG-2 picture header is followed by a picture coding extension whose top_field_first and repeat_first_field flags can lengthen that picture’s display, for example to three field periods instead of two for 3:2 pulldown of film, so picture durations do not always follow from the frame rate alone. Presentation timestamps belong to the systems layer and appear only after multiplexing, in PES packet headers. A group-of-pictures header, when present, carries a time code that H.262 says plays no part in decoding.
  3. Renaming an M2V file to .mpg does not turn it into a program stream. A program stream is built from packs, each with a pack header followed by PES packets, and none of that exists in a bare video bitstream. The file still holds video only, and software that decides by content will still see an elementary stream.
  4. Adding sound means multiplexing, not converting. A multiplexer such as mplex from MJPEG Tools combines MPEG video with MPEG audio, AC-3, DTS, or LPCM streams into a program stream without re-encoding. Two conditions apply: audio and video synchronization is not stored in either elementary file, so any start offset has to be supplied to the multiplexer, and DVD-compliant output needs the multiplexer’s DVD-specific mode, which the mplex manual itself calls a long way from full DVD authoring.

When M2V Files matter

M2V files come from DVD and Blu-ray authoring workflows, where video is encoded as an MPEG-2 elementary stream separately from audio and the two are multiplexed later. Apple’s Compressor, for example, describes its MPEG-2 elementary stream output as one video channel with no audio, for use in a third-party authoring application. On its own, an M2V file has no sound and no container-level timestamps or index, so treat it as an intermediate for multiplexing, not as a delivery file.

Sources

Turn media knowledge into a working pipeline

Connect uploads, processing, AI, storage, and delivery through one declarative API — with the encoding stack, scaling, and format churn handled for you.

Try Transloadit for free