17.3 - rendering JPEG–HT .JPH image sequences

Get answers to your questions about color grading, editing and finishing with DaVinci Resolve.
  • Author
  • Message
Offline

Michael Garrett

  • Posts: 67
  • Joined: Fri Jan 04, 2013 7:39 pm

17.3 - rendering JPEG–HT .JPH image sequences

PostSat Aug 21, 2021 7:03 am

Support for decoding and encoding JPEG–HT .JPH image sequences.



Just installed 17.3 on an Intel Mac and I'm not seeing how to render .JPH image sequences. Looking forward to giving this a try.
Offline
User avatar

TheBloke

  • Posts: 1905
  • Joined: Sat Nov 02, 2019 11:49 pm
  • Location: UK
  • Real Name: Tom Jobbins

Re: 17.3 - rendering JPEG–HT .JPH image sequences

PostSat Aug 21, 2021 7:09 am

I think it's these settings?
Image
Resolve Studio 17.4.3 and Fusion Studio 17.4.3 on macOS 11.6.1

Hackintosh:: X299, Intel i9-10980XE, 128GB DDR4, AMD 6900XT 16GB
Monitors: 1 x 3840x2160 & 3 x 1920x1200
Disk: 2TB NVMe + 4TB RAID0 NVMe; NAS: 36TB RAID6
BMD Speed Editor
Offline
User avatar

TheBloke

  • Posts: 1905
  • Joined: Sat Nov 02, 2019 11:49 pm
  • Location: UK
  • Real Name: Tom Jobbins

Re: 17.3 - rendering JPEG–HT .JPH image sequences

PostSat Aug 21, 2021 8:02 am

Wow this JPEG-HT is pretty incredible. I just did a couple of tests.

Rendering a 1920x1080 EXR sequence I have on a timeline, 14252 frames, no Color or other effects, reading/writing from/to local NVMe drive:
  • To .JPH JPEG-2000 HT, 10-bit, Lossless Compression:
    • Average speed: 245 FPS, average file size: 1.80MB
  • To .DPX RGB 10-bit:
    • Average speed 115 FPS, average file size: 7.91MB
JPH rendered at twice the speed, and produced less than one quarter the file size! That's pretty amazing.

Only problem I have is.. I don't have any other software that can read these files :) Fusion Studio can't, even via FFMpeg, and that's the software I'd want to use a file sequence to interchange with. Premiere Pro can't either, not that I really care about that.

Oh well, looks to be a pretty amazing codec for those who can use it!
Resolve Studio 17.4.3 and Fusion Studio 17.4.3 on macOS 11.6.1

Hackintosh:: X299, Intel i9-10980XE, 128GB DDR4, AMD 6900XT 16GB
Monitors: 1 x 3840x2160 & 3 x 1920x1200
Disk: 2TB NVMe + 4TB RAID0 NVMe; NAS: 36TB RAID6
BMD Speed Editor
Offline

Roger Singh

  • Posts: 82
  • Joined: Thu Aug 06, 2015 4:56 am

Re: 17.3 - rendering JPEG–HT .JPH image sequences

PostSat Aug 21, 2021 4:54 pm

Can jpeg-HT be used as an intermediate codec instead of exr, tiff or dpx?
Offline

Michael Garrett

  • Posts: 67
  • Joined: Fri Jan 04, 2013 7:39 pm

Re: 17.3 - rendering JPEG–HT .JPH image sequences

PostSun Aug 22, 2021 12:13 am

TheBloke wrote:I think it's these settings?
Image


Nice, thanks for pointing that out to me. I figured it might be under the J2k settings but I didn't scroll far enough down.
Offline

Michael Garrett

  • Posts: 67
  • Joined: Fri Jan 04, 2013 7:39 pm

Re: 17.3 - rendering JPEG–HT .JPH image sequences

PostSun Aug 22, 2021 12:30 am

Roger Singh wrote:Can jpeg-HT be used as an intermediate codec instead of exr, tiff or dpx?


