Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
Mouth_of_Sauron
Posts: 22
Joined: Sun Feb 17, 2019 8:33 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Mouth_of_Sauron »

Grencola wrote:
Thu Feb 21, 2019 4:59 am
seems like it should work as it remains lossless right up until eac3. I can already make eac3's in XMedia recode but I can't seem to find that surround blending I thought I saw. so your flac trick might be the ticket. and I can do it all from command line so I'd upgrade my code, and make it the ultimate program :)
Can you do the Xmedia Recode bit from command line as well?
Grencola
Posts: 343
Joined: Sun Jan 27, 2019 5:19 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Grencola »

Mouth_of_Sauron wrote:
Thu Feb 21, 2019 5:58 am
Can you do the Xmedia Recode bit from command line as well?
Damn, it doesn't appear so from what I'm reading. I'm out of town so I can't test it on my pc, but not looking good. sucks..
Mouth_of_Sauron
Posts: 22
Joined: Sun Feb 17, 2019 8:33 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Mouth_of_Sauron »

When I use the Dolby Vision MP4Muxer I find there is heavy HDD activity for a couple of minutes, then a long period of high CPU activity (but little HDD activity), followed by a final period of heavy HDD activity.

It appears that it's doing more than a simple remux because of the long period of high CPU activity, while doing very little disk access.

It doesn't take long enough for it to be doing any kind of transcode of the main video track, and it would have no need to touch the audio.

But is it doing some sort of transcode or conversion of the Dolby Vision track to make it work in an MP4, and if so are we losing anything in the process (quality or otherwise)?
Grencola
Posts: 343
Joined: Sun Jan 27, 2019 5:19 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Grencola »

for those who care, I've updated my program to be smarter. I combined the two apps into one, and named it DV-MP4-Maker. It now checks for the file type (m2ts or mkv) in the chosen directory and runs the required script.

I added support for smb/network shares (although mapping the network drive works fine), keeping the original filename intact, and it also checks the file for a DV layer and if no track is found it prompts you and exits instead of trying anyway with crazy errors.

link: https://bit.ly/2F9tSEN

cheers! :)

edit: for those who don't trust simple winrar sfx files, here's the source code:

Code: Select all

@echo off
for %%a in ("*.m2ts") do @echo %%~na> filename.txt
ren *.m2ts Movie.m2ts
@echo M2TS file found! Extracting tracks, please wait (approx. 30 mins)...
eac3to.exe Movie.m2ts 1: bl.hevc 2: el.hevc 3: audio.ac3 -core -640
@echo Muxing tracks to MP4, please wait (approx. 45 mins)...
mp4muxer_64bits.exe --dv-profile 7 -i bl.hevc -i el.hevc -i audio.ac3 --media-lang eng -o DV-Movie.mp4
set /p texte=< filename.txt
ren Movie.m2ts %texte%.m2ts
ren DV-Movie.mp4 %texte%.Dolby.Vision.mp4
@echo Cleaning up temp files... Done!
echo y | del avcodec-54.dll del avutil-52.dll del hdcd.dll del HookSurcode.dll del libaften.dll del libdcadec.dll del libFLAC.dll del libMatrix.dll del libSsrc.dll del msvcr100.dll del r8b.dll del mkv.cmd del filename.txt del *log.txt eac3to.exe del mp4muxer_64bits.exe del bl.hevc del el.hevc del audio.ac3
@echo Process Complete! Enjoy :)
pause
del m2ts.cmd
paste that into a txt file and rename it m2ts.cmd then download eac3to and mp4muxer.exe and put their files along with m2ts.cmd all into the same folder as your movie and run m2ts.cmd.

my winrar self-extracting (sfx) file automatically runs the .cmd file as soon as it puts the files needed into your movie folder. but it is an exe file so I guess it sketchy? :p
Last edited by Grencola on Mon Mar 18, 2019 12:35 am, edited 1 time in total.
spl147
Posts: 309
Joined: Mon Dec 10, 2012 4:59 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by spl147 »

