RESET_9999 wrote: ↑Mon Jun 20, 2022 9:23 pm
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
You can mux lossless audio in MP4 with my script if you demux hevc/audio first:
MODE.M4 ===> MODE.1 ===> Workflow.1 ( 8-1-1)
IIRC, TrueHD track must
not have an ac3 core to work.
Thank you, almost same as method 3 (ffmpeg + mp4box)
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.9
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
let me try out. hmm you push to mkvmerge first then muxing it to mp4.
Works! on mp4be
https://sourceforge.net/projects/mpcbe/
samples and result
https://1fichier.com/?s7qphm7o9rhvreok8r67
truehd has ac3 core information is difficult to compare to truehd without ac3core with mediainfo app.
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
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 . . .
Strange ...
Missing argument value for -add - please check usage, but it created a file.
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 . . .