Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
Post Reply
FDM80
Posts: 1
Joined: Sat Oct 17, 2020 11:38 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by FDM80 »

yusesope wrote: Mon Nov 02, 2020 5:45 pm I took @quietvoid's advice and THESE should be the last samples to test ... I hope so :mrgreen: !

There are two samples (I still have a little doubt).
Try them both and let me know.
Thank you for your time!
Both files properly trigger DV mode and play on the LG C7.
yusesope
Posts: 221
Joined: Sun Jul 28, 2019 3:34 am

Re: Dolby Vision now possible through MP4 Mux.

Post by yusesope »

quietvoid wrote: Mon Nov 02, 2020 2:02 pm
yusesope wrote: Mon Nov 02, 2020 11:52 am@quietvoid, if the file works, would you like to test everything before I make it public?
So I can be sure that the new process works on a full movie and on an LG TV.
Thanks!
Sure.
I just sent you a PM with what you need!
When you feel like it, give it a try!
Thanks!


PlatypusW wrote: Mon Nov 02, 2020 9:29 pm I think you already knew the result but just for completion sake:
On my CX both files did the usual "This file cannot be recognised. Do you want to play the next file?"
FDM80 wrote: Mon Nov 02, 2020 10:55 pm Both files properly trigger DV mode and play on the LG C7.
quietvoid wrote: Mon Nov 02, 2020 6:51 pm Both seem to work and playback the same, triggering Dolby Vision on the C8.
It seems that 2020 LG TVs actually have some issues with the DTDL mp4 files generated by both Dolby's mp4muxer and my tool.
I advise the owners of the latter to use files with profile 8.1 (as soon as I have some time, I will update the GAMMA post with instructions to generate MP4 files).


cuculain wrote: Mon Nov 02, 2020 8:12 pm neither of the new files are recognized by the internal Panasonic Z1000 oled / Zidoo Z9x ......... both files played as HDR only
kws53 wrote: Mon Nov 02, 2020 8:54 pm all MP4 samples (including the new 021120 ones) only play HDR. MP4 and Shield apparently do not play well together.
DTDL files can only be played on LG TVs and bluray players.


kws53 wrote: Mon Nov 02, 2020 8:54 pm I've now standardized on using the GAMMA method. I'd like to add Chapters to the MKV file. Any thoughts on how I should proceed?
I haven't tried it yet. Try like this:
using GAMMA, in the second command line:
  • replace

    Code: Select all

    -i \path\to\your\original\file.m2ts
    with

    Code: Select all

    -i bluray:\path\to\bluray
    where \path\to\bluray must be the address of the folder that contains the BDMV folder.

    .
  • before -c copy add the switch -map_chapters 1

EXPLANATION:
On blu-ray chapters are stored in mpls files.
With the "-i bluray:" switch you tell FFmpeg to read the longest playlist (mpls).
With the -map_chapters switch instead you tell FFmpeg to copy the chapters from the second input and insert them in the output file. Remember that, as in programming languages, the first element is always zero. So, in this case, the second input is one (-map_chapters 1)!

I invite you to read how these switches work (bluray and map_chapters).
With FFmpeg you can do whatever you want. It's up to you to read the documentation.
kws53
Posts: 49
Joined: Sun May 04, 2014 9:09 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by kws53 »

DaMacFunkin wrote: Mon Nov 02, 2020 9:06 pm
kws53 wrote: Mon Nov 02, 2020 8:54 pm I've now standardized on using the GAMMA method. I'd like to add Chapters to the MKV file. Any thoughts on how I should proceed?
Drop your new mkv in mkvtoolnix then either add the original mpls file or mkv rip and delete everything except the chapters then remix together.
I considered this originally, but thought that a REMUX would remove the relevant internal metadata/coding. However, a test has confirmed this works!
I now have a Jack Reacher MKV with Chapters triggering DV...
kws53
Posts: 49
Joined: Sun May 04, 2014 9:09 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by kws53 »