For any of you that want to watch Dolby Vision Correctly, see this thread!

viewtopic.php?f=6&t=19035
annisman
Posts: 39
Joined: Tue Jul 17, 2018 1:03 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by annisman »

Grencola wrote:
Sun Mar 03, 2019 6:30 am
for those who care, I've updated my program to be smarter. I combined the two apps into one, and named it DV-MP4-Maker. It now checks for the file type (m2ts or mkv) in the chosen directory and runs the required script.

I added support for smb/network shares (although mapping the network drive works fine), keeping the original filename intact, and it also checks the file for a DV layer and if no track is found it prompts you and exits instead of trying anyway with crazy errors.

link: https://bit.ly/2NOulA9

cheers! :)

edit: for those who don't trust simple winrar sfx files, here's the source code:

Code: Select all

@echo off
for %%a in ("*.m2ts") do @echo %%~na> filename.txt
ren *.m2ts Movie.m2ts
@echo M2TS file found! Extracting tracks, please wait (approx. 30 mins)...
eac3to.exe Movie.m2ts 1: bl.hevc 2: el.hevc 3: audio.ac3 -core -640
@echo Muxing tracks to MP4, please wait (approx. 45 mins)...
mp4muxer_64bits.exe --dv-profile 7 -i bl.hevc -i el.hevc -i audio.ac3 --media-lang eng -o DV-Movie.mp4
set /p texte=< filename.txt
ren Movie.m2ts %texte%.m2ts
ren DV-Movie.mp4 %texte%.Dolby.Vision.mp4
@echo Cleaning up temp files... Done!
echo y | del avcodec-54.dll del avutil-52.dll del hdcd.dll del HookSurcode.dll del libaften.dll del libdcadec.dll del libFLAC.dll del libMatrix.dll del libSsrc.dll del msvcr100.dll del r8b.dll del mkv.cmd del filename.txt del *log.txt eac3to.exe del mp4muxer_64bits.exe del bl.hevc del el.hevc del audio.ac3
@echo Process Complete! Enjoy :)
pause
del m2ts.cmd
paste that into a txt file and rename it m2ts.cmd then download eac3to and mp4muxer.exe and put their files along with m2ts.cmd all into the same folder as your movie and run m2ts.cmd.

my winrar self-extracting (sfx) file automatically runs the .cmd file as soon as it puts the files needed into your movie folder. but it is an exe file so I guess it sketchy? :p
Hey Gren,

I have a ton of ripped UHd's in mkv format, unless I'm reading what you wrote wrong... I can just use your application to direct it to the mkv file and it will convert it to use DV ? Is that all there is to it ?
Grencola
Posts: 343
Joined: Sun Jan 27, 2019 5:19 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Grencola »

annisman wrote:
Mon Mar 11, 2019 5:11 am
Hey Gren,

I have a ton of ripped UHD's in mkv format, unless I'm reading what you wrote wrong... I can just use your application to direct it to the mkv file and it will convert it to use DV ? Is that all there is to it ?

that's it, yeah. but mkv is purely for testing purposes right now, I almost shouldn't even allow it until I know for sure how they are. some people claim they work fine, others say the colors get messed up. mine have been hit and miss as well. also the mkv has to be the full remux from a movie in dolby vision with a secondary dv video track.

m2ts files, however, work flawlessly.

If you have more time than I, perhaps you could make a shwack of mp4s from your mkv's and let us know how they look? :)
annisman
Posts: 39
Joined: Tue Jul 17, 2018 1:03 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by annisman »

Grencola wrote:
Mon Mar 11, 2019 7:37 pm
annisman wrote:
Mon Mar 11, 2019 5:11 am
Hey Gren,

I have a ton of ripped UHD's in mkv format, unless I'm reading what you wrote wrong... I can just use your application to direct it to the mkv file and it will convert it to use DV ? Is that all there is to it ?