I haven't tested out the Resolve implementation yet, but from skimming the white paper my understanding is that it can store 16 bit integer and half float images. So yes, it could replace EXR (floating point) and DPX (integer) in certain situations. What I'm not clear on yet is if you render an ACES timeline from Resolve that you want to mimic an ACES EXR, if the encoder knows that the image needs to be encoded as half-float vs integer since there doesn't seem to be a way to define that.
Offline
User avatar

Uli Plank

  • Posts: 21764
  • Joined: Fri Feb 08, 2013 2:48 am
  • Location: Germany and Indonesia

Re: 17.3 - rendering JPEG–HT .JPH image sequences

PostSun Aug 22, 2021 7:36 am

DCP-O-Matic should read it: https://dcpomatic.com.
Now that the cat #19 is out of the bag, test it as much as you can and use the subforum.

Studio 18.6.6, MacOS 13.6.6, 2017 iMac, 32 GB, Radeon Pro 580
MacBook M1 Pro, 16 GPU cores, 32 GB RAM and iPhone 15 Pro
Speed Editor, UltraStudio Monitor 3G
Offline

Andrew Kolakowski

  • Posts: 9212
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: 17.3 - rendering JPEG–HT .JPH image sequences

PostSun Aug 22, 2021 10:02 am

HT is a new block coding algorithm for JPEG2000 and stands for High Throughput. Kakadu (which libraries are used in Resolve) was one of the early developers if I understand it correctly.
In short- for the price of few (around 5) % bigger files you get same quality, but at 5-10x better speed (sort of new version of Cineform).
Support for this format is limited atm. but I'm sure it will spread.

White-papers:
https://www.htj2k.com/wp-content/upload ... -paper.pdf
http://ds.jpeg.org/whitepapers/jpeg-htj ... epaper.pdf

2nd white paper mentions that with common GPUs 8K 120fps encoding is possible in realtime (very difficult for JPEG2000).
Offline

Michael Garrett

  • Posts: 67
  • Joined: Fri Jan 04, 2013 7:39 pm

Re: 17.3 - rendering JPEG–HT .JPH image sequences

PostFri Sep 03, 2021 5:15 pm

Andrew Kolakowski wrote:HT is a new block coding algorithm for JPEG2000 and stands for High Throughput. Kakadu (which libraries are used in Resolve) was one of the early developers if I understand it correctly.
In short- for the price of few (around 5) % bigger files you get same quality, but at 5-10x better speed (sort of new version of Cineform).
Support for this format is limited atm. but I'm sure it will spread.

White-papers:
https://www.htj2k.com/wp-content/upload ... -paper.pdf
http://ds.jpeg.org/whitepapers/jpeg-htj ... epaper.pdf

2nd white paper mentions that with common GPUs 8K 120fps encoding is possible in realtime (very difficult for JPEG2000).


Right, you may have noticed the white paper mentioned 16 bit half-float precision is supported, and they do a speed test vs various flavors of EXR compression schemes vs uncompressed. so it could be an interesting kind of compressed deliverable of an ACES archival master...although technically it wouldn't conform any more to the ACES standard, but whatever!

It seems the implementation in Resolve currently may just be up to 16-bit integer though. Tbh 12-bit log integer may be of more interest. From what I understand, we don't get any real documentation for these new features added at a fast clip in the rolling updates.
Offline

Andrew Kolakowski

  • Posts: 9212
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: 17.3 - rendering JPEG–HT .JPH image sequences

PostFri Sep 03, 2021 8:21 pm

I would prefer this to be wide spread than outdated and simply "to computational" original JPEG2000.
Not sure why companies keep fighting with Jpeg2000 when something "better" can be easily developed today.

Well, more and more keep giving up with Jpeg2000. RED gave it up for the place of 'simpler' DCT based codec. This is what opened them to 8K at 120fps in their new camera. With Jpeg2000 this requires insane processing power. 5% (or even 20%) bigger file size is simply not worth the Jpeg2000 crazy processing requirements.
Offline

Hendrik Proosa

  • Posts: 3053
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: 17.3 - rendering JPEG–HT .JPH image sequences

PostSat Sep 04, 2021 5:39 pm

