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. |
|
![]() |
|
Thread Tools | Search this Thread | Display Modes |
![]() |
#1 | Link |
Registered User
Join Date: Oct 2013
Posts: 229
|
Handbrake and two methods of reencoding UHD-4K content
The two methods gave me a difference in brightness/contrast.
Note: this is a 1080p reencode from UHD-4K content. So our goal is to create what would be best to watch in 1080p, I guess calling it "SDR version" is the proper term. We will also assume there isn't any official Blu-ray, created by professional colorists, which is obviously going to be better than whatever we do automatically with this app. What I can't figure out is which is correct, in the end. The answers at least from AI, were conflicting. It hinted that file #2, which I created later and has less brightness/contrast, may be better. Reencodes using H.265. The #2 one with a higher bitrate, uses BT.709 and 10-bit for HEVC. Take a look: ORIGINAL UHD-4K file (MKV, lossless): https://pastebin.com/VTmh1Cir NOW, the file with less bitrate, and increased brightness: https://pastebin.com/Eqzhb5cF The #2 one: https://pastebin.com/cPusHwcD Any ideas? +++++++ One thing I learned is that if we disable colourspace for a 4K - 1080p reencode, the final result is 8-bit and clearly bad/wrong, with video artifacts. Another change I made was to set a fixed bitrate for HANDBRAKE, and disabled "anamorphic", as explained here: https://forum.doom9.org/showthread.php?t=186022 |
![]() |
![]() |
![]() |
#2 | Link |
Registered User
Join Date: Jun 2024
Location: South Africa
Posts: 333
|
From an encoding point of view, the second one will be better because of its higher bitrate. The BT.709 trifecta are also set properly, though in practice, it shouldn't make a difference at 1080p. The x265 encoding would be further improved by using the slow or slower preset.
Regarding the HDR to SDR conversion, if it is possible, give FFmpeg and libplacebo a go and see if the results are better. Code:
Collapse all onto a single line, adjusting the crop values, CRF, and other settings as desired: ffmpeg -init_hw_device vulkan -i INPUT.mkv -map 0:v:0 -vf libplacebo=upscaler=spline36:downscaler=spline36:w=-1:h=1080: colorspace=bt709:color_trc=bt709:color_primaries=bt709:range=limited:format=yuv420p10le, crop=1920:1080:0:0:exact=true,sidedata=delete -c:v libx265 -preset slow -crf 20 -x265-params no-sao=1:deblock=-1,-1:aq-mode=3 OUTPUT.mp4 Last edited by GeoffreyA; 23rd March 2025 at 17:42. |
![]() |
![]() |
![]() |
#3 | Link |
Registered User
Join Date: Aug 2002
Location: Italy
Posts: 323
|
Suggestion for @Perenista: switch to FastFlix if you need more controls over encoding parameters...
__________________
Hybrid Multimedia Production Suite will be a platform-indipendent open source suite for advanced audio/video contents production. Official git: https://forart.it/HyMPS |
![]() |
![]() |
![]() |
#4 | Link | |
Lost my old account :(
Join Date: Jul 2017
Posts: 368
|
Quote:
|
|
![]() |
![]() |
![]() |
#5 | Link | |
Registered User
Join Date: Jun 2024
Location: South Africa
Posts: 333
|
Quote:
Code:
-vf libplacebo=upscaler=spline36:downscaler=spline36:w=-1:h=1080: peak_detect=true:tonemapping=spline:gamut_mode=perceptual: colorspace=bt709:color_trc=bt709:color_primaries=bt709:range=limited:dithering=blue: format=yuv420p,crop=%crop%:exact=true,sidedata=delete |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|