Dolby Vision now possible through MP4 Mux.
-
jakeycrx
- Posts: 3
- Joined: Mon Jan 28, 2019 12:59 pm
Re: Dolby Vision now possible through MP4 Mux.
I posted on GitHub and got a reply. sc miss-match means that it can't find the start code for the HEVC stream.
How are you guys extracting the 2 HEVC streams from the M2TS file?
How are you guys extracting the 2 HEVC streams from the M2TS file?
-
Grencola
- Posts: 343
- Joined: Sun Jan 27, 2019 5:19 pm
Re: Dolby Vision now possible through MP4 Mux.
grab the latest version of tsmuxer, add the largest m2ts file from the bdmv\streams folder, select the two video streams, choose demux at bottom, and hit start.jakeycrx wrote: Tue Jan 29, 2019 7:41 am How are you guys extracting the 2 HEVC streams from the M2TS file?
-
jakeycrx
- Posts: 3
- Joined: Mon Jan 28, 2019 12:59 pm
Re: Dolby Vision now possible through MP4 Mux.
Thanks. I got there in the end. The mistake I made was extracting the 2 streams using MKVtoolnix. I added the .hevc extension when I saved them and they were listed as .hevc files but MP4muxer didn't like them and that's what what was giving the "SC miss-match" error. I think SC stands for start code.Grencola wrote: Tue Jan 29, 2019 2:00 pmgrab the latest version of tsmuxer, add the largest m2ts file from the bdmv\streams folder, select the two video streams, choose demux at bottom, and hit start.jakeycrx wrote: Tue Jan 29, 2019 7:41 am How are you guys extracting the 2 HEVC streams from the M2TS file?
I've made 2 files (Fate of the Furious and Venom) and they both play with DoVi through Plex on my LG C8. I wasn't expecting to get DoVi through Plex so that was a pleasant surprise. They can just sit in my 4K movie library with all my non DoVi content. The LG always tells you whether you're playing HDR or DoVi with the banner in the top corner when you first play the file so I'll know what is DoVi.
I've found an MKV file with the 2 streams present so I'm going to run a test by extracting them and see if it works that way. I'll report back shortly.
-
olevelo
- Posts: 121
- Joined: Thu Dec 20, 2018 11:59 pm
Re: Dolby Vision now possible through MP4 Mux.
Thanks, I'll try that when I get a chance. Is the process any different for a TrueHD stream? Because that's what I was trying it with before. Thought I did those exact steps but only got the 10 second file.Grencola wrote: Tue Jan 29, 2019 4:01 am heh alright then. yea for sure I can help, XMedia Recode works well. like I said the eac3 file I create from hd-audio has 1536kbps vs the196kbps ac3 file. that's a huge differencedemux the hd-audio track, let's use dts-hd for example, in TSMuxer (don't select down-convert) which spits out a .dts file (you've obviously done this part already). then add the dts file into XMedia Recode, and then on the preset pull down choose custom and find e-ac3 from the big list. then on the pulldown that says stereo choose 5.1 (front left, front right, center, side left, side right (cuz rear left and rear right is for 7.1), I believe it's the 2nd from the bottom. then under bitrate pulldown choose the largest one at the end (1536kbps), then click add to queue and hit encode. it'll produce a new dts file but this time it has the original dts track, and the new dd+ eac3 track you created. add this new dts file back into tsmuxer and demux one last time. it will split them apart and you'll get an ac3 file, which when you check the media info will show dd+ eac3 1536kbps that plays great.
-
Grencola
- Posts: 343
- Joined: Sun Jan 27, 2019 5:19 pm
Re: Dolby Vision now possible through MP4 Mux.
good to hear. yea lg tv's can play dv mp4s via plex perfectly. having issues getting it to work on a Vizio, however. I've direct direct play direct stream etc but always reverts back to hdr10. usb playback works fine but plex is so much nicer.jakeycrx wrote: Tue Jan 29, 2019 5:04 pmThanks. I got there in the end. The mistake I made was extracting the 2 streams using MKVtoolnix. I added the .hevc extension when I saved them and they were listed as .hevc files but MP4muxer didn't like them and that's what what was giving the "SC miss-match" error. I think SC stands for start code.Grencola wrote: Tue Jan 29, 2019 2:00 pmgrab the latest version of tsmuxer, add the largest m2ts file from the bdmv\streams folder, select the two video streams, choose demux at bottom, and hit start.jakeycrx wrote: Tue Jan 29, 2019 7:41 am How are you guys extracting the 2 HEVC streams from the M2TS file?
I've made 2 files (Fate of the Furious and Venom) and they both play with DoVi through Plex on my LG C8. I wasn't expecting to get DoVi through Plex so that was a pleasant surprise. They can just sit in my 4K movie library with all my non DoVi content. The LG always tells you whether you're playing HDR or DoVi with the banner in the top corner when you first play the file so I'll know what is DoVi.
I've found an MKV file with the 2 streams present so I'm going to run a test by extracting them and see if it works that way. I'll report back shortly.
I also made an mp4 from an mkv remux after reading someone was successful. the DV logo popped up right, but it just showed a blank screen the whole time and only had 4 seconds of audio. let me know how you make out cuz I may try again with a different movie.
-
Grencola
- Posts: 343
- Joined: Sun Jan 27, 2019 5:19 pm
Re: Dolby Vision now possible through MP4 Mux.
yep, same thing with truehdolevelo wrote: Tue Jan 29, 2019 5:53 pm Thanks, I'll try that when I get a chance. Is the process any different for a TrueHD stream? Because that's what I was trying it with before. Thought I did those exact steps but only got the 10 second file.
-
Fuso90
- Posts: 7
- Joined: Wed Jan 30, 2019 4:15 pm
Re: Dolby Vision now possible through MP4 Mux.
I've just tried that but nothing happens. It starts to write to my HDD, creates the file movie.mp4, after ~15 mins the cmd prompt closes and the output file movie.mp4 is 0 bytes in size...Grencola wrote: Sun Jan 27, 2019 7:12 pm make this script:
open a new text file and paste in:
ren *track1.hevc baselayer.hevc
ren *track2.hevc dvlayer.hevc
ren *.ac3 audio.ac3
mp4muxer_64bits.exe --dv-profile 7 --input-file baselayer.hevc --input-file dvlayer.hevc --input-file audio.eac3 --media-lang eng --output-file movie.mp4
save it to where you keep your mp4muxer exe, and rename it to startmux.cmd
then whenever you're done demuxing a movie and converting audio, just place a copy of mp4muxer and startmux.cmd into your chosen demux folder and double click on startmux.cmd![]()
-
Grencola
- Posts: 343
- Joined: Sun Jan 27, 2019 5:19 pm
Re: Dolby Vision now possible through MP4 Mux.
Fuso90 wrote: Wed Jan 30, 2019 6:05 pmI've just tried that but nothing happens. It starts to write to my HDD, creates the file movie.mp4, after ~15 mins the cmd prompt closes and the output file movie.mp4 is 0 bytes in size...Grencola wrote: Sun Jan 27, 2019 7:12 pm make this script:
open a new text file and paste in:
ren *track1.hevc baselayer.hevc
ren *track2.hevc dvlayer.hevc
ren *.ac3 audio.ac3
mp4muxer_64bits.exe --dv-profile 7 --input-file baselayer.hevc --input-file dvlayer.hevc --input-file audio.eac3 --media-lang eng --output-file movie.mp4
save it to where you keep your mp4muxer exe, and rename it to startmux.cmd
then whenever you're done demuxing a movie and converting audio, just place a copy of mp4muxer and startmux.cmd into your chosen demux folder and double click on startmux.cmd![]()
oh oops, thx for pointing this out, I edited my original post. put this in startmux.cmd instead:
ren *.hevc baselayer.hevc
ren 0*.hevc dvlayer.hevc
ren *.ac3 audio.ac3
mp4muxer_64bits.exe --dv-profile 7 --input-file baselayer.hevc --input-file dvlayer.hevc --input-file audio.eac3 --media-lang eng --output-file movie.mp4
Last edited by Grencola on Thu Jan 31, 2019 2:05 pm, edited 1 time in total.
-
powdeau
- Posts: 57
- Joined: Sat Jan 12, 2019 1:01 am
Re: Dolby Vision now possible through MP4 Mux.
How did you convert DTS-HD MA or TrueHd to e-ac3 with eac3to? I´ve tried it and it did´t work.
-
Grencola
- Posts: 343
- Joined: Sun Jan 27, 2019 5:19 pm
Re: Dolby Vision now possible through MP4 Mux.
from cmd prompt:powdeau wrote: Wed Jan 30, 2019 11:06 pm How did you convert DTS-HD MA or TrueHd to e-ac3 with eac3to? I´ve tried it and it did´t work.
eac3to old.dts new.eac3
only sometimes works for me though, but my XMedia Recode method is flawless
-
powdeau
- Posts: 57
- Joined: Sat Jan 12, 2019 1:01 am
Re: Dolby Vision now possible through MP4 Mux.
I’ve tried that with cmd, but I got messeage that the conversion is not supported. It works with XMedia but if I set the bitrate to 1536, my AVR cannot play it, so I have to set it only to 768, which isn’t much different from the classic ac3. It would be great if I could set the bitrate manually (e.g. 1400) and it might work.
-
Grencola
- Posts: 343
- Joined: Sun Jan 27, 2019 5:19 pm
Re: Dolby Vision now possible through MP4 Mux.
Yea that's typically the case. too bad your AVR doesn't work thoughpowdeau wrote: Wed Jan 30, 2019 11:06 pm
I’ve tried that with cmd, but I got messeage that the conversion is not supported. It works with XMedia but if I set the bitrate to 1536, my AVR cannot play it, so I have to set it only to 768, which isn’t much different from the classic ac3. It would be great if I could set the bitrate manually (e.g. 1400) and it might work.
-
Fuso90
- Posts: 7
- Joined: Wed Jan 30, 2019 4:15 pm
Re: Dolby Vision now possible through MP4 Mux.
Not working because it's still looking for baselayer.hevc and dvlayer.hevc, also --input-file audio.eac3 should be ac3, not eac3. I don't think the problem is with the name of files. I named them 1, 2 and 3. I used this line and still produce the same output.Grencola wrote: Wed Jan 30, 2019 7:54 pm oh oops, thx for pointing this out, I edited my original post. put this in startmux.cmd instead:
ren *.hevc layer1.hevc
ren 0*.hevc layer2.hevc
ren *.ac3 audio.ac3
mp4muxer_64bits.exe --dv-profile 7 --input-file baselayer.hevc --input-file dvlayer.hevc --input-file audio.eac3 --media-lang eng --output-file movie.mp4
mp4muxer_64bits.exe --dv-profile 7 --input-file 1.hevc --input-file 2.hevc --input-file 3.ac3 --media-lang eng --output-file movie.mp4
-
Grencola
- Posts: 343
- Joined: Sun Jan 27, 2019 5:19 pm
Re: Dolby Vision now possible through MP4 Mux.
edit again. tired. anyway, as long as the baselayer (largest hevc) is the first input, the dvlayer (smaller hevc) is the second input, and audio is third, it should work just fine. perhaps try a different movie, or demux your hevc's again? :/Fuso90 wrote: Thu Jan 31, 2019 10:27 amNot working because it's still looking for baselayer.hevc and dvlayer.hevc, also --input-file audio.eac3 should be ac3, not eac3. I don't think the problem is with the name of files. I named them 1, 2 and 3. I used this line and still produce the same output.Grencola wrote: Wed Jan 30, 2019 7:54 pm oh oops, thx for pointing this out, I edited my original post. put this in startmux.cmd instead:
ren *.hevc layer1.hevc
ren 0*.hevc layer2.hevc
ren *.ac3 audio.ac3
mp4muxer_64bits.exe --dv-profile 7 --input-file baselayer.hevc --input-file dvlayer.hevc --input-file audio.eac3 --media-lang eng --output-file movie.mp4
mp4muxer_64bits.exe --dv-profile 7 --input-file 1.hevc --input-file 2.hevc --input-file 3.ac3 --media-lang eng --output-file movie.mp4
-
p90rippin
- Posts: 3
- Joined: Sun Feb 03, 2019 1:10 am
Re: Dolby Vision now possible through MP4 Mux.
Try this... I set a size of 1.9 GB for the main 4k track and anything less for the Dolby Vision track...
____________________________________________________________________________________
:: This bat file executes the creation of a Dolby Vision MP4 file
:: that can be played on an LG TV or other similar compliant
:: TV's or media players
:: 1 Searches for the main 4k hevc file > 1.9 GB and renames it as the primary 4k track_1
:: 2 Searches for the Dolby Vision hevc file < 1.9 GB and renames it as the Dolby Vision track_2
:: 3 Searches for any ac3 file and renames it for the MP4 muxer
:: 4 The MP4muxer creates the new DolbyVision.mp4 file
:: ***All the .bat code begins below this line; run the .bat in the file folder or include a "cd" command***
forfiles /M *.hevc /C "CMD /C if @fsize gtr 1999999999 rename @file dv.track_1.hevc"
forfiles /M *.hevc /C "CMD /C if @fsize lss 1999999999 rename @file dv.track_2.hevc"
forfiles /M *.ac3 /C "CMD /C rename @file dv.track_1.ac3"
mp4muxer_64bits.exe --dv-profile 7 -i dv.track_1.hevc -i dv.track_2.hevc -i dv.track_1.ac3 --media-lang eng -o DolbyVision.mp4
pause
__________________________________________________________________________________________
*Edited as per identified issues. Will work on movies with a Dolby Vision track < 2 GB. See my most recent post for a PowerShell script that will run on any size of file.
____________________________________________________________________________________
:: This bat file executes the creation of a Dolby Vision MP4 file
:: that can be played on an LG TV or other similar compliant
:: TV's or media players
:: 1 Searches for the main 4k hevc file > 1.9 GB and renames it as the primary 4k track_1
:: 2 Searches for the Dolby Vision hevc file < 1.9 GB and renames it as the Dolby Vision track_2
:: 3 Searches for any ac3 file and renames it for the MP4 muxer
:: 4 The MP4muxer creates the new DolbyVision.mp4 file
:: ***All the .bat code begins below this line; run the .bat in the file folder or include a "cd" command***
forfiles /M *.hevc /C "CMD /C if @fsize gtr 1999999999 rename @file dv.track_1.hevc"
forfiles /M *.hevc /C "CMD /C if @fsize lss 1999999999 rename @file dv.track_2.hevc"
forfiles /M *.ac3 /C "CMD /C rename @file dv.track_1.ac3"
mp4muxer_64bits.exe --dv-profile 7 -i dv.track_1.hevc -i dv.track_2.hevc -i dv.track_1.ac3 --media-lang eng -o DolbyVision.mp4
pause
__________________________________________________________________________________________
*Edited as per identified issues. Will work on movies with a Dolby Vision track < 2 GB. See my most recent post for a PowerShell script that will run on any size of file.
Last edited by p90rippin on Thu Feb 07, 2019 4:20 am, edited 1 time in total.