[FFmpeg-devel] [PATCH v2] avcodec/jpeg2000: Add support for High-Throughput JPEG 2000 (HTJ2K) decoding.
Tomas Härdin
tjoppen at acc.umu.se
Wed Sep 21 17:08:34 EEST 2022
ons 2022-09-21 klockan 12:30 +0200 skrev Tomas Härdin:
> Tested this locally on some 4k sample files and it achieved 19 fps
> with
> -lowres 2 on an Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz (4 cores).
> I'm
> getting access to a better machine to test this on as well.
Ran some tests on a c5n.4xlarge instance, Intel(R) Xeon(R) Platinum
8124M CPU @ 3.00GHz, 16 vCPUs. Test sequence is 273 4k htj2k frames
from Disney encoded with OpenJPH version 0.7.3, 20-21 megs each. Tested
like so:
./ffmpeg -i ~/samples/htj2k-unwrapped/000000%03d.j2c -f null -
Achieved fps with a filled disk cache:
-lowres this patch libopenjpegdec
0 9.1 7.0
1 40 27
2 105 92
3 128 157
4 129 164
This is with the default frame-based threading. Not too bad. I suspect
the slower performance compared to opj with -lowres >= 3 is due to the
way parsing works. This is what's holding up my codeblock-threading
patchset's performance as well.
I have in mind to compare this with a regular j2k sample on the same
machine, but it's taking its sweet time transferring..
/Tomas
More information about the ffmpeg-devel
mailing list