Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
RESET_9999
Posts: 2383
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

deadchip12 wrote:
Sun Nov 21, 2021 2:55 pm
Are there a lot of those cropped dolby vision films? Are those films mostly from streaming services instead of theater/bluray discs?
yeah, movies and tv shows from streaming services. AppleTV+ and Amazon Prime crop all their content.
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
SteamyUncle
Posts: 2
Joined: Fri Nov 19, 2021 1:09 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by SteamyUncle »

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 ?


RESET_9999 wrote:
Sun Nov 21, 2021 2:47 pm
deadchip12 wrote:
Sun Nov 21, 2021 10:56 am
With which movies are you seeing grey letterbox bars? The letterbox bars are properly black on the c9 internal player but grey on the x700?
This has been discussed many times in this thread.... DV content that is cropped (no black bars) will have grey black bars on the x700 / oppo and probably all the bluray players.
There's nothing we can do about it but since cropped content usually comes without lossless audio, I just use my C8 internal plex app with ARC to send the audio to my AVR.
daddy wrote:
Sun Nov 21, 2021 12:00 pm

Code: Select all

Général
Nom complet                              : Y:\4k\Shang Chi et la Légende des Dix Anneaux [e-ac3][4k][DV].mp4


you do what you want but muxing an IMAX DV with a non-IMAX video is a bad idea because the IMAX L1/L2 metadata contains values from DV analysis that includes IMAX area and this is something an L5 edit cannot fix.

see: https://slow.pics/c/5kVYmtO7

imax L1 metadata from Dolby analysis:
Image

Bluray Remux L1 metadata from Dolby analysis:
Image
RESET_9999
Posts: 2383
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

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.
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
Svetlyi
Posts: 1
Joined: Sun Nov 21, 2021 7:33 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Svetlyi »

Hi people. I am new to this business. Tell me, is there an instruction on how to add a few additional tracks and subtitles to profile 5 web-dl in mp4 or mkv format to get web-dl to mp4? I'll be very grateful
RESET_9999
Posts: 2383
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

Svetlyi wrote:
Sun Nov 21, 2021 7:39 pm
Hi people. I am new to this business. Tell me, is there an instruction on how to add a few additional tracks and subtitles to profile 5 web-dl in mp4 or mkv format to get web-dl to mp4? I'll be very grateful
maybe there are better ways nowadays but I used to use mp4box

Code: Select all

mp4box.exe -add X:\P5.DV.mp4#1 -add X:\P5.DV.mp4#2 -add X:\audio.mp4#audio:lang=fr-FR -add X:\subtitles.srt#subtitle:lang=fr-FR
#1 being the video and #2 the original audio if you want to keep it.
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:
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: 2383
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.
Post Reply