-
-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dolby Vision - run as single layer #190
Comments
Can you provide me this demo video. i try |
Hi, i download sample from dolby, there is 4K Dolby Vision, problem is that color is pink and incorrectly detects dolby vision. |
This video is missing some parameters for video color. So there is something wrong with the displayed color. I also have this problem with vlc, but there is no problem with Apple's quicktime player. I'm sorry that I haven't found a solution for this problem. I will continue to try |
Duplicate of #150 |
Please look at that: Dolby Vision is implemented in FFmpeg+mpv (IPTPQc2 colorspace plus MMR reshaping, output to PQ surface works, reference with LG C9, that is reference v4 Dolby Vision implementation from Dolby), no support for (F)EL or dynamic metadata. Do you think this is the solution for us? HDR displays: SDR gamma 2.2 display:
|
@kingslay check this: Here the mixing of BL and EL layer is done. |
In your FFMPEG build not have -> dovi_rpu.c Inital commit for DolbiVision in FFMPEG lavc: Implement Dolby Vision RPU parsing Contains some annoying machinery to persist these values in between Since the distinction matters greatly for parsing the color matrix Notable omissions / deviations:
|
i had upgrade ffmpeg to 5.1. it had dovi_rpu |
I downloaded the latest version from git and it's not there. dae3e8d#diff-e4e468a875016df080685ba4caa2a240bbe532939c226b5b349e88f17e41f179 |
you can run |
commit 5da0776 |
not dovi_rpu.h . is dovi_rpu.o |
/KSPlayer/Sources/Libavcodec.xcframework/ios-arm64_arm64e/Libavcodec.framework/Libavcodec:dovi_rpu.o: |
Then I don't understand why it doesn't work, DV detection and correct matrix setting. |
If DV's detection is correct, will Dolby Vision be displayed on TV without problems? @Alanko5 |
yes, we know it will happen, but it's the first step... can you advise how to do it? |
No, if DV dual layer or DV profile 5, the colors are wrong. HDR colors are correct. |
do you have any ideas? |
Reading HDR metadata, for renderer/reshaper.
|
我现在接入了libplacebo。能否提供一个测试url。看下还会不会有问题 |
I will try to find a video link for you @kingslay |
@kingslay I am downloading movies with different DV profiles. I want to be sure before I post something. I will wait until Monday and let you know about the results |
Hello @kingslay , with the help of @JeremTM93 , he tried quite a few movies and series on AppleTV and we found a correlation when the colours are greenish and purplish. It's always happening when the Dolby Vision is “profile 5” (more precisely dvhe.05.06 BL+RPU) with bt.1886 gamma encoded in bt.601-525 regardless of the level (limited or full). // you can refer to this post too #348 // When you open the links (provided via e-mail) via Infuse, the app creates a “fake DV output” and the colours looks normal. The TV info says that the videos are DV. Please only make changes to “DV Profile 5” because other profiles work normally :) |
when you are done with all updates, can you please update the testflight app; @JeremTM93 is the best person that can run all DV profile tests and let you know if something is wrong |
@kingslay is performance a issue on Apple TV 4K 2022 ? on Apple TV 4K 2017 , is basically unusable I also test it on mpv |
I was about to write something similar: on ios device the colour output is very good however almost every 7-8 seconds I have almost 100 frame drops |
@karelrooted 你的意思是,你对mpv 配置了vo=gpu-next & --profile=sw-fast 之后。视频播放就很流畅了,是不是。 |
yes,with --profile=fast,video play smoothly on Apple TV 4K 2017 If performance is a issue, may be we need to render the decoded frame from videotoolbox directly with libplacebo render(like mpv's gpunext) (ffplay's latest git also has libplacebo render, I did't check if it has videotoolbox and libplacebo interlop) |
目前我用的画面渲染有两个 AVSampleBufferDisplayLayer和CAMetalLayer。所以要解决这个性能问题的话,那有两个技术方案:
|
or we can wait for ffmpeg to fix videotoolbox and libplacebo interlop, if "-hwaccel=videotoolbox -hwupload=derive_device=vulkan" works,then performance issue is gone the libplacebo part that make prpfile 5 color correct is vf=libplacebo=apply_dolbyvision=1, which is enable by default, so just use vf=libplacebo is enough for our purpose did you test it on Apple TV 4K 2022? does it work on new more powerful device? |
@kingslay asking just in case; have you tried the code suggested above? ( |
有的,但是这样是无法运行的。可能要等待ffmpeg支持了才可以 |
目前ffmpeg 6.1.1还是不支持把vulkan当作解码器。我看ffmpeg的最新代码,是有开始支持用vulkan来进行渲染了。可以在等下一个版本 |
FFmpeg 7.0 现在支持了吗? |
FFmpeg 7.0的vulkan解码,要求vulkan要是动态库,不能是静态库。并且是naked的动态库。但是苹果要求是要用xcframework格式的动态库,两个有冲突。有个方式是要修改ffmpeg里面的动态库加载。我还在尝试 |
Hello, to have an update to FfMpeg 7, you have to pay $1000, for the first, you will have exclusivity for two months, then, anyone wishing to have this update to 7.0 in their application, must pay $500. |
不用的。在lgpl分支目前已经免费提供了FF mpeg7.0了 |
我看杜比官网显示ios设备原生支持P5,不知道是不是真的 |
苹果可能是支持的。但是苹果没有开放对应的api的话,那我们还是无法正确显示p5. |
@kingslay k神,请教一个问题,ksplayer使用displayLayer播放杜比P8是不偏色的。请问最终显示的效果是兼容成HDR播放的还是完整P8规格播放的? |
我对这个也不是很清楚。但是我感觉应该是兼容成HDR来播放的。#727 这边有一个问题,提到没有根据动态信息进行调整亮度,并且播放器没有点亮Dolby Vision。 |
@kingslay K神,进展怎么样了,期待中 |
most of the DV content plays very well under MPV with the Swift wrapper that can be found in github |
目前通过ffmpeg的代码可以把这个库改成是静态链接的方式。但是解码用vulkan的话,渲染也要用vulkan。这个改动就比较大了。还没改好。 |
我已添加过滤但最终会崩溃在
资源:https://kodi.wiki/view/Samples :Dolby Vision Mystery Box (Profile 5) 绕过验证:In Xcode, in the "Product" Menu, go to "Scheme", then "Edit Scheme...". In the left panel select "Run (Debug)" and in Diagnostic tab uncheck "API Validation" under Metal settings |
debug 会crash,在release就不会crash了。 |
现在我的app已经解决这个问题了。你可以用最新的testflight包试下。 |
Hi, after fix 188 I try run Dolby Vision movie, there is problem with colors. I read about this problem and I read that Infuse use fake DV and run only HDR layer 10bit. Could you run only single HDR layer for DV video ?? Thank you
The text was updated successfully, but these errors were encountered: