UPDATE 07/11/20
Added experimental support for BluRay folder and related playlists (more info HERE)
HERE you can find what I was working on last weekend.
This is v0.0.4 GAMMA "only for the brave" edition!
It is a partial job, there is no guarantee that it will work, but first of all I have to understand if I am proceeding on the right path and to do it I need to understand what is wrong. The tests that I can do alone are a limited number so "unity is strength": the more tests we do, the more errors we will discover and there will be more chances for me to be able to correct what doesn't work!
The new tool only works on Windows (for now): I'm sure that people who use Linux are ready to use their quadruple boot
When I experiment on Windows I often use THESE virtual machines (fast and clean method). The login password is "Passw0rd!"
How does it work.
Given as input a Dual Track Dual Layer DoVi file (for now use the m2ts files present in the decrypted folders of your UHD-BDs), the tool should return a Single Track Dual Layer MKV file ready to be played on your devices.
During the process you have the possibility to choose all the audio tracks and subtitles you want!
Please, don't use movies like Gemini Man (with fps > 30).
The more practical ones can also test MKV and TS files (always DTDL) as input.
How to use
Three simple steps:
- Build two working command lines and launch them in two separate Command Prompt windows
- Wait
- Patch the MKV obtained at the end of the first step
Step ONE
The first point is the most complicated for the less experienced: don't be afraid, it's all very simple. Follow the instructions. But please don't flood this thread with posts on how to use a command line. Read every single word and if you make any mistakes, read and reread again !!!!
To open a Command Prompt window I created a useful file: double click on "Open_Command_Prompt_HERE.bat".
Open two windows using the previous file twice.
Let's move on to the command lines.
The parts in blue are the only parts you need to edit. Leave the rest unchanged.
To paste a command line into Prompt, after copying it, right click inside the window with "black background".
One command line for each Prompt window.
First window and first command line
As written, this command line will generate a FEL or MEL file.python-3.7.6.amd64\python.exe src\app.py -mux -exp \path\to\your\original\file.m2ts
If you have a FEL file and want a MEL file, add the -fel_to_mel switch before the -mux one.
If you have a FEL or MEL file and want an 8.1 profile file add the -mode 2 switch before the -mux one.
-mode 2 and -fel_to_mel cannot be used in the same command line.
If you want to skip HDR10+ metadata add the -skip_hdr10plus switch (the latter can be combined with either of the first two switches).
Simple, isn't it?
Second window and second command line
As written, this command line will generate an MKV file (the third blue line). The video comes from my tool; the audio instead comes from the original m2ts file (the first blue line ... the first audio is usually TrueHD/ATMOS).src\Gpac\gpac.exe -i pipe://video:ext=hevc:audelim=true -o stdout:ext=ts:pes_pack=none | src\FFmpeg\ffmpeg_win_x64.exe -hide_banner -y -i - -i \path\to\your\original\file.m2ts -map 0:0 -map 1:2 -c copy -bsf:v hevc_metadata=aud=insert -metadata title="Movie Title_________________________________________________________________________" \path\to\your\output\file.mkv
This command line is related only to FFmpeg: if you want to create more complex files (more audio tracks, subtitles, etc... also coming from sources other than the original m2ts file) you have to learn how to use FFmpeg (in particular the -map switch. Take a look HERE ).
For now, if you are a beginner, do some simple tests (a video track and an audio track as indicated).
Why all those underscores? You'll find out in step three!
You need 73 underscores if you want to get a file with profile 7 (as is the case with the current command line) and 37 if you want a file with profile 8.
Code: Select all
#profile 7
Movie Title_________________________________________________________________________
#profile 8
Movie Title_____________________________________Step TWO
You have to wait for the processes to complete.
If anything goes wrong, close everything and open Task Manager to permanently kill any remaining active processes.
If you don't know what the Task Manager is and you notice significant slowdowns then restart your computer!
Step THREE
FFmpeg (as well as mkvtoolnix) cannot generate files with DoVi. He needs a little help.
I found a way! Remember all those underscores from earlier? I need them to create a void that I can fill with my precious Bytes
Open the "MKV_Patcher.bat" file, drag and drop the MKV file obtained in step ONE, press ENTER and, when prompted, enter 7 if you are creating a FEL\MEL file or 8 in the case of an 8.1 profile file. Other values are not allowed!
The process will become automatic in the future: it will understand what type of file you created in step ONE and will behave accordingly!
SAMPLES
HERE
Happy Testing!