Haven’t looked at the tech side so wondering why jpeg2000 is so heavy to encode/decode when for example cineform which is also wavelet based is very light and symmetric for encode/decode. As I understand it, the algorithm for cineform is very simple and trivial to parallelize.
I do stuff
Offline

Andrew Kolakowski

  • Posts: 9212
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: 17.3 - rendering JPEG–HT .JPH image sequences

PostSat Sep 04, 2021 8:52 pm

I'm don't understand it but it's due to this:
"HT is a new block coding algorithm for JPEG2000 and stands for High Throughput."
Jpeg2000 uses complex block coding where Cineform and HT use simple ones for the price of few % efficiency loss. I think someone has finally realised that it's totally pointless to use such a complex math when way simpler one losses just few % in efficiency. It's about the same as using placebo preset in x264/5 encoders- basically pointless (except for some scientific measures).
Offline

Michael Garrett

  • Posts: 67
  • Joined: Fri Jan 04, 2013 7:39 pm

Re: 17.3 - rendering JPEG–HT .JPH image sequences

PostThu Sep 16, 2021 8:40 am

I'm confirming that the 16-bit version does clamp linear floating point images. The white paper does say that 16-bit half float is possible, and they do some encode/decode tests vs OpenEXR images, so I think it should be added. This could be a good alternative to OpenEXR DWAA compression, and hopefully Nuke supports it soon as well so that there's a bit of interoperability.

From my very brief tests, the 12-bit lossy compressed version is pretty nice coming in around 1MB/frame for 2K DCI. A good option for log images. I have not figured out the compression settings at all though.
Offline
User avatar

Olivier MATHIEU

  • Posts: 935
  • Joined: Thu Aug 04, 2016 1:55 pm
  • Location: Paris/Grenoble, FRANCE

Re: 17.3 - rendering JPEG–HT .JPH image sequences

PostSat May 14, 2022 4:49 pm

hello
I've recently discovered J2KHT in Resolve
I made some test ans it's clearly faster that J2K-1
J2KHT hasn't J2K-1 quality scalability
Questions :
1 - why isn't used for IMF Disney, IMF Netflix & IMF Sony ?
2 - Why isn't used for 2K DCP (which doesn't need the "scalability") ?

I feel a big technical reason ... but i don't know it :D
Resolve Studio 18.6.x & Fusion Studio 18.6.x | MacOS 13.6.x | GUI : 3840 x 2160 | Ntw : 10Gb/s
MacbookPro M2 Max
Offline

Andrew Kolakowski

  • Posts: 9212
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: 17.3 - rendering JPEG–HT .JPH image sequences

PostSun May 15, 2022 11:56 am

It's new, so this the main reason.
I don't actually know any other tool which supports it expect Resolve.
Old Jpeg2000 decoders won't work.
Offline
User avatar

Olivier MATHIEU

  • Posts: 935
  • Joined: Thu Aug 04, 2016 1:55 pm
  • Location: Paris/Grenoble, FRANCE

Re: 17.3 - rendering JPEG–HT .JPH image sequences

PostMon May 16, 2022 6:53 am

Andrew Kolakowski wrote:It's new, so this the main reason.

I agree It's not even in File ➧ e Media management

Andrew Kolakowski wrote:Old Jpeg2000 decoders won't work.

OK
Many Thanks
Resolve Studio 18.6.x & Fusion Studio 18.6.x | MacOS 13.6.x | GUI : 3840 x 2160 | Ntw : 10Gb/s
MacbookPro M2 Max
Offline
User avatar

Olivier MATHIEU

  • Posts: 935
  • Joined: Thu Aug 04, 2016 1:55 pm
  • Location: Paris/Grenoble, FRANCE

Re: 17.3 - rendering JPEG–HT .JPH image sequences

PostTue May 17, 2022 6:27 am

JP2K-HT could be a good render cache Codec, no ?
Resolve Studio 18.6.x & Fusion Studio 18.6.x | MacOS 13.6.x | GUI : 3840 x 2160 | Ntw : 10Gb/s
MacbookPro M2 Max
Offline

Andrew Kolakowski

  • Posts: 9212
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: 17.3 - rendering JPEG–HT .JPH image sequences

PostTue May 17, 2022 4:53 pm

