Page 5 of 756
Re: Dolby Vision now possible through MP4 Mux.
Posted: Tue Jan 29, 2019 7:41 am
by jakeycrx
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?
Re: Dolby Vision now possible through MP4 Mux.
Posted: Tue Jan 29, 2019 2:00 pm
by Grencola
jakeycrx wrote: Tue Jan 29, 2019 7:41 am
How are you guys extracting the 2 HEVC streams from the M2TS file?
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.
Re: Dolby Vision now possible through MP4 Mux.
Posted: Tue Jan 29, 2019 5:04 pm
by jakeycrx
Grencola wrote: Tue Jan 29, 2019 2:00 pm
jakeycrx wrote: Tue Jan 29, 2019 7:41 am
How are you guys extracting the 2 HEVC streams from the M2TS file?
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.
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.
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.
Re: Dolby Vision now possible through MP4 Mux.
Posted: Tue Jan 29, 2019 5:53 pm
by olevelo
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 difference

demux 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.
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.
Re: Dolby Vision now possible through MP4 Mux.
Posted: Wed Jan 30, 2019 2:41 pm
by Grencola
jakeycrx wrote: Tue Jan 29, 2019 5:04 pm
Grencola wrote: Tue Jan 29, 2019 2:00 pm
jakeycrx wrote: Tue Jan 29, 2019 7:41 am
How are you guys extracting the 2 HEVC streams from the M2TS file?
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.
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.
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.
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.
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.
Re: Dolby Vision now possible through MP4 Mux.
Posted: Wed Jan 30, 2019 2:43 pm
by Grencola
olevelo 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.
yep, same thing with truehd

Re: Dolby Vision now possible through MP4 Mux.
Posted: Wed Jan 30, 2019 6:05 pm
by Fuso90
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
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...
Re: Dolby Vision now possible through MP4 Mux.
Posted: Wed Jan 30, 2019 7:54 pm
by Grencola
Fuso90 wrote: Wed Jan 30, 2019 6:05 pm
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
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...
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
Re: Dolby Vision now possible through MP4 Mux.
Posted: Wed Jan 30, 2019 11:06 pm
by powdeau
How did you convert DTS-HD MA or TrueHd to e-ac3 with eac3to? I´ve tried it and it did´t work.
Re: Dolby Vision now possible through MP4 Mux.
Posted: Thu Jan 31, 2019 2:04 am
by Grencola
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.
from cmd prompt:
eac3to old.dts new.eac3
only sometimes works for me though, but my XMedia Recode method is flawless
Re: Dolby Vision now possible through MP4 Mux.
Posted: Thu Jan 31, 2019 3:53 am
by powdeau
Grencola wrote: Thu Jan 31, 2019 2:04 am
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.
from cmd prompt:
eac3to old.dts new.eac3
only sometimes works for me though, but my XMedia Recode method is flawless
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.
Re: Dolby Vision now possible through MP4 Mux.
Posted: Thu Jan 31, 2019 4:18 am
by Grencola
powdeau 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.
Yea that's typically the case. too bad your AVR doesn't work though

there might be a way to manually set it, I'll look into it.
Re: Dolby Vision now possible through MP4 Mux.
Posted: Thu Jan 31, 2019 10:27 am
by Fuso90
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
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.
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
Re: Dolby Vision now possible through MP4 Mux.
Posted: Thu Jan 31, 2019 2:03 pm
by Grencola
Fuso90 wrote: Thu Jan 31, 2019 10:27 am
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
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.
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
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? :/
Re: Dolby Vision now possible through MP4 Mux.
Posted: Sun Feb 03, 2019 1:19 am
by p90rippin
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.