TrueHD passthrough Test Builds – New MAT Packer implementation



While current MAT packer for TrueHD works really very well, I have found some rare cases (0.1%) that may produce non-compliant bitstream, especially related to seamless branching Blu-Ray sources (or resultant MKVs remuxes).

The new implementation is based on LAVFilters implementation with some optimizations and small changes. Then is totally different from current FFmpeg based implementation…

Omega Test Builds:

Android ARM64 (Shield):
kodi-20240414-c7606d4a-mat-packer-Omega-arm64-v8a.apk

Android ARM:
kodi-20240414-c7606d4a-mat-packer-Omega-armeabi-v7a.apk

Windows x64:
KodiSetup-20240414-c7606d4a-mat-packer-Omega-x64.exe

Should be more robust especially handling sources with stream discontinuities or bad/rare/missing timestamps (to some extent of course).

May (or may not) fix some rare remaining dropouts/cuts on some specific streams…

These builds are Omega v21.0 based, then can be installed safety on top of current Omega release and also you can reinstall the official version on top of these to return to previous state (if necessary).

For those interested, it also includes much more information at the debug log level e.g.:

Code:
2024-04-14 17:31:16.198 T:21568 warning <general>: CPackerMAT::WritePadding: a large padding block of 247968 bytes is necessary due to unusual timestamps

Code:
2024-04-14 17:31:16.298 T:21568 warning <general>: CPackerMAT:TongueackTrueHD: detected a stream discontinuity -> output timing expected: 56504, found: 60344