Jump to content

Offline DV conversion leaves DOVI side data in H.264


Go to solution Solved by DeimosF,

Recommended Posts

Posted

Hi,

I have a long-standing issue with offline conversions (Download / Convert Media) of Dolby Vision content.

Setup:

  • Emby Server 4.10.0.40
  • NVIDIA Tesla P4 (NVDEC + NVENC)
  • Hardware tone mapping enabled (tested Hable, Mobius, Reinhard)

Source:
4K Dolby Vision Profile 8.1 (HDR10 compatible) HEVC Main 10

What works:

  • Live on-the-fly transcoding (HLS) works fine.
  • Converting regular 4K H.264 → 1080p H.264 works fine.

What fails: When converting DV Profile 8.1 → 1080p H.264 for offline use, the resulting file does not play on mobile devices (black screen).

Analysis from logs:

Tone mapping is applied correctly:

tonemap_cuda=...:format=yuv420p
setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709

Output video stream is correctly tagged as:

cuda(tv, bt709, progressive)

However, the DOVI configuration record is still present in the side data of the output file:

Side data:
  DOVI configuration record: version: 1.0, profile: 8, level: 6, rpu flag: 1, el flag: 0, bl flag: 1, compatibility id: 1

This residual Dolby Vision side data on an H.264 stream causes many mobile players to fail.

I also tested Parameter Adjustment with -bsf:v filter_units=remove_types=6 — the parameter is applied, but the DOVI configuration record remains.

Conclusion:
Emby correctly tone-maps the pixels to SDR BT.709 during offline conversion, but does not strip the DOVI configuration record from the output container. This breaks playback on mobile clients.

Is this a known limitation of the offline conversion pipeline?
Any chance this can be fixed so that DOVI side data is removed when tone mapping to SDR H.264?

I can provide full ffmpeg logs if needed.

Thanks.

Posted

Additional test: pure HDR10 (no Dolby Vision) converts correctly and plays fine on mobile.

The issue only occurs when the source contains a DOVI configuration record.

  • 4 weeks later...
DeimosF
Posted

Hi Luke,

Here is the requested information for the offline conversion issue.

Server version: 4.10.1.0
Hardware: NVIDIA Tesla P4

Attached:
- MediaInfo of the source file (4K Dolby Vision Profile 8.1)
- MediaInfo of the converted file (1080p H.264) — still shows Dolby Vision HDR format
- Full embyserver log
- ffmpeg-transcode log of the conversion

MediaInfo Source MediaInfo Transcoded embyserver.txt ffmpeg-transcode-1535d853-2d35-45a8-acec-d2c7c4e514f3_1.txt

  • 4 weeks later...
  • Solution
DeimosF
Posted

Wow, it actually works! 🎉

Just tested with 4.11.0.18 beta — offline conversion of Dolby Vision Profile 8.1 now works perfectly.
No more leftover DOVI side data in the H.264 file, and playback on mobile is finally fine.

Really glad this got fixed. Thanks!

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...