yusesope wrote: Tue Nov 03, 2020 10:46 am
kws53 wrote: Mon Nov 02, 2020 8:54 pm I've now standardized on using the GAMMA method. I'd like to add Chapters to the MKV file. Any thoughts on how I should proceed?
I haven't tried it yet. Try like this:
using GAMMA, in the second command line:
  • replace

    Code: Select all

    -i \path\to\your\original\file.m2ts
    with

    Code: Select all

    -i bluray:\path\to\bluray
    where \path\to\bluray must be the address of the folder that contains the BDMV folder.
  • before -c copy add the switch -map_chapters 1

EXPLANATION:
On blu-ray chapters are stored in mpls files.
With the "-i bluray:" switch you tell FFmpeg to read the longest playlist (mpls).
With the -map_chapters switch instead you tell FFmpeg to copy the chapters from the second input and insert them in the output file. Remember that, as in programming languages, the first element is always zero. So, in this case, the second input is one (-map_chapters 1)!

I invite you to read how these switches work (bluray and map_chapters).
With FFmpeg you can do whatever you want. It's up to you to read the documentation.
I'll give this a try (including changing the appropriate code in first command line) and report back. If this works, it will solve another potential problem - UHD with seamless branching (multiple m2ts components).
DaMacFunkin
Posts: 314
Joined: Tue Oct 30, 2018 4:17 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by DaMacFunkin »

kws53 wrote: Tue Nov 03, 2020 5:41 pm
yusesope wrote: Tue Nov 03, 2020 10:46 am
kws53 wrote: Mon Nov 02, 2020 8:54 pm I've now standardized on using the GAMMA method. I'd like to add Chapters to the MKV file. Any thoughts on how I should proceed?
I haven't tried it yet. Try like this:
using GAMMA, in the second command line:
  • replace

    Code: Select all

    -i \path\to\your\original\file.m2ts
    with

    Code: Select all

    -i bluray:\path\to\bluray
    where \path\to\bluray must be the address of the folder that contains the BDMV folder.
  • before -c copy add the switch -map_chapters 1

EXPLANATION:
On blu-ray chapters are stored in mpls files.
With the "-i bluray:" switch you tell FFmpeg to read the longest playlist (mpls).
With the -map_chapters switch instead you tell FFmpeg to copy the chapters from the second input and insert them in the output file. Remember that, as in programming languages, the first element is always zero. So, in this case, the second input is one (-map_chapters 1)!

I invite you to read how these switches work (bluray and map_chapters).
With FFmpeg you can do whatever you want. It's up to you to read the documentation.
I'll give this a try (including changing the appropriate code in first command line) and report back. If this works, it will solve another potential problem - UHD with seamless branching (multiple m2ts components).
If there are multiple main movie playlists, ie 0800, 0801, 0802 and you specifically know you want 0801, cut the other 2 out of the playlist folder, this way ffmpeg will choose 0801 as the only main movie playlist in the folder ;-)
ragico
Posts: 266
Joined: Fri Feb 15, 2019 1:09 am

Re: Dolby Vision now possible through MP4 Mux.

Post by ragico »

@Yusesope

I am trying to use your command for chapters in gamma tool without success.
First command:

Code: Select all

python-3.7.6.amd64\python.exe src\app.py -mode 2 -mux -exp I:\Atomic\BDMV\STREAM\00234.m2ts
Second command:

Code: Select all

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 bluray: I:\Atomic -map 0:0 -map 1:2 -map 1:6 -map 1:11 -map_chapters 1 -c copy -bsf:v hevc_metadata=aud=insert -metadata title="Atomic_____________________________________" D:\Atomic.mkv
And I get this:
Of course my mistake, But "where?"
Attachments
test.jpg
test.jpg (75.09 KiB) Viewed 52098 times
kws53
Posts: 49
Joined: Sun May 04, 2014 9:09 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by kws53 »

ragico wrote: Wed Nov 04, 2020 2:09 pm @Yusesope

I am trying to use your command for chapters in gamma tool without success.
First command:

Code: Select all

python-3.7.6.amd64\python.exe src\app.py -mode 2 -mux -exp I:\Atomic\BDMV\STREAM\00234.m2ts
Second command:

Code: Select all

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 bluray: I:\Atomic -map 0:0 -map 1:2 -map 1:6 -map 1:11 -map_chapters 1 -c copy -bsf:v hevc_metadata=aud=insert -metadata title="Atomic_____________________________________" D:\Atomic.mkv
And I get this:
Of course my mistake, But "where?"
I had the same problem, so I tried (using my files but extending your example):

