/hdrcopier

Copies colorspace and HDR metadata from one file to another

Primary LanguageRustMIT LicenseMIT

hdrcopier

Dependencies

  • mkvtoolnix CLI
  • mediainfo CLI
  • ffprobe

Usage

Copy metadata

hdrcopier copy [input] [target]

  • input = file to copy metadata from
  • target = file to copy metadata into

The tool will parse the metadata from the input file, then update the target file with that metadata.

Display metadata

hdrcopier show [input]

Will display metadata on the screen, by default in a human-readable format.

Optionally, a --format flag can be passed to format the metadata to be passed directly to an encoder.

Save metadata

hdrcopier save [input] [target]

  • input = file to copy metadata from
  • target = json file to save metadata to

Will parse the metadata from the input file, then save the metadata as JSON and write to the target file.

Restore metadata

hdrcopier restore [input] [target]

  • input = json file with saved metadata
  • target = file to copy metadata into

Will read metadata from the json file, then update the target file with that metadata.

Bugs

If you have a video that you know is HDR, but this tool fails to parse the metadata, please create an issue. If you can include a link to the video, that's extremely helpful. If not, please post the full CLI output from both mkvinfo and mediainfo for the file.