Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
comorla45
Posts: 13
Joined: Wed Dec 01, 2021 11:32 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by comorla45 »

Buzzie wrote:
Mon Nov 29, 2021 1:59 pm
Anybody that can help me?

I am trying to accomplish the following :

What i would like to achieve with Dovi tool or any other is to download a WEB-DL from any source, take out the DV metadata and add it to the UHD remux so that those versions have DV too.

What i did so far are the following steps:

c:\Dolby-Vision-Tools\ffmpeg\bin\ffmpeg.exe -i "c:\temp\DV_WEB-DL.mkv" -c:v copy -vbsf hevc_mp4toannexb -f hevc c:\temp\DV.hevc

extracted the video from the UHD and named it HDR10.hevc

c:\Dolby-Vision-Tools\dovi_tool.exe -m 3 extract-rpu c:\temp\DV.hevc

made a edited.json file for the RPU

c:\Dolby-Vision-Tools\dovi_tool.exe editor -i c:\temp\RPU.bin -j c:\temp\edited.json --rpu-out c:\temp\RPU-edited.bin

c:\Dolby-Vision-Tools\dovi_tool.exe inject-rpu -i c:\temp\HDR10.hevc --rpu-in c:\temp\RPU-edited.bin

Lastly copied the HDR10.hevc file to the extracted contents of the UHD and used mkvtoolnix to make a new MKV
This one did not have the DV info.
What am i doing wrong?

Thanks again !
Yesterday I was playing a bit around with this "hybrid" format and I will describe what I have done. Be aware however, that I lack all knowledge regarding multimedia files, this was just my 4 hour experiment for fun.

1. I got two identical copies of Web-DL Foundation E01, one in MP4 Dolby Vision, second in MKV HDR10 format.
2. I extracted audio using tsMuxeR.
3. I used FFMPEG to extract DV.hevc and HDR10.hevc
4. Using DoVi Tool I extracted RPU from DV.hevc.
5. I injected RPU into HDR10.hevc using DoVi Tool.
6. I muxed all together (HDR10_DV.hevc + audio) into M2TS cointainer.

Why M2TS? My LG OLED will only recognize Dolby Vision in MP4 or M2TS container, not in MKV.
Using this muxed hybrid hdr10-dv +ac3 audio file in M2TS container, I managed to get DV recognized by my LG TV and at the same time fallback to HDR10 on my phone that does not support DV.

I had to use newest night release of tsMuxeR, regular release displayed error when opening hdr10_dv.hevc video stream. This is what MediaInfo says about this hybrid file:
Image

@Buzzie
I can not yet reply to DM, so I will post my commands here:
Command to extract DV.hevc:

Code: Select all

ffmpeg.exe -y -i DV_file.mp4 -an -c:v copy -vbsf hevc_mp4toannexb -f hevc DV.hevc
\
Command to extract RPU:

Code: Select all

dovi_tool.exe -m 3 extract-rpu DV.hevc
Command to extract HDR10.hevc:

Code: Select all

ffmpeg -i HDR_file.mkv -c:v copy hdr.hevc
Command to inject RPU into HDR10:

Code: Select all

dovi_tool.exe inject-rpu -i hdr.hevc --rpu-in RPU.bin -o output.hevc
All files were in the same folder (ffmpeg, dovi tools, mp4, mkv etc) so no paths are specified, just filenames.
Buzzie
Posts: 18
Joined: Tue Oct 20, 2020 8:01 am

Re: Dolby Vision now possible through MP4 Mux.

Post by Buzzie »

comorla45 wrote:
Thu Dec 02, 2021 8:57 am
Buzzie wrote:
Mon Nov 29, 2021 1:59 pm
Anybody that can help me?

I am trying to accomplish the following :

What i would like to achieve with Dovi tool or any other is to download a WEB-DL from any source, take out the DV metadata and add it to the UHD remux so that those versions have DV too.

What i did so far are the following steps:

