Lossy output with FFMPEG JPEG 2000 I'm trying to achieve a lossy JPEG 2000 output with FFMPEG, but no success so far.

Using this command line:

ffmpeg -i input.dpx -pix_fmt yuv420p -vcodec libopenjpeg output.jp2


As a result I get lossless output, which is a default setting for JPEG 2000. I tried -b:v and -q:v, but they both have no impact to the output.

Does anyone know a command that changes the quality/compress the output?

Any kind of help is really appreciated. Thank you!
Did you try using the -compression_level flag? It takes an int from 0-100 afaik (maybe the range is even higher, the docs just say "int").

That should set a lossy compression strength.

There is also an interesting blog post about creating DCI compilant JPEG2000 encodes with FFMPEG for DCP's. Which require lossy encoded JPEG2000.