Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
Post Reply
yusesope
Posts: 221
Joined: Sun Jul 28, 2019 3:34 am

Re: Dolby Vision now possible through MP4 Mux.

Post by yusesope »

ragico wrote: Tue Mar 17, 2020 4:52 pm Using dolby mp4muxer to create mp4 (profile 4) without audio.
I told you profile 5 (follow Grencola's suggestion and try also profile 8 and a movie without HDR10+)
planet_hoarder
Posts: 33
Joined: Tue Mar 17, 2020 10:32 am

Re: Dolby Vision now possible through MP4 Mux.

Post by planet_hoarder »

Dolby's mp4muxer stopped working for me after update with v1.0.1.

I use ffmpeg to extract BL, EL, Audio(mostly DTS) from my *.mkv-remuxes.
with dolby's mp4muxer create a no sound DV video using profile 7.
then with GPAC's mp4box add audio.

Before in the bin folder, there was mp4muxer_64bits.exe, which I was using. It was working perfectly.
Now there is only mp4muxer.exe.
I checked their git, commits are rather recent.

Am I the only one having problems?
shawnc22
Posts: 637
Joined: Tue Jan 21, 2020 7:40 am

Re: Dolby Vision now possible through MP4 Mux.

Post by shawnc22 »

yusesope wrote: Tue Mar 17, 2020 6:27 pm
shawnc22 wrote: Tue Mar 17, 2020 5:04 pm Just tried the revised version and got an exception at the end when everything reached 100%
I forgot a line of code again :lol: .
I updated the link of my previous post (do not follow the link in the quote).
When you feel like it, try again.
haha that's what i figured, but unfortunately still stuck after everything reaches 100%:
uhd_exception2.JPG
uhd_exception2.JPG (10.4 KiB) Viewed 36787 times
been like this for about 30 mins now. looks like there might be an extra AUD in the EL?
ragico
Posts: 266
Joined: Fri Feb 15, 2019 1:09 am

Re: Dolby Vision now possible through MP4 Mux.

Post by ragico »

Grencola wrote: Tue Mar 17, 2020 7:00 pm
ragico wrote: Tue Mar 17, 2020 4:52 pm
Mp4 Mediainfo: HDR format Dolby Vision version 1.0 dvhe 04.00, EL+RPU / SMPTE ST 2094 App 4, version 1, HDR10+ Profile B compatible

On firestick 4K
Plex: TV triggers Dolby Vision but black screen
Emby: plays HDR10+ correctly
MXPlayer: Just black screen
MX Player on the Fire Stick 4K plays EL+RPU great for me, with both lpcm 7.1 and eac3 dd+ atmos. I used dv profile 8 though, not 4, so I think that's your issue. just tried a sample with profile 4 and I too got just a black screen. Also I haven't tried it on a movie with both dv and hdr10+, so could be that too.
How you make EL+RPU?
Which version of MXplayer do you use?
Last edited by ragico on Tue Mar 17, 2020 9:57 pm, edited 1 time in total.
ragico
Posts: 266
Joined: Fri Feb 15, 2019 1:09 am

Re: Dolby Vision now possible through MP4 Mux.

Post by ragico »

yusesope wrote: Tue Mar 17, 2020 7:07 pm
ragico wrote: Tue Mar 17, 2020 4:52 pm Using dolby mp4muxer to create mp4 (profile 4) without audio.
I told you profile 5 (follow Grencola's suggestion and try also profile 8 and a movie without HDR10+)
Thank you. I will try and report back.
Grencola
Posts: 343
Joined: Sun Jan 27, 2019 5:19 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Grencola »

ragico wrote: Tue Mar 17, 2020 8:00 pm How you make EL+RPU?
oops, meant BL+RPU :lol:
try this and see if it works: https://mega.nz/#!iJ8DlCLb!kckXj2KrS06b ... ulwdLzsNas
ragico
Posts: 266
Joined: Fri Feb 15, 2019 1:09 am

Re: Dolby Vision now possible through MP4 Mux.

Post by ragico »

Grencola wrote: Tue Mar 17, 2020 11:06 pm
ragico wrote: Tue Mar 17, 2020 8:00 pm How you make EL+RPU?
oops, meant BL+RPU :lol:
try this and see if it works: https://mega.nz/#!iJ8DlCLb!kckXj2KrS06b ... ulwdLzsNas
Yes it works in plex and also in emby.
But all joker samples posted in this thread work.
Full movies made following the instructions BL+RPU etc do not work either in plex or emby as said in my previous posts.
If you have a full movie working, apart Joker, pls tell me and I will try to replicate.
RESET_9999
Posts: 2421
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

Anyone tried 1917 ?

I'm testing @yusesope newest version of the tool but playback stops at exactly 1min16 on the shield (tried 3 times). BL+EL+RPU+Atmos
Fast forward also stop playback with the same error.

Image



as usual , Dual layer TS + Atmos works like a charm on the x700. that movie looks amazing in DV btw.
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
rosavanwinkle
Posts: 71
Joined: Fri Aug 09, 2019 11:10 am

Re: Dolby Vision now possible through MP4 Mux.

Post by rosavanwinkle »

RESET_9999 wrote: Wed Mar 18, 2020 12:09 am
as usual , Dual layer TS + Atmos works like a charm on the x700. that movie looks amazing in DV btw.
this was a dual layer dolby vision movie + atmos? because single layer + atmos i havent gotten to work yet :/
Mediaplayer: Nvidia Shield TV Pro
TV: LG 55SK7900PLA
Soundbar: LG SK8 (not LG SK8Y)
plex pass user
Discord:Rosa#1111
Arbigator
Posts: 32
Joined: Fri Feb 28, 2020 9:16 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Arbigator »

What is it about a demuxed mkv rip that this tool doesn't like? Do you think it might be possible in the future?
MastaG
Posts: 98
Joined: Thu Aug 08, 2019 11:40 am

Re: Dolby Vision now possible through MP4 Mux.

Post by MastaG »

yusesope wrote: Tue Mar 17, 2020 4:09 pm
MastaG wrote: Tue Mar 17, 2020 1:05 pm 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.
Find more info HERE.
In summary, "-mode 1" creates a Single Track Double Layer file (1:1 copy of a UHD).
"-mode 2" instead generates a Single Track Single Layer file (such as DVDFab).
Not all people own devices that can play files with dvhe.04 or dvhe.07 profile (-mode 1), so I have given the possibility to create files of type dvhe.05 (-mode 2).
The fact that you see no difference is a bit like someone who cannot distinguish a 320 kbps 16bit/44.1kHz MP3 from a 1200 kbps 24bit/192kHz FLAC: it depends on your equipment and subjective sensitivity.
Thank you my friend for explaining.
planet_hoarder wrote: Tue Mar 17, 2020 3:53 pm
MastaG wrote: Tue Mar 17, 2020 1:05 pm EDIT:
I've also added a second Dolby Digital Plus (eac3) 5.1 track now.
why not add another lossless track like DTS-HD MA?
Will try this as soon as possible and report back :)
yusesope wrote: Tue Mar 17, 2020 4:09 pm
MastaG wrote: Tue Mar 17, 2020 1:05 pm 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)
I don't use tsMuxeR yet but I would try something like this:
instead of demuxing the audio track with ffmpeg and then re-editing it with eac3to, why don't you import the original disc and my HEVC file into tsMuxeR and then just check my raw stream and the TrueHD/ATMOS track (from the disc)?
shawnc22 wrote: Tue Mar 17, 2020 4:32 pm
MastaG wrote: Tue Mar 17, 2020 1:05 pm 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)

