Convert MPEG to J2B — Free Online Tool
Convert MPEG video files to J2B audio format, extracting and re-encoding the audio stream as MP3 using the libmp3lame encoder — the only codec supported by the Jazz Jackrabbit 2 ASYLUM-based audio format. The video stream is discarded entirely, producing a compact audio-only file compatible with J2B's game audio specification.
to
FFmpeg Command
Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg
Drop your MPEG file here
or click to browse
Free — no uploads, no signups. Your files never leave your browser.
Settings
Note: Browser-based encoding uses approximate quality targets. For precise CRF compression, copy the FFmpeg command above and run it on your desktop.
Estimated output:
Conversion Complete!
DownloadHow It Works
MPEG files carry video encoded with MPEG-1 or MPEG-2 and audio most commonly encoded as MP2 or occasionally AAC or MP3. The J2B format is an audio-only container derived from the ASYLUM Music Format, used exclusively by the game Jazz Jackrabbit 2, and it supports only MP3 audio via libmp3lame. During this conversion, FFmpeg reads the MPEG container, strips the video stream entirely (it is not remuxed or re-encoded — it is simply dropped), and transcodes the audio stream from its source codec (typically MP2) into MP3 at 128k bitrate using the LAME encoder. Because MP2 and MP3 are both lossy formats, this is a lossy-to-lossy transcode, meaning some additional audio generation loss occurs compared to starting from a lossless source.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg tool — in this browser-based tool, that is FFmpeg.wasm running entirely in WebAssembly inside your browser, with no server upload required. On your desktop, this calls your locally installed FFmpeg binary. |
-i input.mpeg
|
Specifies the input MPEG file. FFmpeg reads the MPEG-1 or MPEG-2 container, detecting both the video stream (mpeg1video or mpeg2video) and the audio stream (typically MP2) for processing. |
-c:a libmp3lame
|
Instructs FFmpeg to encode the output audio using the LAME MP3 encoder. This is mandatory for J2B, which supports only MP3 audio — the source MP2 audio from the MPEG file cannot be stream-copied and must be fully transcoded. |
-b:a 128k
|
Sets the MP3 audio bitrate to 128 kilobits per second for the J2B output. This is the default for J2B, balancing file size with audio quality appropriate for game audio use; you can raise it to 192k or 320k for better fidelity at the cost of a larger file. |
output.j2b
|
Specifies the output filename with the .j2b extension, which triggers FFmpeg's J2B muxer to write the ASYLUM Music Format header required by the Jazz Jackrabbit 2 engine. The video stream from the MPEG source is automatically discarded since J2B is an audio-only container. |
Common Use Cases
- Extracting background music or sound effects from MPEG video captures to create custom J2B audio assets for Jazz Jackrabbit 2 modding projects
- Converting recorded MPEG broadcast footage of a music performance into a J2B file for use in a fan-made JJ2 level soundtrack
- Stripping the audio from legacy MPEG-1 or MPEG-2 files — such as old CD-ROM video clips — to repurpose the audio track within the J2B game audio ecosystem
- Testing or validating J2B audio playback pipelines by generating J2B files from known MPEG sources with predictable MP2 audio content
- Archiving the audio component of an MPEG recording in a lightweight, single-purpose container for integration with JJ2 community tools that expect J2B-formatted audio
Frequently Asked Questions
No. J2B is a strictly audio-only format with no provision for video data whatsoever — it is based on the ASYLUM Music Format used by Jazz Jackrabbit 2. FFmpeg drops the MPEG video stream entirely during this conversion. Only the audio track is transcoded and written to the J2B file.
Yes, there will be a small additional quality loss. MP2 and MP3 are both lossy codecs, so transcoding between them is a generation loss scenario — some audio information discarded by MP2 encoding cannot be recovered, and the LAME MP3 encoder then applies its own lossy compression on top. For casual game audio use this degradation is generally imperceptible at 128k, but if quality is a priority you should source from a lossless original rather than from an MPEG file.
J2B is a game audio format designed for the late-1990s Jazz Jackrabbit 2 engine, where audio fidelity was secondary to file size and compatibility. The 128k MP3 default balances acceptable audio quality with compact file sizes appropriate for in-game use. You can increase this to 192k, 256k, or 320k in the FFmpeg command by changing the -b:a value, but gains beyond 192k will be marginal given that the MPEG source audio is itself already lossy.
Yes. In the command 'ffmpeg -i input.mpeg -c:a libmp3lame -b:a 128k output.j2b', replace '128k' with any supported MP3 bitrate such as 192k, 256k, or 320k. For example: 'ffmpeg -i input.mpeg -c:a libmp3lame -b:a 192k output.j2b'. Keep in mind that the ceiling of quality is constrained by the original MPEG audio source, which is already lossy MP2 in most cases.
Yes, on desktop you can use a shell loop. On Linux or macOS: 'for f in *.mpeg; do ffmpeg -i "$f" -c:a libmp3lame -b:a 128k "${f%.mpeg}.j2b"; done'. On Windows Command Prompt: 'for %f in (*.mpeg) do ffmpeg -i "%f" -c:a libmp3lame -b:a 128k "%~nf.j2b"'. This browser-based tool processes one file at a time, making the local FFmpeg command especially useful for bulk J2B production workflows.
No. J2B is a minimal game audio container derived from ASYLUM Music Format and does not have a standardized metadata or tagging structure equivalent to ID3 tags in MP3 or Vorbis comments in OGG. Any metadata present in the MPEG source file will not be carried over to the J2B output.
Technical Notes
J2B is an exceedingly niche audio format — it is essentially a thin wrapper around an ASYLUM module file as used by the Jazz Jackrabbit 2 game engine, and its only supported audio codec is MP3 via libmp3lame. MPEG containers most commonly carry MP2 audio (the historical broadcast standard closely associated with MPEG-1 and MPEG-2 video), which means this conversion always involves a full audio transcode rather than any form of stream copy. There is no way to losslessly transfer audio from MPEG to J2B. The MPEG video streams (MPEG-1 or MPEG-2 video) are silently discarded with no re-encoding overhead. Because J2B does not support multiple audio tracks, chapters, subtitles, or transparency, none of these features from the MPEG source (MPEG itself also lacks subtitle and chapter support) are relevant here. File sizes will typically be significantly smaller than the source MPEG since all video data is dropped and only a single MP3 audio stream remains. FFmpeg's J2B muxer writes the required ASYLUM header automatically when the output extension is .j2b, so no special flags beyond specifying the libmp3lame codec and bitrate are needed.