-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Q: Dolby Vision to SDR #9982
Comments
Hi. You should probably use the Pending documentation (tm). I'll put it on my TODO list. |
Great :) (You probably want to use |
Thanks for the tip! Will do when using software encoding. Unfortunately right now dealing with an old not-10bit-encoding-capable-GPU, and need speed over quality ;) |
What you are doing right now is software converting from 10-bit to 8-bit. If you want speed, you should do the conversion on GPU. I propose:
(This has the added bonus of working on all input files) |
Also, if you want speed, you should directly derive the nvdec device from the vulkan device (or vice versa) and map the GPU frame directly to CUDA, instead of downloading to RAM and uploading back to nvdec. |
Yeah. Add hwupload=derive_device=cuda to the end of the filter chain to replace the hwdownload |
Thank you so much to both of you. Those suggestions worked like a charm and transcoding speed increased from 1.52x to 1.94x which is a huge improvement. |
Thanks, but what I meant was to map from [BT.2020, PQ] (HDR) to traditional [BT.709, BT.1886] (SDR). |
I've got a question about the outcoming SDR mkv file regarding mediainfo data:
Any ideas? |
You want the opposite, I think. |
Oh, it's possible that the metadata it's seeing is the dolby vision configuration record, not the actual RPU record? |
Already accomplished with libplacebo. See #9982 (comment). This is my current command:
Same result :(
Sorry, I don't know how to check. Here you'll find the sample once tone-mapped (no audio): https://0x0.st/oZ7N.mkv |
Didn't work, but maybe I'm missing something:
Result: both mediainfo still show "HDR format: Dolby Vision, Version 1.0, dvhe.05.06, BL+RPU" |
All right. Or I could just transcode to mp4 in the first place, which also strips all DoVi record, and saves some steps. I was wondering if there could be a way to do it when transcoding to mkv. |
I had a look at it. Yeah, the dovi metadata is intact in the stream metadata:
Apparently there's no way to suppress writing this configuration record at the moment. I'll look into it (tm) |
@haasn Sorry if this is not directly releated to this issue but I have also been trying to get Dolby Vision HDR to SDR tone-mapping to work on FFmpeg that is built with libplacebo and vulkan enabled. I keep getting this error |
@acedogblast file an FFmpeg issue, this is an error coming from the ffmpeg vulkan code cc @cyanreg |
I have the same issue as @acedogblast , which I reported on ffmpeg trac as https://trac.ffmpeg.org/ticket/10046 |
Hello I tried all of this stuff, waited for a long time, AND IT DID NOT RESOLVE my green video issue. Can you guys give any reason why? |
Hi.
Since last git builds support
--vo=gpu-next
for Dolby Vision reshaping, which by the way works great, I was wondering if it could be possible to dump that tone-mapped displayed version to a file.With
mpv --vo=gpu-next P5_DVtest.mkv --o=SDR.mkv
all you get is the version before tone-mapping applied.P5_DVtest.mkv is a Profile 5 DV sample (no HDR10 fallback).
Greetings.
Log file
output.txt
The text was updated successfully, but these errors were encountered: