1. No user installed addons are supported, python or otherwise.
2. No, they really are not supported.
3. They are not coming back
4. Read from 1. again

Any mention of illegal streaming sites, addons or any pirated material will not be tolerated. This is not democracy and any offenders will be banned and posts deleted immediately without warning.

Other than that, we hope you enjoy MrMC so far and we welcome any input and feedback you might have.

Team MrMC.

Dolby Vision

Any issues that are tvOS specific
Post Reply
yusesope
Posts: 16
Joined: 17 Jul 2019, 10:01

Re: Dolby Vision

Post by yusesope »

Silergo wrote: 26 Jul 2019, 10:51
yusesope wrote: 26 Jul 2019, 09:34 Test_DV_LPCM
Dolby Vision + LPCM (24bit big-endian)
Dolby Vision + FLAC
All play, but no sound
Have you tried using an Apple TV 4K or a TV (via USB, via NAS / DLNA, etc ...)?
I'm not aware of any TVs able to decode PCM or FLAC audio by itself (so it would be normal to have only the video playing).
In this case, you should test the "Dual Layer" file.
Silergo wrote: 26 Jul 2019, 10:51 Also tried to created own single-layer video with dvdfab, but it kills my TV: black screen after start and then TV turn off and don't turn on until plug it out/in from socket.
I'm sorry to hear that. You should write something about it on their forum.


EDIT:
I realized now that you have edited your post: try the "Dual Layer".
Silergo
Posts: 6
Joined: 26 Jul 2019, 10:21

Re: Dolby Vision

Post by Silergo »

yusesope wrote: 26 Jul 2019, 11:24 Have you tried using an Apple TV 4K or a TV (via USB, via NAS / DLNA, etc ...)?
I'm not aware of any TVs able to decode PCM or FLAC audio by itself (so it would be normal to have only the video playing).
In this case, you should test the "Dual Layer" file.
TV. Don't know any app on AppleTV that can play users DV.
Silergo wrote: 26 Jul 2019, 10:51 Also tried to created own single-layer video with dvdfab, but it kills my TV: black screen after start and then TV turn off and don't turn on until plug it out/in from socket.
yusesope wrote: 26 Jul 2019, 11:24 I'm sorry to hear that. You should write something about it on their forum.
Are you using dvdfab too? Maybe I messed up with settings.
yusesope wrote: 26 Jul 2019, 11:24 EDIT:
I realized now that you have edited your post: try the "Dual Layer".
My TV can't play Dual Layer, only single one :(
yusesope
Posts: 16
Joined: 17 Jul 2019, 10:01

Re: Dolby Vision

Post by yusesope »

Silergo wrote: 26 Jul 2019, 11:47 TV. Don't know any app on AppleTV that can play users DV.
It would seem that mrmc is able to do this (read the previous page and
take what is written with a grain of salt).
And you're also writing on their forum. What a coincidence! :lol: :lol:
I suggest you buy the PRO version and support their work.
You should listen to someone (like me) who doesn't even own an Apple TV.


@ davilla
I want to talk to the marketing department ... I want a raise! :D :D

Silergo wrote: 26 Jul 2019, 11:47 Are you using dvdfab too? Maybe I messed up with settings.
Yep...but after I edit the file (read the last few pages).
I seem to have understood that my files have not caused problems to your TV. right?
Silergo
Posts: 6
Joined: 26 Jul 2019, 10:21

Re: Dolby Vision

Post by Silergo »

yusesope wrote: 26 Jul 2019, 13:03
Silergo wrote: 26 Jul 2019, 11:47 TV. Don't know any app on AppleTV that can play users DV.
yusesope wrote: 26 Jul 2019, 13:03 It would seem that mrmc is able to do this (read the previous page and
take what is written with a grain of salt).
Last update was in april. No DV in this version. Actually for now there is no apps on AppleTV that support DV.
yusesope wrote: 26 Jul 2019, 13:03 And you're also writing on their forum. What a coincidence! :lol: :lol:
What? Where?
Silergo wrote: 26 Jul 2019, 11:47 Are you using dvdfab too? Maybe I messed up with settings.
yusesope wrote: 26 Jul 2019, 13:03 Yep...but after I edit the file (read the last few pages).
I seem to have understood that my files have not caused problems to your TV. right?
Right, that's why I'am asking about settings. There is no single movie on internet that uses single layer DV (netflix, itunes, amazon, etc doesn't count).
Grencola
Posts: 103
Joined: 25 Feb 2018, 03:02

Re: Dolby Vision

Post by Grencola »

davilla wrote: 26 Jul 2019, 00:05 Test_DL_DV_DTS_HD_MA.mp4 plays, can't say anything about the 2nd video stream as MrMC only handles one right now.
yusesope wrote: 26 Jul 2019, 09:34My bad! I should have read the previous posts! Sorry!
It is worth testing anyway (I appeal to the owners of LG, Vizio, Sony, etc...)
I don't get why you want to bother with dual layer dv? There are only 4 DV TV's that can do e-arc: the LG C9 and a few Sony's. Vizio, TCL, Hisense, etc, won't pass hd-audio to your receiver, so you'll only get lossy audio anyway- it would be no better than using dolbymp4muxer with eac3 audio.

If you shift your focus to primarily single layer with hd-audio, then external devices other than just uhd-bd players can be used as they have hdmi going right to your AVR. things like ATV 4k, Fire TV 4k, and possibly even kodi on newer dv-supporting android boxes could work! Would you be able to take an actual lossless single layer dv mp4 from dvdfab, do your magic to give it lossless atmos/dts:x, and upload a clip to test? I'd like to see what all can support it, especially MrMC obviously.
User avatar
davilla
Team MrMC
Posts: 4377
Joined: 26 Oct 2015, 17:01

Re: Dolby Vision

Post by davilla »

Silergo wrote: 26 Jul 2019, 17:22 Last update was in april. No DV in this version. Actually for now there is no apps on AppleTV that support DV.
Sorry but wrong, DV (single layer) handling came in years ago.

https://mrmc.tv/mrmc-3-3-1-and-mrmc-lite-3-3-1/
https://github.com/MrMC/mrmc/commit/e69 ... 2e68fa4b03
User avatar
davilla
Team MrMC
Posts: 4377
Joined: 26 Oct 2015, 17:01

Re: Dolby Vision

Post by davilla »

And big endian is a winner :)

