View Full Version : How to set OpenJPEG flags in FFmpeg
Aegwyn11
5th December 2012, 20:35
Does anyone know how/if you can set OpenJPEG flags in FFmpeg? I need to encode some motion Jpeg2k clips and FFmpeg just uses the default OpenJPEG settings, which are lossless, which isn't what I want.
I tried using the frames_to_mj2 OpenJPEG app directly and it works for small files, but doesn't seem to be able to open my 5 minute (~33 GB) YUV file.
Reimar
8th December 2012, 14:49
It's the same options as for all other codecs: -q and -compression_level.
Though what seems to be slightly special is that it looks like -q only selects lossless (if 0)/lossy (otherwise).
It does have a few more options though, but hopefully you won't need them since the only way to know about them seems to be by reading the source code...
Aegwyn11
8th May 2013, 18:22
Resurrecting an old thread...
Thanks for the response. I was able to get it working by using -compression_level. If I set -q 1, the quality looked like crap. Using -q 0 and setting -compression_level (or omitting -q) had expected results.
Thanks again.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.