MP4 Audio MIME Type

Learn what audio/mp4 identifies, how audio-only MP4 differs from video MP4 and raw AAC, and how Poly processes it.

MIME type details for audio/mp4

In active use
MIME typeaudio/mp4
Extensions
.mp4.mpg4
First standardized2006
Created byIETF (Y. Lim and D. Singer)
Browser supportChrome (codec-dependent), Edge (codec-dependent), Firefox (platform-dependent), Opera (codec-dependent), Safari (codec-dependent)
Example applicationsFFmpeg, Logic Pro
Poly supportYes. Poly recognizes an explicitly supplied audio/mp4 type and routes it through the audio pipeline; filename-only .mp4 and .mpg4 detection does not select this type.
Indexed by PolyYes. When its container and codec decode successfully, MP4 audio is indexed by filename, transcript text, and audio similarity; duration, tags, and embedded artwork may also be extracted.
Preview in PolyYes. It opens in Poly's audio player, but actual playback depends on the browser or operating system supporting the codec in the container.
Poly agentYes. After transcription completes, the Poly agent can read and reason over the transcript; it does not interpret undecoded compressed audio directly.

What does audio/mp4 mean?

audio/mp4 is the registered media type for an MP4 file that contains audio but no visual presentation. It identifies the container, not one particular audio codec. An audio/mp4 file may carry AAC, ALAC, MP3, FLAC, Opus, or another codec permitted by the MP4 family, although AAC is the most familiar choice.12

RFC 4337 selects the top-level media type from the presentation inside the file:

File contentsRegistered media type
Audio, with no visual presentationaudio/mp4
Video, or audio plus videovideo/mp4
Neither audio nor visual presentationapplication/mp4

That distinction is more reliable than the filename. The IANA registration lists both .mp4 and .mpg4 for audio/mp4, but .mp4 is also widely used for video. The common .m4a suffix is a helpful audio-only filename convention, while its standards-track HTTP media type remains audio/mp4.13

For an audio-only file named song.m4a, send Content-Type: audio/mp4. Use the optional codecs parameter when the receiver needs to know the codec before downloading, for example audio/mp4; codecs="mp4a.40.2" for AAC-LC.2

How MP4 audio became a registered type

MP4 grew from the MPEG-4 systems work standardized by ISO/IEC. The MP4 file format was separated as ISO/IEC 14496-14 and built on the ISO Base Media File Format. In March 2006, Y. Lim and D. Singer published RFC 4337, which registered audio/mp4 alongside video/mp4 and application/mp4 and tied their use to the file's contents.1

The original registration did not tell a receiver which codec and profile were inside the container. RFC 6381 updated the MP4 media types in 2011 by defining the optional codecs parameter. For ISO-family audio, values beginning with mp4a identify MPEG audio sample entries, with later components narrowing the object type and audio profile.2

MP4 files also declare brands in their file-type box. A brand says which file-format specification a reader may use to interpret the file. It does not, by itself, promise that the reader has every codec decoder the tracks require.4

How to identify and open MP4 audio

There is no registered fixed magic number for audio/mp4. ISO-family files are made from typed boxes, and a file-type box named ftyp commonly appears near the beginning. Its byte position and declared brands can vary, so checking only for the letters ftyp is not enough. A sound identifier parses the box structure and verifies that the presentation has audio without a visual track.14

FFmpeg's MOV/MP4 demuxer reads .mp4, .m4a, and related ISO Base Media files. Its dedicated ipod muxer writes the audio-only MPEG-4 variant. Logic Pro can also export M4A with either AAC or ALAC audio.56

Modern browsers can generally play AAC in an MP4 container through the <audio> element. Container support and codec support are separate, however. Firefox can rely on the operating system for AAC decoding, ALAC support is substantially narrower, and less common MP4 audio codecs may fail even when the browser understands the MP4 container.7

A file extension cannot guarantee playback. Check the actual tracks with a media probe, and test the precise container, codec, profile, channel layout, and platform combination you plan to deliver.

Support in Poly

