Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
staknhalo
Posts: 161
Joined: Sun Oct 11, 2020 12:05 am

Re: Dolby Vision now possible through MP4 Mux.

Post by staknhalo »

RESET_9999 wrote:
Sun Mar 26, 2023 10:25 pm
I used mkvextract to demux and mp4box (my script 7-1-1) to mux to mp4.
OK I'll try this later on (gotta make dinner) and report back

Sorry quietvoid :lol:
Hellboy.
Posts: 15
Joined: Thu Mar 16, 2023 5:24 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Hellboy. »

staknhalo wrote:
Sun Mar 26, 2023 9:18 pm
it shows this way both on Windows with the DV extension installed, and on my DV capable Android TV - so it's not just a Windows thing
What DV extension and player you use to see DV on Windows?
staknhalo
Posts: 161
Joined: Sun Oct 11, 2020 12:05 am

Re: Dolby Vision now possible through MP4 Mux.

Post by staknhalo »

Hellboy. wrote:
Sun Mar 26, 2023 10:35 pm
staknhalo wrote:
Sun Mar 26, 2023 9:18 pm
it shows this way both on Windows with the DV extension installed, and on my DV capable Android TV - so it's not just a Windows thing
What DV extension and player you use to see DV on Windows?
https://www.microsoft.com/store/productId/9PLTG1LWPHLF

Install that and then either the Microsoft Movies & TV app or the new Windows Media Player (from the store only not the built in WMP)

It works with mp4 only not mkv and DV8 and DV5 only not DV7

Reset said he doesn't like the accuracy of it IIRC (not color/PQ accurate or something)
tjreis2
Posts: 21
Joined: Sat Oct 29, 2022 3:40 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by tjreis2 »

Hello @RESET_9999!

I have a question regarding the best way to playback DV FEL files. My setup is almost the same as yours (LG C2 and a Denon AVR) but i have a shield Pro.

I was wondering if upgrading to the x800m2 would be a good idea as it has FEL support but i was looking at previous posts and saw that the L1/L2 bugs affect this player.

Is there any difference between the two players for DV playback (besides the red push in the shield which I also see)? What is your current setup?
staknhalo
Posts: 161
Joined: Sun Oct 11, 2020 12:05 am

Re: Dolby Vision now possible through MP4 Mux.

Post by staknhalo »

RESET_9999 wrote:
Sun Mar 26, 2023 10:25 pm
I used mkvextract to demux and mp4box (my script 7-1-1) to mux to mp4.
Hey - I tried just using mkvextract first just to A/B test what the problem might be - and had the same issue - but that led me to notice your test file that played fine for me is codec ID hev1 - whereas mine come out hvc1 - I thought mp4box only spits out hvc1 unless DV5? And that the Dovi mp4muxer is what spits out hev1?

quietvoid said it looked like decoder errors - and isn't the codec ID SW (hev1) vs HW (hvc1) based decode? And that's why on Apple hev1 stutters?
RESET_9999
Posts: 2090
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

staknhalo wrote:
Sun Mar 26, 2023 11:53 pm
I thought mp4box only spits out hvc1 unless DV5? And that the Dovi mp4muxer is what spits out hev1?
7-1-1 in my script doesn't not use the mp4muxer unless your input has 7.1 lossless audio. It's mp4box doing the muxing and the people that tested on the appletv did not complain about stuttering.
so the test file I sent you is from mp4box only.
RESET_9999
Posts: 2090
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

tjreis2 wrote:
Sun Mar 26, 2023 11:29 pm
Hello @RESET_9999!

I have a question regarding the best way to playback DV FEL files. My setup is almost the same as yours (LG C2 and a Denon AVR) but i have a shield Pro.

I was wondering if upgrading to the x800m2 would be a good idea as it has FEL support but i was looking at previous posts and saw that the L1/L2 bugs affect this player.

Is there any difference between the two players for DV playback (besides the red push in the shield which I also see)? What is your current setup?
overall, the x800m2 (or oppo and x700) easily wins over the shield in terms of quality.
Not to mention that some bluray lately has been using FEL to expand the brightness of the BL and these blurays can only be played properly on FEL devices.(unless you bake FEL into the BL)
EG:
https://www.youtube.com/watch?v=VObky4peBXE
staknhalo
Posts: 161
Joined: Sun Oct 11, 2020 12:05 am

