Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
Mattl0
Posts: 37
Joined: Mon Apr 26, 2021 6:57 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Mattl0 »

RESET_9999 wrote:
Sun Nov 21, 2021 6:53 pm
SteamyUncle wrote:
Sun Nov 21, 2021 5:11 pm
OK. Thanks a lot !
Any way to recode with added black bars maybe ? Pretty simple in general... Do you have any pointers to do it in this DV context?
Because, I am in fact in the same boat regarding these movies...normally all gravy with C9 internal player - I find the DV presentation slightly better on it than on the M9702 in fact - with eARC to HW-Q950T..except, of course, for this effing "file not recognized" issue after one launch.
Are you encountering this issue on the C8 as well with DV/DD+Atmos mp4's ?
Well, I'm not sure if it can be done with profile 5 content but with HDR10 base layer DV (P8) content , yes you can add the black bars with staxrip with some basic script I'm sure you can find somewhere on doom9. still re-encoding though.

I don't have any issue on the C8/plex with DD+ atmos via ARC. But I've been watching mostly TS files and not mp4. I know mp4 is very unstable on the Shield/plex.
Do you think it is better with ts on the x800m2?
RESET_9999
Posts: 2406
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

Mattl0 wrote:
Fri Nov 26, 2021 8:45 am
Do you think it is better with ts on the x800m2?
TS playback is much better than MP4 on the x700, so yes I assume it's the same with the x800m2
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
Mattl0
Posts: 37
Joined: Mon Apr 26, 2021 6:57 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Mattl0 »

RESET_9999 wrote:
Fri Nov 26, 2021 12:07 pm
Mattl0 wrote:
Fri Nov 26, 2021 8:45 am
Do you think it is better with ts on the x800m2?
TS playback is much better than MP4 on the x700, so yes I assume it's the same with the x800m2

Thanks!I was remuxing all dovi in mp4. It will be much faster directly in ts.
chros
Posts: 102
Joined: Sun Sep 20, 2020 8:36 am

Re: Dolby Vision now possible through MP4 Mux.

Post by chros »

quietvoid wrote:
Mon Nov 15, 2021 3:03 pm
You can try this sample: https://mega.nz/file/cY1gEZzQ#eJIRMpZ2X ... PaGtY_35gU
The eagle's beak looks noticeably better in the internal player compared to the Firestick for me.

Next step is probably to try figuring out what's happening and if it can be prevented.
Yes, it looks slightly different via stick4k, but that's what I saw with other contents as well, not sure why.
Was this the 10.000 nits version or the 1000/4000 one?

On a different note, Stacey here mentioned again, that there is a setting (I guess in the RPU) with which the DoVi tonemapping can be turned off, do you know which one?
Here is a calibration pattern sample, that should be like it.
This way I guess we can create calibration samples from hdr10 ones.
quietvoid
Posts: 377
Joined: Sun Apr 19, 2020 4:15 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by quietvoid »

chros wrote:
Sun Nov 28, 2021 11:39 am
Yes, it looks slightly different via stick4k, but that's what I saw with other contents as well, not sure why.
Was this the 10.000 nits version or the 1000/4000 one?

On a different note, Stacey here mentioned again, that there is a setting (I guess in the RPU) with which the DoVi tonemapping can be turned off, do you know which one?
Here is a calibration pattern sample, that should be like it.
This way I guess we can create calibration samples from hdr10 ones.
That was the 10 000 nits version.

I'm not sure what flags would actually disable tonemapping.
IIRC an empty profile 8 RPU like those created by 'generate' are tonemapping every detail, but usually with a dimmer APL.

We'll probably have to wait for the new disc, unless someone tries to ask Stacey how it works.
Buzzie
Posts: 18
Joined: Tue Oct 20, 2020 8:01 am

Re: Dolby Vision now possible through MP4 Mux.

Post by Buzzie »

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 !
chros
Posts: 102
Joined: Sun Sep 20, 2020 8:36 am

Re: Dolby Vision now possible through MP4 Mux.

Post by chros »

quietvoid wrote:
Sun Nov 28, 2021 1:30 pm
chros wrote:
Sun Nov 28, 2021 11:39 am
Yes, it looks slightly different via stick4k, but that's what I saw with other contents as well, not sure why.
Was this the 10.000 nits version or the 1000/4000 one?

On a different note, Stacey here mentioned again, that there is a setting (I guess in the RPU) with which the DoVi tonemapping can be turned off, do you know which one?
Here is a calibration pattern sample, that should be like it.
This way I guess we can create calibration samples from hdr10 ones.
That was the 10 000 nits version.

I'm not sure what flags would actually disable tonemapping.
IIRC an empty profile 8 RPU like those created by 'generate' are tonemapping every detail, but usually with a dimmer APL.

We'll probably have to wait for the new disc, unless someone tries to ask Stacey how it works.
Thanks, so you didn't see anything related in the attached sample?
quietvoid
Posts: 377
Joined: Sun Apr 19, 2020 4:15 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by quietvoid »

chros wrote:
Mon Nov 29, 2021 3:24 pm
Thanks, so you didn't see anything related in the attached sample?
Am I supposed to check every RPU frame?
There's nothing indicating a change in the video itself. It's just a static patch.

The metadata suggests the same thing.
chros
Posts: 102
Joined: Sun Sep 20, 2020 8:36 am

Re: Dolby Vision now possible through MP4 Mux.

Post by chros »

quietvoid wrote:
Mon Nov 29, 2021 5:44 pm
chros wrote:
Mon Nov 29, 2021 3:24 pm
Thanks, so you didn't see anything related in the attached sample?
Am I supposed to check every RPU frame?
There's nothing indicating a change in the video itself. It's just a static patch.

The metadata suggests the same thing.
No, you aren't, at least this is what I thought. Thanks for checking!
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
Post Reply