If you want perfect accurate image:
You will first need to modify those "reshaping data" in RPU for SDR->HDR. (basically impossible)
If just using P8.1 RPU, the result is very likely to be wrong.sw5163 wrote: ↑Tue Sep 06, 2022 12:28 amFrom my understanding, P5 RPU has "reshaping data" for ICtCp->YCbCr.
P8.1 RPU doesn't need "reshaping data" for HDR10->HDR10.
P8.4 RPU has "reshaping data" for HLG->PQ.
P7 RPU has "reshaping data" for processing the weird colour in EL (I'm not sure what it really does)
And then you will need to find a way to inject-rpu into h.264, I don't think current build of dovi_tool supports that. But im sure Dolby in their lab can do it.
Once you get an SDR+RPU track, it's easy to remux it in mp4muxer.
If you are willing to accept some minor quality loss with re-encoding:
You could just put the h.264 track into PremierePro/LumaFusion/FinalCut/iMovie (Apple actually provides pretty good remapping algorithm for SDR->DV since they collaborate with Dolby) and re-encoding it to P8.1.