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 7th September 2021, 17:20   #41  |  Link
quietvoid
Registered User
 
Join Date: Jan 2019
Location: Canada
Posts: 583
Quote:
Originally Posted by Boulder View Post
So this would be just a case of running dovi_tool -m 2 -c extract-rpu to get the RPU file for the x265 encoding part?
Yes, normally.
__________________
LG C2 OLED | GitHub Projects
quietvoid is offline   Reply With Quote
Old 11th September 2021, 11:17   #42  |  Link
Balling
Registered User
 
Join Date: Feb 2020
Posts: 577
You can just use ffmpeg -i file.mp4 -strict unofficial file.mp4

You can also change mp4 brand with -brand.

That will preserve DoVi sidedata and will play on LG TVs, triggering Dolby Vision icon.

DoVi support commit needed: https://github.com/FFmpeg/FFmpeg/com...d4f5f95b7bf8f3
Balling is offline   Reply With Quote
Old 12th October 2021, 14:58   #43  |  Link
Nico8583
Registered User
 
Join Date: Jan 2010
Location: France
Posts: 851
Quote:
Originally Posted by quietvoid View Post
Yes it's normal, only profile 7 requires the EL (enhancement layer), which is a separate video track.
Hi,
Another question about that.
MakeMKV can make a single track profile 7 with BL+EL+RPU but profile 7 is a separate tracks ?! How can it do that ? Is it a real supported format ?Thanks !
Nico8583 is offline   Reply With Quote
Old 12th October 2021, 15:05   #44  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,402
Quote:
Originally Posted by Nico8583 View Post
MakeMKV can make a single track profile 7 with BL+EL+RPU but profile 7 is a separate tracks ?! How can it do that ? Is it a real supported format ?Thanks !
Such muxes no longer conform to 'Profile 7'...
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Old 12th October 2021, 15:16   #45  |  Link
quietvoid
Registered User
 
Join Date: Jan 2019
Location: Canada
Posts: 583
Quote:
Originally Posted by Nico8583 View Post
Hi,
Another question about that.
MakeMKV can make a single track profile 7 with BL+EL+RPU but profile 7 is a separate tracks ?! How can it do that ? Is it a real supported format ?Thanks !
It just adds the second track NALUs as type 63 (regular HEVC NALUs) and type 62 (RPU). All of this is added after every slice in the BL (HDR10 stream).

Quote:
Originally Posted by SeeMoreDigital View Post
Such muxes no longer conform to 'Profile 7'...
Not quite, it is still conformant as a "Combo Dolby Vision stream in a single Dolby Vision PID".
Quote:
Originally Posted by Dolby® Vision Streams Within the MPEG-2 Transport Stream Format
Combo Dolby Vision stream containing the BL, EL and RPU substreams
or BL and RPU substreams shall be carried as a regular AVC/HEVC
stream using the T-STD model.
__________________
LG C2 OLED | GitHub Projects
quietvoid is offline   Reply With Quote
Old 12th October 2021, 15:20   #46  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,402
Quote:
Originally Posted by quietvoid View Post
Not quite, it is still conformant as a "Combo Dolby Vision stream in a single Dolby Vision PID".
Surely our friends over at Dolby have created a new profile number for such muxes
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Old 12th October 2021, 15:21   #47  |  Link
quietvoid
Registered User
 
Join Date: Jan 2019
Location: Canada
Posts: 583
Another profile isn't necessary, this is just another way to carry the information.
__________________
LG C2 OLED | GitHub Projects
quietvoid is offline   Reply With Quote
Old 12th October 2021, 15:30   #48  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,402
Quote:
Originally Posted by quietvoid View Post
Another profile isn't necessary, this is just another way to carry the information.
That does surprise me. It's not like Dolby to make things simple!
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Old 12th October 2021, 18:02   #49  |  Link
Nico8583
Registered User
 
