Possible to keep dovi layer in video track

Post Reply
DAE avatar
Sonic3R
Posts: 27
Joined: Wed Sep 29, 2021 4:02 am

Possible to keep dovi layer in video track

Post by Sonic3R »

Hi,

I want to thanks again for this awesome tool.

There is possibility to keep one video track when demux an UHD that contains DoVi?

Thanks
User avatar
Rocky
Posts: 2569
Joined: Fri Sep 06, 2019 12:57 pm

Possible to keep dovi layer in video track

Post by Rocky »

I don't understand your question. Is something not working?
DAE avatar
Sonic3R
Posts: 27
Joined: Wed Sep 29, 2021 4:02 am

Possible to keep dovi layer in video track

Post by Sonic3R »

Let’s assume an UHD disc that have 2 video tracks: one normal and another that is DoVi

It is possible when Demux to output one single video file instead of two?

I hope I was clear
User avatar
Rocky
Posts: 2569
Joined: Fri Sep 06, 2019 12:57 pm

Possible to keep dovi layer in video track

Post by Rocky »

Still not fully clear. If you just want to demux only the main video, then simply uncheck the dovi stream. If you are asking me to convert dovi profile 7 to profile 5, that is a complex process that goes well beyond simple demuxing. I won't get involved in that. You can try Doom9.
DAE avatar
Sonic3R
Posts: 27
Joined: Wed Sep 29, 2021 4:02 am

Possible to keep dovi layer in video track

Post by Sonic3R »

Hi,

Ok I understand.

I wished to be like MakeMKV which extract one mkv file with DV inside, not as separate track.

Thanks and keep up the good work
User avatar
Rocky
Posts: 2569
Joined: Fri Sep 06, 2019 12:57 pm

Possible to keep dovi layer in video track

Post by Rocky »

I could get code from dovi_tool:

https://github.com/quietvoid/dovi_tool

Scroll down to the "mux" section. The easiest way would be to just invoke the dovi_tool exe.

Not doing a lot of development these days but I'll try to find time for this.

As a work around before I integrate it, just run dovi_tool manually after demuxing. Let me know if that works.
User avatar
Rocky
Posts: 2569
Joined: Fri Sep 06, 2019 12:57 pm

Possible to keep dovi layer in video track

Post by Rocky »

This appears to work just fine:

dovi_tool mux --eos-before-el --bl "16560 PID 1011.265" --el "16560 PID 1015.265"
User avatar
Rocky
Posts: 2569
Joined: Fri Sep 06, 2019 12:57 pm

Possible to keep dovi layer in video track

Post by Rocky »

I corrected a syntax error in the post above.

Also, I have this integrated into DGDemux/DGDemuxGUI and hope to make a release tomorrow.

:salute: quietvoid for dovi_tool under MIT license.

After that, I have a debt to pay to Selur. ;)
User avatar
Curly
Posts: 208
Joined: Sun Mar 15, 2020 11:05 am

Possible to keep dovi layer in video track

Post by Curly »

Ooh, Rocky remembers how to code. Enquiring minds were wondering.
User avatar
Albert
Posts: 23
Joined: Thu Oct 15, 2020 1:20 pm

Possible to keep dovi layer in video track

Post by Albert »

Biology?! No idea what they are talking about, so here:

Image
User avatar
Rocky
Posts: 2569
Joined: Fri Sep 06, 2019 12:57 pm

Possible to keep dovi layer in video track

Post by Rocky »

DGDemux/DGDemuxGUI 64 released with DolbyVision merging (as done by MakeMKV).
DAE avatar
Sonic3R
Posts: 27
Joined: Wed Sep 29, 2021 4:02 am

Possible to keep dovi layer in video track

Post by Sonic3R »

You rock, Rocky !
User avatar
Rocky
Posts: 2569
Joined: Fri Sep 06, 2019 12:57 pm

Possible to keep dovi layer in video track

Post by Rocky »

Thank you, Sir. Let me know if you run into any problems with it.
DAE avatar
dennis
Posts: 44
Joined: Mon Mar 26, 2018 6:00 am

Possible to keep dovi layer in videfsdfsdo track

Post by dennis »

would be great to have option to convert to profile 8 during demux/dovi merge and also mux to mkv (use command line mkvmerge util?). :)
User avatar
Rocky
Posts: 2569
Joined: Fri Sep 06, 2019 12:57 pm

Possible to keep dovi layer in video track

Post by Rocky »

Do you know an appropriate dovi_tool command to do that?
DAE avatar
dennis
Posts: 44
Joined: Mon Mar 26, 2018 6:00 am

Possible to keep dovi layer in video track

Post by dennis »

From DoVi HEVC file:

Code: Select all

dovi_tool.exe -m 2 extract-rpu -i "input.hevc" --rpu-out "output_dovi81_metadata_NOT_CROPPED.bin"
and then you just inject it to the hdr video stream

Code: Select all

dovi_tool.exe inject-rpu -i "hdr_video.hevc" --rpu-in "output_dovi81_metadata_NOT_CROPPED.bin" -o "injected_output.hevc"
then you can delete both demuxed original HEVC STREAMS and leave only injected_output.hevc

and optionally have the option to mux HEVC to MKV using mkvmerge command-line...

Code: Select all

mkvmerge.exe -o "injected_output.mkv" "injected_output.hevc"
and then delete HEVC file also. :)

you can also plot the DoVi RPU L1 metadata into a graph from RPU BIN file..

Code: Select all

dovi_tool.exe plot "output_dovi81_metadata_NOT_CROPPED.bin" -t "Dolby Vision L1 Graph" -o "DoVi_L1_plot.png"
sugested version for dovi_tool 2.0.1, mkvmerge 73.0
User avatar
Rocky
Posts: 2569
Joined: Fri Sep 06, 2019 12:57 pm

Possible to keep dovi layer in video track

Post by Rocky »

input.hevc is BL or EL or merged one or what?

hdr_video.hevc is BL or EL or merged one or what?
DAE avatar
dennis
Posts: 44
Joined: Mon Mar 26, 2018 6:00 am

Possible to keep dovi layer in video track

Post by dennis »

Rocky wrote:
Fri Feb 03, 2023 7:08 am
input.hevc is BL or EL or merged one or what?

hdr_video.hevc is BL or EL or merged one or what?
Image

input.hevc = stream ID 1015
hdr_video.hevc = stream ID 1011
User avatar
Rocky
Posts: 2569
Joined: Fri Sep 06, 2019 12:57 pm

Possible to keep dovi layer in video track

Post by Rocky »

Thank you, dennis. Should be straightforward to do this.
Post Reply