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

Jean First jeanfirst at gmail.com
Fri Feb 1 11:30:17 CET 2013


On Fri Feb 01 2013 06:05:21 GMT+0100 (CET), Michaël Cinquin wrote:
>> I think your diff is backwards ;)
> very true, sorry. Here is a corrected diff.
>> Now that Michael Neidermayer has added gbrp* support in swscale, I think
>> you could just use
>> my 0001-libopenjpegenc-add-support-for-pix-fmt-gbrp-8-16-bit.patch patch
>> and do the following (for 12-bit output):
>>
>> ffmpeg -i input_image -vcodec libopenjpeg -pix_fmt gbrp12 output_image.jp2
>>
>> To get 10 bit, use gbrp10, etc.
>>
>> It wouldn't have your cinema_mode changes, but see if this works for you
>> (it would be useful to know if it didn't!)
> I would most probably make valid 12 bpcc j2c files, but I don't think they would be DCI compliant. The options specified in the patch are necessary to get valid DCI compliant output. The most important change in the patch, the one that made me do 6 round-trips with the Cinema (hey thank you l'Aventure, Bruxelles), was  "ctx->enc_params.tcp_mct = 1;"

I forgot to ask: Did you use ffmepg to create the mxf aswell ?
And it would be nice if you could add a "How to create DCP" to 
http://ffmpeg.org/trac/ffmpeg/wiki .

Jean


More information about the ffmpeg-devel mailing list