Convert Y4M to AIFF — Free Online Tool

Convert Y4M (YUV4MPEG2) video files to AIFF audio by extracting the raw PCM audio stream and encoding it as 16-bit big-endian PCM — Apple's native lossless audio format. This is useful when your uncompressed Y4M intermediate file contains audio that needs to be exported to a high-quality, macOS-compatible format for professional audio workflows.

FFmpeg Command

Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg

Free — no uploads, no signups. Your files never leave your browser.

Estimated output:

Conversion Complete!

Download

How It Works

Y4M is a raw, uncompressed video format commonly used as an intermediary in video processing pipelines. When converting to AIFF, FFmpeg discards the raw YUV video frames entirely and extracts only the audio stream from the Y4M file. That audio is then encoded using PCM signed 16-bit big-endian (pcm_s16be), which is the native codec for AIFF — an Apple-originated container designed for uncompressed, professional-grade audio. Because both the source audio in Y4M and the output AIFF use uncompressed PCM, there is no lossy compression step; this is effectively a lossless remux of the audio with a container and byte-order change suited for macOS and Apple ecosystems.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg command-line tool, which handles all demuxing, stream selection, codec processing, and muxing for this conversion.
-i input.y4m Specifies the input file in YUV4MPEG2 format. FFmpeg will parse the Y4M header to determine frame dimensions, frame rate, and any audio stream metadata present in the file.
-c:a pcm_s16be Sets the audio codec to PCM signed 16-bit big-endian, which is the standard and default codec for AIFF files. This produces uncompressed, lossless audio in the byte order Apple's AIFF container expects.
output.aiff Defines the output file as an AIFF container. FFmpeg infers the AIFF format from the .aiff extension, automatically applying the correct muxer and discarding the Y4M video frames since AIFF is an audio-only format.

Common Use Cases

  • Extracting a clean, uncompressed audio track from a Y4M file produced by a video processing pipeline (e.g., ffmpeg piping or MLT/Kdenlive export) for use in a macOS DAW like Logic Pro or GarageBand.
  • Delivering lossless audio from a Y4M master file to a client or collaborator working in an Apple-centric post-production environment where AIFF is the expected format.
  • Archiving the audio component of a raw Y4M video capture separately, since the Y4M video itself is enormous and may only need to be kept in audio-only form long-term.
  • Preparing audio stems for Apple-specific professional tools like Final Cut Pro X, which favors AIFF for high-quality audio import over formats like WAV.
  • Stripping audio from a Y4M test signal file (e.g., a synthetic tone or countdown generated by a test video tool) into an AIFF for acoustic analysis or equipment calibration.
  • Converting Y4M files generated by open-source encoding pipelines (such as x264 or AV1 encode tests that use Y4M as input) to AIFF when the audio component needs separate review or QC.

Frequently Asked Questions

Y4M (YUV4MPEG2) is primarily a video-centric format and its specification does not formally define an audio track structure — many Y4M files contain no audio at all. If your Y4M file was created by a tool that embedded audio (some pipelines mux audio alongside the raw video frames), FFmpeg will extract it. However, if no audio stream is present, the output AIFF will be silent or the conversion may fail. You can check whether your Y4M file has audio by running 'ffmpeg -i input.y4m' and looking for an audio stream in the output.
No — this conversion is fully lossless on the audio side. Y4M files that carry audio typically store it as raw uncompressed PCM, and AIFF with the pcm_s16be codec is also uncompressed PCM. The only potential change is a reduction in bit depth if your source audio is 24-bit or 32-bit, since the default codec used here is pcm_s16be (16-bit). If you need to preserve higher bit depth, you should change the codec to pcm_s24be or pcm_s32be in the FFmpeg command.
AIFF was designed by Apple in the late 1980s based on the IFF container format, at a time when Motorola 68000 processors (which use big-endian byte order) powered Macs. The pcm_s16be codec reflects this heritage — the 'be' stands for big-endian. This is in contrast to WAV, which uses little-endian PCM (pcm_s16le). The audio data is identical in terms of quality; only the byte order differs, and any modern macOS or professional audio application handles AIFF's big-endian encoding natively without issue.
Replace '-c:a pcm_s16be' with another supported AIFF codec to match your desired bit depth. For 24-bit audio use '-c:a pcm_s24be', for 32-bit integer use '-c:a pcm_s32be', and for 32-bit or 64-bit floating point use '-c:a pcm_f32be' or '-c:a pcm_f64be' respectively. For example: 'ffmpeg -i input.y4m -c:a pcm_s24be output.aiff' will produce a 24-bit AIFF file, which is common in professional audio mastering contexts.
Yes. On Linux or macOS, you can use a shell loop: 'for f in *.y4m; do ffmpeg -i "$f" -c:a pcm_s16be "${f%.y4m}.aiff"; done'. On Windows PowerShell, use: 'Get-ChildItem *.y4m | ForEach-Object { ffmpeg -i $_.FullName -c:a pcm_s16be ($_.BaseName + ".aiff") }'. This is especially practical for batch-processing Y4M files output by an automated encode pipeline where you need to separate and archive the audio tracks.
Yes. AIFF with pcm_s16be is one of the most natively supported audio formats in Apple's entire software ecosystem. Final Cut Pro, Logic Pro, GarageBand, and QuickTime Player all handle AIFF files without requiring any additional codecs or plugins. The big-endian 16-bit PCM encoding used here is exactly what Apple applications expect from a standard AIFF file.

Technical Notes

Y4M files are large by nature — each frame stores full uncompressed YUV pixel data — and their audio support is informal at best. The YUV4MPEG2 specification focuses on video framing; audio interleaving in Y4M files is tool-dependent and not universally standardized, which means some Y4M files produced by certain tools (like those generated by libx264 in raw mode or Vapoursynth pipes) will have no audio stream at all. When audio is present, FFmpeg successfully demuxes it and encodes it into the AIFF container using pcm_s16be, Apple's canonical lossless audio codec. The resulting AIFF file will be significantly smaller than the source Y4M because the video frames are entirely discarded. No audio metadata (such as ID3 tags or chapter markers) is carried over, as Y4M does not formally support such metadata and AIFF has limited tag support anyway — though AIFF does support basic NAME, ANNO, and MARK chunks, FFmpeg does not populate these automatically from Y4M sources. If sample rate or channel count fidelity is critical, verify them with 'ffprobe input.y4m' before conversion, as Y4M header parsing for audio parameters can vary between encoders.

Related Tools