Hmmm... yes, but in the same time nothing that better compared to current choices.
On new Macs you want ProRes as this flies on Apple hardware accelerators.
On Windows it could be a choice, but DNxHR/Cineform is good as well.
Offline
User avatar

Olivier MATHIEU

  • Posts: 935
  • Joined: Thu Aug 04, 2016 1:55 pm
  • Location: Paris/Grenoble, FRANCE

Re: 17.3 - rendering JPEG–HT .JPH image sequences

PostWed May 18, 2022 5:44 pm

Andrew Kolakowski wrote:Hmmm... yes, but in the same time nothing that better compared to current choices.
On new Macs you want ProRes as this flies on Apple hardware accelerators.
On Windows it could be a choice, but DNxHR/Cineform is good as well.

yes nothing is gonna beat the hardware acceleration

but I don't recall that Apple ProRes or DnxHR or Cineform are/could be 16 bits
I'm aware that BlackMagicDesign's doing a trick with the render cache files that makes them "like" half-float format.
Resolve Studio 18.6.x & Fusion Studio 18.6.x | MacOS 13.6.x | GUI : 3840 x 2160 | Ntw : 10Gb/s
MacbookPro M2 Max
Offline
User avatar

Jack Fairley

  • Posts: 1863
  • Joined: Mon Oct 03, 2016 7:58 pm
  • Location: Los Angeles

Re: 17.3 - rendering JPEG–HT .JPH image sequences

PostWed May 18, 2022 5:49 pm

They can do 16-bit only for Alpha channel inclusion.
Ryzen 5800X3D
32GB DDR4-3600
RTX 3090
DeckLink 4K Extreme 12G
Resolve Studio 17.4.1
Windows 11 Pro 21H2
Offline
User avatar

Olivier MATHIEU

  • Posts: 935
  • Joined: Thu Aug 04, 2016 1:55 pm
  • Location: Paris/Grenoble, FRANCE

Re: 17.3 - rendering JPEG–HT .JPH image sequences

PostWed May 18, 2022 5:57 pm

Jack Fairley wrote:They can do 16-bit only for Alpha channel inclusion.

Thanks
I knew it.. i was referring to RGB/YUV layers ;)
Resolve Studio 18.6.x & Fusion Studio 18.6.x | MacOS 13.6.x | GUI : 3840 x 2160 | Ntw : 10Gb/s
MacbookPro M2 Max
Offline

Andrew Kolakowski

  • Posts: 9212
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: 17.3 - rendering JPEG–HT .JPH image sequences

PostWed May 18, 2022 11:26 pm

If you need 16bit then this could be useful.
Do you really need 16bit cache?
Offline
User avatar

Olivier MATHIEU

  • Posts: 935
  • Joined: Thu Aug 04, 2016 1:55 pm
  • Location: Paris/Grenoble, FRANCE

Re: 17.3 - rendering JPEG–HT .JPH image sequences

PostThu May 19, 2022 4:51 am

Andrew Kolakowski wrote:If you need 16bit then this could be useful.
Do you really need 16bit cache?

From Fusion to Color
Resolve Studio 18.6.x & Fusion Studio 18.6.x | MacOS 13.6.x | GUI : 3840 x 2160 | Ntw : 10Gb/s
MacbookPro M2 Max
Offline

Hendrik Proosa

  • Posts: 3053
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: 17.3 - rendering JPEG–HT .JPH image sequences

PostThu May 19, 2022 8:34 am

What's the benefit it should give over half-float exr? To even reach parity it should have all the flexibility of exr metadata and channel management first, and it is a stretch for anything with JPEG in its name.
I do stuff
Offline
User avatar

Olivier MATHIEU

  • Posts: 935
  • Joined: Thu Aug 04, 2016 1:55 pm
  • Location: Paris/Grenoble, FRANCE

Re: 17.3 - rendering JPEG–HT .JPH image sequences

PostThu May 19, 2022 8:45 am

Hendrik Proosa wrote:What's the benefit it should give over half-float exr?

