Page 8 of 38

Re: Dolby Vision

Posted: 15 Dec 2018, 00:10
by Grencola
does anyone here know how to convert hd-audio to eac3??

mp4 only supports up to dd+ 7.1 lossy audio (eac3/ac4), so if you must have hd-audio then you'll have to choose between it or dolby vision unfortunately. I used XMedia Recode to change hd-audio to eac3. 5.1 and it works great. however, to convert it to eac3 7.1 (+lossy atmos too) apparently you need actual dolby software; Dolby Encoder Suite I think (expensive proprietary stuff).
Hell, even ffmpeg only supports up to 6ch audio :/

this is why getting it tested on MrMC is so important since Apple TV 4k can output hd-audio and even maybe play these files in DV, plus look and run a hell of a lot better than the basic usb file players TV's have built-in :)

Re: Dolby Vision

Posted: 15 Dec 2018, 01:50
by davilla
Grencola wrote: 15 Dec 2018, 00:10 does anyone here know how to convert hd-audio to eac3??

mp4 only supports up to dd+ 7.1 lossy audio (eac3/ac4), so if you must have hd-audio then you'll have to choose between it or dolby vision unfortunately. I used XMedia Recode to change hd-audio to eac3. 5.1 and it works great. however, to convert it to eac3 7.1 (+lossy atmos too) apparently you need actual dolby software; Dolby Encoder Suite I think (expensive proprietary stuff).
Hell, even ffmpeg only supports up to 6ch audio :/

this is why getting it tested on MrMC is so important since Apple TV 4k can output hd-audio and even maybe play these files in DV, plus look and run a hell of a lot better than the basic usb file players TV's have built-in :)
Quite a thread-jack :)

Please, start a new thread, this one is about Dolby Vision.

Re: Dolby Vision

Posted: 15 Dec 2018, 05:46
by Grencola
davilla wrote: 15 Dec 2018, 01:50

Quite a thread-jack :)

Please, start a new thread, this one is about Dolby Vision.
Yea sorry, I was thinking that while submitting that it was getting a little off-topic, basically MrMC is our hope here! cuz if mp4muxer does play nice with you guys, the fact that MrMC would be the first media center to play dolby vision uhd-bd rips and also offer hd-audio as a bonus is pretty ground-breaking! (oppo bd players aside as they're discontinued, insanely exoensive, and not really a media center)

Could anyone here who's now also made a working DV mp4 figure out how to crop a small clip that keeps the dv metadata? if so could you upload it for testing? that would be awesome. I don't know my way around all the freely available tools. I feel as though I should just go buy an ATV 4k and try it out :)

Re: Dolby Vision

Posted: 15 Dec 2018, 10:59
by higher
ABBC3_OFFTOPIC
For a little experiment I encoded the base layer of a DV movie with x265 (to save space) and muxed this with the original enhancement layer and ac3 audio. It plays on the TV as DV and looks identical to the original one but seeking doesn't work. Whenever I try to skip ahead the movie jumps back to the beginning. Pause/play works. Seeking works on PC (mpchc+madvr) but it's damn slow, it takes 2 minutes to skip ahead 30 minutes.
For hd-audio to ac3 use eac3to.

Re: Dolby Vision

Posted: 15 Dec 2018, 15:17
by sorenat
Grencola wrote: 14 Dec 2018, 23:56
uhdmovielover wrote: 14 Dec 2018, 16:18
sorenat wrote: 14 Dec 2018, 13:08 That's great news! May I ask what parameters were used for mp4muxer? I tried to do the similar and used the following parameters: --output-format frag-mp4 --mpeg4-max-frag-duration 2500 --dv-profile 0 --mpeg4-comp-brand mp42,iso6,isom,msdh,dby1 --overwrite

But got the error: Error: For Dolby vision hevc codec type, only setting profile to 2-8 makes sense!

Thanks a lot in advance!
I'm curious as well. I tried the following:

Code: Select all

mp4muxer -i 00011.track_4113.hevc -i 00011.track_4117.hevc --dv-input-es-mode split -i 00011.track_4352.ac3 -o FullDVMovie.mp4 --dv-profile 4 --mpeg4-comp-brand mp42,iso6,isom,msdh,dby1 --overwrite
And I got a file, it registers as Dolby Vision when played both via Plex and via the native player on my LGTV, but it has it has an overwhelming green tint to it, so doesn't look right at all.

