Convert M4V to J2B — Free Online Tool

Convert M4V video files to J2B audio format, extracting the AAC or MP3 audio track from Apple's iTunes-compatible video container and re-encoding it as an MP3-based J2B file using the LAME encoder. This is a niche conversion that strips all video, subtitle, and chapter data, producing an audio-only output compatible with the Jazz Jackrabbit 2 game audio format.

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 a video container developed by Apple, typically carrying H.264 or H.265 video alongside AAC audio, with optional chapters, subtitles, and multiple audio tracks. J2B is a game-specific audio format used by Jazz Jackrabbit 2, built on the ASYLUM Music Format with a simple header wrapper — it carries only audio, encoded as MP3 via the LAME encoder. During this conversion, FFmpeg discards the video stream entirely (no video codec is invoked), ignores any subtitle or chapter metadata, and extracts the first audio track from the M4V file. Because the M4V typically carries AAC audio and J2B requires MP3, the audio must be fully decoded and re-encoded using libmp3lame at the target bitrate (default 128k). This is a lossy-to-lossy transcode, meaning a generation of audio quality is lost in the AAC-to-MP3 re-encoding step.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg binary — the open-source multimedia processing engine that powers this conversion both in the browser (via FFmpeg.wasm) and on the desktop.
-i input.m4v Specifies the input file: an M4V container, Apple's MPEG-4-based video format commonly used for iTunes downloads, which may contain H.264/H.265 video, AAC audio, chapters, subtitles, and multiple audio tracks.
-c:a libmp3lame Sets the audio codec to libmp3lame, the LAME MP3 encoder. Since the M4V source typically carries AAC audio and J2B requires MP3, this flag triggers a full lossy decode-and-reencode of the audio stream rather than a simple stream copy.
-b:a 128k Sets the MP3 audio bitrate to 128 kilobits per second for the J2B output. This is the default balance point between file size and audio quality for MP3 encoding; the M4V's original AAC audio is decoded first and then compressed to this target bitrate using LAME.
output.j2b Specifies the output filename with the .j2b extension, which tells FFmpeg to use the J2B muxer. The video stream, subtitle streams, chapter data, and any additional audio tracks from the M4V are all automatically dropped because the J2B format supports only a single MP3 audio stream.

Common Use Cases

  • Extracting background music or soundtrack audio from iTunes-purchased M4V music videos to create J2B-compatible game audio assets for Jazz Jackrabbit 2 custom levels or mods
  • Converting M4V-encoded cinematic or ambient audio recordings into the J2B format for use in retro game modding communities that build custom Jazz Jackrabbit 2 content
  • Stripping the audio layer from an Apple-formatted M4V video file when only the MP3-encoded audio stream is needed for downstream game audio toolchains that accept J2B
  • Archiving or repurposing audio content from M4V video files into a format readable by legacy J2B-aware tools and players without needing a full game audio workstation
  • Testing or validating audio extraction pipelines from Apple M4V sources when the target delivery format is J2B for integration into Jazz Jackrabbit 2 level editors

Frequently Asked Questions

J2B files are natively tied to the ASYLUM Music Format, which is a tracker-based module format — not standard MP3 audio wrapped in a J2B header. FFmpeg can write a .j2b file extension with MP3 audio inside it, but the resulting file may not be recognized or played correctly by the Jazz Jackrabbit 2 engine, which expects genuine AMF/ASYLUM module data. This conversion is most useful for audio extraction and format experimentation rather than producing game-ready J2B assets. If you need authentic J2B files for modding, dedicated tracker or game audio tools are typically required.
Yes, this is a lossy-to-lossy transcode. The M4V file typically contains AAC-encoded audio, which is already a lossy format. FFmpeg must fully decode that AAC audio and then re-encode it as MP3 using the LAME encoder — a second lossy compression step that introduces an additional generation of quality degradation. At the default 128k bitrate, the result is generally acceptable for casual listening but will be noticeably inferior to the original AAC source if you compare them critically. Increasing the bitrate to 192k or 320k in the command will reduce but not eliminate this quality loss.
All of them are discarded. J2B supports only a single audio stream and has no concept of video, subtitles, chapters, or multiple audio tracks. FFmpeg will automatically select the first audio track from the M4V and ignore everything else. If your M4V contains multiple audio tracks (e.g., a director's commentary alongside the main audio) and you want a specific one, you would need to modify the FFmpeg command to add a stream selector such as '-map 0:a:1' to pick the second audio track explicitly.
The '-b:a 128k' flag controls the MP3 audio bitrate in the output J2B file. You can replace '128k' with any supported value: '64k' for the smallest file size with noticeable quality reduction, '192k' or '256k' for a better quality-to-size balance, or '320k' for the highest MP3 quality. For example, the command becomes 'ffmpeg -i input.m4v -c:a libmp3lame -b:a 256k output.j2b' to encode at 256 kbps. Keep in mind that increasing the bitrate cannot recover quality lost during the original AAC encoding in the M4V.
The single-file command shown here processes one file at a time, but you can adapt it for batch processing in a shell script. On Linux or macOS, you could run: 'for f in *.m4v; do ffmpeg -i "$f" -c:a libmp3lame -b:a 128k "${f%.m4v}.j2b"; done'. On Windows Command Prompt, a similar 'for' loop achieves the same result. The browser-based tool on this page processes files individually, so batch use is best handled with the desktop FFmpeg command directly.
Many M4V files purchased from the iTunes Store are protected by Apple's FairPlay DRM, which encrypts the content and prevents any third-party software — including FFmpeg — from decoding or converting them. This tool and the FFmpeg command will only work on DRM-free M4V files, such as those downloaded from DRM-free sources, exported from video editing software, or obtained from iTunes purchases that Apple has since made DRM-free (mostly music videos and some older content). If FFmpeg reports an error or produces a silent or corrupted output, DRM protection on the source file is the most likely cause.

Technical Notes

M4V and J2B occupy nearly opposite ends of the media format spectrum: M4V is a feature-rich Apple video container supporting H.264/H.265 video, AAC audio, FairPlay DRM, chapters, multiple audio tracks, and subtitle streams, while J2B is an extremely minimal game-audio wrapper around the ASYLUM tracker format, designed solely for the Jazz Jackrabbit 2 game engine with no video or metadata support. The FFmpeg command omits '-vn' explicitly because J2B has no video codec defined — FFmpeg will not attempt to encode video into a format that doesn't support it. The sole codec at work is libmp3lame, which performs a full decode-and-reencode of the source audio. Metadata from the M4V (such as iTunes tags, artwork, or track titles) is not preserved in the J2B output, as the format has no standardized metadata fields. One important limitation: FFmpeg's J2B muxer, to the extent it is supported, wraps MP3 data in a J2B-compatible header structure, but the resulting file is not equivalent to a natively authored ASYLUM module file. Users doing serious Jazz Jackrabbit 2 modding should treat this output as an audio extraction tool rather than a full game-asset authoring pipeline.

Related Tools