Re: Dolby Vision now possible through MP4 Mux.

Post by staknhalo »

RESET_9999 wrote:
Mon Mar 27, 2023 12:04 am
staknhalo wrote:
Sun Mar 26, 2023 11:53 pm
I thought mp4box only spits out hvc1 unless DV5? And that the Dovi mp4muxer is what spits out hev1?
7-1-1 in my script doesn't not use the mp4muxer unless your input has 7.1 lossless audio. It's mp4box doing the muxing and the people that tested on the appletv did not complain about stuttering.
so the test file I sent you is from mp4box only.
What command did you use through mp4box (through your scripts) to get hev1 codec then? And the test file stutters on my iPhone just like when me and the Chinese guy here were figuring out the whole stuttering thing with the hev1/hvc1 codec ID. I can try and screen record that if you want.

You might want to check if a line in one of your scripts is off and it's sending stuff to mp4muxer instead of mp4box? Look at the codec ID of the file you gave me and try pumping another one out through command line only and mp4box only yourself - without going through your scripts at all to eliminate it possibly accidentally using mp4muxer?

Here's your file codec ID

Image

Here's directly piped out though mp4box with command line:

Image

Your file also doesn't have the mp4box bug of listing HDR10 over and over when a DV file
RESET_9999
Posts: 2090
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

staknhalo wrote:
Mon Mar 27, 2023 12:26 am
You might want to check if a line in one of your scripts is off and it's sending stuff to mp4muxer instead of mp4box?
it possibly accidentally using mp4muxer?
no it's not.
As I said, only if your input has lossless 7.1, then mp4muxer will be used because mp4box choke on 7.1 EC3 audio muxing.

my cmd is full of variable but if you input raw hevc:

Code: Select all

