realbabilu wrote: Tue Jun 21, 2022 4:32 amThank you, almost same as method 3 (ffmpeg + mp4box)RESET_9999 wrote: Mon Jun 20, 2022 9:23 pmYou can mux lossless audio in MP4 with my script if you demux hevc/audio first:realbabilu wrote: Mon Jun 20, 2022 8:53 pm Question :
2. Dovi Script can create TrueHD no ac3 to TrueHD+ac3 into single stream/file. WAY 6-3-3
MODE.M4 ===> MODE.1 ===> Workflow.1 ( 8-1-1)
IIRC, TrueHD track must not have an ac3 core to work.
So TrueHD track must not have an ac3 core to muxed into mp4. mp4box keep asking filter for .thd+ac3 file in my test.
WAIT...
you have ..in 1.3.9let me try out. hmm you push to mkvmerge first then muxing it to mp4.Code: Select all
if exist "%a-filepath%%a-filename%.ec3" if exist "%a2-filepath%%a2-filename%.thd+ac3" goto :AC3..THD if exist "%a-filepath%%a-filename%.ac3" if exist "%a2-filepath%%a2-filename%.ac3+thd" goto :AC3..THD if exist "%a-filepath%%a-filename%.thd+ac3" if exist "%a2-filepath%%a2-filename%.ac3" goto :THD..AC3 if exist "%a-filepath%%a-filename%.thd+ac3" if exist "%a2-filepath%%a2-filename%.ec3" goto :THD..AC3 if exist "%a-filepath%%a-filename%.ac3+thd" goto :lossless1a if exist "%a-filepath%%a-filename%.thd+ac3" goto :lossless1a
Works! on mp4be https://sourceforge.net/projects/mpcbe/
samples and result https://1fichier.com/?8y2fbbcqdm5zn0e29ptc
truehd has ac3 core information is difficult to compare to truehd without ac3core with mediainfo app.
However i think the result kick out the ac3core out of truehd since the size is same .thd+ac3 + .hevc = .thd + .hevc
Code: Select all
General Complete name : F:\TEST\DOLBY ATMOS\TRUEHD\test\Dolby_Conductor_Lossless_ATMOS-thedigitaltheater.mkv_ - 2 - TrueHD (Atmos), 7.1 channels, 48kHz.thd Format : MLP FBA 16-ch Format/Info : Meridian Lossless Packing FBA with 16-channel presentation Commercial name : Dolby TrueHD with Dolby Atmos File size : 25.2 MiB Overall bit rate mode : Variable Audio Format : MLP FBA 16-ch Format/Info : Meridian Lossless Packing FBA with 16-channel presentation Commercial name : Dolby TrueHD with Dolby Atmos Bit rate mode : Variable Maximum bit rate : 8 817 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) Compression mode : Lossless Number of dynamic objects : 15 Bed channel count : 1 channel Bed channel configuration : LFE
Strange ... Missing argument value for -add - please check usage, but it created a file.Code: Select all
**************************** * DoVi_Scripts @RESET_9999 * **************************** . *************************************************************************************************************** *The output folder by default is the "Dolby-Vision-Tools" Folder, you can change it by editing this bat file *Do not move the bat file out of the "Dolby-Vision-Tools" Folder. Make a shortcut instead. *Select a mode, a workflow. Drag and drop an input file and wait... *************************************************************************************************************** . ***************** * CHOOSE A MODE * ***************** . Main Menu 1) MODE.XP= XML & RPU injector 2) MODE.P5= Profile 5 input to Profile 8 HYBRID MAKER 3) MODE.P7= Profile 7 input (BD/MKV/Convert/Mux/Demux/Inject) 4) MODE.H= HDR10(madVR) and HDR10plus to DoVi maker 5) MODE.B= Batch muxer: MKV to TS (DV/DD+/SUB) 6) MODE.M= MIXED: Remover/Audio/Playlist/MPV/Measurer/HDR10plus_injector and more... 7) MODE.F= RPU Fixer/Editor/Reader/Extractor/Sync-Inspect/ 8) MODE.M4= MP4_muxer(P5/P7/P8) 9) Exit Choice? [1,2,3,4,5,6,7,8,9]?8 ***************** * CHOOSE A MODE * ***************** . 1) MODE.1= Single-Track (p5, p8, p7) 2) MODE.2= Dual-Track (p7) 3) MODE.3= Demuxer (p5, p8, p7) 4) MODE.4= back to main menu Choice? [1,2,3,4]?1 ******************** * CHOOSE A WORFLOW * ******************** 1) Workflow.1= ANY VIDEO + ANY AUDIO(lossless audio included) + SRT subtitle 2) Workflow.2= Bluray Disc to Profile 8 + AC3 3) Workflow.3= Bluray Disc to Profile 8 + EC3 4) Workflow.4= MKV Profile 7 to Profile 8 + AC3 5) Workflow.5= MKV Profile 7 to Profile 8 + EC3 6) Workflow.6= HDR10 or HDR10plus to DoVi Profile 8 + AC3 7) Workflow.7= HDR10 or HDR10plus to DoVi Profile 8 + EC3 8) Workflow.8= back to main menu Choice? [1,2,3,4,5,6,7,8]?1 ------------------------------------------------------------------------------------------------------ -- Input can be MKV/M2TS/TS/HEVC/H265 - SRT/AC3/EC3/AAC/DTS/DTSHD/TrueHD -- Dual subtitles/audio support , If no subtitles/audio, just press enter to skip (PGS :not supported) -- Lossless audio muxing only works if your video/audio input are demuxed (hevc/h265/THD/DTS) -- if input is MKV/TS/M2TS, audio will be lossy. demux it for lossless audio. -- Do not use this workflow for the Profile 8 iTunes web-dl (they have fps header issues) ------------------------------------------------------------------------------------------------------ Drag and drop your DoVi HEVC file and press enter... "D:\RUN\Dolby_Conductor_Lossless_ATMOS-thedigitaltheater.mkv_ - 1 - h264, English, 1080p23.999.h264" Drag and drop your audio file and press enter... D:\RUN\Dolby_Conductor_Lossless_ATMOS-thedigitaltheater.thd+ac3 Drag and drop your audio file #2 and press enter... Drag and drop your SRT subtitle file(optional) and/or press enter... Select a dolby vision profile (5,7 or 8) and press enter... 8 muxing into a MP4 DoVi file. Be patient, it can take a while. 40min+ on slow HDD!!! Output file had been existed, please using '--overwrite' if you want to overwrite it mkvmerge v67.0.0 ('Under Stars') 64-bit 'D:\RUN\Dolby_Conductor_Lossless_ATMOS-thedigitaltheater.thd+ac3': Using the demultiplexer for the format 'TrueHD'. 'D:\RUN\Dolby_Conductor_Lossless_ATMOS-thedigitaltheater.thd+ac3' track 0: Using the output module for the format 'TrueHD'. The file 'D:\mov\Dolby-Vision-Tools\audio.mka' has been opened for writing. Progress: 100% The cue entries (the index) are being written... Multiplexing took 0 seconds. ffmpeg version 5.0.1-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers built with gcc 11.2.0 (Rev7, Built by MSYS2 project) configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint libavutil 57. 17.100 / 57. 17.100 libavcodec 59. 18.100 / 59. 18.100 libavformat 59. 16.100 / 59. 16.100 libavdevice 59. 4.100 / 59. 4.100 libavfilter 8. 24.100 / 8. 24.100 libswscale 6. 4.100 / 6. 4.100 libswresample 4. 3.100 / 4. 3.100 libpostproc 56. 3.100 / 56. 3.100 Input #0, matroska,webm, from 'D:\mov\Dolby-Vision-Tools\audio.mka': Metadata: encoder : libebml v1.4.2 + libmatroska v1.6.4 Duration: 00:00:40.13, start: 0.000000, bitrate: 5341 kb/s Stream #0:0(eng): Audio: truehd, 48000 Hz, 7.1, s32 (24 bit) (default) Metadata: BPS : 5273043 DURATION : 00:00:40.133327136 NUMBER_OF_FRAMES: 48160 NUMBER_OF_BYTES : 26452882 _STATISTICS_WRITING_APP: mkvmerge v67.0.0 ('Under Stars') 64-bit _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Output #0, mp4, to 'D:\mov\Dolby-Vision-Tools\audio.mp4': Metadata: encoder : Lavf59.16.100 Stream #0:0(eng): Audio: truehd (mlpa / 0x61706C6D), 48000 Hz, 7.1, s32 (24 bit) (default) Metadata: BPS : 5273043 DURATION : 00:00:40.133327136 NUMBER_OF_FRAMES: 48160 NUMBER_OF_BYTES : 26452882 _STATISTICS_WRITING_APP: mkvmerge v67.0.0 ('Under Stars') 64-bit _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help size= 26024kB time=00:00:40.13 bitrate=5312.0kbits/s speed= 311x video:0kB audio:25833kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.740430% IsoMedia import Dolby_Conductor_Lossless_ATMOS-thedigitaltheater.mkv_ - 1 - h264, English, 1080p23.999_DoVi.mp4 - track ID 1 - Video (size 1920 x 1080) IsoMedia import audio.mp4 - track ID 1 - Audio (SR 48000 - 2 channels) 0.500 secs Interleaving Missing argument value for -add - please check usage the script has completed... Press any key to continue . . .
There is a bug for long or spaced folder using 8-1-1 as input file.
Code: Select all
**************************** * DoVi_Scripts @RESET_9999 * **************************** . *************************************************************************************************************** *The output folder by default is the "Dolby-Vision-Tools" Folder, you can change it by editing this bat file *Do not move the bat file out of the "Dolby-Vision-Tools" Folder. Make a shortcut instead. *Select a mode, a workflow. Drag and drop an input file and wait... *************************************************************************************************************** . ***************** * CHOOSE A MODE * ***************** . Main Menu 1) MODE.XP= XML & RPU injector 2) MODE.P5= Profile 5 input to Profile 8 HYBRID MAKER 3) MODE.P7= Profile 7 input (BD/MKV/Convert/Mux/Demux/Inject) 4) MODE.H= HDR10(madVR) and HDR10plus to DoVi maker 5) MODE.B= Batch muxer: MKV to TS (DV/DD+/SUB) 6) MODE.M= MIXED: Remover/Audio/Playlist/MPV/Measurer/HDR10plus_injector and more... 7) MODE.F= RPU Fixer/Editor/Reader/Extractor/Sync-Inspect/ 8) MODE.M4= MP4_muxer(P5/P7/P8) 9) Exit Choice? [1,2,3,4,5,6,7,8,9]?8 ***************** * CHOOSE A MODE * ***************** . 1) MODE.1= Single-Track (p5, p8, p7) 2) MODE.2= Dual-Track (p7) 3) MODE.3= Demuxer (p5, p8, p7) 4) MODE.4= back to main menu Choice? [1,2,3,4]?1 ******************** * CHOOSE A WORFLOW * ******************** 1) Workflow.1= ANY VIDEO + ANY AUDIO(lossless audio included) + SRT subtitle 2) Workflow.2= Bluray Disc to Profile 8 + AC3 3) Workflow.3= Bluray Disc to Profile 8 + EC3 4) Workflow.4= MKV Profile 7 to Profile 8 + AC3 5) Workflow.5= MKV Profile 7 to Profile 8 + EC3 6) Workflow.6= HDR10 or HDR10plus to DoVi Profile 8 + AC3 7) Workflow.7= HDR10 or HDR10plus to DoVi Profile 8 + EC3 8) Workflow.8= back to main menu Choice? [1,2,3,4,5,6,7,8]?1 ------------------------------------------------------------------------------------------------------ -- Input can be MKV/M2TS/TS/HEVC/H265 - SRT/AC3/EC3/AAC/DTS/DTSHD/TrueHD -- Dual subtitles/audio support , If no subtitles/audio, just press enter to skip (PGS :not supported) -- Lossless audio muxing only works if your video/audio input are demuxed (hevc/h265/THD/DTS) -- if input is MKV/TS/M2TS, audio will be lossy. demux it for lossless audio. -- Do not use this workflow for the Profile 8 iTunes web-dl (they have fps header issues) ------------------------------------------------------------------------------------------------------ Drag and drop your DoVi HEVC file and press enter... "F:\TEST\DOLBY ATMOS\TRUEHD\test\Dolby_Conductor_Lossless_ATMOS-thedigitaltheater.mkv_ - 1 - h264, English, 1080p23.999.h264" Drag and drop your audio file and press enter... "F:\TEST\DOLBY ATMOS\TRUEHD\test\Dolby_Conductor_Lossless_ATMOS-thedigitaltheater.thd+ac3" Drag and drop your audio file #2 and press enter... Drag and drop your SRT subtitle file(optional) and/or press enter... Select a dolby vision profile (5,7 or 8) and press enter... 8 muxing into a MP4 DoVi file. Be patient, it can take a while. 40min+ on slow HDD!!! Output file had been existed, please using '--overwrite' if you want to overwrite it mkvmerge v67.0.0 ('Under Stars') 64-bit Error: The file 'F:\TEST\DOLBY' could not be opened for reading: open file error. ffmpeg version 5.0.1-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers built with gcc 11.2.0 (Rev7, Built by MSYS2 project) configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint libavutil 57. 17.100 / 57. 17.100 libavcodec 59. 18.100 / 59. 18.100 libavformat 59. 16.100 / 59. 16.100 libavdevice 59. 4.100 / 59. 4.100 libavfilter 8. 24.100 / 8. 24.100 libswscale 6. 4.100 / 6. 4.100 libswresample 4. 3.100 / 4. 3.100 libpostproc 56. 3.100 / 56. 3.100 D:\mov\Dolby-Vision-Tools\audio.mka: No such file or directory IsoMedia import Dolby_Conductor_Lossless_ATMOS-thedigitaltheater.mkv_ - 1 - h264, English, 1080p23.999_DoVi.mp4 - track ID 1 - Video (size 1920 x 1080) [Importer] Cannot load filter for input file "D:\mov\Dolby-Vision-Tools\audio.mp4" Failure while importing media: Requested URL is not valid or cannot be found Error importing D:\mov\Dolby-Vision-Tools\audio.mp4: Requested URL is not valid or cannot be found Missing argument value for -add - please check usage Could Not Find D:\mov\Dolby-Vision-Tools\audio.mp4 Could Not Find D:\mov\Dolby-Vision-Tools\audio.mka the script has completed... Press any key to continue . . .
Dolby Vision now possible through MP4 Mux.
-
realbabilu
- Posts: 22
- Joined: Sun May 15, 2022 4:23 am
Re: Dolby Vision now possible through MP4 Mux.
-
RESET_9999
- Posts: 2421
- Joined: Mon Aug 05, 2019 7:12 pm
Re: Dolby Vision now possible through MP4 Mux.
right I forgot, you can input thd+ac3 and the script will remove the core.
As for the missing --add, yes i forgot the add something in the end of that workflow and it try to add subtitle. I also forgot to delete one temp file.
I know i have some code clean up to do in that mode.
As for the missing --add, yes i forgot the add something in the end of that workflow and it try to add subtitle. I also forgot to delete one temp file.
I know i have some code clean up to do in that mode.
-
dwalme
- Posts: 28
- Joined: Sat Dec 10, 2011 2:38 am
Re: Dolby Vision now possible through MP4 Mux.
Found another issue with the script. I was testing the removal of HDR10plus. (MODE.M->MODE.1->Workflow.1)
I end up with a 0 byte *_HDR10plus_removed.hevc file in the output folder.
I end up with a 0 byte *_HDR10plus_removed.hevc file in the output folder.
Code: Select all
1) Workflow.1= Remove HDR10plus
2) Workflow.2= Remove Dolby Vision
3) Workflow.3= Back to main menu
Choice? [1,2,3]?1
Drag and drop an MKV HDR10 file and press enter...C:\D\Dolby-Vision-Tools\HDR10plus-tv.mkv
Extracting track 0 with the CodecID 'V_MPEGH/ISO/HEVC' to the file 'I:\TEMP\HDR.hevc'. Container format: HEVC/H.265 elementary stream
Progress: 100%
Reordering metadata... Done.
Parsing RPU file...
Error: No NALU start codes found in the file. Maybe not a valid RPU?
the script has completed...
Press any key to continue . . .
-
RESET_9999
- Posts: 2421
- Joined: Mon Aug 05, 2019 7:12 pm
Re: Dolby Vision now possible through MP4 Mux.
I don't know, it's working on my end. Did you try to manually remove hdr10plus without the script? maybe your file has a problem?
or maybe your file doesnt have DV? this mode is for input that has both HDR10plus and DV.
Code: Select all
1) Workflow.1= Remove HDR10plus
2) Workflow.2= Remove Dolby Vision
3) Workflow.3= Back to main menu
Choice? [1,2,3]?1
Drag and drop an MKV HDR10 file and press enter..."D:\samples\hdr10-plus(THD SRT).mkv"
Extracting track 0 with the CodecID 'V_MPEGH/ISO/HEVC' to the file 'D:\TEMP\HDR.hevc'. Container format: HEVC/H.265 elementary stream
Progress: 100%
Reordering metadata... Done.
Parsing RPU file...
Processing input video for frame order info...
Warning: Input file already has RPUs, they will be replaced.
Rewriting file with interleaved RPU NALs..
the script has completed...
Appuyez sur une touche pour continuer...-
dwalme
- Posts: 28
- Joined: Sat Dec 10, 2011 2:38 am
Re: Dolby Vision now possible through MP4 Mux.
RESET_9999 wrote: Thu Jun 23, 2022 1:48 amI don't know, it's working on my end. Did you try to manually remove hdr10plus without the script? maybe your file has a problem?
or maybe your file doesnt have DV? this mode is for input that has both HDR10plus and DV.
Code: Select all
1) Workflow.1= Remove HDR10plus 2) Workflow.2= Remove Dolby Vision 3) Workflow.3= Back to main menu Choice? [1,2,3]?1 Drag and drop an MKV HDR10 file and press enter..."D:\samples\hdr10-plus(THD SRT).mkv" Extracting track 0 with the CodecID 'V_MPEGH/ISO/HEVC' to the file 'D:\TEMP\HDR.hevc'. Container format: HEVC/H.265 elementary stream Progress: 100% Reordering metadata... Done. Parsing RPU file... Processing input video for frame order info... Warning: Input file already has RPUs, they will be replaced. Rewriting file with interleaved RPU NALs.. the script has completed... Appuyez sur une touche pour continuer...
My fault then. This particular file does not have DV. I didn’t realize this only worked for files that were both hdr10+ and DV.
-
RESET_9999
- Posts: 2421
- Joined: Mon Aug 05, 2019 7:12 pm
Re: Dolby Vision now possible through MP4 Mux.
yeah my bad too, I'll add a warning in the next version.
-
realbabilu
- Posts: 22
- Joined: Sun May 15, 2022 4:23 am
Re: Dolby Vision now possible through MP4 Mux.
I got unique situation.
Usually Profile 5 need Dolby Vision proper detection with Dolby Vision TV or color will be strange, this is dvhe 05.09
example from dolby http://media.developer.dolby.com/DolbyV ... 00kbps.mp4
So if i convert to mkv, usually my TV false to detect Dolby vision, coloring it false as purple, AND also my SDR PC monitor got it wrong.
So it need to be muxed as mp4 with dolby mp4muxer, and played as mp4 in DV TV to get it detected right and coloring right.
I got sample dvhe Profile 05.06 color limited while it backwards....
I uploded 30s here https://1fichier.com/?gat31olgv9yjtn2iyc2o
The color on SDR PC is right.
While i remuxed to profile 5 with mp4muxer to enable Dolby Vision and Atmos detection, it colors wrong....purple..
1. What can be wrong with this? Its possible the encoder wrong? or just my DV tv is un-capable?
2. Does anyone has other 05.06 sample?
3. What if there is wrong profile typed when muxing ?
Usually Profile 5 need Dolby Vision proper detection with Dolby Vision TV or color will be strange, this is dvhe 05.09
example from dolby http://media.developer.dolby.com/DolbyV ... 00kbps.mp4
So if i convert to mkv, usually my TV false to detect Dolby vision, coloring it false as purple, AND also my SDR PC monitor got it wrong.
So it need to be muxed as mp4 with dolby mp4muxer, and played as mp4 in DV TV to get it detected right and coloring right.
I got sample dvhe Profile 05.06 color limited while it backwards....
I uploded 30s here https://1fichier.com/?gat31olgv9yjtn2iyc2o
The color on SDR PC is right.
While i remuxed to profile 5 with mp4muxer to enable Dolby Vision and Atmos detection, it colors wrong....purple..
1. What can be wrong with this? Its possible the encoder wrong? or just my DV tv is un-capable?
2. Does anyone has other 05.06 sample?
3. What if there is wrong profile typed when muxing ?
-
sw5163
- Posts: 146
- Joined: Sat Jun 25, 2022 7:28 am
Dual layer FEL dolby vision to Apple compatible BL+RPU
First of all, thanks so much for quietvoid's and yusesope's amazing tool.
Sorry in advance if this has been posted or wrong.
I think it is possible to convert dual layer FEL to Apple compatible BL+RPU.
1. Extract bl.hevc and el.hevc from source
ffmpeg -i FEL_test_for_AVS.m2ts -c copy -map 0:0 bl.hevc -map 0:1 -c copy el.hevc
2. Mux and convert to P8 (it seems Apple indeed doesn't support FEL)
dovi_tool --edit-config fel_to_p81.json mux --bl bl.hevc --el el.hevc --discard
fel_to_p81.json
{
"mode": 2,
"remove_mapping": true
}
The result has similar RPU as in Apple's strange screensaver. (Thanks ValZapod)
According to quietvoid:
‘"remove_mapping" is useful for converting to profile 8.1 from FEL, where the video was preprocessed beforehand (like processing FEL).
Otherwise, the RPU would cause an additional mapping/processing on playback, so double the processing which is wrong.’
And without it, the result will end up with awful green screen.
https://user-images.githubusercontent.c ... 8510d9.PNG
3. Use mp4muxer from https://github.com/DolbyLaboratories
mp4muxer -i BL_RPU.hevc --dv-profile 5 --dvh1flag 0
This end up with a BL+RPU HDR10 based profile 5 mp4 just like their screensaver.
dvh1flag for Apple compatibility.
I know profile 5 shouldn't have HDR10 bl but it tricks Apple's native player to play dolby vision.
Sample mp4 as follow
https://drive.google.com/file/d/1kJTUMb ... sp=sharing
The birghtness around 28 and 40 second flicker, so it is dolby vision.
Original m2ts is from
https://www.avsforum.com/threads/dune-p ... t-60582530
Also Apple seems to ignore level 5 RPU data.
Do anyone know if there’s a better way to do it?
And can someone test the quality on iOS devices between FEL converted this way and proper streaming profile 5,thanks.
Sorry in advance if this has been posted or wrong.
I think it is possible to convert dual layer FEL to Apple compatible BL+RPU.
1. Extract bl.hevc and el.hevc from source
ffmpeg -i FEL_test_for_AVS.m2ts -c copy -map 0:0 bl.hevc -map 0:1 -c copy el.hevc
2. Mux and convert to P8 (it seems Apple indeed doesn't support FEL)
dovi_tool --edit-config fel_to_p81.json mux --bl bl.hevc --el el.hevc --discard
fel_to_p81.json
{
"mode": 2,
"remove_mapping": true
}
The result has similar RPU as in Apple's strange screensaver. (Thanks ValZapod)
According to quietvoid:
‘"remove_mapping" is useful for converting to profile 8.1 from FEL, where the video was preprocessed beforehand (like processing FEL).
Otherwise, the RPU would cause an additional mapping/processing on playback, so double the processing which is wrong.’
And without it, the result will end up with awful green screen.
https://user-images.githubusercontent.c ... 8510d9.PNG
3. Use mp4muxer from https://github.com/DolbyLaboratories
mp4muxer -i BL_RPU.hevc --dv-profile 5 --dvh1flag 0
This end up with a BL+RPU HDR10 based profile 5 mp4 just like their screensaver.
dvh1flag for Apple compatibility.
I know profile 5 shouldn't have HDR10 bl but it tricks Apple's native player to play dolby vision.
Sample mp4 as follow
https://drive.google.com/file/d/1kJTUMb ... sp=sharing
The birghtness around 28 and 40 second flicker, so it is dolby vision.
Original m2ts is from
https://www.avsforum.com/threads/dune-p ... t-60582530
Also Apple seems to ignore level 5 RPU data.
Do anyone know if there’s a better way to do it?
And can someone test the quality on iOS devices between FEL converted this way and proper streaming profile 5,thanks.
-
evilmatcher
- Posts: 31
- Joined: Fri Apr 24, 2020 9:17 am
Re: Dolby Vision now possible through MP4 Mux.
I need some help on converting my copy of Saving Private Ryan ST-DL MKV (made with Makemkv 1.16.3) to DT-DL .ts format to play in my x800m2.
The video part works fine on the x800m2 and triggers DV on my TV and plays as it should, but I have no sound.
I have used the RESET_9999 script v.1.3.8 with Mode p7 --> Mode.3 --> workflow.1 and 2 and put the pieces back together in a TS-container with TSmuxer with same result.
My Denon receiver shows Atmos with the MKV-version, but I have no sound when played from the x800m2.
The mediainfo on both the MKV and TS version shows an Atmos True HD audiotrack. Please see the attached txt-files. When i press Info on my LG TV, it shows the DV video and a Dolby Digital+ 5.1 audiotrack.
Any suggestions to what i have missed?
The video part works fine on the x800m2 and triggers DV on my TV and plays as it should, but I have no sound.
I have used the RESET_9999 script v.1.3.8 with Mode p7 --> Mode.3 --> workflow.1 and 2 and put the pieces back together in a TS-container with TSmuxer with same result.
My Denon receiver shows Atmos with the MKV-version, but I have no sound when played from the x800m2.
The mediainfo on both the MKV and TS version shows an Atmos True HD audiotrack. Please see the attached txt-files. When i press Info on my LG TV, it shows the DV video and a Dolby Digital+ 5.1 audiotrack.
Any suggestions to what i have missed?
- Attachments
-
- Mediainfo SVP TS.txt
- (5.04 KiB) Downloaded 1497 times
-
- Mediainfo SVP MKV.txt
- (6.47 KiB) Downloaded 1753 times
-
RESET_9999
- Posts: 2421
- Joined: Mon Aug 05, 2019 7:12 pm
Re: Dolby Vision now possible through MP4 Mux.
Well, I guess your AVR doesnt like the silent AC3 core TrueHD tracks. Very strange because I also have a Denon AVR and it plays those fine. Your file looks as it should.
you'll have to do the audio separately:
MODE.M ---> MODE.3 ---> Workflow 1 ( or 3 if your mkv doesnt have an ac3 track)
you'll have to do the audio separately:
MODE.M ---> MODE.3 ---> Workflow 1 ( or 3 if your mkv doesnt have an ac3 track)
Appletv only support real profile 5 from streaming services which you cannot get from profile 7 rip.sw5163 wrote: Sat Jun 25, 2022 7:51 am I think it is possible to convert dual layer FEL to Apple compatible BL+RPU.
-
evilmatcher
- Posts: 31
- Joined: Fri Apr 24, 2020 9:17 am
Re: Dolby Vision now possible through MP4 Mux.
Is it possible that it is the TS-muxer that f.cks up? I have ripped Dune (2021) today from the disc (backup from disc and remux to TS) and exactly same happens. Dolby vision is fine, but the audio track is suddenly DD+. The mediainfo on the TS-file is Dolby TrueHD Atmos though.RESET_9999 wrote: Sun Jun 26, 2022 12:53 pm Well, I guess your AVR doesnt like the silent AC3 core TrueHD tracks. Very strange because I also have a Denon AVR and it plays those fine. Your file looks as it should.
you'll have to do the audio separately:
MODE.M ---> MODE.3 ---> Workflow 1 ( or 3 if your mkv doesnt have an ac3 track)
I have tried the TS-muxer version I downloaded myself, but also the version from the DOVI tools. Same result.
-
RESET_9999
- Posts: 2421
- Joined: Mon Aug 05, 2019 7:12 pm
Re: Dolby Vision now possible through MP4 Mux.
I ripped and watched Dune 2021 from the disc and had no issue with Atmos (old Denon X2300W)evilmatcher wrote: Sun Jun 26, 2022 3:33 pm Is it possible that it is the TS-muxer that f.cks up? I have ripped Dune (2021) today from the disc (backup from disc and remux to TS) and exactly same happens. Dolby vision is fine, but the audio track is suddenly DD+. The mediainfo on the TS-file is Dolby TrueHD Atmos though.
I have tried the TS-muxer version I downloaded myself, but also the version from the DOVI tools. Same result.
-
dwalme
- Posts: 28
- Joined: Sat Dec 10, 2011 2:38 am
Re: Dolby Vision now possible through MP4 Mux.
I just recently did the same thing and I tested my copy with my X800M2 after I read this. I have a silent core and have no issues with TrueHD/Atmos playing properly.evilmatcher wrote: Sun Jun 26, 2022 11:57 am I need some help on converting my copy of Saving Private Ryan ST-DL MKV (made with Makemkv 1.16.3) to DT-DL .ts format to play in my x800m2.
The video part works fine on the x800m2 and triggers DV on my TV and plays as it should, but I have no sound.
I have used the RESET_9999 script v.1.3.8 with Mode p7 --> Mode.3 --> workflow.1 and 2 and put the pieces back together in a TS-container with TSmuxer with same result.
My Denon receiver shows Atmos with the MKV-version, but I have no sound when played from the x800m2.
The mediainfo on both the MKV and TS version shows an Atmos True HD audiotrack. Please see the attached txt-files. When i press Info on my LG TV, it shows the DV video and a Dolby Digital+ 5.1 audiotrack.
Any suggestions to what i have missed?
-
sw5163
- Posts: 146
- Joined: Sat Jun 25, 2022 7:28 am
Re: Dolby Vision now possible through MP4 Mux.
Well, i'm using ios device but i'm pretty sure it is playing dolby vision with dynamic brightness adjustment.RESET_9999 wrote: Sun Jun 26, 2022 12:53 pmAppletv only support real profile 5 from streaming services which you cannot get from profile 7 rip.sw5163 wrote: Sat Jun 25, 2022 7:51 am I think it is possible to convert dual layer FEL to Apple compatible BL+RPU.
Apple TV needs more test but I believe it will play properly.
Check Apple tv's screensaver, they are HDR10 based profile 5 with similar RPU just like my sample.RESET_9999 wrote: Sun Jun 26, 2022 12:53 pm Appletv only support real profile 5 from streaming services which you cannot get from profile 7 rip.
https://sylvan.apple.com/Aerials/2x/Vid ... R_HEVC.mov
https://sylvan.apple.com/Aerials/2x/entries.json
dolby vision(left) looks very different from base HDR10 one(right) The use of profile 5 is just to get 'dvh1' flag and trick Apple's player to play proper dolby vision p8.1.
mp4box with following command can also get dolby vision to work:
mp4box -add BL_RPU.hevc -new p5.dvh1.mp4 (recommend)
mp4box -add BL_RPU.hevc:dv-profile=8.1 -new p8.hvc1.mp4(this doesn't work, it's a SMB bug)
mp4box -add BL_RPU.hevc:dv-profile=f8.1 -new p8.dvh1.mp4
But may stutter when fast-forward, so I prefer mp4muxer.
Last edited by sw5163 on Mon Aug 01, 2022 2:19 pm, edited 2 times in total.
-
RESET_9999
- Posts: 2421
- Joined: Mon Aug 05, 2019 7:12 pm
Re: Dolby Vision now possible through MP4 Mux.
go read the past weeks in this thread, all the test have been done and confirmed that the appletv only support genuine p5 DV. ( i dont know about other apple devices)