Code: Select all

python-3.7.6.amd64\python.exe src\app.py -mode 2 -mux -exp bluray:\I:\Atomic
While this revised 1st command executed as expected, the 2nd command exited with a "Pipe" input error. I believe that the 2nd command needs to be reworked for a different input file type.
yusesope
Posts: 221
Joined: Sun Jul 28, 2019 3:34 am

Re: Dolby Vision now possible through MP4 Mux.

Post by yusesope »

ragico wrote: Wed Nov 04, 2020 2:09 pm
kws53 wrote: Wed Nov 04, 2020 4:48 pm
I just realized that the version of FFmpeg I have attached to my tool does not implement the bluray protocol.
To solve, download the full version of FFmpeg HERE, unpack the archive, rename ffmpeg.exe (inside the "bin" folder) to ffmpeg_win_x64.exe and overwrite, with the latter, the same file that you find in the src\FFmpeg folder (inside my tool folder).
Try again and let me know.


ragico wrote: Wed Nov 04, 2020 2:09 pm First command:

Code: Select all

python-3.7.6.amd64\python.exe src\app.py -mode 2 -mux -exp I:\Atomic\BDMV\STREAM\00234.m2ts
Second command:

Code: Select all

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 bluray: I:\Atomic -map 0:0 -map 1:2 -map 1:6 -map 1:11 -map_chapters 1 -c copy -bsf:v hevc_metadata=aud=insert -metadata title="Atomic_____________________________________" D:\Atomic.mkv
There is just one small mistake: remove the space after "bluray:" in the second command line.


kws53 wrote: Wed Nov 04, 2020 4:48 pm I had the same problem, so I tried (using my files but extending your example):

Code: Select all

python-3.7.6.amd64\python.exe src\app.py -mode 2 -mux -exp bluray:\I:\Atomic
While this revised 1st command executed as expected................
I never talked about changes to the first command line.
My tool is programmed to receive a file not a folder address. Besides, he doesn't know what "bluray" is.
And finally the address of the folder written in this way does not make sense in Windows (remove the first Backslash ... \I:\Atomic).
Follow the instructions and take a cue from @ragico's commands (except for the space after "bluray:" in the second command line)



DaMacFunkin wrote: Tue Nov 03, 2020 9:18 pm If there are multiple main movie playlists, ie 0800, 0801, 0802 and you specifically know you want 0801, cut the other 2 out of the playlist folder, this way ffmpeg will choose 0801 as the only main movie playlist in the folder ;-)
There is a special switch in FFmpeg: -playlist :wink:
DaMacFunkin
Posts: 314
Joined: Tue Oct 30, 2018 4:17 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by DaMacFunkin »

ragico wrote: Wed Nov 04, 2020 2:09 pm @Yusesope

I am trying to use your command for chapters in gamma tool without success.
First command:

Code: Select all

python-3.7.6.amd64\python.exe src\app.py -mode 2 -mux -exp I:\Atomic\BDMV\STREAM\00234.m2ts
Second command:

Code: Select all

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 bluray: I:\Atomic -map 0:0 -map 1:2 -map 1:6 -map 1:11 -map_chapters 1 -c copy -bsf:v hevc_metadata=aud=insert -metadata title="Atomic_____________________________________" D:\Atomic.mkv
And I get this:
Of course my mistake, But "where?"
Hi, I’m getting the same error trying to create a -mode 2 from The Hunt For Red October which I’m also having problems with in makemkv
ragico
Posts: 266
Joined: Fri Feb 15, 2019 1:09 am

Re: Dolby Vision now possible through MP4 Mux.

Post by ragico »

yusesope wrote: Wed Nov 04, 2020 6:30 pm
I just realized that the version of FFmpeg I have attached to my tool does not implement the bluray protocol.
To solve, download the full version of FFmpeg HERE, unpack the archive, rename ffmpeg.exe (inside the "bin" folder) to ffmpeg_win_x64.exe and overwrite, with the latter, the same file that you find in the src\FFmpeg folder (inside my tool folder).
Try again and let me know.
Followed your suggestion. Now the program works but the file generated does not contain any chapter and also it does not start playing and stays at zero
kws53
Posts: 49
Joined: Sun May 04, 2014 9:09 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by kws53 »

