Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am looking for a binary that can convert mpg files to mj2 (Motion JPEG 2000) files via terminal in Linux server.

Are there any?

share|improve this question

migrated from Nov 17 '12 at 10:10

This question came from our site for professional and enthusiast programmers.

I do not believe you can output to mj2 container with ffmpeg, but you can encode to JPEG 2000 with ffmpeg and use mov or mkv container. You can encode via the native and experimental j2k, or the external library libopenjpeg which requires your ffmpeg to be compiled with --enable-libopenjpeg. Note that the j2k encoder may not support your desired pixel format and also may not provide bit exact outputs compared to the reference encoder:

[FFmpeg-user] Can you encode lossless Motion JPEG 2000 videos with ffmpeg using the right command line arguments?

share|improve this answer

Yes you csn do this quite efficiently with the ffmpeg binary.

It is a commandline bin for Linux and Mac (also Win I believe), that is free:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.