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. |
![]() |
#3 | Link | |
Registered User
Join Date: Jun 2024
Location: South Africa
Posts: 366
|
Quote:
|
|
![]() |
![]() |
![]() |
#5 | Link |
Registered User
Join Date: Jun 2024
Location: South Africa
Posts: 366
|
Use the libplacebo version. Its results are excellent and, I reckon, will solve your problem. I'll post a cleaner version of the command tomorrow, but you can use that for now; it's the same and will work. The target resolution is 1080p, which you can adjust.
Are you aiming for a bit depth of 8 or 10 bits? Also, what about your audio? Are you downmixing or copying straight over? |
![]() |
![]() |
![]() |
#7 | Link | |
Registered User
Join Date: Apr 2024
Posts: 419
|
Quote:
|
|
![]() |
![]() |
![]() |
#8 | Link |
Registered User
Join Date: Jun 2024
Location: South Africa
Posts: 366
|
This script will convert the video stream, discarding audio, to 10-bit BT.709 SDR, encoding as HEVC. Place in a BAT file, collapsing the FFmpeg command onto one line, set the crop values highlighted in bold, as well as x265 settings.
Code:
setlocal set crop=Width:Height:Left:Top ffmpeg -init_hw_device vulkan -i INPUT -map 0:v:0 -map_metadata -1 -vf libplacebo=upscaler=spline36:downscaler=spline36:w=1920:h=-1: tonemapping=spline:gamut_mode=perceptual: colorspace=bt709:color_trc=bt709:color_primaries=bt709:range=limited:format=yuv420p10le, crop=%crop%:exact=true,sidedata=delete -c:v libx265 [...] OUTPUT endlocal pause Now, where it says crop=Width:Height:Left:Top above, take your values from VD2 and substitute them. Generally, Height and Top are key. For example: Code:
crop=1920:804:0:138 Last edited by GeoffreyA; 21st January 2025 at 10:40. |
![]() |
![]() |
![]() |
#9 | Link |
Registered User
Join Date: Aug 2024
Posts: 581
|
It's not possible unless there's little to none highlight (when you playback them on non-crap HDR devices)
If the device is not HDR or crap HDR, it's likely been doing tonemapping already (or clipping which should be worse) so good tonemapping will give you similar or better looking Last edited by Z2697; 21st January 2025 at 21:56. |
![]() |
![]() |
![]() |
#10 | Link |
hlg-tools Maintainer
Join Date: Feb 2008
Posts: 460
|
Question: Do you have control over which playback devices are used? I ask because I have found converting to HLG to work quite well. Most of the highlights are preserved on devices that can show them, yet it naturally looks like SDR when played back as such. The reason you need to control the playback is that some players absolutely suck at BT.2020->BT.709 color mapping.
|
![]() |
![]() |
![]() |
#11 | Link | |
Registered User
Join Date: Jun 2024
Location: South Africa
Posts: 366
|
Quote:
https://github.com/haasn/libplacebo/...ocs/options.md https://ffmpeg.org/ffmpeg-filters.html#libplacebo |
|
![]() |
![]() |
![]() |
#12 | Link | |
hlg-tools Maintainer
Join Date: Feb 2008
Posts: 460
|
Quote:
Source: https://github.com/wswartzendruber/hlg-tools Wiki: https://github.com/wswartzendruber/hlg-tools/wiki Binaries: https://github.com/wswartzendruber/hlg-tools/releases I'm not going to act like this is objectively the best way to go about things, but it does address what I believe to be the elephant in the room: 4K UltraHD discs are mastered with wildly varying levels of brightness. Fundamentally, if someone is downconverting from absolute brightness (HDR-PQ) to relative brightness (HDR-HLG and SDR), they have to know where reference white is on the PQ source. This is because the implicit definition of HDR-PQ over HDR-HLG and SDR is expanding the room between reference white and max white. And because of this, downconversion is the inverse: compressing the space between reference white and max white. If you get reference white wrong, you'll either over-compress or under-compress different brightness ranges. |
|
![]() |
![]() |
![]() |
#13 | Link |
Registered User
Join Date: Aug 2017
Location: Italy
Posts: 145
|
the only appropriate comment in this thread
__________________
A channel on S-VHS / VHS capture and AviSynth restoration https://www.youtube.com/channel/UCMs...h1MmNAs7I8nu4g |
![]() |
![]() |
![]() |
#15 | Link | |
Registered User
Join Date: Jun 2024
Location: South Africa
Posts: 366
|
Quote:
|
|
![]() |
![]() |
![]() |
#16 | Link |
Registered User
Join Date: Aug 2017
Location: Italy
Posts: 145
|
Makes sense. But note that the OP is a well known troll (videohelp forums are full of his non-sense) and he asked in purpose "to the point where people will not notice the difference?"
__________________
A channel on S-VHS / VHS capture and AviSynth restoration https://www.youtube.com/channel/UCMs...h1MmNAs7I8nu4g |
![]() |
![]() |
![]() |
#19 | Link |
Registered User
Join Date: Dec 2013
Location: Berlin, Germany
Posts: 463
|
Regarding noticing if something has been hand graded to SDR or tonemapped down from HDR, it is more or less the same concept as at which point do people notice the difference between an honest question and a troll. Some will notice right away, some will if it is pointed out to them, some will never.
__________________
My github... |
![]() |
![]() |
![]() |
#20 | Link |
Registered User
Join Date: Aug 2017
Location: Italy
Posts: 145
|
OP meant SDR indistinguishable from HDR, that’s why he’s trolling
__________________
A channel on S-VHS / VHS capture and AviSynth restoration https://www.youtube.com/channel/UCMs...h1MmNAs7I8nu4g |
![]() |
![]() |
![]() |
Tags |
hdr to sdr |
Thread Tools | Search this Thread |
Display Modes | |
|
|