Selur's Little Message Board
[BUG] FFmpeg ToneMap Greyed Out and VS ToneMap Not Working. - Printable Version

+- Selur's Little Message Board (https://forum.selur.net)
+-- Forum: Hybrid - Support (https://forum.selur.net/forum-1.html)
+--- Forum: Problems & Questions (https://forum.selur.net/forum-3.html)
+--- Thread: [BUG] FFmpeg ToneMap Greyed Out and VS ToneMap Not Working. (/thread-2174.html)

Pages: 1 2


FFmpeg ToneMap Greyed Out and VS ToneMap Not Working. - DevSker - 09.11.2021

Hello,
There's nothing much to say, the title is self-explanatory.

Update: I've tried using Vapoursynth instead and my encode just keeps crashing.

Version: Hybrid 2021.11.04.1
[Image: tgBaSx7.png]


RE: FFmpeg ToneMap Greyed Out and VS ToneMap Not Working. - Selur - 09.11.2021

Will try to look at it tomorrow.
Does the Vapoursynth Preview show an error message?

Also something seems to be wrong with the source:
# current color space: YUV420P10, bit depth: 10, resolution: 3840x2160, fps: 9645.45, color matrix: 2020ncl, yuv luminance scale: limited, scanorder: progressive
That frame rate seems wrong. You can try enabling 'Config->Internals->Prefer Original->Frame rate' before loading the source, my guess is that this will help at least with Vapoursynth.

I'll also build a dev version where Hybrid will fallback to the original/stream frame rate if it more than 20 times smaller than the container frame rate.

Cu Selur


RE: FFmpeg ToneMap Greyed Out and VS ToneMap Not Working. - DevSker - 10.11.2021

Hello,
Thank you for the response. I'll attach what VS Preview showed me, also I'd like to add that using the whole source I'm trying to encode works just fine, at least appears to since it started the 1st-pass, but using a sample just to compare the tonemapping against FFmpeg keeps crashing.



Here's the sample I was trying to test: https://files.catbox.moe/jdp5lf.mkv


P.S:
I just checked that I received your PM, but I will leave this information here anyway, maybe it could be of help.

[Image: Saq36DA.png]

Update:
The dev version you've sent me seems to do the trick, however the target size displays a wrong value, it's showing the size if I would use the whole source with the input being just a ~12 seconds sample (The one I've linked on catbox).


RE: FFmpeg ToneMap Greyed Out and VS ToneMap Not Working. - Selur - 10.11.2021

Okay, like I suspected the issue is with the broken input.
The video stream headers of your sample signal totally wrong information:
Video
Count                                    : 380
Count of stream of this kind             : 1
Kind of stream                           : Video
Kind of stream                           : Video
Stream identifier                        : 0
StreamOrder                              : 0
ID                                       : 1
ID                                       : 1
ID in the original source medium         : 4113
ID in the original source medium         : 4113 (0x1011)
Unique ID                                : 512706658063368815
Format                                   : HEVC
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format/Url                               : http://www.itu.int
Commercial name                          : HEVC
Format profile                           : Main 10@L5.1@High
HDR format                               : SMPTE ST 2086
HDR format                               : SMPTE ST 2086, HDR10 compatible
HDR_Format_Commercial                    : HDR10
HDR_Format_Compatibility                 : HDR10
Internet media type                      : video/H265
Codec ID                                 : V_MPEGH/ISO/HEVC
Duration                                 : 12053.000000
Duration                                 : 12 s 53 ms
Duration                                 : 12 s 53 ms
Duration                                 : 12 s 53 ms
Duration                                 : 00:00:12.053
Duration                                 : 00:00:12.053
Bit rate                                 : 49898162
Bit rate                                 : 49.9 Mb/s
Width                                    : 3840
Width                                    : 3 840 pixels
Height                                   : 2160
Height                                   : 2 160 pixels
Sampled_Width                            : 3840
Sampled_Height                           : 2160
Pixel aspect ratio                       : 1.000
Display aspect ratio                     : 1.778
Display aspect ratio                     : 16:9
Frame rate mode                          : VFR
Frame rate mode                          : Variable
Frame rate                               : 9378.163
Frame rate                               : 9 378.163 FPS
Original frame rate                      : 23.976
Original frame rate                      : 23.976 (24000/1001) FPS
FrameRate_Original_Num                   : 24000
FrameRate_Original_Den                   : 1001
Frame count                              : 113035
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Chroma subsampling                       : 4:2:0 (Type 2)
ChromaSubsampling_Position               : Type 2
Bit depth                                : 10
Bit depth                                : 10 bits
Bits/(Pixel*Frame)                       : 0.001
Delay                                    : 125
Delay                                    : 125 ms
Delay                                    : 125 ms
Delay                                    : 125 ms
Delay                                    : 00:00:00.125
Delay, origin                            : Container
Delay, origin                            : Container
Stream size                              : 29405623118
Stream size                              : 27.4 GiB
Stream size                              : 27 GiB
Stream size                              : 27 GiB
Stream size                              : 27.4 GiB
Stream size                              : 27.39 GiB
Language                                 : en
Language                                 : English
Language                                 : English
Language                                 : en
Language                                 : eng
Language                                 : en
Default                                  : Yes
Default                                  : Yes
Forced                                   : No
Forced                                   : No
colour_description_present               : Yes
colour_description_present_Source        : Container / Stream
Color range                              : Limited
colour_range_Source                      : Container / Stream
Color primaries                          : BT.2020
colour_primaries_Source                  : Container / Stream
Transfer characteristics                 : PQ
transfer_characteristics_Source          : Container / Stream
Matrix coefficients                      : BT.2020 non-constant
matrix_coefficients_Source               : Container / Stream
Mastering display color primaries        : BT.2020
MasteringDisplay_ColorPrimaries_Source   : Stream
Mastering display luminance              : min: 0.0050 cd/m2, max: 4000 cd/m2
MasteringDisplay_Luminance_Source        : Stream
Maximum Content Light Level              : 555 cd/m2
MaxCLL_Source                            : Stream
Maximum Frame-Average Light Level        : 384 cd/m2
MaxFALL_Source                           : Stream
Original source medium                   : Blu-ray
especially:
Frame count                              : 113035
Stream size                              : 27.4 GiB
Frame rate mode                          : VFR
Frame rate mode                          : Variable
Frame rate                               : 9378.163
Frame rate                               : 9 378.163 FPS
Not going to write more workarounds for broken content.
Whatever method you used to create your sample it creates broken content.

Cu Selur


RE: FFmpeg ToneMap Greyed Out and VS ToneMap Not Working. - DevSker - 10.11.2021

Thank you for the feedback,
I've used LosslessCut (https://github.com/mifi/lossless-cut) to create that sample, I'll keep the frame rate in mind when something like that occurs again.


RE: FFmpeg ToneMap Greyed Out and VS ToneMap Not Working. - Selur - 10.11.2021

frame rate and count are messed up, you might want to report the issue to the authors of losslesscut, since at least from my point of view such content is broken.


RE: FFmpeg ToneMap Greyed Out and VS ToneMap Not Working. - DevSker - 10.11.2021

And what about FFmpeg ToneMap being greyed out? I don't know how the frame rate would affect that. Seems to happen with any Input, I've tried 5 different ones. Using FFmpeg's CLI worked.

I'll send you a video of how it's behaving right now, it's really weird because FFmpeg's ToneMapping works at first launch, but if I close it and open again it's greyed out...


RE: FFmpeg ToneMap Greyed Out and VS ToneMap Not Working. - shijan - 10.11.2021

DevSker, as it was requested by Selur many times in other threads: "Please do not do full quotes of posts, since it is really annoying to having to scroll to all the previously posted content. "
Simply click "New Reply" button when you post a comment:
[Image: 9thiR7c.jpg]


RE: FFmpeg ToneMap Greyed Out and VS ToneMap Not Working. - DevSker - 11.11.2021

Hello,
Sorry, force of habit, I've fixed the replies.


RE: FFmpeg ToneMap Greyed Out and VS ToneMap Not Working. - DevSker - 11.11.2021

Seems like I'll have to find a workaround and try to spot the cause, thanks for the attention anyway. Undecided