For Dolby Vision + Atmos:
Here's my success story for Gemini Man 2019 which is a 60fps movie which plays much more fluent.
I'm using Fedora 31 Linux but I've also posted windows links
Tools:
- ffmpeg - compiled from latest git (Windows build:
https://ffmpeg.zeranoe.com/builds/)
- yusesope - tool V3:
https://www.makemkv.com/forum/viewtopic ... 335#p85413
- eac3to portable version with wine -
https://www.videohelp.com/software/eac3to
- tsmuxer modified for DV by a5180007/justdan96 - compiled from his github
https://github.com/justdan96/tsMuxer (Windows build:
https://bintray.com/justdan96/tsMuxer/t ... UI-Nightly) (Original forum thread:
http://forum.doom9.org/showthread.php?t=176668&page=31)
Use the latest nightly tsMuxerGUI from this link, it's more recent compared the one posted a few pages back! and a5180007 also added support for eac3 dolby digital plus! (only 5.1)
First I demux the original bluray (will only work if I compile the latest FFMpeg git from source):
Code: Select all
ffmpeg -i bluray:/path/to/my/bluray -map 0:0 -c copy ./BL.hevc -map 0:1 -c copy ./EL.hevc -map 0:2 -c:a copy -strict -2 ./atmos.mp4
Now I have:
BL.hevc - Base Layer
EL.hevc - Enhanced Layer
atmos.mp4 - Dolby TrueHD Atmos audio
Now I use yusescope V3 tool to create a single layer DV file:
Code: Select all
python src/bl_el_rpu_builder.py -bl ./BL.hevc -el ./EL.hevc -of gemini_dv.hevc -mode 1
Now I also have:
gemini_dv.hevc - Full movie Single Layer DV
Now I use eac3to Gui to convert the atmos.mp4 to a compatible truehd+ac3 track for use with TSMuxeR:
- Click
Input File and select
atmos.mp4
- Under
Track Input and Output format change "
ac3" to "
thd+ac3" then click
Add
- In the bottom click
RUN CL and wait
When finished you will have a "
atmos.mp4_.thd+ac3" file, rename this to "
atmos.ac3"
Now launch justdan96's version of TsMuxerGUI then add your movie file: "
gemini_dv.hevc" and audio file: "
atmos.ac3".
Click Start and then you can copy the output .ts file to your Plex/Emby server.
When I try to play the TrueHD Atmos track Emby will start down-converting the audio (losing the DV metadata), this is probably because my LG C8 does not support e-ARC, so it cannot send high definition audio to my amp. This causes the movie to play in HDR10.
Selecting the AC3 audio instead works and will trigger Dolby Vision, so perhaps somebody with a C9 or nVidia Shield could try this method and test whether Atmos audio will work.
Two questions remain from my side:
1. What's the difference between mode 1 and 2? mode 1 seems to be the default and will produce a slightly larger file.
However both mode 1 and 2 will trigger Dolby Vision on my TV and I cannot see the difference.
2. I don't like the fact that I have to use eac3to to convert the truehd atmos audio to a compatible "thd+ac3" format for TSMuxer, because I have to run it with wine.
Can I achieve the same with ffmpeg instead? (e.g. convert the truehd atmos track to something TSMuxer will accept)
EDIT:
I've also added a second Dolby Digital Plus (eac3) 5.1 track now.
Code: Select all
General
ID : 1 (0x1)
Complete name : Gemini Man 2019.ts
Format : MPEG-TS
File size : 75.4 GiB
Duration : 1 h 57 min
Overall bit rate mode : Variable
Overall bit rate : 92.2 Mb/s
Maximum Overall bit rate : 35.5 Mb/s
Video
ID : 4117 (0x1015)
Menu ID : 1 (0x1)
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5.1@High
HDR format : Dolby Vision, Version 1.0, dvhe.08.09, BL+EL+RPU / SMPTE ST 2086, HDR10 compatible
Codec ID : 36
Duration : 1 h 57 min
Bit rate : 86.6 Mb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate : 59.940 (60000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0 (Type 2)
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.174
Stream size : 70.8 GiB (94%)
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.0010 cd/m2, max: 1000 cd/m2
Maximum Content Light Level : 5180 cd/m2
Maximum Frame-Average Light Level : 1577 cd/m2
Audio #1
ID : 4352 (0x1100)
Menu ID : 1 (0x1)
Format : AC-3 MLP FBA 16-ch
Format/Info : Audio Coding 3 + Meridian Lossless Packing FBA with 16-channel presentation
Commercial name : Dolby TrueHD with Dolby Atmos
Muxing mode : Stream extension
Codec ID : 131
Duration : 1 h 57 min
Bit rate mode : Variable
Bit rate : 640 kb/s
Maximum bit rate : 7 944 kb/s
Channel(s) : 8 channels
Channel layout : L R C LFE Ls Rs Lb Rb
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 536 MiB (1%)
Language : English
Service kind : Complete Main
Number of dynamic objects : 11
Bed channel count : 1 channel
Bed channel configuration : LFE
Audio #2
ID : 4353 (0x1101)
Menu ID : 1 (0x1)
Format : E-AC-3
Format/Info : Enhanced AC-3
Commercial name : Dolby Digital Plus
Codec ID : 135
Duration : 1 h 57 min
Bit rate mode : Constant
Bit rate : 448 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 375 MiB (0%)
Language : English
Service kind : Complete Main
Happy times!