that would look terrible on the oled
Dolby Vision now possible through MP4 Mux.
-
deadchip12
- Posts: 379
- Joined: Thu May 02, 2019 2:49 am
Re: Dolby Vision now possible through MP4 Mux.
Re: Dolby Vision now possible through MP4 Mux.
That doesn't happen often anyway. You are making a problem about something that really isn't one in everyday use.deadchip12 wrote: ↑Thu Jan 30, 2025 2:47 pmthat would look terrible on the oled
The other option is that everything is hidden behind the black bars (unless you have a very new OLED TV).
LG OLED65G1RLA / Samsung HW-Q990D / Sony UBP-X800M2 / Ugoos AM6B+ (CE with CPM Build)
-
darrrkmanxxx
- Posts: 93
- Joined: Mon Apr 13, 2020 9:55 am
Re: Dolby Vision now possible through MP4 Mux.
guys, did you saw the l1 plot from dark fate Fra-Me-STo-R release, looks very weird, right?


-
RESET_9999
- Posts: 2406
- Joined: Mon Aug 05, 2019 7:12 pm
Re: Dolby Vision now possible through MP4 Mux.
unless those spikes are just small detail-less specular, this movie will clip highlights on the bluray players or ugoos + old CE.
-
darrrkmanxxx
- Posts: 93
- Joined: Mon Apr 13, 2020 9:55 am
Re: Dolby Vision now possible through MP4 Mux.
because of cmv2.9?RESET_9999 wrote: ↑Fri Jan 31, 2025 12:02 pmunless those spikes are just small detail-less specular, this movie will clip highlights on the bluray players or ugoos + old CE.
-
RESET_9999
- Posts: 2406
- Joined: Mon Aug 05, 2019 7:12 pm
Re: Dolby Vision now possible through MP4 Mux.
No, because the bluray players and non-cpm CE builds are altering the RPU. They limit the metadata values to the mastering display which causes clipping.
-
darrrkmanxxx
- Posts: 93
- Joined: Mon Apr 13, 2020 9:55 am
Re: Dolby Vision now possible through MP4 Mux.
ah yes, sorry. You've mentioned that before.RESET_9999 wrote: ↑Fri Jan 31, 2025 3:43 pmNo, because the bluray players and non-cpm CE builds are altering the RPU. They limit the metadata values to the mastering display which causes clipping.
-
Han_Xinchen
- Posts: 1
- Joined: Sun Feb 02, 2025 2:36 pm
Re: Dolby Vision now possible through MP4 Mux.
@RESET_9999 -- I did a bit of testing of scene cuts in Resolve and re-confirmed what you found --- that Resolve is decoding HEVC inaccurately and the source needs to be transcoded to ProRes first.
So, when transcoding to ProRes with FFMPEG, should we be concerned about HW decoding accuracy?
And if one doesn't need any other AviSynth filters for a workflow, do you think there's an accuracy advantage to indexing (with either FFMS2 or DGIndexNV)?
TL;DR ---
Since ProRes is a fast and efficient codec that can benefit from a fast decoder, HW decoding can speed up the transcoding by ~2x overall. I get 60-80 fps with SW decoding and 140-160 fps with HW decoding using prores_ks, profile 3, qscale 11.
I made a patch to ENCODERS_PRORES_GUI.bat in DoVi_Scripts to use DGIndexNV instead of FFMS2 when an NVIDIA GPU is detected and saw accurate results, but then I wondered if indexing is really needed if no other transforms are needed on the video.
So, I started testing using NVDec directly with FFMPEG (-hwaccel cuda) without indexing the file and I saw another 1-2x speed improvement (25-50 fps) without AviSynth and DGIndexNV indexing.
So there's a pretty big benefit to HW decoding in general, and to cutting out additional processing steps and software, if the process can be trusted without those steps.
Testing ---
To compare, I used StaxRip to index and preview the source mkv file, remuxed mp4 file, and ProRes output files using FFMS2. I also indexed and compared to the source files using DGIndexNV.
With the mkv files, Resolve would show clips with Media Offline. With the mp4 files, Resolve wouldn't show Media Offline, but viewing the frames using its decoding/indexing would be inaccurate compared to FFMS2/DGIndexNV.
When I indexed the transcoded ProRes files with FFMS2, the encodes using FFMPEG were frame-accurate to the source, while the encodes using Resolve showed the frame inaccuracies that Reslove showed in its decoding/indexing.
All of the indexing/decoding methods using FFMPEG were frame-accurate.
So, when transcoding to ProRes with FFMPEG, should we be concerned about HW decoding accuracy?
And if one doesn't need any other AviSynth filters for a workflow, do you think there's an accuracy advantage to indexing (with either FFMS2 or DGIndexNV)?
TL;DR ---
Since ProRes is a fast and efficient codec that can benefit from a fast decoder, HW decoding can speed up the transcoding by ~2x overall. I get 60-80 fps with SW decoding and 140-160 fps with HW decoding using prores_ks, profile 3, qscale 11.
I made a patch to ENCODERS_PRORES_GUI.bat in DoVi_Scripts to use DGIndexNV instead of FFMS2 when an NVIDIA GPU is detected and saw accurate results, but then I wondered if indexing is really needed if no other transforms are needed on the video.
So, I started testing using NVDec directly with FFMPEG (-hwaccel cuda) without indexing the file and I saw another 1-2x speed improvement (25-50 fps) without AviSynth and DGIndexNV indexing.
So there's a pretty big benefit to HW decoding in general, and to cutting out additional processing steps and software, if the process can be trusted without those steps.
Testing ---
- HEVC in mkv container, to use as the source for FFMPEG
- HEVC remuxed to mp4 container, to use as the source for Resolve
- ProRes 422 HQ transcode with prores_ks SW encode and SW decode on Windows (using FFMPEG, FFMS2 indexing)
- ProRes 422 HQ transcode with prores_ks SW encode and NVDec HW decode on Windows (using FFMPEG, L-SMASH-Works indexing, LWLibavVideoSource(..., prefer_hw=1))
- ProRes 422 HQ transcode with prores_ks SW encode and NVDec HW decode on Windows (using FFMPEG, DGIndexNV indexing)
- ProRes 422 HQ transcode with prores_ks SW encode and NVDec HW decode on Windows (using FFMPEG, -hwaccel cuda)
- ProRes 422 HQ transcode with Apple silicon (M1 Max) HW decode+encode (using Resolve)
- ProRes 422 HQ transcode with Apple silicon (M1 Max) HW decode+encode (using FFMPEG)
- Resolve 19.1 on Windows
- Resolve 19.1 on macOS
To compare, I used StaxRip to index and preview the source mkv file, remuxed mp4 file, and ProRes output files using FFMS2. I also indexed and compared to the source files using DGIndexNV.
With the mkv files, Resolve would show clips with Media Offline. With the mp4 files, Resolve wouldn't show Media Offline, but viewing the frames using its decoding/indexing would be inaccurate compared to FFMS2/DGIndexNV.
When I indexed the transcoded ProRes files with FFMS2, the encodes using FFMPEG were frame-accurate to the source, while the encodes using Resolve showed the frame inaccuracies that Reslove showed in its decoding/indexing.
All of the indexing/decoding methods using FFMPEG were frame-accurate.
Code: Select all
+---------------+--------------+-------+--------------+-------+-------------------+
| Indexing | Decoding | HW/SW | Encoding | HW/SW | Speed vs realtime |
+---------------+--------------+-------+--------------+-------+-------------------+
| FFMS2 | libavcodec | SW | prores_ks | SW | 2-3x |
| L-SMASH-Works | NVDec | HW | prores_ks | SW | 3-4x |
| DGIndexNV | NVDec | HW | prores_ks | SW | 5-6x |
| None | NVDec | HW | prores_ks | SW | 6-7x |
| None | VideoToolbox | HW | VideoToolbox | HW | 7-8x |
+---------------+--------------+-------+--------------+-------+-------------------+
Last edited by nekno on Wed Mar 12, 2025 1:08 am, edited 1 time in total.
-
RESET_9999
- Posts: 2406
- Joined: Mon Aug 05, 2019 7:12 pm
Re: Dolby Vision now possible through MP4 Mux.
Yes, encoding to prores without indexing is probably fine(at least in the tests I did) and it is faster, indeed but I still prefer indexing for peace of mind.I made a patch to ENCODERS_PRORES_GUI.bat in DoVi_Scripts to use DGIndexNV instead of FFMS2 when an NVIDIA GPU is detected and saw accurate results, but then I wondered if indexing is really needed if no other transforms are needed on the video.
In the non-gui version of dovi_scripts(latest beta only), you can disable indexing for the prores encoding workflow 8-2-3
line 251
::choose if you want to index your input before the prores encoding in 3-1 and 8-2-3 default=NO
set disable_indexing=NO
https://github.com/R3S3t9999/DoVi_Scrip ... ussions/57
Re: Dolby Vision now possible through MP4 Mux.
Sounds good, thanks. I'll check it out. I might want to keep indexing, too. I'll waste a lot of time worrying and doing quality control to ensure the decoding is accurate without indexing.RESET_9999 wrote: ↑Mon Feb 03, 2025 3:11 amYes, encoding to prores without indexing is probably fine(at least in the tests I did) and it is faster, indeed but I still prefer indexing for peace of mind.I made a patch to ENCODERS_PRORES_GUI.bat in DoVi_Scripts to use DGIndexNV instead of FFMS2 when an NVIDIA GPU is detected and saw accurate results, but then I wondered if indexing is really needed if no other transforms are needed on the video.
https://github.com/R3S3t9999/DoVi_Scrip ... ussions/57
Per the discussion thread on your repo, using ffmpeg -hwaccel cuda won't work with AviSynth input, but the second-fastest option would still be to use DGIndexNV.
So you can get the benefits of both indexing and HW acceleration.
I'm happy to share my changes to ENCODERS_PRORES_GUI.bat and/or could help add support for it to CLI versions of DoVi_Scripts if you'd like the help.
-
darrrkmanxxx
- Posts: 93
- Joined: Mon Apr 13, 2020 9:55 am
Re: Dolby Vision now possible through MP4 Mux.
ther's an app called kdenlive, which handles hevc in mkv pretty well and has this:
https://userbase.kde.org/Kdenlive/Manua ... SceneSplit
https://kdenlive.org/en/
Is it possible to utilize it for cm_analyzer?
https://userbase.kde.org/Kdenlive/Manua ... SceneSplit
https://kdenlive.org/en/
Is it possible to utilize it for cm_analyzer?
Re: Dolby Vision now possible through MP4 Mux.
Looks like 10-bit/12-bit color is on the midterm roadmap but not currently supported.darrrkmanxxx wrote: ↑Mon Feb 03, 2025 8:14 amther's an app called kdenlive, which handles hevc in mkv pretty well and has this:
https://userbase.kde.org/Kdenlive/Manua ... SceneSplit
https://kdenlive.org/en/
Is it possible to utilize it for cm_analyzer?
Re: Dolby Vision now possible through MP4 Mux.
Are there any one click programs that’s don’t involve command line to compress 4k Dolby vision mkv files and preserve the Dolby vision? Handbreak claims to support it but will only convert it to hdr 10bit.
If not is there a way to drink them down to db50 or bd25 blank media for backup without losing the Dolby version?
If not is there a way to drink them down to db50 or bd25 blank media for backup without losing the Dolby version?
-
darrrkmanxxx
- Posts: 93
- Joined: Mon Apr 13, 2020 9:55 am
Re: Dolby Vision now possible through MP4 Mux.
bummer, but maybe someday.nekno wrote: ↑Mon Feb 03, 2025 10:11 pmLooks like 10-bit/12-bit color is on the midterm roadmap but not currently supported.darrrkmanxxx wrote: ↑Mon Feb 03, 2025 8:14 amther's an app called kdenlive, which handles hevc in mkv pretty well and has this:
https://userbase.kde.org/Kdenlive/Manua ... SceneSplit
https://kdenlive.org/en/
Is it possible to utilize it for cm_analyzer?
I actually use kdenlive all the time to find out frame times and sync sound, since I'm most of the time on macos