[FFmpeg-devel] [PATCH] libopenjpegenc: add 9-15 bit RGB output
Michael Bradshaw
mjbshaw at gmail.com
Thu Jan 31 15:05:52 CET 2013
@FFmpeg devs: now that swscale supports gbrp*, what do you think of
my 0001-libopenjpegenc-add-support-for-pix-fmt-gbrp-8-16-bit.patch patch
(re-attached in this email)
On Thu, Jan 31, 2013 at 4:22 AM, Michaël Cinquin <mc at michaelcinquin.com>wrote:
> 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.
>
I can't comment on the tweaks right now, as I don't have time to go through
things in much detail. Someone else might be able to.
This patch includes the "0001-libopenjpegenc-add-9-15-bit-RGB-output.patch"
> by Michael.
>
I think your diff is backwards ;)
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!)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libopenjpegenc-add-support-for-pix-fmt-gbrp-8-16-bit.patch
Type: application/octet-stream
Size: 3191 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130131/74744512/attachment.obj>
More information about the ffmpeg-devel
mailing list