Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.


Go Back   Doom9's Forum > Video Encoding > MPEG-4 Encoder GUIs

Thread Tools Search this Thread Display Modes
Old 23rd January 2018, 10:56   #1  |  Link
Registered User
Join Date: Feb 2007
Posts: 119
Wow, HDR to SDR is more trouble than its worth

I was attempting to convert a 10-bit HDR sample to an 8-bit SDR sample.. and after a bunch of bad luck with extremely washed out, gray videos, I decided to try and convert the HDR sample to an HDR sample, and then just use MadVR to display it properly.

This is what I eventually settled on:

StaxRip Settings:

Preset: Medium
Tune: Grain
Profile: Main 10
Level: Unrestricted
Mode: Two Pass
Depth: 10-bit
Bitrate: 16,000
Resolution: 1080p (downconverted from 4k)
VBV Bufsize: 50,000
VBV Maxrate: 40,000
Colorprim: BT 2020
Colormatrix: BT 2020 NC
Transfer: SMPTE 2084
Range: Limited

And then for MadVR, I chose:

Convert HDR content to SDR using pixel shader math
Display Peak Nits: 120
Check: Preserve Hue in HQ
Fix too bright & saturated pixels by 50% lum reduction and 50% saturation
Check: Compress Highlights
Check: Measure each frame's peak lum
Check: Restore details in compressed highlights
Check: Activate anti bloating filter: Strength 100%
Check: Activate Anti Ringing Filter

Pretty fantastic results, without the horrendous strain that 4K puts on my system.

Is there anything I could be doing differently?

Edit: Had to increase bitrate from 12,000 to 16,000 because 10bit was starving the video of necessary bits for certain scenes. The increased bitrate cleared up some of the artifacts.

Last edited by Neillithan; 23rd January 2018 at 11:21.
Neillithan is offline   Reply With Quote
Old 23rd January 2018, 13:41   #2  |  Link
Sparktank's Avatar
Join Date: Mar 2011
Posts: 815

You could use FFMPEG to tone-map.
If you're getting "washed out" colors, etc, it means you aren't tone-mapping HDR to SDR properly.

Which AVS+ isn't ready for.
Vapoursynth can, but only one or two scripts exist. Both, of which, have not received a lot of feedback whether or not they are that successful or require more tweaking.

So, keeping HDR metadata is the best solution.
Which is exactly what you did.

x264 doesn't have any tone-mapping. It's not FFMPEG.

10bit video shouldnt nearly starve bitrate as much 8bit.
that could be the settings you're using.
MediaInfo doesn't mean squat, tbh.

If you use faster settings for encoding, you'll need more bitrate to keep it from looking like garbage.
If you use slower settings, or even placebo settings, you don't have to worry about bitrate nearly as much as garbage settings.

With FFMPEG, you have a few choices for tone-mapping HDR to SDR.
With Vapoursynth, there's only one script.
With AVS+, you have nothing, And if you manage to change things in AVS+, you're most likely doing it wrong.
Win10 (x64) | GPU Caps Viewer v1.38.2.1
Crucial M500 240GB SSD | Kingston SSDNow V300 (Marvell) 120GB | NVIDIA GeForce GTX 750 Ti 2GB | 391.01 (2-23-2018)
NTSC | DVD: R1 | BD: A
Sparktank is offline   Reply With Quote
Old 25th February 2018, 10:01   #3  |  Link
Registered User
Selur's Avatar
Join Date: Oct 2001
Location: Germany
Posts: 5,462
With Vapoursynth, there's only one script.
There is more.
There is also a port or FFmpegs tone-map filter for Vapoursynth (https://github.com/ifb/vapoursynth-tonemap) which works fine.

Cu Selur
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +1. The time now is 14:43.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.