Test_DV_LPMC_BigEnd.mp4 plays and shows 8 audio channels
Test_DV_FLAC.mp4 plays and shows 8 audio channels.
Silergo
Posts: 6
Joined: 26 Jul 2019, 10:21

Re: Dolby Vision

Post by Silergo »

davilla wrote: 26 Jul 2019, 23:59
Silergo wrote: 26 Jul 2019, 17:22 Last update was in april. No DV in this version. Actually for now there is no apps on AppleTV that support DV.
Sorry but wrong, DV (single layer) handling came in years ago.
Sorry, but right.
https://fs16.fex.net/download/2389033264
User avatar
davilla
Team MrMC
Posts: 4377
Joined: 26 Oct 2015, 17:01

Re: Dolby Vision

Post by davilla »

Silergo wrote: 27 Jul 2019, 05:31
davilla wrote: 26 Jul 2019, 23:59
Silergo wrote: 26 Jul 2019, 17:22 Last update was in april. No DV in this version. Actually for now there is no apps on AppleTV that support DV.
Sorry but wrong, DV (single layer) handling came in years ago.
Sorry, but right.
https://fs16.fex.net/download/2389033264
1st confirmation by others that DV works in MrMC. Note the testflight version.
https://forum.mrmc.tv/viewtopic.php?f=3 ... =30#p11458

It works, others have tested. I wrote the code and understand it pretty well.
All you have show here is that DV does not play under your setup. Debuglog and we can figure out why. Otherwise, not much can be done to resolve YOUR issue.
yusesope
Posts: 16
Joined: 17 Jul 2019, 10:01

Re: Dolby Vision

Post by yusesope »

############### TOOLS ###############

DVDFab (11.0.3.9 or newer) (HERE)
FFmpeg (HERE)
mp4muxer (HERE)
mp4box (from GPAC SDK) (HERE)

GPAC.exe can be unzipped using 7zip: binary files are located in the "bin" folder.


######### "DUAL LAYER" DOLBY VISION: THEORY #########

Use FFmpeg to demux the video Base layer (BL), the video Enhancement layer (EL) and the audio stream. The audio stream will be also copied/encoded and stored in the right container (see APPENDIX A).
For testing purpose, I suggest you work on 60 seconds cuts. See APPENDIX B.

Use mp4muxer to mux BL and EL (without audio).

Use mp4box to mux the "Dual Layer" .mp4 file (generated by mp4muxer) and the audio stream (generated by FFmpeg).


# "DUAL LAYER" DOLBY VISION: REAL CASE SCENARIO (example with ATMOS) #
Make your choice:
  • #EXPERIMENTAL# if your setup can handle tracks with TrueHD/ATMOS encoding

    Code: Select all

    ffmpeg.exe -i bluray:\path\to\bluray -map 0:0 -c copy %userprofile%\Desktop\BL.hevc -map 0:1 -c copy %userprofile%\Desktop\EL.hevc -map 0:2 -c:a copy -strict -2 %userprofile%\Desktop\atmos.mp4
  • otherwise, if your setup does not handle tracks with TrueHD/ATMOS encoding (or the previous method does not work for you)

    Code: Select all

    ffmpeg.exe -i bluray:\path\to\bluray -map 0:0 -c copy %userprofile%\Desktop\BL.hevc -map 0:1 -c copy %userprofile%\Desktop\EL.hevc -map 0:2 -c:a pcm_s24be -ar 48000 -rf64 auto %userprofile%\Desktop\lpcm.mov

Code: Select all

mp4muxer_64bits.exe --dv-profile 7 --input-file %userprofile%\Desktop\BL.hevc --input-file %userprofile%\Desktop\EL.hevc --output-file %userprofile%\Desktop\mp4muxer_out.mp4