Join Date: Jan 2010
Location: France
Posts: 851
Thanks for these informations. So what is the better way to keep DoVi ? Profile 7 like MakeMKV ? And do you think it could be possible to add this way to DoVi tool ? Thanks.
Nico8583 is offline   Reply With Quote
Old 12th October 2021, 18:30   #50  |  Link
quietvoid
Registered User
 
Join Date: Jan 2019
Location: Canada
Posts: 583
Quote:
Originally Posted by Nico8583 View Post
Thanks for these informations. So what is the better way to keep DoVi ? Profile 7 like MakeMKV ? And do you think it could be possible to add this way to DoVi tool ? Thanks.
MakeMKV would still be the simplest way, since it supports both discs and existing dual track MKVs.
Maybe one day dovi_tool can mux both tracks, but it would probably only support the raw streams as input.
__________________
LG C2 OLED | GitHub Projects
quietvoid is offline   Reply With Quote
Old 12th October 2021, 21:10   #51  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,402
Quote:
Originally Posted by Nico8583 View Post
Thanks for these informations. So what is the better way to keep DoVi ? Profile 7 like MakeMKV ? And do you think it could be possible to add this way to DoVi tool ? Thanks.
What's the make/model of your playback device and TV?
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Old 12th October 2021, 22:59   #52  |  Link
Nico8583
Registered User
 
Join Date: Jan 2010
Location: France
Posts: 851
@quietvoid : Thanks, I would like to make an automated process so MakeMKV is not the best way for me. Is there a quality or compatibility difference between MakeMKV output (BL + EL + RPU in a single track) and dovi_tool (profile 7 BL + EL to single track profile 8.1) from an UHD BD source ?
Edit : The purpose is to encode to x265.
@SeeMoreDigital : Currently a Samsung QLED so without DoVi support but I plan to buy a LG or Sony later so I would like to create my MKV with HDR10+ and DoVi support. My playback device is a Nvidia Shield 2019 Pro currently.

Last edited by Nico8583; 12th October 2021 at 23:11.
Nico8583 is offline   Reply With Quote
Old 13th October 2021, 00:25   #53  |  Link
quietvoid
Registered User
 
Join Date: Jan 2019
Location: Canada
Posts: 583
Quote:
Originally Posted by Nico8583 View Post
@quietvoid : Thanks, I would like to make an automated process so MakeMKV is not the best way for me.
MakeMKV can be used in CLI, something like this:
Code:
makemkvcon mkv file:/path/to/disc 1
Quote:
Originally Posted by Nico8583 View Post
Is there a quality or compatibility difference between MakeMKV output (BL + EL + RPU in a single track) and dovi_tool (profile 7 BL + EL to single track profile 8.1) from an UHD BD source ?
Edit : The purpose is to encode to x265.
If you plan on encoding with x265, I'm not sure how smooth the process will be if you want to keep the EL.
Otheriwse, the RPU can be used with x265 directly.

In the end, quality depends on the final playback. Only UHD disc players support profile 7 correctly, anything else is going to be the equivalent of profile 8.1.
Because the EL is not used at all. So you should keep that in mind.
__________________
LG C2 OLED | GitHub Projects
quietvoid is offline   Reply With Quote
Old 13th October 2021, 23:40   #54  |  Link
Nico8583
Registered User
 
Join Date: Jan 2010
Location: France
Posts: 851
Thanks quietvoid again
I would like to not use MakeMKV because while is in a beta state it's free but when the final version will be released I don't know. So I just found yusesope's tool (last GAMMA version) and I can read it can do the same. So I will try it as soon as possible.
The BL+EL+RPU mux into a single track (like yusesope or MakeMKV do) would be a great improvment in dovi_tool
Nico8583 is offline   Reply With Quote
Old 14th October 2021, 16:44   #55  |  Link
Nico8583
Registered User
 