that's it, yeah. but mkv is purely for testing purposes right now, I almost shouldn't even allow it until I know for sure how they are. some people claim they work fine, others say the colors get messed up. mine have been hit and miss as well. also the mkv has to be the full remux from a movie in dolby vision with a secondary dv video track.

m2ts files, however, work flawlessly.

If you have more time than I, perhaps you could make a shwack of mp4s from your mkv's and let us know how they look? :)
Can you please explain what this means ? Does this mean I will need to re rip my MKV in some new way that it will work with your program ?
Grencola
Posts: 343
Joined: Sun Jan 27, 2019 5:19 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Grencola »

annisman wrote:
Tue Mar 12, 2019 12:03 am
Can you please explain what this means ? Does this mean I will need to re rip my MKV in some new way that it will work with your program ?
remuxing is basically just a fancy term for a container change. an mkv remux means it's the original uhd-bd that has that has changed from avchd (m2ts) to mkv. the video / audio tracks within are left untouched whereby no compression / modifying has been done.

but like I said, since mkv to mp4 is just for testing out dv, any future backups you make of a uhd-bd with dolby vision should be the original m2ts file you find in the bdmv/streams folder if you wish to make a DV mp4 properly. otherwise mkv's work great for hdr10 and can have much better audio than mp4's.

Since it sounds like you've already ripped a bunch of your discs to mkv, if you want to help test you can always try my program with some of them and let me know how it goes. just thought I'd warn you :)
Jhoopes517
Posts: 12
Joined: Sun Feb 03, 2019 1:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Jhoopes517 »

annisman wrote:
Tue Mar 12, 2019 12:03 am
Grencola wrote:
Mon Mar 11, 2019 7:37 pm
annisman wrote:
Mon Mar 11, 2019 5:11 am
Hey Gren,

I have a ton of ripped UHD's in mkv format, unless I'm reading what you wrote wrong... I can just use your application to direct it to the mkv file and it will convert it to use DV ? Is that all there is to it ?

that's it, yeah. but mkv is purely for testing purposes right now, I almost shouldn't even allow it until I know for sure how they are. some people claim they work fine, others say the colors get messed up. mine have been hit and miss as well. also the mkv has to be the full remux from a movie in dolby vision with a secondary dv video track.

m2ts files, however, work flawlessly.

If you have more time than I, perhaps you could make a shwack of mp4s from your mkv's and let us know how they look? :)
Can you please explain what this means ? Does this mean I will need to re rip my MKV in some new way that it will work with your program ?
The main thing you really need to take from this is that the MKV that you are trying to convert to have the Dolby Vision metadata will need to have both video tracks. You can check this by checking the mkv's mediainfo. If you have both video tracks, then converting it should be okay to do. Otherwise, obtaining the .m2ts from the UHD Blu and converting that will be better.
Grencola
Posts: 343
Joined: Sun Jan 27, 2019 5:19 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Grencola »

Jhoopes517 wrote:
Wed Mar 13, 2019 1:44 am
The main thing you really need to take from this is that the MKV that you are trying to convert to have the Dolby Vision metadata will need to have both video tracks. You can check this by checking the mkv's mediainfo. If you have both video tracks, then converting it should be okay to do. Otherwise, obtaining the .m2ts from the UHD Blu and converting that will be better.
^^^ What he said ^^^

Jhoopes517, have you tried an mkv to mp4 yet? if so how did it look?
Metallikahn
Posts: 52
Joined: Wed Nov 15, 2017 4:22 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Metallikahn »

So I read through this thread and I'm a bit confused. Just want to confirm a few points.

1.) This process creates an MP4 container file that contains all the main files just like we would rip when making an MKV?
2.) The DV layer is converted (or whatever) into a 10 bit layer vs. the original 12 bit?
3.) The MP4 requires the Lossless 7.1 audio track (Atmos/DTS-X) to be converted to a lossy format without the Atmos metadata?