My assumption is that the first input file should be the regular movie track, and the second input file is the DV video track (as demuxed from tsmuxer). Also, I wasn't sure what to use for --dv-profile, the options listed are:

Code: Select all

 --dv-profile <arg>  = Sets the Dolby Vision profile. This option is MANDATORY for 
                       DoVi elementary stream: Valid profile values are:
                       0 - dvav.per, BL codec: AVC;    EL codec: AVC;    BL compatibility: SDR/HDR.   
                       1 - dvav.pen, BL codec: AVC;    EL codec: AVC;    BL compatibility: None.      
                       2 - dvhe.der, BL codec: HEVC8;  EL codec: HEVC8;  BL compatibility: SDR/HDR.   
                       3 - dvhe.den, BL codec: HEVC8;  EL codec: HEVC8;  BL compatibility: None.      
                       4 - dvhe.dtr, BL codec: HEVC10; EL codec: HEVC10; BL compatibility: SDR/HDR.   
                       5 - dvhe.stn, BL codec: HEVC10; EL codec: N/A;    BL compatibility: None.      
                       6 - dvhe.dth, BL codec: HEVC10; EL codec: HEVC10; BL compatibility: CTA HDR10. 
                       7 - dvhe.dtb, BL codec: HEVC10; EL codec: HEVC10; BL compatibility: Blue-ray HDR10. 
                       >7 - Reserved
