quietvoid / dovi_tool

dovi_tool is a CLI tool combining multiple utilities for working with Dolby Vision.
MIT License
578 stars 57 forks source link

Error: Invalid profile for mode 2 conversion! #112

Closed jessielw closed 2 years ago

jessielw commented 2 years ago

Input media info format: Dolby Vision, Version 1.0, dvhe.08.06, BL+RPU, HDR10 compatible / SMPTE ST 2086, HDR10 compatible

If I just choose -m 2 every time, which for combability purposes, I'd want every time, I will get this error if the input is already profile 8: Error: Invalid profile for mode 2 conversion!

Is there anyway to bypass this without having to check the profile before hand?

quietvoid commented 2 years ago

Sure, sounds reasonable.

jessielw commented 2 years ago

I appreciate it! I made a wrapper for your cli program, which basically sends mode 2 to every input, as the RPU I want out of it, to encode to x265 with and for maximum combability, errors out if the input is already mode 2.

Side note, not really related. How are you able to detect which hdr format a hevc file upon input? Mediainfo/ffprobe will not show the proper hdr format of a dolby vision input in hevc format. Only once it's wrapped into a container.

quietvoid commented 2 years ago

Mode 2 now overrides back to mode 0 behaviour when used on a profile 8 RPU.

Side note, not really related. How are you able to detect which hdr format a hevc file upon input? Mediainfo/ffprobe will not show the proper hdr format of a dolby vision input in hevc format. Only once it's wrapped into a container.

In ffmpeg 5.0, ffprobe can detect the RPUs for every frame.

jessielw commented 2 years ago

I appreciate the quick work! Thank you for the information on ffprobe.