I've got a number of DV uhd's and I thought I'd toy with this a bit to see how well it works. I'm currently playing my MKV's over DLNA from an Emby server to an Oppo203 and then to an LG OLED B7a. Right now, DV is a bit of a novelty for me since I tend to prefer the way HDR looks on my OLED (I like the technicolor picture mode I have available for HDR content. DV content doesn't give me that option and the black tend to look a lot more grey on my display without it). Between Dolby Vision and Atmos, I'd rather have the Atmos atm, so the loss of it in this process would probably be a deal breaker for me.

I'm currently folder ripping Valerian to give it a try. Just wanted to make sure I was clear on what to expect.
TheShoe
Posts: 86
Joined: Sat Nov 03, 2012 4:37 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by TheShoe »

what are you all using for playback?

most (all?) software players i don’t think would support DV playback.
Grencola
Posts: 343
Joined: Sun Jan 27, 2019 5:19 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Grencola »

Metallikahn wrote:
Wed Mar 13, 2019 6:58 pm
So I read through this thread and I'm a bit confused. Just want to confirm a few points.

1.) This process creates an MP4 container file that contains all the main files just like we would rip when making an MKV?
2.) The DV layer is converted (or whatever) into a 10 bit layer vs. the original 12 bit?
3.) The MP4 requires the Lossless 7.1 audio track (Atmos/DTS-X) to be converted to a lossy format without the Atmos metadata?

I've got a number of DV uhd's and I thought I'd toy with this a bit to see how well it works. I'm currently playing my MKV's over DLNA from an Emby server to an Oppo203 and then to an LG OLED B7a. Right now, DV is a bit of a novelty for me since I tend to prefer the way HDR looks on my OLED (I like the technicolor picture mode I have available for HDR content. DV content doesn't give me that option and the black tend to look a lot more grey on my display without it). Between Dolby Vision and Atmos, I'd rather have the Atmos atm, so the loss of it in this process would probably be a deal breaker for me.

I'm currently folder ripping Valerian to give it a try. Just wanted to make sure I was clear on what to expect.
that's correct. once you rip the full valerian disc contents (not mkv) go into its dir and put the largest .m2ts file from \bdmv\streams\ into its own folder. then run my app and point it to that folder and click install. wait about 1h15m ish. that's it. you'll be able to play the new mp4 directly from your TV's usb port via usb exfat hdd, or with the plex app (recommended for better gui) right on your tv streaming from your computer (direct play / direct stream on). both should be in DV and look just like playing the disc on your oppo. the audio will be downmixed to dd ac3 5.1. I'm not sure about about emby but give it a go for sure and let me know.

this is all obviously just a fun experiment though as it's a pointless process for you since you can just take a uhd disc and pop it in your udp-203 and get DV / hd-audio, rather than put it into your computer to rip and convert and then play with worse audio :p or if you were to rip it to the full folder structure of the disc, that too can be played in your oppo in DV / hd-audio :p

this is for people who can't afford an Oppo (especially now, my goodness). they either own an LG or Vizio TV with a non-atmos AVR. so adding DV while losing the atmos they never had anyway is a nice step up for a lot of people :)
Last edited by Grencola on Thu Mar 14, 2019 1:18 pm, edited 4 times in total.
Grencola
Posts: 343
Joined: Sun Jan 27, 2019 5:19 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Grencola »

TheShoe wrote:
Wed Mar 13, 2019 10:27 pm
what are you all using for playback?

most (all?) software players i don’t think would support DV playback.
these mp4's can be played in DV natively on LG (B7 / B8) and Vizio (m / p series, not pq) TV's via their usb media players. LG TV's have the bonus of plex playing them in DV as well, where the Vizio plex app is only hdr10. not sure about Sony TV's but I think it's a no go.
Post Reply