[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


Janitor applications are now open. Apply here!


[Advertise on 4chan]


File: 1767384078255883.gif (1.14 MB, 498x280)
1.14 MB GIF
I was playing around with https://github.com/google/libultrahdr and realized that you can turn any image HDR by turning up the midtone exposure and converting that into a gain map.
The HDR jpegs can be viewed in any Chromium-based browser, and you obviously need an HDR monitor. On a normal SDR monitor, the images will be displayed in SDR.
Example: https://files.catbox.moe/jv73sd.jpg
Try opening it in Chrome and Firefox or any image viewer to compare.
The batch script I wrote that can convert images to fake HDR: https://files.catbox.moe/zm0jxy.zip
It contains "HDR_IMAGE_GEN.bat" "ultrahdr_app.exe" and "metadata.cfg"
You also need ffmpeg installed to PATH, then drag and drop any image onto "HDR_IMAGE_GEN.bat" and it will generate an HDR jpg.
>>
>>108869430
dolphins
>>
>>108869430
mpv supported 3D LUTs via libplacebo for many years now. you don't need a library from google to give videos, not just images, nice colors, or whatever you want.
>>
>>108870591
I wish MPV weren't so hard to set up
>>
Any testers? Did it work for you?
>>
File: file.png (2.73 MB, 1582x909)
2.73 MB PNG
I never used HDR, I enabled it and now all my colors look weird, everything has like a sepia filter or something

the image does look "better" but it's because everything else looks like shit now
>>
jpg doesnt support proper hdr?
why not use jpeg xl or avif
>>
>>108871362
what? it's been like a decade since it got easy to install
>>
>>108874437
do you have an *actual* HDR monitor?
>>
>>108869430
I ran this and now my computer is acting funny
>>
File: file.png (41 KB, 785x150)
41 KB PNG
>>108874471
apparently?
>>
File: file.png (3.76 MB, 2008x993)
3.76 MB PNG
After raising the brightness for non-HDR content I legit cannot tell the difference. I know the right one is being displayed in "HDR" on chrome because it's not affected by the "SDR Content brightness" setting
>>
File: file.png (168 KB, 400x423)
168 KB PNG
>>108874476
anon..........
>>
>>108874437
>>108874476
Windows saturates colors when HDR is disabled, you're simply seeing the accurate sRGB colors when HDR is enabled.
>>108874496
The SDR brightness slider should be set to around 15-30%, the paper white brightness is in that range.
>>
>>108874522
If I set it to 15-30% everything looks very dark
>>
File: file.png (110 KB, 750x350)
110 KB PNG
>>108874476
If you don't have a display with full array local dimming or OLED, you simply cannot have HDR, by definition.
The DisplayHDR standard is absolute goyslop that just confuses the average customer. DisplayHDR 400 is meaningless. Insane that they haven't been sued for this yet.
>>
>>108874528
Install Windows HDR Calibration App
Set the first slider to 0 and the next two sliders to 400.
>>
>>108874543
Ok then I'll just disable HDR and never use it again since my monitor is actually shit for it
https://www.gigabyte.com/Monitor/M32U
>>
File: file.png (6 KB, 200x130)
6 KB PNG
>>108874602
Oof, yeah, sorry anon.
HDR is sick but it does require very specific hardware. These garbage fake specs should not exist.
>>
>>108874602
Yeah, that looks like a "fake" HDR monitor, it still should work. It just won't look as good as a Mini-LED/Mini-RGB or an OLED.
>>
File: adas.jpg (625 KB, 1500x1221)
625 KB JPG
idk whats the point tho
>>
>>108874667
HDR is pointless if your monitor is incapable of local dimming.
>>
>>108870263
I promise it's not
>>
>>108869430
irfanview has had 'alta-lux' plugin for like 15+ years
>>
>>108874667
there is no point. as stated in >>108870591, you can do fully customized color replacements with 3D LUT's already.

for example grab the cube file below, which is one of the custom LUT's i generated and use, and test with:
mpv --image-lut-type=normalized --image-lut=ihsw0u06rr3gws8z.cube

https://litter.catbox.moe/ihsw0u06rr3gws8z.cube
>>
>>108876408
Are you sure this is the same as HDR? It just changes the colors slightly.
>>
>>108876313
>>108876408
Yeah, I don't think you people understand what HDR is...
>>
Since nobody is using the script, here are some more examples
https://files.catbox.moe/phxx7s.jpg
https://files.catbox.moe/dgzcwj.jpg
https://files.catbox.moe/tvp1y1.jpg
https://files.catbox.moe/hd8ucd.jpg
>>
>>108876703
For people who don't have an HDR monitor, try viewing them on your phone, it probably supports HDR
>>
>>108876575
HDR is a meme.
Fake HDR is a turbo meme.
3D LUT's define replacements for RGB colors. i.e. 32-bit float triples. They can fake "good looks" better than any fake HDR generator. Not to mention that they are fully customizable, AND can be applied to rendering pipelines with almost negligible overhead.
>>
>>108874476
>HDR400
oh no no no
turn off ACM in windows settings
>>
>>108876575
>It just changes the colors slightly.
sorry. i was focusing with >>108876828 on >>108876632 more than your comment.
here is another LUT with stronger effects:
https://litter.catbox.moe/2czesl9yutobd6va.cube
>>
I do not understand the point of any of this
>>
File: hdr.webm (2.49 MB, 1280x720)
2.49 MB
2.49 MB WEBM
>>108877048
I don't know about OP and his fake HDR of SDR-only images, but I've been making real HDR artwork for about 5 years, and being able to make images where bright things are actually bright is rather nice.
>>
>>108874449
ISO 21496-1 (eg Gainmapped JPEG) is a version of JPEG which, in addition to storing a regular SDR image as usual, stores HDR information in the extension blocks within the existing spec. Decoders looking for this information can apply the HDR data to the SDR. Image parsers that aren't expecting this data simply decode and present the SDR image as normal, making Gainmapped JPGs highly backwards-compatible.
>>
>>108878066
very cool
>>
>>108871362
Nowadays you can just ask a llm to do it
>>
>>108878564
I made a whole website specifically to host the HDR versions if you want to see for yourself.
https://art.soandnb.com/posts/query=hdr
>>
>>108874437
Yes, HDR is a total meme.
>>
>>108879382
If you mean the current implementation, it has some issues, yes, but well-implemented HDR looks amazing.
>>
>>108879530
Theres stupid problems like xbox game bar and nvidia app saving screenshots in jxr format that nothing supports and is dead, instead of jxl or avif

Sure you get a 30mb hdr screenshot but how do you post that on 4chan?
Windows photos displays jxr since the standard is made by microsoft, but if you go and do something like edit it in photos it loses the hdr.
Chrome doesnt display it.
>>
>>108879530
Well-implemented is exactly the operative phrase and exactly the problem. It's just like 4k: 4k is a meme for the same reason (there is no 4k content anywhere, at best it's upscaled, and nowadays (((AI upscaled))) 1080p, so it looks like ass; and even meme-tier GPUs struggle to render at 4k 60fps so that's not an argument either).
>>
>>108879797
What upscaling did was enable people to ditch 1440p and move onto 4k while maintaining quality at similar fps
so you get more screen and it looks fine
>>
>>108879808
L-lol?
>>
>>108879811
32" screen at 140ppi > 27" screen at 110ppi

also make sure you own an nvidia gpu if you want good upscaling quality
>>
>>108879819
Are you clinically retarded or just a bot?
>>
ah its the sharty shitposting bot
well
>>
>>108879797
HDR is well implemented on every OLED-screen phone.
It's only a meme on monitors and TVs because the operating system has no way of talking to the display and exchanging the necessary information to make HDR plug and play.
>>
>>108879831
>factually accurate statement
>"you're a bot!"
It's okay to be wrong, anon.
>>
>>108879837
Don't know what parallel universe you come from but you should go back.
>>
>>108879865
It's time to upgrade your Motorola from 2010.
>>
>>108879837
Having to slide a few sliders around is the least of HDR's problems. HDR's issues extend to the fact that every single display manufacturer has a different idea of how to handle high brightness levels, which is fundamentally incongruent with how every HDR artist wants to handle high brightness levels, which itself is going to be fundamentally different.
There's no way to tell the image/video decoder, "hey, I want this to be tonemapped using ACES" or AgX or Reinhard or whatever.
Dolby Vision kind of does this with "Trim Points" where you master at a certain nit level, and then DV encodes adjustments of your choosing at levels lower than that. And Gainmapped HDR kind of does this by interpolating between an HDR and SDR version, but there's still no accounting for dumb faggot display manufacturer tonemapping unless they have HGiG or other options to turn it off (but then that will ruin HDR10/10+ media)
>>
So why are browsers dragging their feet with HDR support? This is also the case with VRR support.
>>
>>108880025
whats lacking in chrome?
>>
>>108880025
HDR is supported in Chrome, if it still doesn't work, try enabling chrome://flags/#enable-experimental-web-platform-features
>>
>>108880025
Chrome's had HDR support on Windows for years. Even Linux has had it since Chromium 141.
Don't know nor care about Firefox.
>>
How do we fix hdr for images, video and gaming all at once

First off surely dolby vision has to die, what point is there to have license fees for something billions of people have to use for their streaming platforms and monitors.

Encoding data for the standard everyone uses probably has to limit to something like 2500 nits, instead of going off into the infinity no one uses. I think it'll reduce filesizes.

Theres jxl/avif for images
Windows needs to support hdr alongside sdr the way apple os does. All the software, browsers and image editing tools need to display jxl/avif out of the box. Imagine not having to turn hdr on or off, ever. Theres just one mode that works for all.
>>
>>108880322
>First off surely dolby vision has to die
You still have HDR10 and HDR10+, the former is perfectly serviceable for general-use HDR content that you'd find on places like Youtube, and the latter would be fine for Netflix, etc, even if it doesn't offer quite the finesse DV gives to the autistic pixel pushers. Images don't need DV since they only have one frame/scene, and don't need per-frame/per-scene metadata.
>2500 nit limit
The limit is already at 10,000nits. The PQ curve means 2,500 nits is still using 90% of the 10-bit bandwidth allocated to Rec2100-PQ. SDR is 8-bit, for what its worth.
>Imagine not having to turn hdr on or off, ever. Theres just one mode that works for all.
I keep HDR on all the time. SDR content looks identical to how it looks with HDR off. KDE Plasma can do it, so there's nothing stopping Windows from doing it, either. They just have to fire their vibecoding pajeets.
>>
>>108880322
>Imagine not having to turn hdr on or off, ever
I never turn it off, and it works flawlessly in Windows 11.
I don't use RTX HDR or any other mods, just the HDR calibration app profile and SDR brightness slider set to 20. AutoHDR is ON.
>>
>>108880568
Isnt the rtx hdr better quality than autohdr?
>>
>.bat
nice virus
>>
>>108880600
Yes, but I don't use it because it doesn't work everywhere like AutoHDR, which works even in windowed applications.
And when AutoHDR doesn't work somewhere, you can force it with this: https://github.com/ledoge/autohdr_force
>>
>>108880657
There's nothing dangerous in it. If you can't read the batch script, you can just ask AI to read it for you.
>>
>>108874437
>>108879382
>use some meme tech that's a glorified photoshop levels filter
>it washes out the image and peaks horribly
>blame hdr and not the shit edit
Anon, HDR only works when something is actually made for it. You're running a filter and complaining that it looks shit.
The picture is also CLEARLY meant to be dark.
>>
File: Gold Week Octoling O HDR.jpg (1.94 MB, 2048x3100)
1.94 MB JPG
>>108880853
>Anon, HDR only works when something is actually made for it.
There's a certain level of irony to HDR. The BEST HDR implementations are when it's almost hard to tell that the media is even HDR to begin with because of how natural it looks. But then you go back to SDR and everything feels flat and hollow.
https://files.catbox.moe/j5if6k.jpg
https://files.catbox.moe/hvmr8k.jpg
https://files.catbox.moe/je8f9i.jpg
>>
>>108880853
Yeah, that's why it's "fake" HDR, the gain map is generated from the SDR image by adjusting the midtone brightness.
In the script it's this: curves=all='0/0 0.50/0.95 1/1'
You can change it to something like '0/0 0.85/0.85 0.90/0.95 1/1' to only raise the peaks.
>>
>>108880935
Pic from the OP but only peaks are raised: https://files.catbox.moe/ctr7px.jpg
>>
>>108880935
And it looks like shit, so including HDR in its name in general just taints HDR by making shitwits think actual HDR looks as shitty as your goofy ass filter.
>>
>>108880992
It doesn't looks that much different from the real thing, though: https://files.catbox.moe/cdmnp3.jpg
>>
>>108880934
>jpg HDR
The script generates a gain map using the same libultrahdr library you're using
You can simply edit the gain map manually and you'll get the same exact result
>>
>>108880934
Run this pic through the script:
https://files.catbox.moe/hvmr8k.jpg
I hope you don't feel NTR'd, because it looks kind of better now:
https://files.catbox.moe/ynz5g6.jpg
>>
>>108881139
btw I removed format=gray from the script to get this result
>>
>>108880853
>Anon, HDR only works when something is actually made for it.
Exactly. Hence why HDR is a meme. Virtually 0 content is made for it.
>>
>>108881184
Video games? Movies? All the photos you take with your phone camera?
>>
>>108881197
No to all of those. Look it up unironically.
>>
>>108881210
>hdr doesn't exist
>nooo those examples don't count
Way to admit you think it's a meme because you can't afford the hardware to view it.
>>
>>108881210
Look up what?
>>
>>108881249
Look up what implements hdr and how it implements it.
>>108881241
Maybe you should read the post and not what you decided the post should be.
>>
File: output.jpg (1000 KB, 3840x2160)
1000 KB JPG
>>108881139
>it looks kinda better
Not really. Too colorful for what's supposed to be a somewhat macabre, if lighthearted, scene. The detail separation between the semi-bright highlights and the very-bright sparkles is lost, as is the details within the green eyes.
You're basically reinventing AutoHDR. And I will be the first to admit, that properly done AutoHDR can produce very pleasing results, especially if your SDR image has good tonal foundations for reversal, and you have a solid inverse tonemapping algorithm. I use ACES 2.0 1000 nits for most of my modern images, which lends them well to inverse tonemapping. But even then, an AutoHDR doesn't "restore" data lost from an SDR transform in quite the same way that a pure HDR render achieves. And as displays become more capable of displaying higher brightnesses and HDR content is mastered for those brighter displays, I have to wonder if the gap between SDR-to-HDR and true HDR won't become more apparent.

Here's a 4,000 nit image. https://files.catbox.moe/mkvzag.jpg
I'm on linux so I can't really use your batch file.
>>
>>108881327
>Hence why HDR is a meme. Virtually 0 content is made for it.
>nooo the things that are examples of HDR content aren't HDR, look it up
>just look it up bro
>look it up
You have no sources or backing info and are just bullshitting for attention.
>>
>>108869430
I have an actual HDR monitor (Samsung G9 Neo) and it actually looks better than the SDR version so that's pretty good
>>
>>108879678
>Sure you get a 30mb hdr screenshot but how do you post that on 4chan?
4chan X auto resizes your shit to fit into each board's size limits
>>
>>108881403
I'm just teasing you, anon, real HDR does look better. I was just seeing how close I could get to it: https://files.catbox.moe/uzc95a.jpg
this is with: curves=all='0/0 0.97/0.97 0.975/0.99 1/1',eq=saturation=0.2
>>
File: veemo christmas tree HDR.jpg (1.58 MB, 2550x3300)
1.58 MB JPG
>>108881518
Not too shabby. A bit more sockeye-salmon-tinted than the official render's Alaskan-salmon sunset, but it's still very close.
And if you wanna play around with more of these, I have an entire website full of them which I posted here >>108878674
>>
>>108881428
You listed material that does not have HDR and having HDR and been basic your entire life around it from that point on. Get a grip.
>>
>>108881830
>movies
>games
>photos
Are you stuck in 2006 when "HDR" meant emulating eyes adjusting to light? All examples objectively contain HDR. No, it isn't disproved just because you can find individual games, movies, and 20 year old cameras that don't do HDR.
>>
>>108881486
ideally you get the hdr image conveyed without brightness loss or banding, some guy vibed a jxr to avif tool that seems pretty good for the shitty hdr game screenshots

https://old.reddit.com/r/HDR_Den/comments/1tgqaug/new_jxr_to_avif_converter/

ofc the next roadblock is that even if you have a compressed 2mb avif file 4chan doesnt support it
>>
>>108882160
Google it instead of making a fool out of yourself
>>
Version that downloads dependencies. Save as .bat drag and drop an image onto it.
@echo off
if "%~1"=="" exit

set "safe_f0=%~f0" & set "safe_1=%~1"
set "safe_f0=%safe_f0:'=''%" & set "safe_1=%safe_1:'=''%"
net session >nul 2>&1
if %errorlevel% neq 0 (
powershell -Command "Start-Process cmd -ArgumentList ('/c ' + [char]34 + [char]34 + '%safe_f0%' + [char]34 + ' ' + [char]34 + '%safe_1%' + [char]34 + [char]34) -Verb RunAs"
exit /b
)
cd /d "%~dp0"

call :find_tool "FFmpeg" "%~dp0bin\FFmpeg\ffmpeg-master-latest-win64-gpl\bin\ffmpeg.exe" "%~dp0ffmpeg.exe" "https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-win64-gpl.zip"
call :find_tool "ultrahdr_app" "%~dp0bin\ultrahdr_app\ultrahdr_app.exe" "%~dp0ultrahdr_app.exe" "https://files.catbox.moe/knnvou.zip"

set "cfg_path=%temp%\metadata.cfg"
if not exist "%cfg_path%" (
(
echo --maxContentBoost 4.0& echo --minContentBoost 1.0& echo --gamma 1.0
echo --offsetSdr 0.015625& echo --offsetHdr 0.015625
echo --hdrCapacityMin 1.0& echo --hdrCapacityMax 4.0& echo --useBaseColorSpace 1
) > "%cfg_path%"
)

"%FFmpeg%" -y -i "%~1" -vf "[0:v]split=2[bg][fg];[bg]drawbox=c=black:t=fill[bg];[bg][fg]overlay=format=auto,format=yuv420p" -loglevel panic -update 1 -q:v 1 -qmin 1 "%temp%\sdr.jpg"
"%FFmpeg%" -y -i "%temp%\sdr.jpg" -vf "gradfun=strength=5:radius=8, curves=master='0/0 0.96/0.96 0.97/0.985 0.99/0.995 1/1',eq=saturation=0.2" -loglevel panic -update 1 -q:v 1 -qmin 1 "%temp%\hdr.jpg"

"%ultrahdr_app%" -m 0 -i "%temp%\sdr.jpg" -g "%temp%\hdr.jpg" -f "%cfg_path%" -M 1 -s 1 -q 100 -Q 100 -D 1 -z "%~dp0%~n1_hdr.jpg"
exit

:find_tool
for /f "delims=" %%i in ('where %~1 2^>nul') do set "%~1=%%i" & goto :eof
if exist "%~2" set "%~1=%~2" & goto :eof
if exist "%~3" set "%~1=%~3" & goto :eof
echo %~1 missing. Downloading . . .
mkdir "bin\%~1" >nul 2>&1
curl --progress-bar -L -o "bin\%~1.zip" %~4
tar -xf "bin\%~1.zip" -C "bin\%~1"
set "%~1=%~2"
cls & goto :eof
>>
>>108882408
>gogow it
So you have no actual rebuttal and just want to make people waste time looking for things that don't exist. Concession accepted.
>>
>>108882413
And the "safe" version that works without admin privileges, but you can't use it on Drive C because the curl command won't work.
@echo off
if "%~1"=="" exit

cd /d "%~dp0"

call :find_tool "FFmpeg" "%~dp0bin\FFmpeg\ffmpeg-master-latest-win64-gpl\bin\ffmpeg.exe" "%~dp0ffmpeg.exe" "https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-win64-gpl.zip"
call :find_tool "ultrahdr_app" "%~dp0bin\ultrahdr_app\ultrahdr_app.exe" "%~dp0ultrahdr_app.exe" "https://files.catbox.moe/knnvou.zip"

set "cfg_path=%temp%\metadata.cfg"
if not exist "%cfg_path%" (
(
echo --maxContentBoost 4.0& echo --minContentBoost 1.0& echo --gamma 1.0
echo --offsetSdr 0.015625& echo --offsetHdr 0.015625
echo --hdrCapacityMin 1.0& echo --hdrCapacityMax 4.0& echo --useBaseColorSpace 1
) > "%cfg_path%"
)

"%FFmpeg%" -y -i "%~1" -vf "[0:v]split=2[bg][fg];[bg]drawbox=c=black:t=fill[bg];[bg][fg]overlay=format=auto,format=yuv420p" -loglevel panic -update 1 -q:v 1 -qmin 1 "%temp%\sdr.jpg"
"%FFmpeg%" -y -i "%temp%\sdr.jpg" -vf "gradfun=strength=5:radius=8, curves=master='0/0 0.96/0.96 0.97/0.985 0.99/0.995 1/1',eq=saturation=0.2" -loglevel panic -update 1 -q:v 1 -qmin 1 "%temp%\hdr.jpg"

"%ultrahdr_app%" -m 0 -i "%temp%\sdr.jpg" -g "%temp%\hdr.jpg" -f "%cfg_path%" -M 1 -s 1 -q 100 -Q 100 -D 1 -z "%~dp0%~n1_hdr.jpg"
exit

:find_tool
for /f "delims=" %%i in ('where %~1 2^>nul') do set "%~1=%%i" & goto :eof
if exist "%~2" set "%~1=%~2" & goto :eof
if exist "%~3" set "%~1=%~3" & goto :eof
echo %~1 missing. Downloading . . .
mkdir "bin\%~1" >nul 2>&1
curl --progress-bar -L -o "bin\%~1.zip" %~4
tar -xf "bin\%~1.zip" -C "bin\%~1"
set "%~1=%~2"
cls & goto :eof
>>
>>108874476
everything under 1000 nits is shit



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.