Space storage ;)
JP2K-HT has a very attractive Quality/Space storage ratio ... with a very low CPU usage (very Fast) and in 4:4:4 16bits
It cannot compete with hardware acceleration
About lossless compression .... they all end up with almost the same space storage.
Resolve Studio 18.6.x & Fusion Studio 18.6.x | MacOS 13.6.x | GUI : 3840 x 2160 | Ntw : 10Gb/s
MacbookPro M2 Max
Offline

Hendrik Proosa

  • Posts: 3053
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: 17.3 - rendering JPEG–HT .JPH image sequences

PostThu May 19, 2022 9:06 am

What's the difference between JPEG-HT and exr DWA/B compression space wise? Didn't find any direct comparisons for the two.
I do stuff
Offline
User avatar

Olivier MATHIEU

  • Posts: 935
  • Joined: Thu Aug 04, 2016 1:55 pm
  • Location: Paris/Grenoble, FRANCE

Re: 17.3 - rendering JPEG–HT .JPH image sequences

PostThu May 19, 2022 9:13 am

Hendrik Proosa wrote:What's the difference between JPEG-HT and exr DWA/B compression space wise?

I don't know much about exr DWA/B compression. I've just read about it. It seem also great
It could be also great render cache file format
Thanks for pointing me that
Resolve Studio 18.6.x & Fusion Studio 18.6.x | MacOS 13.6.x | GUI : 3840 x 2160 | Ntw : 10Gb/s
MacbookPro M2 Max
Offline

Hendrik Proosa

  • Posts: 3053
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: 17.3 - rendering JPEG–HT .JPH image sequences

PostThu May 19, 2022 9:18 am

It is and I'd suggest using exr-s instead of something that isn't supported anywhere and which most probably lacks most of the exr features 8-) There's a reason why exr is so widely used in vfx field, no need to reinvent the wheel.
I do stuff
Offline
User avatar

Olivier MATHIEU

  • Posts: 935
  • Joined: Thu Aug 04, 2016 1:55 pm
  • Location: Paris/Grenoble, FRANCE

Re: 17.3 - rendering JPEG–HT .JPH image sequences

PostThu May 19, 2022 9:23 am

Hendrik Proosa wrote:It is and I'd suggest using exr-s instead of something that isn't supported anywhere and which most probably lacks most of the exr features 8-) There's a reason why exr is so widely used in vfx field, no need to reinvent the wheel.

I agree with you
Resolve Studio 18.6.x & Fusion Studio 18.6.x | MacOS 13.6.x | GUI : 3840 x 2160 | Ntw : 10Gb/s
MacbookPro M2 Max
Offline

Andrew Kolakowski

  • Posts: 9212
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: 17.3 - rendering JPEG–HT .JPH image sequences

PostThu May 19, 2022 3:29 pm

Hendrik Proosa wrote:What's the difference between JPEG-HT and exr DWA/B compression space wise? Didn't find any direct comparisons for the two.


HT can be any compression you want. DWA/B are fixed at some ratios. Most interesting difference is in speed. I'm not sure but DWA/B is relatively slow no?
Offline

Hendrik Proosa

  • Posts: 3053
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: 17.3 - rendering JPEG–HT .JPH image sequences

PostThu May 19, 2022 3:37 pm

DWAA and DWAB have flexible compression levels too, not fixed. Relatively slow is, well, relative. Relatively to what? Since file sizes are a lot smaller than dpx or lets say zip1 exr, it is purely cpu bound and as far as I can see it is pretty light to encode/decode.
I do stuff
Offline

Andrew Kolakowski

  • Posts: 9212
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: 17.3 - rendering JPEG–HT .JPH image sequences

PostThu May 19, 2022 4:49 pm

Ok- they will be relatively fast as they are DCT based (I thought they are wavelet).
No idea how it would compare to new HT mode. Efficiency will be most likely on HT side.
HT is starting to spread. Colorfront also added support for it and it may actually replace old Jpeg2000 for IMF deliveries. It makes perfect sense at any place where no hardware decoder is involved.

Return to DaVinci Resolve

Who is online

Users browsing this forum: clorell2, ghost355, Google [Bot], Majestic-12 [Bot], MSNbot Media and 211 guests