c:\Dolby-Vision-Tools\ffmpeg\bin\ffmpeg.exe -i "c:\temp\DV_WEB-DL.mkv" -c:v copy -vbsf hevc_mp4toannexb -f hevc c:\temp\DV.hevc

extracted the video from the UHD and named it HDR10.hevc

c:\Dolby-Vision-Tools\dovi_tool.exe -m 3 extract-rpu c:\temp\DV.hevc

made a edited.json file for the RPU

c:\Dolby-Vision-Tools\dovi_tool.exe editor -i c:\temp\RPU.bin -j c:\temp\edited.json --rpu-out c:\temp\RPU-edited.bin

c:\Dolby-Vision-Tools\dovi_tool.exe inject-rpu -i c:\temp\HDR10.hevc --rpu-in c:\temp\RPU-edited.bin

Lastly copied the HDR10.hevc file to the extracted contents of the UHD and used mkvtoolnix to make a new MKV
This one did not have the DV info.
What am i doing wrong?

Thanks again !
Yesterday I was playing a bit around with this "hybrid" format and I will describe what I have done. Be aware however, that I lack all knowledge regarding multimedia files, this was just my 4 hour experiment for fun.

1. I got two identical copies of Web-DL Foundation E01, one in MP4 Dolby Vision, second in MKV HDR10 format.
2. I extracted audio using tsMuxeR.
3. I used FFMPEG to extract DV.hevc and HDR10.hevc
4. Using DoVi Tool I extracted RPU from DV.hevc.
5. I injected RPU into HDR10.hevc using DoVi Tool.
6. I muxed all together (HDR10_DV.hevc + audio) into M2TS cointainer.

Why M2TS? My LG OLED will only recognize Dolby Vision in MP4 or M2TS container, not in MKV.
Using this muxed hybrid hdr10-dv +ac3 audio file in M2TS container, I managed to get DV recognized by my LG TV and at the same time fallback to HDR10 on my phone that does not support DV.

I had to use newest night release of tsMuxeR, regular release displayed error when opening hdr10_dv.hevc video stream. This is what MediaInfo says about this hybrid file:
Image

@Buzzie
I can not yet reply to DM, so I will post my commands here:
Command to extract DV.hevc:

Code: Select all

ffmpeg.exe -y -i DV_file.mp4 -an -c:v copy -vbsf hevc_mp4toannexb -f hevc DV.hevc
\
Command to extract RPU:

Code: Select all

dovi_tool.exe -m 3 extract-rpu DV.hevc
Command to extract HDR10.hevc:

Code: Select all

ffmpeg -i HDR_file.mkv -c:v copy hdr.hevc
Command to inject RPU into HDR10:

Code: Select all

dovi_tool.exe inject-rpu -i hdr.hevc --rpu-in RPU.bin -o output.hevc
All files were in the same folder (ffmpeg, dovi tools, mp4, mkv etc) so no paths are specified, just filenames.
Thanks pal !!

I got it to work.
First it didnt work when i tried to make an MKV......but with m2ts and nightly tsmuxer it worked.
But since i am taking out the DV metadata and add it to MKV Remux i had to use mkvtoolnix but it didnt work.
I was still using an old version so i downloaded the latest version and bam !!

Captain America Civil War in 2160 with Dolby Vision Remux :)
comorla45
Posts: 13
Joined: Wed Dec 01, 2021 11:32 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by comorla45 »

Thats great to hear! Can you share more about your setup? Do you play via Plex, from USB or some other method? What kind of TV do you have? Thanks!

In my case I use Plex to stream to my TV and mobile phone.
Buzzie
Posts: 18
Joined: Tue Oct 20, 2020 8:01 am

Re: Dolby Vision now possible through MP4 Mux.

Post by Buzzie »

comorla45 wrote:
Fri Dec 03, 2021 2:05 pm
Thats great to hear! Can you share more about your setup? Do you play via Plex, from USB or some other method? What kind of TV do you have? Thanks!

