hdr10plus_tool
hdr10plus_tool is a command line tool written in Rust for working with HDR10+ in HEVC files. It was previously named hdr10plus_parser.
Installation
You can download official pre-built binaries for Linux & macOS from the GitHub Releases, or you may compile the tool yourself via the instructions below.
Ensure you have Rust installed.
git clone https://github.com/quietvoid/hdr10plus_tool.gitcd hdr10plus_toolRUSTFLAGS="-C target-cpu=native" cargo build --releaseYou can download official pre-built binaries for Windows from the GitHub Releases, or you may compile the tool yourself via the instructions below.
Ensure you have Rust installed.
git clone https://github.com/quietvoid/hdr10plus_tool.gitcd hdr10plus_toolset RUSTFLAGS=-C target-cpu=nativecargo build --releaseUsage
hdr10plus_tool [OPTIONS] <SUBCOMMAND>hdr10plus_tool <SUBCOMMAND> --helpExtracting
ffmpeg -hide_banner -strict -2 -i input.mkv -map 0:v:0 -c copy -vbsf hevc_mp4toannexb -f hevc - | hdr10plus_tool extract -o metadata.json -hdr10plus_tool extract video.hevc -o metadata.jsonInjecting
hdr10plus_tool inject -i video.hevc -j metadata.json -o injected_output.hevcRemoving HDR10+ Metadata
ffmpeg -hide_banner -strict -2 -i input.mkv -map 0:v:0 -c copy -vbsf hevc_mp4toannexb -f hevc - | hdr10plus_tool remove -hdr10plus_tool remove video.hevc -o hdr10plus_removed_output.hevc