findstr /c:"08" "%TEMP%check.DV.txt" >Nul
if %errorlevel%==0 (
     set DV.profile=8& set mbox=:hdr=none:dv-profile=8.1:xps_inband

Code: Select all

if "%fileext%"==".h265" (
     "%mp4box2_path%" -add "%filepath%%filename%%fileext%"%FPS%%mbox%:name= -tmp %TEMP% -brand mp42isom -ab dby1 -no-iod -enable 1 "%output_path%%filename%_DoVi.mp4"
	 if "%DV.profile%"=="5" %DVH1% "%output_path%%filename%_DoVi.mp4" >Nul
	 goto :end
)
if "%fileext%"==".hevc" (
     "%mp4box2_path%" -add "%filepath%%filename%%fileext%"%FPS%%mbox%:name= -tmp %TEMP% -brand mp42isom -ab dby1 -no-iod -enable 1 "%output_path%%filename%_DoVi.mp4"
	 if "%DV.profile%"=="5" %DVH1% "%output_path%%filename%_DoVi.mp4" >Nul
	 goto :end
)
if if input file with audio and subs:

Code: Select all

"%mp4box2_path%" -add %HDR%%FPS%%mbox%:name=  %A1% %A11% %A2% %A22% %A3% %A33% %A4% %A44% %A5% %A55% %A6% %A7% %A8% %A9% %A10% %S1% %S2% %S3% %S4% %S5% %S6% %S7% %S8% %S9% %S10% %S11% %S12% %S13% %S14% %S15% %S16% %S17% %S18% %S19% %S20% %S21% %S22% %S23% %S24% %S25% %S26% %S27% %S29% %S30% %S31% %S32% %S33% %S34% %S35% %S36% %S37% %S38% %S39% %S40% %S41% %S42% %S43% -tmp %TEMP% -brand mp42isom -ab dby1 -no-iod -enable 1 "%output_path%%filename%_DoVi.mp4"
if "%DV.profile%"=="5" %DVH1% "%output_path%%filename%_DoVi.mp4" >Nul
Your file also doesn't have the mp4box bug of listing HDR10 over and over when a DV file
:hdr=none:dv-profile=8.1:xps_inband
staknhalo
Posts: 161
Joined: Sun Oct 11, 2020 12:05 am

Re: Dolby Vision now possible through MP4 Mux.

Post by staknhalo »

RESET_9999 wrote:
Mon Mar 27, 2023 12:32 am
staknhalo wrote:
Mon Mar 27, 2023 12:26 am
You might want to check if a line in one of your scripts is off and it's sending stuff to mp4muxer instead of mp4box?
it possibly accidentally using mp4muxer?
no it's not.
As I said, only if your input has lossless 7.1, then mp4muxer will be used because mp4box choke on 7.1 EC3 audio muxing.

my cmd is full of variable but if you input raw hevc:

Code: Select all

findstr /c:"08" "%TEMP%check.DV.txt" >Nul
if %errorlevel%==0 (
     set DV.profile=8& set mbox=:hdr=none:dv-profile=8.1:xps_inband

Code: Select all

if "%fileext%"==".h265" (
     "%mp4box2_path%" -add "%filepath%%filename%%fileext%"%FPS%%mbox%:name= -tmp %TEMP% -brand mp42isom -ab dby1 -no-iod -enable 1 "%output_path%%filename%_DoVi.mp4"
	 if "%DV.profile%"=="5" %DVH1% "%output_path%%filename%_DoVi.mp4" >Nul
	 goto :end
)
if "%fileext%"==".hevc" (
     "%mp4box2_path%" -add "%filepath%%filename%%fileext%"%FPS%%mbox%:name= -tmp %TEMP% -brand mp42isom -ab dby1 -no-iod -enable 1 "%output_path%%filename%_DoVi.mp4"
	 if "%DV.profile%"=="5" %DVH1% "%output_path%%filename%_DoVi.mp4" >Nul
	 goto :end
)
if if input file with audio and subs:

Code: Select all

"%mp4box2_path%" -add %HDR%%FPS%%mbox%:name=  %A1% %A11% %A2% %A22% %A3% %A33% %A4% %A44% %A5% %A55% %A6% %A7% %A8% %A9% %A10% %S1% %S2% %S3% %S4% %S5% %S6% %S7% %S8% %S9% %S10% %S11% %S12% %S13% %S14% %S15% %S16% %S17% %S18% %S19% %S20% %S21% %S22% %S23% %S24% %S25% %S26% %S27% %S29% %S30% %S31% %S32% %S33% %S34% %S35% %S36% %S37% %S38% %S39% %S40% %S41% %S42% %S43% -tmp %TEMP% -brand mp42isom -ab dby1 -no-iod -enable 1 "%output_path%%filename%_DoVi.mp4"
if "%DV.profile%"=="5" %DVH1% "%output_path%%filename%_DoVi.mp4" >Nul
Your file also doesn't have the mp4box bug of listing HDR10 over and over when a DV file
:hdr=none:dv-profile=8.1:xps_inband
So then how does your file get hev1 when mp4box spits out hvc1 - you have to be actively putting in a command to do that then?
staknhalo
Posts: 161
Joined: Sun Oct 11, 2020 12:05 am

Re: Dolby Vision now possible through MP4 Mux.

Post by staknhalo »

Also here you can see because the file does end up with codec ID hev1 however it does - it does stutter on iOS devices like me and that Chinese guy were talking about a while back

https://i.imgur.com/RWmfX1m.mp4
staknhalo
Posts: 161
Joined: Sun Oct 11, 2020 12:05 am

Re: Dolby Vision now possible through MP4 Mux.

Post by staknhalo »

RESET_9999 wrote:
Mon Mar 27, 2023 12:32 am
staknhalo wrote:
Mon Mar 27, 2023 12:26 am
You might want to check if a line in one of your scripts is off and it's sending stuff to mp4muxer instead of mp4box?
it possibly accidentally using mp4muxer?
no it's not.
As I said, only if your input has lossless 7.1, then mp4muxer will be used because mp4box choke on 7.1 EC3 audio muxing.

my cmd is full of variable but if you input raw hevc:

Code: Select all

findstr /c:"08" "%TEMP%check.DV.txt" >Nul
if %errorlevel%==0 (
     set DV.profile=8& set mbox=:hdr=none:dv-profile=8.1:xps_inband

Code: Select all

if "%fileext%"==".h265" (
     "%mp4box2_path%" -add "%filepath%%filename%%fileext%"%FPS%%mbox%:name= -tmp %TEMP% -brand mp42isom -ab dby1 -no-iod -enable 1 "%output_path%%filename%_DoVi.mp4"
	 if "%DV.profile%"=="5" %DVH1% "%output_path%%filename%_DoVi.mp4" >Nul
	 goto :end
)
if "%fileext%"==".hevc" (
     "%mp4box2_path%" -add "%filepath%%filename%%fileext%"%FPS%%mbox%:name= -tmp %TEMP% -brand mp42isom -ab dby1 -no-iod -enable 1 "%output_path%%filename%_DoVi.mp4"
	 if "%DV.profile%"=="5" %DVH1% "%output_path%%filename%_DoVi.mp4" >Nul
	 goto :end
)
if if input file with audio and subs:

Code: Select all

"%mp4box2_path%" -add %HDR%%FPS%%mbox%:name=  %A1% %A11% %A2% %A22% %A3% %A33% %A4% %A44% %A5% %A55% %A6% %A7% %A8% %A9% %A10% %S1% %S2% %S3% %S4% %S5% %S6% %S7% %S8% %S9% %S10% %S11% %S12% %S13% %S14% %S15% %S16% %S17% %S18% %S19% %S20% %S21% %S22% %S23% %S24% %S25% %S26% %S27% %S29% %S30% %S31% %S32% %S33% %S34% %S35% %S36% %S37% %S38% %S39% %S40% %S41% %S42% %S43% -tmp %TEMP% -brand mp42isom -ab dby1 -no-iod -enable 1 "%output_path%%filename%_DoVi.mp4"
if "%DV.profile%"=="5" %DVH1% "%output_path%%filename%_DoVi.mp4" >Nul
Your file also doesn't have the mp4box bug of listing HDR10 over and over when a DV file
:hdr=none:dv-profile=8.1:xps_inband
Ah - you are using the 'brand' command I see - but that still creates/results in the stutter as shown here
staknhalo wrote:
Mon Mar 27, 2023 1:07 am
Also here you can see because the file does end up with codec ID hev1 however it does - it does stutter on iOS devices like me and that Chinese guy were talking about a while back

https://i.imgur.com/RWmfX1m.mp4
Edit: nope even trying -brand hev1 still spits out hvc1 for me
staknhalo
Posts: 161
Joined: Sun Oct 11, 2020 12:05 am

Re: Dolby Vision now possible through MP4 Mux.

Post by staknhalo »

mp4box -add video.hevc:dvp=8.1:xps_inband:hdr=none -brand -add audio.eac3:lang=eng -new p8.mp4

This spits out a hev1 file for me with mp4box - it has to be the
-brand
command and the
:xps_inband:hdr=none
together

Still ends up stuttering on iOS though because hev1 :/
sw5163
Posts: 146
Joined: Sat Jun 25, 2022 7:28 am

Re: Dolby Vision now possible through MP4 Mux.

Post by sw5163 »

staknhalo wrote:
Mon Mar 27, 2023 1:33 am
:xps_inband produces hev1 flag
:hdr=none removes "mp4box bug of listing HDR10 over and over"
https://github.com/gpac/gpac/issues/199 ... 1007999585

I saw the wrong image of P8.1 NF release a while ago but I thought it was because file corrupted.
The P5 of same file is fine, though.
Last edited by sw5163 on Mon Mar 27, 2023 1:45 am, edited 1 time in total.
staknhalo
Posts: 161
Joined: Sun Oct 11, 2020 12:05 am

Re: Dolby Vision now possible through MP4 Mux.

Post by staknhalo »

sw5163 wrote:
Mon Mar 27, 2023 1:41 am
staknhalo wrote:
Mon Mar 27, 2023 1:33 am
:xps_inband produces hev1 flag
:hdr=none removes "mp4box bug of listing HDR10 over and over"
https://github.com/gpac/gpac/issues/199 ... 1007999585
Got it, thank you for clarifying :D
Post Reply