00

The short answer

  • MP4 is a multimedia container that holds audio, video and other media information, while its extension alone does not establish the encoding or playback compatibility.
  • For playback, open the MP4 with a media application and check its support for the contained streams if it fails. For conversion, HandBrake documents support for common MP4 and M4V video sources, but excludes DRM-protected video. On Mac, the documented QuickTime 7 limitation concerns chapters or AC3 audio in HandBrake output: these features require .m4v. QuickTime X and iOS do not have that extension restriction; this does not establish support for every encoding. [HandBrake source formats](https://handbrake.fr/docs/en/1.11.0/technical/source-formats.html), [HandBrake containers](https://handbrake.fr/docs/en/1.7.0/technical/containers.html)
  • Treat unfamiliar MP4 files cautiously. RFC 4337 describes malformed media streams that can overload or crash decoders. The format also supports program content, including MPEG-J and ECMAScript, although this does not mean every MP4 contains it. MPEG-J execution restrictions do not eliminate decoder risks. [RFC 4337, security considerations](https://www.rfc-editor.org/rfc/rfc4337.html#section-4)
01

MP4 files: opening, M4V differences and conversion

MP4 is defined by ISO/IEC 14496-14. The Library of Congress identifies MPEG-4 File Format, Version 2 as a subtype of the ISO Base Media File Format. It can contain differently compressed audio and video, interactive scene information, metadata and references to media streams outside the file. [Library of Congress](https://www.loc.gov/preservation/digital/formats/fdd/fdd000155), [RFC 4337](https://www.rfc-editor.org/rfc/rfc4337.html)

Keep the original

Distinguish copying streams into another container from re-encoding them. FFmpeg streamcopy avoids decoding and encoding, so copied audio and video streams do not lose quality. Conversion may fail if information required by the destination container is missing. Re-encoding can reduce quality, so conversion to MP4 is not automatically lossless. [FFmpeg streamcopy](https://www.ffmpeg.org/ffmpeg.html#Streamcopy), [FFmpeg transcoding](https://www.ffmpeg.org/ffmpeg.html#Transcoding)

02

How to open it

For playback, open the MP4 with a media application and check its support for the contained streams if it fails. For conversion, HandBrake documents support for common MP4 and M4V video sources, but excludes DRM-protected video. On Mac, the documented QuickTime 7 limitation concerns chapters or AC3 audio in HandBrake output: these features require .m4v. QuickTime X and iOS do not have that extension restriction; this does not establish support for every encoding. [HandBrake source formats](https://handbrake.fr/docs/en/1.11.0/technical/source-formats.html), [HandBrake containers](https://handbrake.fr/docs/en/1.7.0/technical/containers.html)

I only want to read it

For playback, open the MP4 with a media application and check its support for the contained streams if it fails. For conversion, HandBrake documents support for common MP4 and M4V video sources, but excludes DRM-protected video. On Mac, the documented QuickTime 7 limitation concerns chapters or AC3 audio in HandBrake output: these features require .m4v. QuickTime X and iOS do not have that extension restriction; this does not establish support for every encoding. [HandBrake source formats](https://handbrake.fr/docs/en/1.11.0/technical/source-formats.html), [HandBrake containers](https://handbrake.fr/docs/en/1.7.0/technical/containers.html)

I need to send it to someone

Distinguish copying streams into another container from re-encoding them. FFmpeg streamcopy avoids decoding and encoding, so copied audio and video streams do not lose quality. Conversion may fail if information required by the destination container is missing. Re-encoding can reduce quality, so conversion to MP4 is not automatically lossless. [FFmpeg streamcopy](https://www.ffmpeg.org/ffmpeg.html#Streamcopy), [FFmpeg transcoding](https://www.ffmpeg.org/ffmpeg.html#Transcoding)

03

File safety

Treat unfamiliar MP4 files cautiously. RFC 4337 describes malformed media streams that can overload or crash decoders. The format also supports program content, including MPEG-J and ECMAScript, although this does not mean every MP4 contains it. MPEG-J execution restrictions do not eliminate decoder risks. [RFC 4337, security considerations](https://www.rfc-editor.org/rfc/rfc4337.html#section-4)

Stop if any of this looks off

An unknown sender, a name ending in two extensions, or contents that do not match the extension — check before you open it.

04

Converting it

Distinguish copying streams into another container from re-encoding them. FFmpeg streamcopy avoids decoding and encoding, so copied audio and video streams do not lose quality. Conversion may fail if information required by the destination container is missing. Re-encoding can reduce quality, so conversion to MP4 is not automatically lossless. [FFmpeg streamcopy](https://www.ffmpeg.org/ffmpeg.html#Streamcopy), [FFmpeg transcoding](https://www.ffmpeg.org/ffmpeg.html#Transcoding)

Before you convert

Convert a copy, never the original, then compare quality, metadata, and layout against what you started with.

05

Common questions

What is an MP4 file used for?

MP4 is a multimedia container defined by ISO/IEC 14496-14. It can hold audio, video, metadata, interactive scene information and references to external media streams. MP4 names the container; it does not identify one fixed compression method.

How do I open an MP4 file on Windows?

Open the MP4 in your media application for playback. If it fails, check the application's support for the audio and video inside the container. For conversion, select the video as a source in HandBrake if installed; its documented source support includes common MP4 and M4V videos, but excludes DRM-protected video.

How do I open an MP4 file on Mac with QuickTime?

Try opening the file in QuickTime. For HandBrake-generated files with chapters or AC3 audio, QuickTime 7 and applications based on it require .m4v to use those features. QuickTime X does not have this extension restriction. That distinction does not guarantee support for every contained stream.

How do I play an MP4 file on iPhone?

Open the file in the media application you use on iPhone. HandBrake documents that iOS does not have QuickTime 7's .m4v extension requirement for chapters or AC3 audio in its output. If playback fails, check the contained encoding and application support; the extension alone cannot establish compatibility.

What are the differences between MP4 and M4V, and which extension should I use?

For HandBrake output, MP4 and M4V differ only in their extension. HandBrake may choose M4V when AC3 passthrough, SRT subtitles or chapter markers are enabled. Use .m4v when the documented QuickTime 7 feature restriction applies. Renaming the file does not re-encode its streams.

Why will an MP4 video not play or open in HandBrake?

The MP4 extension does not establish support for its contained streams. Check the intended application's encoding support. HandBrake supports common MP4 and M4V video sources, but does not support DRM-protected video or bypass copy protection. An opening failure alone does not prove file corruption.

Does MP4 conversion to another format lose quality?

It depends on the operation. FFmpeg streamcopy copies compressed streams without decoding or re-encoding, preserving the quality of those copied streams. Transcoding decodes and encodes again and can reduce quality. An MP4 output extension does not promise a lossless conversion.

How can I perform lossless MP4 container conversion with FFmpeg?

Use streamcopy when the target container can accept the source streams. In FFmpeg, -c copy selects stream copying. This preserves the copied audio and video streams without re-encoding; it does not promise preservation of every container feature. Missing information required by the target container can make the conversion fail.

What are the MIME types for an MP4 file?

Use video/mp4 for general audiovisual content, audio/mp4 for audio without visual presentation, and application/mp4 for content with neither audio nor visual presentation, such as MPEG-J or MPEG-7 content. The correct MIME type depends on the contents.

What are the security risks of opening unfamiliar MP4 files?

RFC 4337 warns that malformed media streams can overload or crash a receiver or decoder. MP4 can also contain program content, though not every file does. MPEG-J restrictions do not remove decoder risks. The extension or successful playback is insufficient evidence that an unfamiliar file is safe.

06

Related formats

Sources

MPEG-4 File Format, Version 2 · 美国国会图书馆数字格式保存资料

RFC 4337: MIME Type Registration for MPEG-4 · IETF 标准轨 RFC / RFC Editor

HandBrake Documentation — Container formats · HandBrake 官方文档

HandBrake Documentation — Supported source formats · HandBrake 官方文档

FFmpeg Documentation — Streamcopy and Transcoding · FFmpeg 官方文档