Adding support for Motion JPEG 2000 encoding to FFmpeg

857 views
Skip to first unread message

Evelyn McLellan

unread,
Feb 17, 2010, 1:07:05 PM2/17/10
to archivematica, aus...@artefactual.com
Hi Austin,

I sent a message to the FFmpeg users list asking whether it is
possible to encode video to Motion JPEG 2000 and got the following
reply: "Not as now. In the other hand, it should be a pretty easy job
to add
support for it using OpenJPEG2000 library." I searched for the
OpenJPEG2000 library and found the download at
http://code.google.com/p/openjpeg/downloads/list.

Would it be possible for you to add this library to FFmpeg in
Archivematica?

Evelyn

Evelyn McLellan

unread,
Feb 17, 2010, 3:29:04 PM2/17/10
to archivematica
Peter suggested using the OpenJPEG tool on its own. We could
potentially use OpenJPEG tool for creating MotionJPEG 2000
preservation masters, and FFmpeg for video access files and audio
master and access files. I've installed the tool but it will take me a
while before I figure out how it works.

Evelyn

On Feb 17, 10:07 am, Evelyn McLellan <epmclel...@gmail.com> wrote:
> Hi Austin,
>
> I sent a message to the FFmpeg users list asking whether it is
> possible to encode video to Motion JPEG 2000 and got the following
> reply: "Not as now. In the other hand, it should be a pretty easy job
> to add
> support for it using OpenJPEG2000 library." I searched for the

> OpenJPEG2000 library and found the download athttp://code.google.com/p/openjpeg/downloads/list.

Evelyn McLellan

unread,
Feb 17, 2010, 6:43:42 PM2/17/10
to archivematica
OK, I wasn't able to get this tool to convert a video file to Motion
JPEG 2000. Although I was able to use the tool to convert a TIFF to a
JPEG2000, it wouldn't recognize the command to convert a .yuv file to
an .mj2 file. This is the command I used: frames_to_mj2 -i
Speedway.yuv -o Speedway.mj2 -r 10. Speedway.yuv is the sample file
provided on the Openjpeg-tools web page (http://www.openjpeg.org/
index.php?menu=samples) and the command I used was copied directly
from that page. When I tried it, I got the message "bash:
frames_to_mj2: command not found."

Also, according to the documentation at http://www.openjpeg.org/index.php?menu=doc#MJ2,
the tool only converts .yuv files to Motion JPEG 2000. Maybe if we
added it to FFmpeg it could convert other formats, though?

Austin, I'd like to hand this over to you. I've created an issue for
it at http://code.google.com/p/archivematica/issues/detail?id=101.
Thanks.

Evelyn

Reply all
Reply to author
Forward
0 new messages