FFmpeg can encode DCI-compliant jpeg 2000
- the open-source workflow
- Up to now, free DCP mastering workflow used "image_to_j2k" or "opendcp_j2k"
Both of them require TIF files as INPUT, so one has to do a TIF intermediate, very heavy (up to 1TB and more for a feature film)
While working on an online tool for Charbon Studio's DCP mastering portal, I contributed to FFmpeg to allow DCI-comiliant jpeg-2000 encoding.
- FFmpeg for DCI encoding
- EDIT : rgb2xyz filter is now obsolete, as FFmpeg has xyz built-in.
- about rgb2xyz
- rgb2xyz is not (yet) part of FFmpeg source (I submitted the code twice to FFmpeg developpers: in january 2013, and a second time in april 2013, but for the moment it's not been integrated)
.
- FFmpeg source code should be manually patched before compiling. Download the patch, save it in the same folder as FFmpeg
- Then before compiling:
cd ffmpeg ; git apply 0001-add-rgb2xyz-and-xyz2rgb-av_filters.patch
- FYI, my compile command line is
./configure --enable-libopenjpeg --enable-avfilter --enable-libmp3lame --enable-libfaac --enable-gpl --enable-nonfree \
--enable-pthreads --enable-libx264 --extra-cflags="-I/usr/local/include" \
--extra-ldflags="-L/usr/local/lib" --enable-postproc --target-os=darwin --arch=x86_64 \
--enable-runtime-cpudetect && make && sudo make install
- Resources
- Belle-Nuit made the original xyz2rgb that I used to develop the patch (it's included in the patch)