Code: Select all

mp4box.exe -add %userprofile%\Desktop\mp4muxer_out.mp4:rate=0 -add %userprofile%\Desktop\atmos.mp4:disable -brand mp42isom -ab dby1 -no-iod %userprofile%\Desktop\mp4box_out.mp4
  • Enter the appropriate file (atmos.mp4 or lpcm.mov) in the last command line based on the choice made previously.
  • Note the syntax --> -add stream[:opt1:...:optN]



######### "SINGLE LAYER" DOLBY VISION: THEORY #########

Use DVDFab to generate a "Sigle Layer" .mp4 file (choose the "single layer" profile, deselect any optimization settings and export the file without any audio track)

Use FFmpeg to demux the audio stream. The audio stream will be also copied/encoded and stored in the right container (see APPENDIX A).

Use mp4box to mux the "Single Layer" .mp4 file (generated by DVDFab) and the audio stream (generated by FFmpeg).


# "SINGLE LAYER" DOLBY VISION: REAL CASE SCENARIO (example with ATMOS) #

Code: Select all

Use DVDFab as indicated above and generate an .mp4 file (dvdfab_out.mp4)
Make your choice:
  • #EXPERIMENTAL# if your setup can handle tracks with TrueHD/ATMOS encoding

    Code: Select all

    ffmpeg.exe -i bluray:\path\to\bluray -map 0:2 -c:a copy -strict -2 %userprofile%\Desktop\atmos.mp4
  • otherwise, if your setup does not handle tracks with TrueHD/ATMOS encoding (or the previous method does not work for you)

    Code: Select all

    ffmpeg.exe -i bluray:\path\to\bluray -map 0:2 -c:a pcm_s24be -ar 48000 -rf64 auto %userprofile%\Desktop\lpcm.mov

Code: Select all

mp4box.exe -add %userprofile%\Desktop\dvdfab_out.mp4 -add %userprofile%\Desktop\atmos.mp4 -brand mp42isom -ab dby1 %userprofile%\Desktop\mp4box_out.mp4
  • Enter the appropriate file (atmos.mp4 or lpcm.mov) in the last command line based on the choice made previously.


############### APPENDIX A ###############

### How to use ffmpeg for our purposes ###

Code: Select all

ffmpeg INPUT ​MAP_OPTION ENCODING_SETTINGS OUTPUT_TYPE


### How to find the correct stream id (MAP_OPTION) ###

Code: Select all

ffprobe -i bluray:\path\to\bluray
Output example

Code: Select all

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, 640 kb/s 


### Map option, Encoding settings and Output type for different audio formats ###

# "DTS family" (lossy and lossless, DTS:X included) #

Code: Select all

-map 0:AUDIO_STREAM_ID -c copy \path\to\audio.mp4

# TrueHD/ATMOS # #EXPERIMENTAL# (Take a look at this POST)

Code: Select all

-map 0:AUDIO_STREAM_ID -c copy -strict -2 \path\to\audio.mp4

#If your setup does not handle tracks with TrueHD/ATMOS or DTS-HD MA / DTS: X encoding and you still want to maintain a high sound quality or simply want to reduce the size of the audio track#
LPCM (Apple ecosystem)

Code: Select all

-map 0:AUDIO_STREAM_ID -c pcm_s24be -ar 48000 -rf64 auto \path\to\audio.mov
LPCM (Rest of the world)

Code: Select all

-map 0:AUDIO_STREAM_ID -c pcm_s24le -ar 48000 -rf64 auto \path\to\audio.mov
FLAC (the "-compression_level" parameter accepts values ​​from 0 to 12)

Code: Select all

-map 0:AUDIO_STREAM_ID -c flac -compression_level 0 \path\to\audio.flac
μ-LAW

Code: Select all

-map 0:AUDIO_STREAM_ID -c pcm_mulaw \path\to\audio.mov
A-LAW

Code: Select all

-map 0:AUDIO_STREAM_ID -c pcm_alaw \path\to\audio.mov

Based on quality produced from high to low:

Code: Select all

LPCM >> FLAC >> (μ-LAW == A-LAW)



############### APPENDIX B ###############
How to generate cuts (60 seconds) using ffmpeg (example with ATMOS audio track)

Code: Select all

ffmpeg -ss 0 -i bluray:\path\to\bluray -t 60 -map 0:BL_STREAM_ID -c copy %userprofile%\Desktop\BL.hevc
ffmpeg -ss 0 -i bluray:\path\to\bluray -t 60 -map 0:EL_STREAM_ID -c copy %userprofile%\Desktop\EL.hevc
ffmpeg -ss 0 -i bluray:\path\to\bluray -t 60 -map 0:ATMOS_STREAM_ID -c:a pcm_s24be -ar 48000 -rf64 auto %userprofile%\Desktop\lpcm.mov
Last edited by yusesope on 03 Nov 2019, 12:40, edited 6 times in total.
Post Reply