Join Date: Jan 2010
Location: France
Posts: 851
I just looked more at dovi_tool usage but the source needs to be a single track dual layer ? So a track from MakeMKV ?
Nico8583 is offline   Reply With Quote
Old 14th October 2021, 16:58   #56  |  Link
quietvoid
Registered User
 
Join Date: Jan 2019
Location: Canada
Posts: 583
Quote:
Originally Posted by Nico8583 View Post
I just looked more at dovi_tool usage but the source needs to be a single track dual layer ? So a track from MakeMKV ?
For what command?
The RPU, for UHD sources, is usually in the 2nd video track, which you can get by demuxing the m2ts.
That video can be used to extract the RPU.
__________________
LG C2 OLED | GitHub Projects
quietvoid is offline   Reply With Quote
Old 14th October 2021, 19:13   #57  |  Link
Nico8583
Registered User
 
Join Date: Jan 2010
Location: France
Posts: 851
To convert an UHD Blu Ray to profile 8.1. It supports only M2TS as input ? What about if a playlist contains multiple M2TS ?
Same question to extract RPU from an UHD Blu Ray in order to encode with x265 ? And do you if it's possible to encode while keeping both HDR10+ and DoVi metadata ? Thanks.
Nico8583 is offline   Reply With Quote
Old 14th October 2021, 21:08   #58  |  Link
quietvoid
Registered User
 
Join Date: Jan 2019
Location: Canada
Posts: 583
Quote:
Originally Posted by Nico8583 View Post
To convert an UHD Blu Ray to profile 8.1. It supports only M2TS as input ?
No, it supports any container for HEVC but you need to use ffmpeg to pipe the data, there are examples in the readme.

Quote:
Originally Posted by Nico8583 View Post
What about if a playlist contains multiple M2TS ?
You need to merge them into a single file first.

Quote:
Originally Posted by Nico8583 View Post
Same question to extract RPU from an UHD Blu Ray in order to encode with x265 ?
Same principle as previous, you just need to mux the whole title and then use ffmpeg with dovi_tool.

Quote:
Originally Posted by Nico8583 View Post
And do you if it's possible to encode while keeping both HDR10+ and DoVi metadata ? Thanks.
Yes, I explained this already here: https://forum.doom9.org/showthread.p...41#post1934341
__________________
LG C2 OLED | GitHub Projects
quietvoid is offline   Reply With Quote
Old 14th October 2021, 21:30   #59  |  Link
Nico8583
Registered User
 
Join Date: Jan 2010
Location: France
Posts: 851
Thanks again for all your answers.
So if I want to extract RPU from an UHD BD (FEL or MEL so 2 tracks) to use it with x265, I don't need to use MakeMKV but I can use "ffmpeg -i input.wantiwant -c:v copy -vbsf hevc_mp4toannexb -f hevc - | dovi_tool -m 2 extract-rpu - -o RPU.bin" ?
Because the doc says "Extracts Dolby Vision RPU from an single track dual layer encoded file."
Thanks !
Nico8583 is offline   Reply With Quote
Old 14th October 2021, 21:40   #60  |  Link
quietvoid
Registered User
 
Join Date: Jan 2019
Location: Canada
Posts: 583
Quote:
Originally Posted by Nico8583 View Post
Thanks again for all your answers.
So if I want to extract RPU from an UHD BD (FEL or MEL so 2 tracks) to use it with x265, I don't need to use MakeMKV but I can use "ffmpeg -i input.wantiwant -c:v copy -vbsf hevc_mp4toannexb -f hevc - | dovi_tool -m 2 extract-rpu - -o RPU.bin" ?
Because the doc says "Extracts Dolby Vision RPU from an single track dual layer encoded file."
Thanks !
Yes, you explicitly need to demux/pipe the video track which contains the RPU, so the EL.
If it's a single track containing both (such as what MakeMKV produces), then there's only one track so the examples work fine.

I will fix the documentation.
__________________
LG C2 OLED | GitHub Projects
quietvoid is offline   Reply With Quote
Reply

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 03:46.


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