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

Michaël Cinquin mc at michaelcinquin.com
Fri Feb 1 06:05:21 CET 2013


> 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;"



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


More information about the ffmpeg-devel mailing list