fraunhofer-iis / mpeghdec Goto Github PK
View Code? Open in Web Editor NEWThe Fraunhofer MPEG-H decoder (mpeghdec) is a C/C++ implementation of the MPEG-H Audio standard as defined in ISO/IEC 23008-3:2022
License: Other
The Fraunhofer MPEG-H decoder (mpeghdec) is a C/C++ implementation of the MPEG-H Audio standard as defined in ISO/IEC 23008-3:2022
License: Other
Please add proper install scripts for CMake. Configuring & building with CMake instead of make is necessary:
cmake -S mpeghdec -B build
cmake --build build
but the installation seems not to be implemented:
DESTDIR="$pkgdir" cmake --install
so I had to resort to a classic
[..]
install -Dm 755 mpeghDecoder -t "/usr/bin"
In the CICP parameters, it would be nice to have "Binaural", a layout for headphones.
After using the mpeghUiManager
line command to output the AudioSceneConfig XML of the test given by test content repository, I got a weirdly formmated xml. Here is the output, and I manually eddited the content to hide what is inside AudioSceneConfig
with ellipsis.
[0]
<?xml version="1.0" encoding="utf-8" ?>
<AudioSceneConfig uuid="E97E0000-0000-0000-0000-00002107BD59" version="11.0" configChanged="true"/>
<?xml version="1.0" encoding="utf-8" ?>
<AudioSceneConfig uuid="E97E0000-0000-0000-0000-00002107BD59" version="11.0" configChanged="false">
...
</AudioSceneConfig>
I'm not sure if the existance of the two roots elements are correct, nor what does the [0]
at the start of the file mean. I tried this in multiple files, and got the same results.
is there a way to make the decoder get the channels automatically? for example i try to decode 24 channels but it always gives me 14 channels and i know it could give more. i would also like if its possible to keep the same channel volumes as the original automatically (idk it seems like the decoder decreases them a bit)
Hello,
The cmake script gets its dependencies from git in ssh mode at
Lines 14 to 24 in 70fbbde
this fails when the key is not linked to a github user, even for public repos
using git in https would allow for wider support
would you consider changing it?
thanks
Tried to decode some files I have, but it resulted in severe peak limiting. How would I tell the decoder to allow signals to go above 0dB (since we output 32 bit wav)? I tried -dse -1
but that didn't change anything.
E:\rip\amazon>cmake --build build_windows --config Release
[ 8%] Built target MpeghDec
[ 9%] Built target MpeghUIMan
[ 11%] Built target MpegTPDec
[ 13%] Built target PCMutils
[ 15%] Built target IGFdec
[ 15%] Built target ArithCoding
[ 20%] Built target FormatConverter
[ 23%] Built target gVBAPRenderer
[ 29%] Built target DRCdec
[ 30%] Built target UIManager
[ 39%] Built target FDK
[ 41%] Built target SYS
[ 42%] Building CXX object _deps/ilo-build/src/CMakeFiles/ilo.dir/logging_backend.cpp.obj
E:\rip\amazon\build_windows_deps\ilo-src\src\logging_backend.cpp:91:0: warning: "NOMINMAX" redefined
#define NOMINMAX // Disables conflicting min/max def from Windows.h
In file included from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\mingw32\bits\c++config.h:507:0,
from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\iostream:38,
from E:\rip\amazon\build_windows_deps\ilo-src\src\logging_backend.cpp:84:
c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\mingw32\bits\os_defines.h:45:0: note: this is the location of the previous definition
#define NOMINMAX 1
In file included from E:/rip/amazon/build_windows/_deps/ilo-src/include/ilo/logging.h:97:0,
from E:\rip\amazon\build_windows_deps\ilo-src\src\ilo_logging.h:91,
from E:\rip\amazon\build_windows_deps\ilo-src\src\logging_backend.cpp:85:
E:/rip/amazon/build_windows/_deps/ilo-src/include/ilo/logging_backend.h: In function 'bool ilo_v1::impl::add_date_string(line_type&, int&)':
E:/rip/amazon/build_windows/_deps/ilo-src/include/ilo/logging_backend.h:321:29: error: there are no arguments to 'localtime_s' that depend on a template parameter, so a declaration of 'localtime_s' must be available [-fpermissive]
localtime_s(&now_c, &tmp);
^
E:/rip/amazon/build_windows/_deps/ilo-src/include/ilo/logging_backend.h:321:29: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
E:/rip/amazon/build_windows/_deps/ilo-src/include/ilo/logging_backend.h: In function 'bool ilo_v1::impl::add_thread_id_string(line_type&, int&)':
E:/rip/amazon/build_windows/_deps/ilo-src/include/ilo/logging_backend.h:344:18: error: 'this_thread' has not been declared
thread_id << this_thread::get_id();
^~~~~~~~~~~
E:/rip/amazon/build_windows/_deps/ilo-src/include/ilo/logging_backend.h: In instantiation of 'bool ilo_v1::impl::add_date_string(line_type&, int&) [with line_type = std::array<char, 512u>]':
E:\rip\amazon\build_windows_deps\ilo-src\src\logging_backend.cpp:208:33: required from here
E:/rip/amazon/build_windows/_deps/ilo-src/include/ilo/logging_backend.h:321:16: error: 'localtime_s' was not declared in this scope
localtime_s(&now_c, &tmp);
~~~~~~~~~~~^~~~~~~~~~~~~~
_deps\ilo-build\src\CMakeFiles\ilo.dir\build.make:75: recipe for target '_deps/ilo-build/src/CMakeFiles/ilo.dir/logging_backend.cpp.obj' failed
mingw32-make.exe[2]: *** [_deps/ilo-build/src/CMakeFiles/ilo.dir/logging_backend.cpp.obj] Error 1
CMakeFiles\Makefile2:517: recipe for target '_deps/ilo-build/src/CMakeFiles/ilo.dir/all' failed
mingw32-make.exe[1]: *** [_deps/ilo-build/src/CMakeFiles/ilo.dir/all] Error 2
Makefile:89: recipe for target 'all' failed
mingw32-make.exe: *** [all] Error 2
Thats the error
When trying to build for Android on an M2 mac I get the following errors at the build stage. Have you come across this before?
(configured with : cmake -S mpeghdec -B build_android -DCMAKE_TOOLCHAIN_FILE=/Users/mattp/Library/Android/sdk/ndk/25.2.9519653/build/cmake/android.toolchain.cmake -DCMAKE_BUILD_TYPE=Release)
rd019200:mpeghdec mattp$ cmake --build build_android -- ANDROID_PLATFORM not set. Defaulting to minimum supported version 21. -- Configuring done (0.5s) -- Generating done (0.1s) -- Build files have been written to: /Users/mattp/Desktop/MPEG-H Development/mpeghdec/build_android [ 1%] Building CXX object src/CMakeFiles/MpeghDec.dir/libMpeghDec/src/aacdecoder.cpp.o In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libMpeghDec/src/aacdecoder.cpp:135: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libMpeghDec/src/aacdecoder.h:94: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/common_fix.h:301: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/clz.h:98: /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/arm/clz_arm.h:128:27: error: predicated instructions must be in IT block asm("subs %0, %1, #0 \n\t" ^ <inline asm>:2:2: note: instantiated into assembly here mvnlt r2, r2 ^ In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libMpeghDec/src/aacdecoder.cpp:135: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libMpeghDec/src/aacdecoder.h:94: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/common_fix.h:301: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/clz.h:98: /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/arm/clz_arm.h:129:27: error: predicated instructions must be in IT block "mvnlt %0, %0 \n\t" ^ <inline asm>:3:2: note: instantiated into assembly here clzne r2, r2 ^ In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libMpeghDec/src/aacdecoder.cpp:135: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libMpeghDec/src/aacdecoder.h:94: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/common_fix.h:301: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/clz.h:98: /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/arm/clz_arm.h:130:27: error: predicated instructions must be in IT block "clzne %0, %0 \n\t" ^ <inline asm>:4:2: note: instantiated into assembly here subne r2, r2, #1 ^ In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libMpeghDec/src/aacdecoder.cpp:135: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libMpeghDec/src/aacdecoder.h:94: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/common_fix.h:301: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/clz.h:98: /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/arm/clz_arm.h:128:27: error: predicated instructions must be in IT block asm("subs %0, %1, #0 \n\t" ^ <inline asm>:2:2: note: instantiated into assembly here mvnlt r2, r2 ^ In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libMpeghDec/src/aacdecoder.cpp:135: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libMpeghDec/src/aacdecoder.h:94: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/common_fix.h:301: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/clz.h:98: /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/arm/clz_arm.h:129:27: error: predicated instructions must be in IT block "mvnlt %0, %0 \n\t" ^ <inline asm>:3:2: note: instantiated into assembly here clzne r2, r2 ^ In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libMpeghDec/src/aacdecoder.cpp:135: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libMpeghDec/src/aacdecoder.h:94: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/common_fix.h:301: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/clz.h:98: /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/arm/clz_arm.h:130:27: error: predicated instructions must be in IT block "clzne %0, %0 \n\t" ^ <inline asm>:4:2: note: instantiated into assembly here subne r2, r2, #1 ^ In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libMpeghDec/src/aacdecoder.cpp:135: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libMpeghDec/src/aacdecoder.h:94: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/common_fix.h:301: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/clz.h:98: /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/arm/clz_arm.h:128:27: error: predicated instructions must be in IT block asm("subs %0, %1, #0 \n\t" ^ <inline asm>:2:2: note: instantiated into assembly here mvnlt r2, r2 ^ In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libMpeghDec/src/aacdecoder.cpp:135: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libMpeghDec/src/aacdecoder.h:94: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/common_fix.h:301: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/clz.h:98: /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/arm/clz_arm.h:129:27: error: predicated instructions must be in IT block "mvnlt %0, %0 \n\t" ^ <inline asm>:3:2: note: instantiated into assembly here clzne r2, r2 ^ In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libMpeghDec/src/aacdecoder.cpp:135: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libMpeghDec/src/aacdecoder.h:94: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/common_fix.h:301: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/clz.h:98: /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/arm/clz_arm.h:130:27: error: predicated instructions must be in IT block "clzne %0, %0 \n\t" ^ <inline asm>:4:2: note: instantiated into assembly here subne r2, r2, #1 ^ In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libMpeghDec/src/aacdecoder.cpp:135: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libMpeghDec/src/aacdecoder.h:94: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/common_fix.h:301: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/clz.h:98: /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/arm/clz_arm.h:128:27: error: predicated instructions must be in IT block asm("subs %0, %1, #0 \n\t" ^ <inline asm>:2:2: note: instantiated into assembly here mvnlt r3, r3 ^ In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libMpeghDec/src/aacdecoder.cpp:135: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libMpeghDec/src/aacdecoder.h:94: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/common_fix.h:301: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/clz.h:98: /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/arm/clz_arm.h:129:27: error: predicated instructions must be in IT block "mvnlt %0, %0 \n\t" ^ <inline asm>:3:2: note: instantiated into assembly here clzne r3, r3 ^ In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libMpeghDec/src/aacdecoder.cpp:135: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libMpeghDec/src/aacdecoder.h:94: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/common_fix.h:301: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/clz.h:98: /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/arm/clz_arm.h:130:27: error: predicated instructions must be in IT block "clzne %0, %0 \n\t" ^ <inline asm>:4:2: note: instantiated into assembly here subne r3, r3, #1 ^ 12 errors generated. make[2]: *** [src/CMakeFiles/MpeghDec.dir/libMpeghDec/src/aacdecoder.cpp.o] Error 1 make[1]: *** [src/CMakeFiles/MpeghDec.dir/all] Error 2 make: *** [all] Error 2 rd019200:mpeghdec mattp$
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.