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

Corrupt video stream when converting a specific P7 MEL clip to P8 #300

Closed adam1x closed 2 months ago

adam1x commented 2 months ago

Here's a 10-second Profile 7 MEL clip that consistently generates a corrupt video stream upon conversion to Profile 8: https://drive.proton.me/urls/97JT3QWXWG#okXHm6tZieZB

The Profile 7 clip plays fine everywhere, while the resulting Profile 8 clip freezes a few seconds in. I tested on MPC-BE & VLC on PC and on a Zidoo Z9X.

The clip is from StudioCanal's The Servant UHD BD, 1.75:1 aspect ratio version. Ripped from my own disc and sampled 00:18:05 to 00:18:15. The full corruption lasts from 00:18:09 to 00:36:05 when I convert the entire film. The disc itself plays without a hiccup in DV.

Converted to P8 with:

I'm not sure whether it's a bug in dovi_tool or ffmpeg. Filing here for an initial look. Thanks!

quietvoid commented 2 months ago

It's caused by FFmpeg.

When I just demux the original profile 7 MEL bitstream, the issue is present.

ffmpeg -i The.Servant.1963.2160p.StudioCanal.1.75AR_chunk_P7.MEL.mkv -c copy video.hevc

There are a lot of decode errors on playback.

It works fine with mkvextract.