For all the remuxes I've done, I never actually extracted the atmos extract from the original disk. If you open the original decrypted m2ts/mpls file in tsmuxer, you'll notice that the atmos track is already in ac3+thd format. I simply unchecked every other track except for the atmos track, add in the merged hevc video track from yusecope's tool, and mux. Only issue I've had so far is with audio desyncing a bit 2/3 of the way into A Quiet Place. Not sure if this issue is with tsmuxer or yusecope's tool, but more tests will be needed
Thanks yusesope and shawnc22, this works as well!
Didn't know TSMuxeR could also open bluray discs.. this will make life a lot easier as I can kick out the windows-only closed source eac3to now :D
Now I also do not have to save the atmos.mp4 truehd track any longer with ffmpeg, just the BL.hevc and EL.hevc:

Code: Select all

ffmpeg -i bluray:/path/to/my/bluray -map 0:0 -c copy ./BL.hevc -map 0:1 -c copy ./EL.hevc
Still no luck trying to play the TrueHD track using Emby on my LG C8 yet, even when I switch to the builtin speakers (instead of ARC) Emby will still instruct the server to transcode the truehd audio to AC3 :(
Perhaps there's something wrong with Emby itself.
I'll try to copy the file to a USB disk and see what happens when using the internal player instead.

But on the bright side, now that I can use TSMuxeR, I can successfully embed dolby digital plus (eac3) (limited to 5.1 though) which is still an improvement over regular ac3.

I hope to see some success stories with DV + Atmos on the Shield using Emby/Plex, since I'm planning on getting one soon (as regular ARC cannot do hd-audio to my amp).
planet_hoarder
Posts: 33
Joined: Tue Mar 17, 2020 10:32 am

Re: Dolby Vision now possible through MP4 Mux.

Post by planet_hoarder »

MastaG wrote: Wed Mar 18, 2020 8:20 am Still no luck trying to play the TrueHD track using Emby on my LG C8 yet
I thought LG C8 cannot play lossless audio.
Imho the "Atmos" selection you see when you use TV speakers is just a gimmick and will be enabled only for DD+/Atmos.

Have you been able to play any lossless audio with WebOS internal player?
Arbigator wrote: Wed Mar 18, 2020 6:53 am What is it about a demuxed mkv rip that this tool doesn't like? Do you think it might be possible in the future?
Also would be my question, since Dolby's mp4muxer works perfectly (well at least mp4muxer_64bit.exe works) with extracted bl, el tracks from mkv-files. Watched couple of DV movies on LG Oled that way.
MastaG wrote: Tue Mar 17, 2020 1:05 pm For Dolby Vision + Atmos:

Here's my success story for Gemini Man 2019 which is a 60fps movie which plays much more fluent.

- tsmuxer modified for DV by a5180007/justdan96
I tried that in Win10 with a A Star is Born mkv-remux.
for some reason tsMuxerGui says there is no buffer left, and there is no place to select size of a buffer (all partitions have 150+GB of free space). Partial ts-file created played only in HDR on LG C8, even when I added just AC-3 audio.
Already made a DV of this film with mp4muxer, but wanted to try to have atmos for future.
Is there a special tsMuxer release with a5180007 modifictations?
eblackadder
Posts: 15
Joined: Mon Mar 16, 2020 8:32 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by eblackadder »

When i'm using ffmpeg to get the BL and El it finish the job and I have both layers but there are a lot of errors before the process is starting. I'm really new to this so hopefully someone can explain to me what it means. Thanks a lot!

ffmpeg version git-2020-03-12-675bb1f Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 9.2.1 (GCC) 20200122
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
libavutil 56. 42.100 / 56. 42.100
libavcodec 58. 75.100 / 58. 75.100
libavformat 58. 41.100 / 58. 41.100
libavdevice 58. 9.103 / 58. 9.103
libavfilter 7. 77.100 / 7. 77.100
libswscale 5. 6.101 / 5. 6.101
libswresample 3. 6.100 / 3. 6.100
libpostproc 55. 6.100 / 55. 6.100
../src/libbluray-20191112-137974c/src/libbluray/bdnav/index_parse.c:222: index.bdmv: unknown data in extension 3.1: 0x00 0x00 0x05 0x00 0x00000000
../src/libbluray-20191112-137974c/src/libbluray/bdj/bdj.c:133: Error opening registry key SOFTWARE\JavaSoft\Java Runtime Environment\
../src/libbluray-20191112-137974c/src/libbluray/bdj/bdj.c:750: BD-J check: Failed to load JVM library
../src/libbluray-20191112-137974c/src/libbluray/bluray.c:1089: WARNING: BluRay profile 6 BD-J menu support is experimental
../src/libbluray-20191112-137974c/src/libbluray/bdj/bdj.c:133: Error opening registry key SOFTWARE\JavaSoft\Java Runtime Environment\
../src/libbluray-20191112-137974c/src/libbluray/bdj/bdj.c:750: BD-J check: Failed to load JVM library
[bluray @ 000002db1ddaa2c0] 7 usable playlists:
[bluray @ 000002db1ddaa2c0] playlist 00040.mpls (1:58:59)
[bluray @ 000002db1ddaa2c0] playlist 00965.mpls (0:05:33)
[bluray @ 000002db1ddaa2c0] playlist 01237.mpls (0:04:29)
[bluray @ 000002db1ddaa2c0] playlist 01238.mpls (0:12:01)
[bluray @ 000002db1ddaa2c0] playlist 01239.mpls (0:03:52)
[bluray @ 000002db1ddaa2c0] playlist 01240.mpls (0:06:59)
[bluray @ 000002db1ddaa2c0] playlist 01241.mpls (0:10:25)
[bluray @ 000002db1ddaa2c0] selected 00040.mpls
[mpegts @ 000002db1dda9340] PES packet size mismatch
[mpegts @ 000002db1dda9340] Packet corrupt (stream = 13, dts = 1047030).
[mpegts @ 000002db1dda9340] PES packet size mismatch
[mpegts @ 000002db1dda9340] Packet corrupt (stream = 13, dts = 1047030).
[mpegts @ 000002db1dda9340] probed stream 13 failed
[hevc @ 000002db1ddc1b00] Skipping NAL unit 62
[mpegts @ 000002db1dda9340] start time for stream 8 is not set in estimate_timings_from_pts
[mpegts @ 000002db1dda9340] start time for stream 9 is not set in estimate_timings_from_pts
[mpegts @ 000002db1dda9340] start time for stream 10 is not set in estimate_timings_from_pts
[mpegts @ 000002db1dda9340] start time for stream 11 is not set in estimate_timings_from_pts
[mpegts @ 000002db1dda9340] start time for stream 12 is not set in estimate_timings_from_pts
../src/libbluray-20191112-137974c/src/libbluray/bluray.c:254: 00294.m2ts: no timestamp for SPN 0 (got 0). clip 524280-321800234.
[mpegts @ 000002db1dda9340] Could not find codec parameters for stream 8 (Subtitle: hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 000002db1dda9340] Could not find codec parameters for stream 9 (Subtitle: hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 000002db1dda9340] Could not find codec parameters for stream 10 (Subtitle: hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 000002db1dda9340] Could not find codec parameters for stream 11 (Subtitle: hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 000002db1dda9340] Could not find codec parameters for stream 12 (Subtitle: hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 000002db1dda9340] Could not find codec parameters for stream 13 (Unknown: none): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from 'bluray:k:\1917':
Duration: 01:58:59.48, start: 11.633667, bitrate: 88679 kb/s
Program 1
Stream #0:0[0x1011]: Video: hevc (Main 10) (HDMV / 0x564D4448), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 23.98 tbc
Stream #0:1[0x1015]: Video: hevc (Main 10) (HDMV / 0x564D4448), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 23.98 tbc
Stream #0:2[0x1100]: Audio: truehd (AC-3 / 0x332D4341), 48000 Hz, 7.1, s32 (24 bit)
Stream #0:3[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 448 kb/s
Stream #0:4[0x1101]: Audio: eac3 (AC-3 / 0x332D4341), 48000 Hz, 7.1, fltp, 768 kb/s
Stream #0:5[0x1102]: Audio: eac3 (AC-3 / 0x332D4341), 48000 Hz, 7.1, fltp, 768 kb/s
Stream #0:6[0x1103]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 192 kb/s
Stream #0:7[0x1104]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 192 kb/s
Stream #0:8[0x12a0]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream #0:9[0x12a1]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream #0:10[0x12a2]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream #0:11[0x12a3]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream #0:12[0x12a4]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
No Program
Stream #0:13[0x1fff]: Unknown: none
Output #0, hevc, to 'n:\BL.hevc':
Metadata:
encoder : Lavf58.41.100
Stream #0:0: Video: hevc (Main 10) (HDMV / 0x564D4448), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 23.98 tbr, 23.98 tbn, 23.98 tbc
Output #1, hevc, to 'n:\EL.hevc':
Metadata:
encoder : Lavf58.41.100
Stream #1:0: Video: hevc (Main 10) (HDMV / 0x564D4448), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 23.98 tbr, 23.98 tbn, 23.98 tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #1:0 (copy)
Press [q] to stop, [?] for help
frame=171176 fps=190 q=-1.0 Lq=-1.0 size=61101088kB time=01:58:59.42 bitrate=70109.3kbits/s speed=7.93x
video:67439027kB audio:0kB subtitle:0kB other streams:0kB global headers:1kB muxing overhead: unknown
Mortenjorstad
Posts: 19
Joined: Wed Mar 18, 2020 9:43 am

Re: Dolby Vision now possible through MP4 Mux.

Post by Mortenjorstad »

RESET_9999 wrote: Wed Mar 18, 2020 12:09 am Anyone tried 1917 ?

I'm testing @yusesope newest version of the tool but playback stops at exactly 1min16 on the shield (tried 3 times). BL+EL+RPU+Atmos
Fast forward also stop playback with the same error.

Image



as usual , Dual layer TS + Atmos works like a charm on the x700. that movie looks amazing in DV btw.
Had same error on some movies, you must turn off pgs subtitles.
yusesope
Posts: 221
Joined: Sun Jul 28, 2019 3:34 am

Re: Dolby Vision now possible through MP4 Mux.

Post by yusesope »

shawnc22 wrote: Tue Mar 17, 2020 7:22 pm ...but unfortunately still stuck after everything reaches 100%...
been like this for about 30 mins now. looks like there might be an extra AUD in the EL?
This time it's not my fault :lol: !
There seems to be a little bit missing in the BL Layer: my program is in eternal expectation of a data that will never arrive! What is the title of the movie?


RESET_9999 wrote: Wed Mar 18, 2020 12:09 am Anyone tried 1917 ?
Officially the new Shield supports MEL tracks using the profile dvhe.04.
1917 has a FEL track.
It would be interesting to look at the Plex Server log to understand what went wrong (take a look HERE).
RESET_9999 wrote: Wed Mar 18, 2020 12:09 am I'm testing @yusesope newest version of the tool but playback stops at exactly 1min16 on the shield (tried 3 times). BL+EL+RPU+Atmos....
The moment you use tsMuxeR you are no longer testing my tool but tsMuxeR.

Do you guys want to check the correct functioning of my tool?
Well, create an mp4 file with Dolby's mp4muxer (bearing in mind the limitations of the individual device, like MEL vs FEL or hardware capability):
"-mode 1" (default mode) in my tool and "--dv-profile 4" in mp4muxer for owners of the new Shield (2019)
"-mode 1" (default mode) in my tool and "--dv-profile 7" (maybe also --dv-profile 4) in mp4muxer for owners of LG OLED TV (ninth, eighth
..series...maybe seventh series)
"-mode 2" in my tool and "--dv-profile 5" in mp4muxer for owners of Fire Stick 4K



MastaG wrote: Wed Mar 18, 2020 8:20 am Still no luck trying to play the TrueHD track using Emby on my LG C8 yet, even when I switch to the builtin speakers (instead of ARC) Emby will still instruct the server to transcode the truehd audio to AC3 :(
It is impossible to play a TrueHD or TrueHD/ATMOS track with an LG C8 (the same applies to both the internal speakers and the ARC connection). You need an external player (with HDMI audio Passthrough) and an AVR capable of decoding this type of audio track.



Arbigator wrote: Wed Mar 18, 2020 6:53 am What is it about a demuxed mkv rip that this tool doesn't like? Do you think it might be possible in the future?
UHD-BDs follow very precise rules: for example, the presence of NALu AUD between one frame and another is mandatory.
In remuxed files these rules are not always respected. It takes a lot of work to predict more or less anomalous behavior and I don't have time!
Post Reply