The iPhone 12 spec says:
Code: Select all
HDR video recording with Dolby Vision up to 30 fpsCode: Select all
HDR video recording with Dolby Vision up to 30 fpsLast Saturday I was working on just that. I hope to be able to finish next weekend and above all I hope it will workquietvoid wrote: Sun Oct 11, 2020 1:49 pm Maybe a good starting point is to just accept a MKV (in addition to raw that exists already) and be able to output the raw converted HEVC file. That on its own would save a lot of time (demuxing MKV, demuxing BL/EL, converting/remuxing 8.1), and might be simpler to do.
Afterwards, the only step left would be to pass this file through MakeMKV, and it can be reused in the original MKV, simply replacing the video (I'm not sure if mkvtoolnix would keep the headers intact if the video changes to a raw file?).
That way you don't have to handle audio, subtitle, etc.
I can only thank you both for your time.
Great news.ragico wrote: Sun Oct 11, 2020 3:11 pm @Yusesope
Your "test" file plays in both shield and ugoos am6+ and triggers DV.
In Firestick black screen.
So in the end it was HDR10 + ...quietvoid wrote: Mon Oct 12, 2020 11:21 pm Should be trivial to just skip the HDR10+ NAL unit with yusesope's script, since the parsing is well done already
I'll send a patch to yusesope, hopefully it's good enough.
No, they are no longer needed.PapitaHD wrote: Tue Oct 13, 2020 8:01 pm Are these libraries still needed? I forgot to save them and the link is already dead.
I'm just asking because for some reason I've encountered 4 movies (War of the Worlds, Terminator Genisys, Terminator Dark Fate, Valerian) in a row that were unplayable on LG C8 and M9702 after converted to MEL.
The zidoo Z9x also accepts the profile 8.1 procedure. I only tested in mkv. But it works fine in this 8.06 profile.yusesope wrote: Wed Oct 14, 2020 12:48 pm
I can only thank you both for your time.
I took a quick look at a few comparisons: the Firestick performs really well. The Shield still needs to improve (but if the Stick succeeds I don't see why the Shield shouldn't do it too).
It also seems that my FEL -> MEL and UHD-> profile 8.1 algorithms work fine.
You experts, do you consider them correct? Do you have any ideas/comments on this?
Thank you!
Code: Select all
Extract the base layer and the enhancement layer
ffmpeg -i path\to\the\file.m2ts -ss 0 -t 120 -map 0:0 -c copy path\to\BL.hevc
ffmpeg -i path\to\the\file.m2ts -ss 0 -t 120 -map 0:1 -c copy path\to\EL.hevc
Using my tool, double click on the MUX_AND_CONVERT_TO_PROFILE_81.bat file and follow the instructions on the screen.
You will get a BL_EL_RPU.hevc file.
Actually, the file does not contain EL (it's just BL+RPU).
BL_EL_RPU is just the filename !!!
Let's put it this way, you are too lazy to use the command line and I am too lazy to add lines of code for the purpose of renaming a file
Simply, create an ISO using BL_EL_RPU and TsMuxeR.
Open the ISO with MakeMKV
Code: Select all
Vidéo
ID : 1
ID in the original source medium : 4117 (0x1015)
Format : HEVC
Format/Info : High Efficiency Video Coding
Profil du format : Main 10@L5.1@High
HDR format : Dolby Vision, Version 1.0, dvhe.08.06, BL+RPU, HDR10 compatible / SMPTE ST 2086, HDR10 compatible
Identifiant du codec : V_MPEGH/ISO/HEVC
Durée : 2 h 18 min
Débit : 35,5 Mb/s
Largeur : 3 840 pixels
Hauteur : 2 160 pixels
Format à l'écran : 16/9
Type d'images/s : Constant
Images par seconde : 23,976 (24000/1001) Im/s
Espace de couleurs : YUV
Sous-échantillonnage de la chrominance : 4:2:0
Profondeur des couleurs : 10 bits
Bits/(Pixel*Image) : 0.179Code: Select all
Vidéo
ID : 1
ID in the original source medium : 4117 (0x1015)
Format : HEVC
Format/Info : High Efficiency Video Coding
Profil du format : Main 10@L5.1@High
HDR format : Dolby Vision, Version 1.0, dvhe.08.06, BL+RPU, HDR10 compatible / SMPTE ST 2086, HDR10 compatible
Identifiant du codec : V_MPEGH/ISO/HEVC
Durée : 53 min 7s
Débit : 25,0 Mb/s
Largeur : 3 840 pixels
Hauteur : 2 160 pixels
Format à l'écran : 16/9
Type d'images/s : Constant
Images par seconde : 23,976 (24000/1001) Im/s
Espace de couleurs : YUV
Sous-échantillonnage de la chrominance : 4:2:0
Profondeur des couleurs : 10 bits
Bits/(Pixel*Image) : 0.126Hi ragico, did you do any comparison of the colours in DV with the Ugoos AM6 Plus? Is it accurate like the Firestick 4K or does it also have any colour issues like the Shield?ragico wrote: Sun Oct 11, 2020 7:31 pm I compared the firestick vs shield on Panasonic GZ2000 oled and could not see any red push or colour saturation.
Firestick at moment is better than shield IMHO.
Hi, M2TS will let you retain PGS subs I believe, dump your chapters into a chap file and your good to go if a viable MKV solution is found for Z9X or Shield.jayper wrote: Wed Oct 14, 2020 7:32 pm While we wait and hope for the Nvidia Shield to have its color issues worked out, I want to try experimenting with my Sony x700.
Are there any clear benefits to remuxing to TS over M2TS?
I do full unencrypted backups of all my discs. Am I saving myself trouble by just playing those back directly (if possible)? I'm not concerned with storage space. I would just rather have the simplest process to prepare the file, with accurate DV playback. Anyone have thoughts?
Hi, so the above process worked on your Z9X? Did the resultant DV file play OK? I have a LG CX TV that is having issues with DV titles that are 4K and 23 Hzghostshadow wrote: Wed Oct 14, 2020 7:15 pm
The zidoo Z9x also accepts the profile 8.1 procedure. I only tested in mkv. But it works fine in this 8.06 profile.
I am your procedure:Code: Select all
Extract the base layer and the enhancement layer ffmpeg -i path\to\the\file.m2ts -ss 0 -t 120 -map 0:0 -c copy path\to\BL.hevc ffmpeg -i path\to\the\file.m2ts -ss 0 -t 120 -map 0:1 -c copy path\to\EL.hevc Using my tool, double click on the MUX_AND_CONVERT_TO_PROFILE_81.bat file and follow the instructions on the screen. You will get a BL_EL_RPU.hevc file. Actually, the file does not contain EL (it's just BL+RPU). BL_EL_RPU is just the filename !!! Let's put it this way, you are too lazy to use the command line and I am too lazy to add lines of code for the purpose of renaming a file Simply, create an ISO using BL_EL_RPU and TsMuxeR. Open the ISO with MakeMKVCode: Select all
Vidéo ID : 1 ID in the original source medium : 4117 (0x1015) Format : HEVC Format/Info : High Efficiency Video Coding Profil du format : Main 10@L5.1@High HDR format : Dolby Vision, Version 1.0, dvhe.08.06, BL+RPU, HDR10 compatible / SMPTE ST 2086, HDR10 compatible Identifiant du codec : V_MPEGH/ISO/HEVC Durée : 2 h 18 min Débit : 35,5 Mb/s Largeur : 3 840 pixels Hauteur : 2 160 pixels Format à l'écran : 16/9 Type d'images/s : Constant Images par seconde : 23,976 (24000/1001) Im/s Espace de couleurs : YUV Sous-échantillonnage de la chrominance : 4:2:0 Profondeur des couleurs : 10 bits Bits/(Pixel*Image) : 0.179Thank'sCode: Select all
Vidéo ID : 1 ID in the original source medium : 4117 (0x1015) Format : HEVC Format/Info : High Efficiency Video Coding Profil du format : Main 10@L5.1@High HDR format : Dolby Vision, Version 1.0, dvhe.08.06, BL+RPU, HDR10 compatible / SMPTE ST 2086, HDR10 compatible Identifiant du codec : V_MPEGH/ISO/HEVC Durée : 53 min 7s Débit : 25,0 Mb/s Largeur : 3 840 pixels Hauteur : 2 160 pixels Format à l'écran : 16/9 Type d'images/s : Constant Images par seconde : 23,976 (24000/1001) Im/s Espace de couleurs : YUV Sous-échantillonnage de la chrominance : 4:2:0 Profondeur des couleurs : 10 bits Bits/(Pixel*Image) : 0.126
The Dolby Vision problem With LG and Zidoo Z9X is LG specific, Dolby have reported the problem to LG.blenky wrote: Thu Oct 15, 2020 10:24 amHi, so the above process worked on your Z9X? Did the resultant DV file play OK? I have a LG CX TV that is having issues with DV titles that are 4K and 23 Hzghostshadow wrote: Wed Oct 14, 2020 7:15 pm
The zidoo Z9x also accepts the profile 8.1 procedure. I only tested in mkv. But it works fine in this 8.06 profile.
I am your procedure:Code: Select all
Extract the base layer and the enhancement layer ffmpeg -i path\to\the\file.m2ts -ss 0 -t 120 -map 0:0 -c copy path\to\BL.hevc ffmpeg -i path\to\the\file.m2ts -ss 0 -t 120 -map 0:1 -c copy path\to\EL.hevc Using my tool, double click on the MUX_AND_CONVERT_TO_PROFILE_81.bat file and follow the instructions on the screen. You will get a BL_EL_RPU.hevc file. Actually, the file does not contain EL (it's just BL+RPU). BL_EL_RPU is just the filename !!! Let's put it this way, you are too lazy to use the command line and I am too lazy to add lines of code for the purpose of renaming a file Simply, create an ISO using BL_EL_RPU and TsMuxeR. Open the ISO with MakeMKVCode: Select all
Vidéo ID : 1 ID in the original source medium : 4117 (0x1015) Format : HEVC Format/Info : High Efficiency Video Coding Profil du format : Main 10@L5.1@High HDR format : Dolby Vision, Version 1.0, dvhe.08.06, BL+RPU, HDR10 compatible / SMPTE ST 2086, HDR10 compatible Identifiant du codec : V_MPEGH/ISO/HEVC Durée : 2 h 18 min Débit : 35,5 Mb/s Largeur : 3 840 pixels Hauteur : 2 160 pixels Format à l'écran : 16/9 Type d'images/s : Constant Images par seconde : 23,976 (24000/1001) Im/s Espace de couleurs : YUV Sous-échantillonnage de la chrominance : 4:2:0 Profondeur des couleurs : 10 bits Bits/(Pixel*Image) : 0.179Thank'sCode: Select all
Vidéo ID : 1 ID in the original source medium : 4117 (0x1015) Format : HEVC Format/Info : High Efficiency Video Coding Profil du format : Main 10@L5.1@High HDR format : Dolby Vision, Version 1.0, dvhe.08.06, BL+RPU, HDR10 compatible / SMPTE ST 2086, HDR10 compatible Identifiant du codec : V_MPEGH/ISO/HEVC Durée : 53 min 7s Débit : 25,0 Mb/s Largeur : 3 840 pixels Hauteur : 2 160 pixels Format à l'écran : 16/9 Type d'images/s : Constant Images par seconde : 23,976 (24000/1001) Im/s Espace de couleurs : YUV Sous-échantillonnage de la chrominance : 4:2:0 Profondeur des couleurs : 10 bits Bits/(Pixel*Image) : 0.126
Hello, yes it works I have a Panasonic HZ1500E TV. I am in auto at the level of the adjustment of the resolution of the zidoo. I am in framerate and resolution activated.blenky wrote: Thu Oct 15, 2020 10:24 am
Hi, so the above process worked on your Z9X? Did the resultant DV file play OK? I have a LG CX TV that is having issues with DV titles that are 4K and 23 Hz
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
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
Code: Select all
#profile 7
Movie Title_________________________________________________________________________
#profile 8
Movie Title_____________________________________Code: Select all
General
Unique ID : 85570055583739472865028318079082573192 (0x406031781F223E48541393937F542D88)
Complete name : Y:\1917.mkv
Format : Matroska
Format version : Version 4
File size : 61.6 GiB
Duration : 1 h 58 min
Overall bit rate mode : Variable
Overall bit rate : 74.1 Mb/s
Movie name : 1917______________________________________________________________________________________________________
Writing application : Lavf58.45.100
Writing library : Lavf58.45.100
ErrorDetectionType : Per level 1
Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5.1@High
HDR format : Dolby Vision, Version 1.0, dvhe.08.06, BL+RPU, HDR10 compatible / SMPTE ST 2094 App 4, Version 1, HDR10+ Profile B compatible
Codec ID : V_MPEGH/ISO/HEVC
Duration : 1 h 58 min
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0 (Type 2)
Bit depth : 10 bits
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Mastering display color primaries : Display P3
Mastering display luminance : min: 0.0001 cd/m2, max: 1000 cd/m2
Maximum Content Light Level : 1000 cd/m2
Maximum Frame-Average Light Level : 168 cd/m2
SEI_rbsp_stop_one_bit : Missing
Audio
ID : 2
Format : MLP FBA 16-ch
Format/Info : Meridian Lossless Packing FBA with 16-channel presentation
Commercial name : Dolby TrueHD with Dolby Atmos
Codec ID : A_TRUEHD
Duration : 1 h 58 min
Bit rate mode : Variable
Maximum bit rate : 7 158 kb/s
Channel(s) : 8 channels
Channel layout : L R C LFE Ls Rs Lb Rb
Sampling rate : 48.0 kHz
Frame rate : 1 200.000 FPS (40 SPF)
Bit depth : 24 bits
Compression mode : Lossless
Default : Yes
Forced : No
Number of dynamic objects : 11
Bed channel count : 1 channel
Bed channel configuration : LFE
Code: Select all
General
Unique ID : 319733252171936484108131698166622884465 (0xF08A626BCD421651424781590BD09271)
Complete name : D:\Newsbin\1917.mkv
Format : Matroska
Format version : Version 4
File size : 67.5 GiB
Duration : 1 h 58 min
Overall bit rate mode : Variable
Overall bit rate : 81.3 Mb/s
Movie name : 1917__________________________________________________________________
Writing application : Lavf58.45.100
Writing library : Lavf58.45.100
ErrorDetectionType : Per level 1
Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5.1@High
HDR format : Dolby Vision, Version 1.0, dvhe.07.06, BL+EL+RPU, Blu-ray compatible / SMPTE ST 2094 App 4, Version 1, HDR10+ Profile B compatible
Codec ID : V_MPEGH/ISO/HEVC
Duration : 1 h 58 min
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0 (Type 2)
Bit depth : 10 bits
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Mastering display color primaries : Display P3
Mastering display luminance : min: 0.0001 cd/m2, max: 1000 cd/m2
Maximum Content Light Level : 1000 cd/m2
Maximum Frame-Average Light Level : 168 cd/m2
Audio
ID : 2
Format : MLP FBA 16-ch
Format/Info : Meridian Lossless Packing FBA with 16-channel presentation
Commercial name : Dolby TrueHD with Dolby Atmos
Codec ID : A_TRUEHD
Duration : 1 h 58 min
Bit rate mode : Variable
Maximum bit rate : 7 158 kb/s
Channel(s) : 8 channels
Channel layout : L R C LFE Ls Rs Lb Rb
Sampling rate : 48.0 kHz
Frame rate : 1 200.000 FPS (40 SPF)
Bit depth : 24 bits
Compression mode : Lossless
Default : Yes
Forced : No
Number of dynamic objects : 11
Bed channel count : 1 channel
Bed channel configuration : LFE
Code: Select all
Traceback (most recent call last):
File "S:\_Out\MKV_DV\python-3.7.6.amd64\lib\site-packages\bitstring.py", line 833, in _initialise
init_without_length_or_offset[k](self, v)
KeyError: 'uint'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "src\MKV_patcher.py", line 233, in <module>
patched_data = mkv_patcher.inject_dolby_vision(dolby_vision_data)
File "src\MKV_patcher.py", line 207, in inject_dolby_vision
self.init_elements()
File "src\MKV_patcher.py", line 149, in init_elements
el_property["size"] = self.read_variable_size_int()
File "src\MKV_patcher.py", line 128, in read_variable_size_int
parsedValue = BitArray(uint=(self.mkv_data[pos:pos + 8] & (~self.get_len_mark(length))).uint,length=length)
File "src\MKV_patcher.py", line 117, in get_len_mark
return BitArray(uint=1 << (8 - int(length / 8)),length=8)
File "S:\_Out\MKV_DV\python-3.7.6.amd64\lib\site-packages\bitstring.py", line 3059, in __new__
y = Bits.__new__(BitArray, auto, length, offset, **kwargs)
File "S:\_Out\MKV_DV\python-3.7.6.amd64\lib\site-packages\bitstring.py", line 812, in __new__
x._initialise(auto, length, offset, **kwargs)
File "S:\_Out\MKV_DV\python-3.7.6.amd64\lib\site-packages\bitstring.py", line 838, in _initialise
init_with_length_only[k](self, v, length)
File "S:\_Out\MKV_DV\python-3.7.6.amd64\lib\site-packages\bitstring.py", line 1388, in _setuint
raise CreationError(msg, uint, length, (1 << length) - 1)
bitstring.CreationError: 256 is too large an unsigned integer for a bitstring of length 8. The allowed range is [0, 255].