Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se

 

Go Back   Doom9's Forum > Video Encoding > High Efficiency Video Coding (HEVC)

Reply
 
Thread Tools Search this Thread Display Modes
Old 18th January 2026, 23:16   #1661  |  Link
en6ads
Registered User
 
Join Date: Nov 2024
Posts: 74
Quote:
Originally Posted by prudentavocado View Post
Damn, so what do you choose? I suppose whatever looks pleasing to the eyes on your display?

I guess p8 remux > p5 > p8 encode
There is one other option: Mode 8-2-6. With DEE you could transcode P7 FEL (12-bit YCbCr) to P5 (10-bit ICtCp, about 11.5-bit YCbCr equivalent).

However with lossless TIFF it takes absolutely ages and massive amounts of disk space. But it retains the 12-bit FEL (almost), and can have the same high encode rate of the UHD.

I have yet to encode a full movie using this method, only 10 minute chunks. But the result is really good. If you have a home server with loads of disk space I can recommend at least trying it.
en6ads is offline   Reply With Quote
Old 19th January 2026, 00:54   #1662  |  Link
Kuler087
Registered User
 
Kuler087's Avatar
 
Join Date: Aug 2021
Location: Canada
Posts: 801
You can also encode any DV source to P7 (FEL or MEL) with the latest beta(workflow 8-2-7). Add these x265 plugin to your DEE folder. You also need to replace \DoVi_Scripts\tools\DEE\python_scripts\encode_dvmezz_to_dv7.py

Quote:
::8-2-7 profile 7 encoding mode. (default= no_mapping_with_fel) Choices are: 'no_mapping_with_mel', 'no_mapping_with_fel', 'map_to_1000_nits_with_fel', 'map_to_1000_nits_with_mel', 'map_to_600_nits_with_fel'
set usecase=no_mapping_with_fel
::BL bitrate in 8-2-7 P7 FEL encoding
set BL_rate=25000
::BL buffer in 8-2-7 P7 FEL encoding
set BL_buff=99000
::EL bitrate in 8-2-7 P7 FEL encoding. MEL bitrate / buffer is hardcoded to 500 / 550
set EL_rate=3000
::EL buffer in 8-2-7 P7 FEL encoding. MEL bitrate / buffer is hardcoded to 500 / 550
set EL_buff=5000
__________________
DoVi_Scripts //// Dolby Vision Stuff (more tabs below)
LG OLED G5 77'' + 7.2.4 Denon AVR + Ugoos AM6Bplus + Kaleidescape Strato E
Sorry for my English
Kuler087 is offline   Reply With Quote
Old 19th January 2026, 02:13   #1663  |  Link
prudentavocado
Registered User
 
Join Date: Jan 2025
Posts: 13
Quote:
Originally Posted by en6ads View Post
There is one other option: Mode 8-2-6. With DEE you could transcode P7 FEL (12-bit YCbCr) to P5 (10-bit ICtCp, about 11.5-bit YCbCr equivalent).
Hmm, I guess I would have just assumed this is what the streaming services are already doing
prudentavocado is offline   Reply With Quote
Old 19th January 2026, 02:20   #1664  |  Link
Kuler087
Registered User
 
Kuler087's Avatar
 
Join Date: Aug 2021
Location: Canada
Posts: 801
Well, streaming services get the 12 or 10 bit mezzanine source from the studios; they don't convert P7 FEL to P5.
__________________
DoVi_Scripts //// Dolby Vision Stuff (more tabs below)
LG OLED G5 77'' + 7.2.4 Denon AVR + Ugoos AM6Bplus + Kaleidescape Strato E
Sorry for my English
Kuler087 is offline   Reply With Quote
Old 22nd January 2026, 20:34   #1665  |  Link
Gigabit
Registered User
 
Join Date: Jan 2026
Posts: 6
Hi,

Have you considered using http://avisynth.nl/index.php/LSMASHSource when doing the baking via DoViBaker as I believe this supports Intel Quick Sync?
Gigabit is offline   Reply With Quote
Old 22nd January 2026, 21:08   #1666  |  Link
Kuler087
Registered User
 
Kuler087's Avatar
 
Join Date: Aug 2021
Location: Canada
Posts: 801
No sorry man, I'm not really interested in adding a third frame indexer in the encoder workflows.
__________________
DoVi_Scripts //// Dolby Vision Stuff (more tabs below)
LG OLED G5 77'' + 7.2.4 Denon AVR + Ugoos AM6Bplus + Kaleidescape Strato E
Sorry for my English
Kuler087 is offline   Reply With Quote
Old 22nd January 2026, 22:00   #1667  |  Link
Gigabit
Registered User
 
