News:

--

Main Menu

setHDRConfig Parameters

Started by TheTooleMan, August 26, 2022, 02:29:08 PM

Previous topic - Next topic

TheTooleMan

When saving a script from Avidemux 2.8 64-bits, I notice in the subject method's parameter list contains a couple more digits than was seen in previous versions. Where can I learn how those are defined and used? Thanks.

eumagga0x2a

I hope that the locations here and here in the source code help to clarify the meaning of the parameters.

Please be warned that it is impossible to force tone mapping for a video with wrong colorspace (e.g. with BT.709, it should be at least BT.2020) or with bit depth less than 10.

TheTooleMan


davidrnewman

Thanks for the explanation. However, the change has broken my saved scripts that use fewer parameters in setHDRConfig. When I load a video, then run a saved project file, it pops up a TinyPy:Exception referring to that line.

Any chance of automatically adding the extra parameters when importing saved scripts, so that I don't have to edit all my 370 saved scripts?


eumagga0x2a

Do you actually convert 10- or 12-bit HDR source videos into 8-bit SDR ones with tone mapping? If yes, you probably should adjust your tone mapping parameters due to changes in the backend anyway. Else you should just delete the setHDRConfig command from your scripts.

A chance to preserve backward compatibility has been missed, unfortunately.