[FFmpeg-devel] [PATCH] libopenjpegenc: add 9-15 bit RGB output

Michaël Cinquin mc at michaelcinquin.com
Thu Jan 31 12:22:28 CET 2013

>> On 1/23/13, Michael Bradshaw <mjbshaw at gmail.com> wrote:
>>> As per Michael Cinquin's request and Reimar's suggestion, I added right
>>> shifting 16-bit RGB by a user specified about to achieve 9-15 bit RGB
>>> output.
>>> As far as I can tell, it's working fine, but I'd really appreciate a
>> sanity
>>> check on this. Also, I'm not a big fan of the "shr" (reminiscent of IA32
>>> shift right) option name but I couldn't think of a particularly good name
>>> suggestion. Feel free to suggest a better name.
>>> Thanks,
>>> Michael

I was able to make DCI-compliant j2c out of FFmpeg (tested on a Doremi Server DCP-2000). Thank you all, especially Michael Bradshaw !

I had to tweak libopenjpeg, basically to setup the encoder the same way openjpeg's image_to_j2k does when a "cinema_mode" is requested ; code should be improved (especially the tcp_rates part) but is already working as is.

This patch includes the "0001-libopenjpegenc-add-9-15-bit-RGB-output.patch" by Michael.

I use FFmpeg tike so :
/usr/local/bin/ffmpeg  -v debug -i mire_charbon_HD_25p_5s.mov  -an -r 24  -profile:v 3 -cinema_mode 1  -format 0 -numresolution 6  -compression_level 20 -prog_order 4 -vdt 12 -disto_alloc 1 -compression_level 20 -pix_fmt rgb48 -shr 4 -vf rgb2xyz /stuff/creation_dcp/1/%06d.j2c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libopenjpegenc-make_dci_compliant_j2c.patch
Type: application/octet-stream
Size: 4687 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130131/d1b6572e/attachment.obj>
-------------- next part --------------

More information about the ffmpeg-devel mailing list