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

Dolby Vision profile can't be read by QuickTime #101

Closed iBobbyTS closed 2 years ago

iBobbyTS commented 2 years ago

I have a .mov file taken by iPhone 13 Pro with dolby vision and can be played correctly with QuickTime Player. It's at cwd named input.mov.

Screen Shot 2022-01-04 at 10 37 21

The commands I ran are the following:

ffmpeg -i input.mov -f hevc -c copy input.hevc
dovi_tool extract-rpu input.hevc
ffmpeg -i input.mov -c:v libx265 -f hevc output.hevc
dovi_tool inject-rpu --input output.hevc --rpu-in RPU.bin
ffmpeg -f hevc -i injected_output.hevc -c copy -vtag hvc1 output.mov

output.mov can't be rendered as Dolby Vision, only the transfer function is indicating that it's HLG

Screen Shot 2022-01-04 at 11 18 42

Is there a way I can compress the video stream and keep the RPU stream unmodified and readable?

quietvoid commented 2 years ago

I think you need to use -strict unofficial to remux to mov with ffmpeg.

Not the right place for this.