This pull request introduces improved support for HDR (High Dynamic Range) workflows by making the application's transcoding and conversion logic aware of the current processing mode's HDR compatibility. The main changes ensure that lossless transcodes use a 10-bit H.264 codec when HDR-compatible processing is enabled, and that color space conversions and user prompts are more accurate for HDR content. Several utility and dialog functions have been updated to reflect this logic, and some code has been refactored for clarity.
HDR-aware transcoding and conversion:
Added
ShotcutSettings::isHdrCompatibleProcessingMode()to determine if the current processing mode supports HDR, and updated relevant dialogs and conversion logic to use this check. (src/settings.h,src/settings.cpp,src/dialogs/transcodedialog.cpp,src/transcoder.cpp,src/util.cpp,src/widgets/avformatproducerwidget.cpp) [[1]](diffhunk://#diff-c044ba02ccf7862f1e2f56436d5b92baa7bb35601791846655fb07ac253a8697R630-R635) [[2]](diffhunk://#diff-e43eb64bdd9061c058d0e50763df67fe62bf719f55bcff809d1eadda8eb67513R135) [[3]](diffhunk://#diff-07030df8aa32460a382b281c186787dad56e981576adc3064720ca348728681bL152-R158) [[4]](diffhunk://#diff-7b909efef9eee1ead1de95a6acf4b3f0ef45a27a25d59ac494e04f86dcd2f4b4R153) [[5]](diffhunk://#diff-71add9df638df1a7aa8cc927c71965c319c6cf6c9290ecb5b90436820d4e1884L856-R857)Lossless transcode mode now uses 10-bit H.264 when HDR-compatible processing is enabled, instead of Ut Video, and sets appropriate ffmpeg arguments for 10-bit output. (
src/dialogs/transcodedialog.cpp,src/transcoder.cpp) [[1]](diffhunk://#diff-07030df8aa32460a382b281c186787dad56e981576adc3064720ca348728681bL152-R158) [[2]](diffhunk://#diff-7b909efef9eee1ead1de95a6acf4b3f0ef45a27a25d59ac494e04f86dcd2f4b4L331-R361) [[3]](diffhunk://#diff-7b909efef9eee1ead1de95a6acf4b3f0ef45a27a25d59ac494e04f86dcd2f4b4R311-R316) [[4]](diffhunk://#diff-7b909efef9eee1ead1de95a6acf4b3f0ef45a27a25d59ac494e04f86dcd2f4b4L317-R334)
Color space and conversion improvements:
Updated logic for when to offer BT.709 color conversion and when to prompt users about probable HDR content, making it conditional on both the processing mode and color transfer characteristics. (
src/util.cpp,src/widgets/avformatproducerwidget.cpp) [[1]](diffhunk://#diff-449acf764318b0ca96972daf8d28a28af79ad2c3381044851f2953792fcd8eefL827-R827) [[2]](diffhunk://#diff-449acf764318b0ca96972daf8d28a28af79ad2c3381044851f2953792fcd8eefL868-R869) [[3]](diffhunk://#diff-71add9df638df1a7aa8cc927c71965c319c6cf6c9290ecb5b90436820d4e1884L856-R857)Renamed
Util::trcIsCompatibletoUtil::trcIsSdrCompatiblefor clarity and updated all references. (src/util.h,src/util.cpp) [[1]](diffhunk://#diff-40ab92941994ec9418dbb76ae46d5aef0e4cb8b034f2be2b31562bb9aca8070fL87-R87) [[2]](diffhunk://#diff-449acf764318b0ca96972daf8d28a28af79ad2c3381044851f2953792fcd8eefL815-R815)
Other improvements:
Added
-hide_bannerto ffmpeg job arguments to reduce log clutter. (src/jobs/ffmpegjob.cpp)Updated copyright years in relevant files. (
src/dialogs/transcodedialog.cpp,src/transcoder.cpp) [[1]](diffhunk://#diff-07030df8aa32460a382b281c186787dad56e981576adc3064720ca348728681bL2-R2) [[2]](diffhunk://#diff-7b909efef9eee1ead1de95a6acf4b3f0ef45a27a25d59ac494e04f86dcd2f4b4L2-R2)