Join Date: Jan 2026
Posts: 6
Quote:
Originally Posted by Kuler087 View Post
No sorry man, I'm not really interested in adding a third frame indexer in the encoder workflows.
Is there a way I can use it manually? Can I edit the script at the end to use it?
Gigabit is offline   Reply With Quote
Old 22nd January 2026, 22:05   #1668  |  Link
Kuler087
Registered User
 
Kuler087's Avatar
 
Join Date: Aug 2021
Location: Canada
Posts: 801
Quote:
Originally Posted by Gigabit View Post
Is there a way I can use it manually? Can I edit the script at the end to use it?
The Script Workflow 8-2 would be complicated to edit manually because it includes a lot of other options, but you can simply follow the dovi_baker instructions, it’s not too complicated.

https://github.com/erazortt/DoViBaker
__________________
DoVi_Scripts //// Dolby Vision Stuff (more tabs below)
LG OLED G5 77'' + 7.2.4 Denon AVR + Ugoos AM6Bplus + Kaleidescape Strato E
Sorry for my English
Kuler087 is offline   Reply With Quote
Old 22nd January 2026, 22:58   #1669  |  Link
Gigabit
Registered User
 
Join Date: Jan 2026
Posts: 6
Quote:
Originally Posted by Kuler087 View Post
The Script Workflow 8-2 would be complicated to edit manually because it includes a lot of other options, but you can simply follow the dovi_baker instructions, it’s not too complicated.

https://github.com/erazortt/DoViBaker
I had a look at your script and it seems to be doing a lot more than DoViBaker so I wondered if you were doing something extra?

I am trying to "bake" a FEL movie ("Saving Private Ryan").

I have the MKV of the source movie. From what I can understand, I need to load this into `dovi_tool` and use:

- extract-rpu to extract the RPU
- demux to output the base layer and enhancement layer as separate files

From what I can see, I then provide these files to `DoViBaker` via an AviSynth/AviSynth+ script:

bl = LWLibavVideoSource("bl.hevc", format="YUV420P10", stream_index=0)

el = LWLibavVideoSource("el.hevc", format="YUV420P10", stream_index=1)

DoViBaker(bl, el, rpu="RPU.bin")

Is that...it?
Gigabit is offline   Reply With Quote
Old 22nd January 2026, 23:40   #1670  |  Link
Kuler087
Registered User
 
Kuler087's Avatar
 
Join Date: Aug 2021
Location: Canada
Posts: 801
yes pretty much. Lsmash and ffms2 can read the rpu from the stream so you only need

bl = LWLibavVideoSource("bl.hevc", format="YUV420P10", stream_index=0)

el = LWLibavVideoSource("el.hevc", format="YUV420P10", stream_index=1)

DoViBaker(bl,el)

but this output will be 16bit RGB PQ. You have to convert it to YUV420P10 bt2020 then feed that script to the encoder.
__________________
DoVi_Scripts //// Dolby Vision Stuff (more tabs below)
LG OLED G5 77'' + 7.2.4 Denon AVR + Ugoos AM6Bplus + Kaleidescape Strato E
Sorry for my English
Kuler087 is offline   Reply With Quote
Old 23rd January 2026, 01:12   #1671  |  Link
Gigabit
Registered User
 
Join Date: Jan 2026
Posts: 6
Quote:
Originally Posted by Kuler087 View Post
yes pretty much. Lsmash and ffms2 can read the rpu from the stream so you only need

bl = LWLibavVideoSource("bl.hevc", format="YUV420P10", stream_index=0)

el = LWLibavVideoSource("el.hevc", format="YUV420P10", stream_index=1)

DoViBaker(bl,el)

but this output will be 16bit RGB PQ. You have to convert it to YUV420P10 bt2020 then feed that script to the encoder.
Thanks mate, how do I do the conversion?
Gigabit is offline   Reply With Quote
Old 23rd January 2026, 01:20   #1672  |  Link
Kuler087
Registered User
 
Kuler087's Avatar
 
Join Date: Aug 2021
Location: Canada
Posts: 801
ConvertBits(10)
ConvertToYUV420(matrix="2020")
__________________
DoVi_Scripts //// Dolby Vision Stuff (more tabs below)
LG OLED G5 77'' + 7.2.4 Denon AVR + Ugoos AM6Bplus + Kaleidescape Strato E
Sorry for my English
Kuler087 is offline   Reply With Quote
Old 25th January 2026, 10:27   #1673  |  Link
Colek
Registered User
 
Join Date: Jan 2019
Posts: 3
Just a small bug report - if filename contains an exclamation mark, at least in the Mode 1 it will be incorrectly reported as HDR10 only.