Poly defines audio/mp4 as an audio type. When a file arrives with that MIME type, the normal audio workflow:

  • Probes the file with Symphonia, then extracts duration and available audio tags.
  • Uses embedded artwork as a thumbnail when suitable art exists.
  • Creates 15-second audio-similarity segments for recordings long enough to embed.
  • Produces a WebVTT transcript and adds its cue text to full-text search.
  • Opens the original file in the audio player and seeks to transcript or similarity matches.
  • Gives the Poly agent readable content through the completed transcript.

Recognition has an important filename limitation. Poly maps .m4a to its audio/m4a type and maps .mp4 to video/mp4; it does not map .mpg4 from a filename. The audio/mp4 path is therefore dependable when the incoming MIME type is retained or content detection supplies it, but filename-only ingestion does not select audio/mp4 for either registered extension.

Richer processing is also decoder-dependent. A corrupt file, an encrypted track, or a codec unsupported by Poly's audio loader can be stored but may fail metadata extraction, transcription, audio-similarity indexing, and waveform preparation. Browser preview has its own codec dependency because the client plays the original media.

Convert without unnecessary quality loss

Start by inspecting the streams rather than guessing from .mp4 or .m4a:

ffprobe -hide_banner input.mp4

If the file is already audio-only and its codec is compatible with the destination, remuxing rewrites the container without recompressing the samples:

ffmpeg -i input.mp4 -map 0:a:0 -c:a copy output.m4a

For a broadly playable delivery copy, AAC-LC in MP4 is a practical target:

ffmpeg -i input.mp4 -map 0:a:0 -c:a aac -b:a 192k output.m4a

Use WAV or FLAC when you need a lossless editing copy. Decoding lossy AAC to a lossless format prevents another lossy generation during later edits, but cannot recover information the original encoder discarded.

Stream copying may preserve the audio perfectly while dropping or rearranging container metadata. Check chapters, artwork, gapless-playback data, language tags, and dates after any remux.

audio/mp4, M4A, and AAC are not synonyms

TermWhat it describesTypical role
audio/mp4Registered media typeLabels an audio-only MP4 representation
M4AFilename and application conventionSignals an audio-oriented MP4 file to people and software
AACLossy audio codec or standalone streamOften stored inside MP4, but can also use ADTS framing
ALACLossless audio codecCommonly stored in an M4A-style MP4 container
video/mp4Registered media typeLabels MP4 containing a visual presentation

Renaming a raw .aac stream to .mp4 does not add an MP4 container. Conversely, renaming MP4 audio to .aac does not remove its boxes, timing tables, metadata, or other tracks. Use remuxing when only the wrapper should change, and transcoding when the codec itself must change.

Security and privacy

RFC 4337 warns that a nonconforming stream can overload decoder buffers or crash a receiver. MP4 systems content can also include executable or command-like features. Treat unknown files as untrusted input, keep decoders current, and avoid enabling external references or programmatic features unless they are required.1

Audio MP4 can carry more than sound. Artwork, titles, comments, timestamps, encoder details, chapters, and other metadata may reveal information you did not intend to publish. Inspect both the tracks and metadata before sharing a sensitive recording.

Footnotes

  1. Internet Engineering Task Force. RFC 4337: MIME Type Registration for MPEG-4. The standards-track RFC selects audio/mp4 for audio without a visual presentation, registers .mp4 and .mpg4, lists no magic number, and documents security considerations. 2 3 4 5
  2. Internet Engineering Task Force. RFC 6381: The Codecs and Profiles Parameters for Bucket Media Types. The RFC adds codec identification to MP4-family media types and defines ISO-family codec syntax. 2 3
  3. Library of Congress. MPEG-4 File Format, Version 2. The format record documents .mp4 and .m4a usage and the audio-only media type.
  4. MP4 Registration Authority. Registered Brands. The registry explains the role of major and compatible brands in ISO-family files. 2
  5. FFmpeg Project. FFmpeg Formats Documentation. The documentation lists the MOV/MP4 demuxer and the audio-only MPEG-4 muxer.
  6. Apple. M4A File Options in Logic Pro for iPad. Apple documents AAC and ALAC choices for M4A exports used by its music applications.
  7. MDN Web Docs. Media Container Formats and Web Audio Codec Guide. MDN documents MP4 audio codecs and platform-dependent playback support.
© Poly Corp. 2026