yusesope wrote: Wed Nov 04, 2020 6:30 pm
kws53 wrote: Wed Nov 04, 2020 4:48 pm I had the same problem, so I tried (using my files but extending your example):

Code: Select all

python-3.7.6.amd64\python.exe src\app.py -mode 2 -mux -exp bluray:\I:\Atomic
While this revised 1st command executed as expected................
I never talked about changes to the first command line.
My tool is programmed to receive a file not a folder address. Besides, he doesn't know what "bluray" is.
And finally the address of the folder written in this way does not make sense in Windows (remove the first Backslash ... \I:\Atomic).
Follow the instructions and take a cue from @ragico's commands (except for the space after "bluray:" in the second command line)
@Yusesope

FYI - bluray:\C:\ and bluray:C:\ are equivalent. I use the additional "\" for clarity.
My interest in exporting the folder address (which we use in Command 2), is to handle seamless branching. By mixing and matching an exported m2ts file with a folder, I can't see how we could handle multiple m2ts files.

And Command 1 worked using the -exp bluray command. While it may not have exported the appropriate data, I received :
"I'M WAITING FOR THE OTHER COMMAND LINE..."
DaMacFunkin
Posts: 314
Joined: Tue Oct 30, 2018 4:17 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by DaMacFunkin »

ragico wrote: Wed Nov 04, 2020 8:19 pm
yusesope wrote: Wed Nov 04, 2020 6:30 pm
I just realized that the version of FFmpeg I have attached to my tool does not implement the bluray protocol.
To solve, download the full version of FFmpeg HERE, unpack the archive, rename ffmpeg.exe (inside the "bin" folder) to ffmpeg_win_x64.exe and overwrite, with the latter, the same file that you find in the src\FFmpeg folder (inside my tool folder).
Try again and let me know.
Followed your suggestion. Now the program works but the file generated does not contain any chapter and also it does not start playing and stays at zero
DaMacFunkin
Posts: 314
Joined: Tue Oct 30, 2018 4:17 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by DaMacFunkin »

DaMacFunkin wrote: Thu Nov 05, 2020 5:56 am
ragico wrote: Wed Nov 04, 2020 8:19 pm
yusesope wrote: Wed Nov 04, 2020 6:30 pm
I just realized that the version of FFmpeg I have attached to my tool does not implement the bluray protocol.
To solve, download the full version of FFmpeg HERE, unpack the archive, rename ffmpeg.exe (inside the "bin" folder) to ffmpeg_win_x64.exe and overwrite, with the latter, the same file that you find in the src\FFmpeg folder (inside my tool folder).
Try again and let me know.
Followed your suggestion. Now the program works but the file generated does not contain any chapter and also it does not start playing and stays at zero
Hi, I got the program to run, my output file didn’t transfer chapters either, I haven’t had time to try on a device yet (so busy at work).
whiplash1
Posts: 38
Joined: Sun Apr 19, 2020 7:40 am

Re: Dolby Vision now possible through MP4 Mux.

Post by whiplash1 »

DaMacFunkin wrote: Thu Nov 05, 2020 5:58 am
DaMacFunkin wrote: Thu Nov 05, 2020 5:56 am
ragico wrote: Wed Nov 04, 2020 8:19 pm

Followed your suggestion. Now the program works but the file generated does not contain any chapter and also it does not start playing and stays at zero
Hi, I got the program to run, my output file didn’t transfer chapters either, I haven’t had time to try on a device yet (so busy at work).
I muxed in chapters using MKVtoolNix, worked fine.
DaMacFunkin
Posts: 314
Joined: Tue Oct 30, 2018 4:17 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by DaMacFunkin »

whiplash1 wrote: Thu Nov 05, 2020 6:46 am
DaMacFunkin wrote: Thu Nov 05, 2020 5:58 am
DaMacFunkin wrote: Thu Nov 05, 2020 5:56 am
Hi, I got the program to run, my output file didn’t transfer chapters either, I haven’t had time to try on a device yet (so busy at work).
I muxed in chapters using MKVtoolNix, worked fine.
yep, done this previously, it’s just an extra step.
Post Reply