Как конвертировать hdr в sdr
Как конвертировать hdr в sdr
FFMpegSource2 or LibawVideoSource can dither it down to 8bit 2160p for you, then all you need is a resizer and colormatrix.
FFMpegSource2(«video.h265», fpsnum=24000, fpsden=1001)
It’s really simple as that.
Feel free to use Spline64ResizeMT for better performance, or any other resizer. If you want even more quality, use NNEDI, even though, for downscaling, Spline64Resize is generally enough.
FranceBB, I think that the Y-component needs to be cut somehow before converting from 10 to 8 bits.
Simple conversion gives a faded result. Without contrast аs SDR.
MadVR does this via pixel shading, additionally applying filtering compress highlights.
From 10 bits to 8 bits, this is one case with the application of dithering.
But the conversion of HDR to SDR here is already a more complicated case, and is not limited to just dithering.
Maybe for proper conversion, is needed new plugin or new instructions in Avisynth+
FFMpegSource2 or LibawVideoSource can dither it down to 8bit 2160p for you, then all you need is a resizer and colormatrix.
FFMpegSource2(«video.h265», fpsnum=24000, fpsden=1001)
It’s really simple as that.
Feel free to use Spline64ResizeMT for better performance, or any other resizer. If you want even more quality, use NNEDI, even though, for downscaling, Spline64Resize is generally enough.
Try using Resolve for this:
Try using Resolve for this:
I don’t know, but HDR to SDR is not trivial. It’s more about how to shrink all these HDR info into much «tighter» SDR signal avoiding any tint, hue shifts etc. I know that eg. Technicolor is trying to make some tools for semi automated conversion. This tool analyses each scene an uses some adaptive conversion.
It ca be doe with fixed math- Resolve has node (and LUT) for it and this is rather simple fixed math.
I see nothing of the sort in the R-REC-BT.2020-2-201510-I!!PDF-E document, maybe this document is not enough to convert BT.2020 and don’t cover the whole part, but i thought it would be.
Or. i’ve missed it in the document.
Didn’t see the edit part, i’ll look for this.
Edit
Found things here on ITU. But access only to ITU users. Seems to be difficult to get proper informations.
It seems maybe there is things here. Bigger than others, it will take a little more time to understand properly i think.
There is also the R-REP-BT.2390-2016-PDF-E document.
SVP и HDR в SDR конверсия через MADVR
SmoothVideo Project → Эксплуатация SVP → SVP и HDR в SDR конверсия через MADVR
You must login or register to post a reply
Posts: 11
1 Topic by sickjoy 03-10-2017 22:35:53
Topic: SVP и HDR в SDR конверсия через MADVR
Заметил что никак не могу заставить MADVR конвертить ролики HDR в SDR если используются в свзяке с LAV и FFDShow только если начистую использовать один madvr как настроено по дефолту в MPC-BE. Но тогда нет возможности использовать SVP.
Может есть решение как это сделать в связке с SVP?
2 Reply by MAG79 04-10-2017 02:49:26
Re: SVP и HDR в SDR конверсия через MADVR
HDR использует глубину цвета 10 бит.
Видео 10 бит не поддерживается ни ffdShow с avisynth ни PoyPlayer’ом.
10 бит в SVP работает только в двух плеерах: mpv и VLC. Но к ним не подключишь madVR.
Что за ролики, если не секрет?
Конвертить в SDR, в смысле чтобы смотреть на обычном мониторе?
3 Reply by Chainik 04-10-2017 07:34:07
Re: SVP и HDR в SDR конверсия через MADVR
HDR в SDR с SVP, по крайней мере, можно смотреть в mpv
Интереснее вопрос, пока без ответа, как смотреть HDR в HDR
4 Reply by sickjoy 07-10-2017 21:12:41
Re: SVP и HDR в SDR конверсия через MADVR
Такого плана
Transformers The Last Knight.2017.2160p.WEBRip.UHD.HDR.x265-NCPX.Dual.Agrobatalha
Ghost.in.the.Shell.2017.2160p.UHD.BluRay.HDR.x265-NCPX.Dual.Agrobatalha
Конвертить в SDR, в смысле чтобы смотреть на обычном мониторе?
HDR в SDR с SVP, по крайней мере, можно смотреть в mpv
Не нашел как там звук настраивается, потому как у меня играет без звука. (Странный конфликт аудио драйверов и некоторых программ)
5 Reply by sickjoy 03-12-2017 16:03:56 (edited by sickjoy 03-12-2017 16:04:20)
Re: SVP и HDR в SDR конверсия через MADVR
Вот в этом HDR фильме через MPV плеер цвета огонь http://take.ms/HmNG5
Как их можно поправить? с учетем того что даже иконки MADVR нет в трее?
6 Reply by MAG79 04-12-2017 09:16:04
Re: SVP и HDR в SDR конверсия через MADVR
каким образом получена картинка справа по ссылке? Имею в виду какой плеер?
Левая картинка однозначно дает слишком красные лица, но правая мне кажется бледной. Правильный цвет он либо справа, либо средний между этими картинками.
Первым делом в mpv надо вернуть выкрученные настройки цвета в ноль. Кнопки 1/2, 3/4, 5/6 и 7/8
Converting UHD HDR to SDR?
Thread Tools
Display
I’m running a 1080p Panasonic projector fed by content from Dune HD Base 3D media player and not ready to give up on it as the quality is phenomenal (scales 4K to great effect) and so I’m trying to find a solution for UHD HDR content. Here is what I learned thus far.
HDR uses the extended color gamut bt 2020 and as a result colors look muted, lacking in brightness and contrast when viewed on a non HDR HD display that uses the rec 709 gamut.
UHD blu-ray players usually can down-convert from bt 2020 to rec 709 for non HDR display users but there have been reports of the results not being too great.
This brings me consider video conversion but am stuck in finding more info. I love handbrake when it comes to video quality but unfortunately there aren’t any settings when it comes to color processing. Going deeper down the rabbit hole it seems that MeGUI with AviSynth is the way to go and am hoping that someone will be able to point into the right direction or a guide that deals with color conversion. It seems that the AviSynth command «ConvertToYUY2(clip, matrix=»rec709″)» should convert the color matrix from bt 2020 but I believe it’s not enough and some other color processing still needs to be applied for the right color, brightness and contrast, etc.
I’d appreciate any help on this subject and if someone has actually done a successful video conversion from HDR to SDR and could guide me through it then that would be even better.
First, rec2020 is not necessarily HDR (it is WCG), though HDR was built on 2020. Or rather they created the rec2100 extension to 2020 to support HDR.
I did a Google search and found what looks like an answer, but the method I found won’t be useful for most consumers.
There is a free version of DaVinci Resolve, but I have not used any version of DaVinci Resolve and don’t know if the necessary features exist in the free version.
Thank you for your answers and yes it seems that there isn’t a straight HDR to SDR conversion tool yet but I’m exploring the possibility of a run around. If Avisynth can be used to convert the color matrix to rec 709 followed by applying color adjustments, boosting brightness and saturation, etc wouldn’t you achieve SDR that way or at least something that doesn’t look so bland? Is there a guide somewhere for color correction using Avisynth?
The approach to get a «reasonable» image out from HDR content displayed in SDR can’t be that huge of a problem as the renderer madVR clearly shows. After all, it supports that in real-time and even if not accurate to the latest coordinate of BT.709 or whatever, it should at least fit the first category of being reasonable.
The task would be to capture madVR’s output and encode that with x264 for example. This way, not only the colorspace conversion but also even the necessary dithering part (only too often to be forgotten) would be taken into account.
Attached Thumbnails
it may look easy in madvr, but it is a very complex problem.
The underlying problem for sure and my highest respect to the author and all the ones who have contributed to the project, no question. But what I mean is that it has already been solved at least when it comes to «reasonable» results and the software required is out there.
So why not go from there and try to capture the output and feed some encoder with it?
Question: Q: How to Change Project from HDR to SDR?
I want to edit a video shot in HLG in rec.709 for SDR delivery. I create a library, event and project and import my clips. I select the project and hit Control, Command, J and choose Standard Gamut in the pop-up window. In the Inspector, the project shows up as rec.709. So far, so good. But. the clips in the browser and timeline still show up as rec.2020. And because the clips in the timeline are too bright, I go into effects and apply HDR Tools. But the clips are still far too bright. In previous versions of FCP, the app applied tone mapping so I could view clips normally (when converted to rec.709 the HLG clips would take on a milky greyish appearance, after which I applied a LUT). In v.10.4, the clips are blown out, their appearance doesn’t change, and I get a warning saying I need to connect an HDR monitor. Isn’t there a way to view and edit the clips in the timeline as rec.709 without the correctly exposed clips showing up as two stops overexposed? Why are they still showing up as 2020? Thanks!
iMac (Retina 5K, 27-inch, 2017), macOS High Sierra (10.13.2)
Posted on Dec 25, 2017 6:44 AM
All replies
Loading page content
Page content loaded
Just curious how it looks if you check on the HDR conversion preference, though you shouldn’t have to. Can you post a screenshot with waveform set to IRE after the HLG to 709 conversion.
Dec 25, 2017 6:52 AM
One screen shot shows how the clip in the browser appears in the viewer with ‘Show HDR as raw values’ selected in preferences. I chose SDR for the project. The other screen shot shows how the clip appears in the timeline. Even though I’ve selected rec.709 for the project settings, the clip is still rec.2020.
Dec 25, 2017 8:33 AM
Interesting. They both look wrong. The first doesn’t show the white T-short correctly, the scope looks wrong, and the second is over the top. Do you have a camera LUT for this?
Dec 25, 2017 8:51 AM
No, I don’t. In the previous version of FCP X, I was able to select rec.709 in the Inspector, everything worked fine. 🙂 The clips would take on a grayish greenish appearance. I’d apply a LUT from Paul Leeming and the colors would go back to normal. There were never these excessively dark or light images. The image you’re looking at has been properly exposed. Feeling bad I updated.
Dec 25, 2017 9:02 AM
The previous version wouldn’t map HDR properly. Not sure how you made it work unless the LUT pulled into range somehow.
Dec 25, 2017 9:09 AM
It’s common practice to make both an HDR pass and an SDR pass, but I don’t see how that’s possible if I change the project to rec709 yet the clips are still rec2020. I shouldn’t need an HDR monitor to grade SDR. Anyhow, thanks for your help, Tom. You know it’s funny, Apple offers support for FCPX in China, but not Vietnam, where I live.
Dec 25, 2017 9:26 AM
An entire day wasted, but I finally found it! First, hit the tab marked Basics at the bottom of Inspector. Then, hit ‘Settings’. Then in color space, change it from HLG to rec.709. shazaam!
Dec 25, 2017 9:52 AM
The HDR Tool effect doesn’t do that?
Dec 25, 2017 10:01 AM
The HDR Tools is just a viewing aid, it doesn’t convert the color space of the clips.
Dec 25, 2017 3:38 PM
And here’s what the scopes look like.
Dec 25, 2017 3:59 PM
That’s non-HDR 2020 with HDR to 709 applied.
Dec 25, 2017 4:08 PM
Thanks for that, I tried to amend my response earlier, but I guess you can only edit replies once.
Dec 25, 2017 4:28 PM
Question: Q: How to Change Project from HDR to SDR? More Less
Как конвертировать hdr в sdr
aerandir92
Junior Member
Kodi 18 is adding proper support for HDR video, and I’ve been using that for a while already, I’m loving it!
Also, playing SDR movies with HDR output also works fine (on Nvidia Shield), although not perfect, that might be the shields problem.
But the opposite, playing HDR content on an SDR display, can look absolutely horrible. I did some comparisons with MPC-BE and Kodi 17 DSPlayer with MadVR, which both do a much better job at this.
The comparison is done with the Divergent Blu-ray (for SDR reference) and 4K Blu-ray for HDR to SDR conversion.
SDR Blu-ray reference
MPC-BE playing HDR on SDR screen
Kodi 17 DSPlayer with MadVR playing HDR on SDR screen
Kodi 18 playing HDR on SDR screen
While MPC-BE and DSPlayer is not equal to the SDR reference (and I think MadVR actually aims to not be equal, but better), they are clearly quite close to the reference, close enough that it doesn’t matter.
But Kodi 18 is just unusable. It looks so bad and blown out.