Convert MPG to J2B — Free Online Tool
Convert MPG video files to J2B audio format, extracting the MP2 or MPEG audio stream and re-encoding it as MP3 using the LAME encoder — the only codec supported by the Jazz Jackrabbit 2 J2B format. This tool is useful for anyone repurposing MPEG broadcast or DVD-compatible video audio into the niche J2B game audio container.
to
FFmpeg Command
Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg
Drop your MPG 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
MPG files typically carry MPEG-1 or MPEG-2 video alongside MP2 audio, both designed for broadcast and disc playback. During this conversion, the video stream is completely discarded — J2B is a pure audio format with no video support. The MP2 audio from the MPG is decoded and then re-encoded as MP3 using the LAME encoder at 128k bitrate, then wrapped in the J2B container, which is essentially the ASYLUM Music Format with a simple header used by Jazz Jackrabbit 2. Because MP2 and MP3 are both lossy formats, this is a lossy-to-lossy transcode, meaning some audio generation loss occurs.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg tool, which is running here as a WebAssembly (FFmpeg.wasm) instance entirely within your browser — no data is sent to any server. |
-i input.mpg
|
Specifies the input MPG file, which contains MPEG-1 or MPEG-2 video and typically MP2 audio encoded for broadcast or VCD/DVD playback. |
-c:a libmp3lame
|
Selects the LAME MP3 encoder for the audio output stream. This is mandatory for J2B, which exclusively uses MP3 as its audio codec — the MP2 audio from the MPG source must be fully re-encoded. |
-b:a 128k
|
Sets the MP3 audio bitrate to 128 kilobits per second for the J2B output. This is the default for J2B and a common balance between file size and audio fidelity, though you can increase it to 192k or 256k to reduce generational quality loss from the MP2-to-MP3 transcode. |
output.j2b
|
Defines the output filename and signals FFmpeg to wrap the encoded MP3 audio in the J2B container format — the ASYLUM Music Format header used by Jazz Jackrabbit 2. The video from the MPG source is automatically omitted since J2B is audio-only. |
Common Use Cases
- Extracting a music or sound segment from an old MPEG broadcast recording to create a custom J2B music file for use in Jazz Jackrabbit 2 mods or level editors
- Converting MPEG-format game cinematics or promotional videos from the late 1990s era into J2B audio files to match the sonic aesthetic of Jazz Jackrabbit 2
- Repurposing MPG VCD audio tracks — which share the same era as Jazz Jackrabbit 2 — into J2B files for retro game audio projects
- Stripping audio from MPG broadcast clips to produce J2B files for fan-made Jazz Jackrabbit 2 episodes requiring custom music tracks
- Archiving or converting legacy MPEG video soundtracks into the J2B format for study or reverse-engineering of the ASYLUM Music Format wrapper structure
Frequently Asked Questions
Yes, some quality loss is unavoidable. MPG files use MP2 audio, which is itself a lossy codec. During this conversion, that MP2 audio is decoded and re-encoded as MP3 at 128k bitrate — a lossy-to-lossy transcode. Each generation of lossy encoding introduces additional artifacts. If the original MPG had high-bitrate MP2 audio (e.g., 256k or 320k), encoding to 128k MP3 for J2B will result in a noticeable reduction in fidelity.
MP3 encoded by libmp3lame fully supports stereo, so stereo audio from your MPG source will be preserved in the J2B output. However, J2B's origins in the ASYLUM Music Format mean it was historically used for module-style mono or simple stereo game music. Practically, the J2B wrapper itself does not restrict the MP3 stream's channel layout, so stereo should pass through correctly.
J2B is a strictly audio-only format — it has no provision for video data whatsoever. The FFmpeg command used here intentionally processes only the audio stream from your MPG file and discards the MPEG-1 or MPEG-2 video entirely. This is by design, not a bug. If you need to retain the video, you would need to convert to a different output format that supports video.
J2B files are a highly niche format tied specifically to the Jazz Jackrabbit 2 game engine and its level editor, JCS (Jazz Creation Station). General media players like VLC or Windows Media Player will not recognize J2B natively. Playback outside of the game typically requires specialized tools or plugins that understand the ASYLUM Music Format header used by J2B.
You can replace the '-b:a 128k' flag with a higher bitrate supported by libmp3lame, such as '-b:a 192k', '-b:a 256k', or '-b:a 320k'. For example: 'ffmpeg -i input.mpg -c:a libmp3lame -b:a 256k output.j2b'. A higher bitrate will reduce the generational quality loss from the MP2-to-MP3 transcode, at the cost of a larger output file.
Yes. On Linux or macOS you can use a shell loop: 'for f in *.mpg; do ffmpeg -i "$f" -c:a libmp3lame -b:a 128k "${f%.mpg}.j2b"; done'. On Windows Command Prompt, use: 'for %f in (*.mpg) do ffmpeg -i "%f" -c:a libmp3lame -b:a 128k "%~nf.j2b"'. This processes each MPG file in the current directory and outputs a corresponding J2B file.
Technical Notes
The J2B format is one of the most obscure audio containers FFmpeg can output, derived from the ASYLUM Music Format with a short identifying header added for Jazz Jackrabbit 2 compatibility. Because J2B's only supported codec in FFmpeg is libmp3lame (MP3), and MPG's native audio codec is MP2 (MPEG Audio Layer II), a full audio transcode is always required — there is no possibility of stream copying here. MP2 and MP3 are related but not bitstream-compatible, despite sharing MPEG heritage. The MPG video streams (MPEG-1 or MPEG-2 video) are silently dropped with no flags needed, since J2B cannot contain video. Metadata from the MPG source — such as title or creation date embedded in the MPEG program stream — will not be carried over to the J2B output, as the format has no metadata container structure. File sizes for J2B output will be significantly smaller than the MPG source, primarily because the video data is discarded entirely and only audio at 128k MP3 is retained.