Convert M4V to HEVC — Free Online Tool

Convert M4V files to raw HEVC/H.265 bitstreams, re-encoding the video with libx265 for significantly smaller file sizes at comparable visual quality. This is especially useful for stripping iTunes-compatible container overhead and producing compact H.265 video for archival or transcoding pipelines.

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

M4V is an MPEG-4 container (closely related to MP4) that typically holds H.264 or H.265 video alongside AAC audio, iTunes metadata, chapter markers, and sometimes FairPlay DRM. Converting to HEVC produces a raw H.265 bitstream file — not a container. This means the video track is fully re-encoded from scratch using libx265 with CRF 28, which targets visually efficient compression at roughly half the bitrate of an equivalent H.264 encode. Because .hevc is a raw elementary stream with no container wrapper, all audio tracks, subtitles, chapters, and iTunes metadata present in the source M4V are discarded — only the video content is retained, compressed, and written to the output file.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg tool, which handles the decoding of the M4V container and its streams, the re-encoding via libx265, and writing the raw HEVC bitstream output.
-i input.m4v Specifies the input M4V file. FFmpeg will parse the MPEG-4 container, identify the video stream (typically H.264 or H.265), audio tracks, and any metadata, then make the video stream available for re-encoding.
-c:v libx265 Instructs FFmpeg to re-encode the video stream using the libx265 encoder, producing H.265/HEVC-compressed video. This replaces whatever video codec was used in the source M4V (commonly H.264) with the more efficient H.265 format.
-crf 28 Sets the Constant Rate Factor to 28, which is the default quality level for libx265. This targets perceptually efficient compression — lower values produce higher quality at larger file sizes, while higher values compress more aggressively with visible quality degradation.
-x265-params log-level=error Passes a parameter directly to the libx265 encoder to suppress its verbose per-frame encoding log output, only showing actual errors. This keeps the conversion process output readable without affecting the encoded video quality or behavior.
output.hevc Specifies the output file as a raw HEVC elementary bitstream. The .hevc extension signals to FFmpeg to write only the compressed video bitstream with no container — no audio, no subtitles, and no metadata from the source M4V are included.

Common Use Cases

  • Archiving purchased iTunes M4V movies by extracting a compact, container-free H.265 video stream for long-term storage with minimal disk usage.
  • Feeding a raw HEVC bitstream into a professional transcoding or packaging pipeline that handles muxing separately, where the source is an iTunes-format M4V.
  • Reducing the video file size of large M4V recordings (e.g., screen captures saved in Apple formats) before re-muxing into MKV or MP4 with separate tools.
  • Testing libx265 encode quality and CRF settings on M4V source material before committing to a full production encode in a containerized format.
  • Stripping all metadata, DRM remnants, audio, and subtitle tracks from an M4V to produce a clean, anonymous video-only bitstream for analysis or processing.
  • Preparing H.265 video content for devices or systems that ingest raw HEVC streams directly, bypassing the need for a container format entirely.

Frequently Asked Questions

The .hevc output format is a raw elementary bitstream — it is not a container and has no mechanism to store audio tracks, subtitles, chapters, or metadata. Only the video stream is re-encoded and written to the file. If you need to preserve the AAC audio from your M4V, you would need to mux the output into a container like MKV or MP4 instead.
If your source M4V uses H.264 video (the most common case for iTunes downloads), the HEVC output is typically 30–50% smaller at comparable visual quality, because H.265 is a more efficient codec. The exact reduction depends on the source content and the CRF value used. Note that because audio is dropped entirely, the absence of the audio track also contributes to a smaller output file.
Yes. If your M4V file is protected with Apple FairPlay DRM, FFmpeg cannot decode the video stream and the conversion will fail. DRM-protected M4V files purchased from iTunes cannot be processed by FFmpeg or any standard conversion tool. Only DRM-free M4V files — such as those you encoded yourself, downloaded from DRM-free sources, or that have had protection legally removed — can be converted.
CRF (Constant Rate Factor) controls the quality-to-filesize tradeoff for libx265. A value of 28 is the default for H.265 and produces good quality at high compression. Lower values (e.g., 18–23) produce better quality and larger files; higher values (e.g., 35–40) produce smaller files with more visible quality loss. To change it, modify the command: replace '-crf 28' with your preferred value, for example 'ffmpeg -i input.m4v -c:v libx265 -crf 20 -x265-params log-level=error output.hevc' for a higher-quality encode.
Yes. On Linux or macOS, you can loop over files in a directory using a shell command: 'for f in *.m4v; do ffmpeg -i "$f" -c:v libx265 -crf 28 -x265-params log-level=error "${f%.m4v}.hevc"; done'. On Windows Command Prompt, use: 'for %f in (*.m4v) do ffmpeg -i "%f" -c:v libx265 -crf 28 -x265-params log-level=error "%~nf.hevc"'. Each file will be processed sequentially.
Absolutely. To retain the audio from your M4V and produce a properly containerized file, change the output filename extension and add an audio codec flag. For example: 'ffmpeg -i input.m4v -c:v libx265 -crf 28 -x265-params log-level=error -c:a aac -b:a 128k output.mp4' will produce an MP4 file with H.265 video and AAC audio, preserving compatibility with most modern devices.

Technical Notes

The .hevc file extension denotes a raw HEVC elementary bitstream — there is no container wrapper, so none of the rich metadata features of the M4V format carry over. M4V files can contain multiple audio tracks, embedded subtitles (including closed captions), iTunes-style chapter markers, cover art, and content rating metadata; all of this is silently dropped during conversion. The libx265 encoder is used for re-encoding, meaning this is always a lossy transcode of the video — even if the source M4V already used H.265 video, re-encoding will introduce a second generation of quality loss. The '-x265-params log-level=error' flag suppresses the verbose per-frame encoding statistics that libx265 normally emits, keeping console output clean without affecting encode quality. CRF 28 is the libx265 default and is roughly perceptually equivalent to CRF 23 in libx264, but because H.265 is more efficient, the resulting bitrate will typically be substantially lower. Raw .hevc bitstreams are not directly playable in most media players without container support, but are suitable for tools and pipelines that consume elementary streams directly.

Related Tools