In my case I use Plex to stream to my TV and mobile phone.
Sure !

I use Kodi on my Nvidia Shield 2019 Pro to watch on my LG C1 tv
DolbyVisionFTW
Posts: 19
Joined: Tue Feb 02, 2021 2:49 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by DolbyVisionFTW »

Buzzie wrote:
Sat Dec 04, 2021 1:26 pm
I use Kodi on my Nvidia Shield 2019 Pro to watch on my LG C1 tv
Which version of kodi do you use that supports Dolby Vision playback?

Thanks.
Buzzie
Posts: 18
Joined: Tue Oct 20, 2020 8:01 am

Re: Dolby Vision now possible through MP4 Mux.

Post by Buzzie »

DolbyVisionFTW wrote:
Sat Dec 04, 2021 6:22 pm
Buzzie wrote:
Sat Dec 04, 2021 1:26 pm
I use Kodi on my Nvidia Shield 2019 Pro to watch on my LG C1 tv
Which version of kodi do you use that supports Dolby Vision playback?

Thanks.
I use Kodi 19.3 from this site.
Its an altered version of Kodi that installs next to the Google Play Store version so you can easily test it

https://www.kodinerds.net/index.php/Thr ... /?pageNo=1
DolbyVisionFTW
Posts: 19
Joined: Tue Feb 02, 2021 2:49 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by DolbyVisionFTW »

Buzzie wrote:
Sat Dec 04, 2021 9:05 pm
I use Kodi 19.3 from this site.
Its an altered version of Kodi that installs next to the Google Play Store version so you can easily test it
Thank you. And do you know if it supports playback of all versions of Dolby Vision (both 4K UHD Blu-ray and streaming platforms) that get discussed in this thread?
fox0910
Posts: 4
Joined: Fri Sep 03, 2021 6:13 am

Re: Dolby Vision now possible through MP4 Mux.

Post by fox0910 »

DolbyVisionFTW wrote:
Sat Dec 04, 2021 11:41 pm
Buzzie wrote:
Sat Dec 04, 2021 9:05 pm
I use Kodi 19.3 from this site.
Its an altered version of Kodi that installs next to the Google Play Store version so you can easily test it
Thank you. And do you know if it supports playback of all versions of Dolby Vision (both 4K UHD Blu-ray and streaming platforms) that get discussed in this thread?
It's depend of your Android TV.
Kodi only sends video to ATV and it play it by hardware.
I.e. my Sony TV (xf9005) can play profile 5 only (from streaming platform).
Buzzie
Posts: 18
Joined: Tue Oct 20, 2020 8:01 am

Re: Dolby Vision now possible through MP4 Mux.

Post by Buzzie »

DolbyVisionFTW wrote:
Sat Dec 04, 2021 11:41 pm
Buzzie wrote:
Sat Dec 04, 2021 9:05 pm
I use Kodi 19.3 from this site.
Its an altered version of Kodi that installs next to the Google Play Store version so you can easily test it
Thank you. And do you know if it supports playback of all versions of Dolby Vision (both 4K UHD Blu-ray and streaming platforms) that get discussed in this thread?
I havent watched much movies lately but the last UHD Bluray Remux movies i watched played fine except for the Audio drop outs but that has been fixed.
What problems do you have?
chros
Posts: 102
Joined: Sun Sep 20, 2020 8:36 am

Re: Dolby Vision now possible through MP4 Mux.

Post by chros »

RESET_9999 wrote:
Sat Oct 09, 2021 3:54 pm
I even prefer my Shield with the red push for p8 cropped content(no red push with p5).
I'm looking for a device for playing back mkv with losless audio and p5/p7mel/p8 DoVi video with frame rate matching from 1Mbps network.
Do you know any that works flawlessly?
If not, can you highlight the flaws that you know of?
Thanks
RESET_9999
Posts: 2080
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