Had an issue figuring it out with one of the files, after renaming it, it worked just fine and detected P7.
Colek is offline   Reply With Quote
Old 25th January 2026, 14:07   #1674  |  Link
Kuler087
Registered User
 
Kuler087's Avatar
 
Join Date: Aug 2021
Location: Canada
Posts: 801
right input with ! will never work in any workflow because it's used to delimit a variable.

for %%i in (!video_path!) do set filename=%%~ni
for %%i in (!video_path!) do set filepath=%%~di%%~pi
for %%i in (!video_path!) do set fileext=%%~xi
__________________
DoVi_Scripts //// Dolby Vision Stuff (more tabs below)
LG OLED G5 77'' + 7.2.4 Denon AVR + Ugoos AM6Bplus + Kaleidescape Strato E
Sorry for my English
Kuler087 is offline   Reply With Quote
Old 26th January 2026, 02:21   #1675  |  Link
prudentavocado
Registered User
 
Join Date: Jan 2025
Posts: 13
Code:
Bit rate                       : 23.1 Mb/s
Mastering display luminance    : min: 0.0050 cd/m2, max: 4000 cd/m2
Maximum Content Light Level    : 305 cd/m2
Maximum Frame-Average Light Le : 10 cd/m2
Code:
Bit rate                       : 18.0 Mb/s
Mastering display luminance    : min: 0.0001 cd/m2, max: 1000 cd/m2
Maximum Content Light Level    : 1000 cd/m2
Maximum Frame-Average Light Le : 928 cd/m2

Trying to decide between two P8 proper group encodes (both should be from the UHD blu ray as primary video source), mostly similar but noticed this one difference in the light levels, should I put much stock into these values for P8s?
prudentavocado is offline   Reply With Quote
Old 26th January 2026, 14:16   #1676  |  Link
Kuler087
Registered User
 
Kuler087's Avatar
 
Join Date: Aug 2021
Location: Canada
Posts: 801
just measure the video in 6-2 without letterbox and edit it to the right values with workflow 9-9
__________________
DoVi_Scripts //// Dolby Vision Stuff (more tabs below)
LG OLED G5 77'' + 7.2.4 Denon AVR + Ugoos AM6Bplus + Kaleidescape Strato E
Sorry for my English
Kuler087 is offline   Reply With Quote
Old 27th January 2026, 14:51   #1677  |  Link
Enet47
Registered User
 
Join Date: Jun 2022
Posts: 74
Only found out about this wonderful tool yesterday. It took me a minute to find out then work out how to use it. But I've finally converted my first FEL mkv to DV 8.1 Question: How do I check that it actually worked?
Enet47 is offline   Reply With Quote
Old 27th January 2026, 14:54   #1678  |  Link
Kuler087
Registered User
 
Kuler087's Avatar
 
Join Date: Aug 2021
Location: Canada
Posts: 801
You can do some screenshot comparisons in Workflow 7-2 or 7-1
__________________
DoVi_Scripts //// Dolby Vision Stuff (more tabs below)
LG OLED G5 77'' + 7.2.4 Denon AVR + Ugoos AM6Bplus + Kaleidescape Strato E
Sorry for my English
Kuler087 is offline   Reply With Quote
Old 27th January 2026, 16:55   #1679  |  Link
Enet47
Registered User
 
Join Date: Jun 2022
Posts: 74
Quote:
Originally Posted by Kuler087 View Post
You can do some screenshot comparisons in Workflow 7-2 or 7-1
Thanks. Hopefully my final dumb question. I get that there is a list of FEL files that can't be converted without baking FEL into BL. But does that mean that I can convert the other DV FEL files to 8.1 without loosing FEL?
Enet47 is offline   Reply With Quote
Old 27th January 2026, 17:05   #1680  |  Link
Kuler087
Registered User
 
Kuler087's Avatar
 
Join Date: Aug 2021
Location: Canada
Posts: 801
You always lose FEL when re-encoding to Profile 8. When you bake FEL, you retain all bitrate, grain, brightness, and any differences relative to the BL but the 12bit depth precision is lost forever.
You should always bake FEL when re-encoding, regardless of whether FEL makes a visible difference in that specific title. It does not slow down processing, so there is no reason not to bake it.
__________________
DoVi_Scripts //// Dolby Vision Stuff (more tabs below)
LG OLED G5 77'' + 7.2.4 Denon AVR + Ugoos AM6Bplus + Kaleidescape Strato E
Sorry for my English
Kuler087 is offline   Reply With Quote
Reply

Tags
batch scripts, dolby vision processing, dovi_scripts

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 16:17.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.