My assumption is that it should be either 2, 4, 6, or 7, but I don't know who to determine what it should be, or if it would ever make a difference.
you guys were doing way more than you needed to :) once you've demuxd your m2ts you should be left with baselayer. hevc, dvlayer. hevc, and audio. ac3.. you literally just run mp4muxer --dv-profile 7 --input-file baselayer.hevc --input-file dvlayer.hevc --input-file audio.ac3 --media-lang eng --output-file dvmovieyay.mp4
Thanks a lot for your help! I did try the parameters on an m2ts file from a Mission Impossible: Fallout rip and have managed successfully produce the mp4 file. Unfortunately, the file is not recognized as DV, but is still playable on my x900f. I had issues with extracting a DV layer (DB Demuxer Pro didn't recognize the DV stream at all and TSMuxer failed all the time until I extracted video streams one at a time) so I have some concerns regarding the quality of that rip. I will try to repeat the results on the Atomic Blonde.

Re: Dolby Vision

Posted: 15 Dec 2018, 19:42
by Grencola
higher wrote: 15 Dec 2018, 10:59
ABBC3_OFFTOPIC
For a little experiment I encoded the base layer of a DV movie with x265 (to save space) and muxed this with the original enhancement layer and ac3 audio. It plays on the TV as DV and looks identical to the original one but seeking doesn't work. Whenever I try to skip ahead the movie jumps back to the beginning. Pause/play works. Seeking works on PC (mpchc+madvr) but it's damn slow, it takes 2 minutes to skip ahead 30 minutes.
For hd-audio to ac3 use eac3to.
if you start a new thread we can discuss further, but eac3to doesn't support 7.1ch or atmos , only 5. 1 :(

Re: Dolby Vision

Posted: 15 Dec 2018, 19:46
by Grencola
sorenat wrote: 15 Dec 2018, 15:17
Thanks a lot for your help! I did try the parameters on an m2ts file from a Mission Impossible: Fallout rip and have managed successfully produce the mp4 file. Unfortunately, the file is not recognized as DV, but is still playable on my x900f. I had issues with extracting a DV layer (DB Demuxer Pro didn't recognize the DV stream at all and TSMuxer failed all the time until I extracted video streams one at a time) so I have some concerns regarding the quality of that rip. I will try to repeat the results on the Atomic Blonde.
that's weird TSMuxer errors, haven't had any issues yet. if your tv can play the LG test files in DV it should play your new mp4 in DV. yea let me know how atomic blonde goes, and I'll try mi:fallout as well. if it works for you, could you make a clip that mrmc folks can test on their ATV's? :)

Re: Dolby Vision

Posted: 16 Dec 2018, 05:16
by Upside-down
You can also add the dolby vision layer to MKVs... If you rip your legally purchased 4k bluray with Makemkv using the whole disk option, you can copy the main *.ts file into MKVtoolix and multiplex both video layers, and the Dolby Atmos tracks into a single MKV file. We just need to find someone who can figure out how to merge the two layers together.

Re: Dolby Vision

Posted: 16 Dec 2018, 07:54
by Grencola
Upside-down wrote: 16 Dec 2018, 05:16 You can also add the dolby vision layer to MKVs... If you rip your legally purchased 4k bluray with Makemkv using the whole disk option, you can copy the main *.ts file into MKVtoolix and multiplex both video layers, and the Dolby Atmos tracks into a single MKV file. We just need to find someone who can figure out how to merge the two layers together.
when multiplexing your ts file it does add both the BL+EL video track, that's true. However, for some reason it applies the same profile for both layers so the EL also becomes [email protected] instead of dvhe, possibly stripping the dv out of it?

Re: Dolby Vision

Posted: 16 Dec 2018, 10:33
by sorenat
Grencola wrote: 15 Dec 2018, 19:46
sorenat wrote: 15 Dec 2018, 15:17
Thanks a lot for your help! I did try the parameters on an m2ts file from a Mission Impossible: Fallout rip and have managed successfully produce the mp4 file. Unfortunately, the file is not recognized as DV, but is still playable on my x900f. I had issues with extracting a DV layer (DB Demuxer Pro didn't recognize the DV stream at all and TSMuxer failed all the time until I extracted video streams one at a time) so I have some concerns regarding the quality of that rip. I will try to repeat the results on the Atomic Blonde.
that's weird TSMuxer errors, haven't had any issues yet. if your tv can play the LG test files in DV it should play your new mp4 in DV. yea let me know how atomic blonde goes, and I'll try mi:fallout as well. if it works for you, could you make a clip that mrmc folks can test on their ATV's? :)
While I'm waiting for the Atomic Blonde I did run few experiments with the Skyscraper. First of all TSMuxer extracted all tracks without any issues, which means that my MI:Fallout rip is definitely off. I managed to combine BL and EL+RPU into a single mp4 file, but unfortunately, not into a single video layer:

Video #1
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Commercial name : HDR10
Format profile : Main [email protected]@High
Codec ID : hev1
Codec ID/Info : High Efficiency Video Coding
Duration : 1 h 42 min
Bit rate : 69.2 Mb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0 (Type 2)
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.348
Stream size : 49.5 GiB (85%)
Default : No
Encoded date : UTC 2018-12-15 19:22:12
Tagged date : UTC 2018-12-15 19:22:12
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Mastering display color primaries : Display P3
Mastering display luminance : min: 0.0050 cd/m2, max: 1000 cd/m2
Maximum Content Light Level : 1000 cd/m2
Maximum Frame-Average Light Level : 986 cd/m2
Codec configuration box : hvcC

Video #2
ID : 2
Format : HEVC
Format/Info : High Efficiency Video Coding
Commercial name : HDR10
Format profile : Main [email protected]@High
Dolby Vision : 1.0, dvhe.07.06, EL+RPU
Codec ID : dvhe
Codec ID/Info : High Efficiency Video Coding with Dolby Vision
Duration : 1 h 42 min
Bit rate : 11.2 Mb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0 (Type 2)
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.226
Stream size : 8.03 GiB (14%)
Default : No
Encoded date : UTC 2018-12-15 19:22:12
Tagged date : UTC 2018-12-15 19:22:12
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Mastering display color primaries : Display P3
Mastering display luminance : min: 0.0050 cd/m2, max: 1000 cd/m2
Codec configuration box : hvcC+dvcC

I can play the file with a Sony built-in video app, but it's recognized as HDR10.

I also ran single DV layer LG demos through a media info app and found the following:

ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main [email protected]@Main
Dolby Vision : 1.0, dvhe.05.09, BL+RPU
Codec ID : dvhe
Codec ID/Info : High Efficiency Video Coding with Dolby Vision
Duration : 1 min 16 s
Bit rate : 28.6 Mb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 60.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.057
Stream size : 261 MiB (98%)
Encoded date : UTC 2017-09-19 18:54:04
Tagged date : UTC 2017-09-19 18:54:04
Codec configuration box : hvcC+dvcC

Where the most interesting part is: Dolby Vision: 1.0, dvhe.05.09, BL+RPU

So I tried to repeat the conversion with a different profile (--dv-profile 5) and while I still got 2 video layers, the Dolby vision string looked very similar to that from LG demos (Dolby Vision: 1.0, dvhe.05.03, BL+RPU) and what is even more exciting a Sony built-in video app recognized it as DV! The bad thing is that video was so dim to the point of being unwatchable.

I'm wondering if it's possible to force mp4muxer to produce dvhe.05.09, BL+RPU.