chros wrote:
Sun Dec 05, 2021 5:06 pm
I'm looking for a device for playing back mkv with losless audio
I tried the zidoo z9x which looked promising at first but after watching a couple of injected p8 movies, I noticed that this device is not really reliable.
Sometimes the RPU doesn't work at all, sometimes the rpu goes out of sync in the middle of a movie, sometimes playback stops... I couldn't trust it anymore so I sold it. Ugoos am6 is garbage so I'm out of solution ATM.

so right now I'm using:

p7 FEL / p8 / p5 + lossless audio = sony x700
cropped p8 / p5 + lossy audio = C8 plex internal app and ARC.
cropped p8 / p5 + lossless audio = Shield / plex
chros
Posts: 102
Joined: Sun Sep 20, 2020 8:36 am

Re: Dolby Vision now possible through MP4 Mux.

Post by chros »

RESET_9999 wrote:
Sun Dec 05, 2021 5:57 pm
chros wrote:
Sun Dec 05, 2021 5:06 pm
I'm looking for a device for playing back mkv with losless audio
I tried the zidoo z9x which looked promising at first but after watching a couple of injected p8 movies, I noticed that this device is not really reliable.
Sometimes the RPU doesn't work at all, sometimes the rpu goes out of sync in the middle of a movie, sometimes playback stops... I couldn't trust it anymore so I sold it. Ugoos am6 is garbage so I'm out of solution ATM.

so right now I'm using:

p7 FEL / p8 / p5 + lossless audio = sony x700
cropped p8 / p5 + lossy audio = C8 plex internal app and ARC.
cropped p8 / p5 + lossless audio = Shield / plex
Thanks for the quick reply! About Shield:
- no issues with p5 mkv?
- what about p7 MEL mkv?
- does it trigger TV-led DoVi on C8 and not player-led, right? :)
- all this using custom 19.3 Kodinerds build?
RESET_9999
Posts: 2080
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

chros wrote:
Sun Dec 05, 2021 6:46 pm
Thanks for the quick reply! About Shield:
- no issues with p5 mkv?
- what about p7 MEL mkv?
- does it trigger TV-led DoVi on C8 and not player-led, right? :)
- all this using custom 19.3 Kodinerds build?
The shield is very stable with DV mkv, at least with p8/p5... I never watched a p7 movie on it and yes it supports TV-LED.
I never tried kodi but plex works flawlessly on my end.

the colors are only accurate with profile 5 though. That's why I try to use it the less I can but if they ever fix it, this will be by far the best device for MEL DV + lossless audio,
chros
Posts: 102
Joined: Sun Sep 20, 2020 8:36 am

Re: Dolby Vision now possible through MP4 Mux.

Post by chros »

RESET_9999 wrote:
Sun Dec 05, 2021 7:43 pm
chros wrote:
Sun Dec 05, 2021 6:46 pm
Thanks for the quick reply! About Shield:
- no issues with p5 mkv?
- what about p7 MEL mkv?
- does it trigger TV-led DoVi on C8 and not player-led, right? :)
- all this using custom 19.3 Kodinerds build?
The shield is very stable with DV mkv, at least with p8/p5... I never watched a p7 movie on it and yes it supports TV-LED.
I never tried kodi but plex works flawlessly on my end.

the colors are only accurate with profile 5 though. That's why I try to use it the less I can but if they ever fix it, this will be by far the best device for MEL DV + lossless audio,
Cheers, then I get one and test it with Kodi and Plex as well.
Misterkanister
Posts: 1
Joined: Sun Dec 05, 2021 8:24 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Misterkanister »

Hello,

im a very beginner in this topic, but maybe someone can help. I have read a lot, but i dont get it:

I have a LG C1 and want to watch a Bluray ISO via USB/HDD. If i mount the ISO the format says: M2TS

What are the steps to watch this bluray on my TV with Dolby Vision?

Thank you!
Post Reply