| 1 |
CONTRIB_DIR=contrib |
| 2 |
DECODERS_DIR=decoders |
| 3 |
PYTHONPATH=. |
| 4 |
AC4_DECODER_BIN ?= $(HOME)/Downloads/decoder_reference_app_linux_x86_64 |
| 5 |
FLUSTER=python3 ./fluster.py -tsd check |
| 6 |
ifeq ($(OS),Windows_NT) |
| 7 |
FLUSTER+=--no-emoji |
| 8 |
else |
| 9 |
KERNEL_NAME=$(shell uname -s) |
| 10 |
endif |
| 11 |
CMAKE_GENERATOR=Unix Makefiles |
| 12 |
|
| 13 |
help: |
| 14 |
@awk -F ':|##' '/^[^\t].+?:.*?##/ { printf "\033[36m%-30s\033[0m %s\n", $$1, $$NF }' $(MAKEFILE_LIST) |
| 15 |
|
| 16 |
install_deps: ## install Python dependencies |
| 17 |
python3 -m pip install -r requirements-dev.txt |
| 18 |
|
| 19 |
check: ## check that very basic tests run |
| 20 |
@echo "Running dummy test..." |
| 21 |
$(FLUSTER) list |
| 22 |
$(FLUSTER) list -c |
| 23 |
$(FLUSTER) -ne list -c |
| 24 |
$(FLUSTER) list -ts dummy -tv |
| 25 |
$(FLUSTER) download dummy dummy_fail -k |
| 26 |
$(FLUSTER) run -ts dummy -tv one |
| 27 |
$(FLUSTER) reference Dummy dummy |
| 28 |
$(FLUSTER) run -ts dummy -tv one -j1 |
| 29 |
$(FLUSTER) run -ts dummy -s |
| 30 |
$(FLUSTER) -ne run -ts dummy -s |
| 31 |
$(FLUSTER) run -ts dummy -so summary.log && cat summary.log && rm -rf summary.log |
| 32 |
$(FLUSTER) run -ts dummy -j1 -s |
| 33 |
$(FLUSTER) run -ts dummy -th 1 |
| 34 |
$(FLUSTER) run -ts dummy -tth 10 |
| 35 |
ifneq ($(OS),Windows_NT) |
| 36 |
$(FLUSTER) run -ts dummy non_existing_test_suite; test $$? -ne 0 |
| 37 |
$(FLUSTER) run -ts dummy -th 2; test $$? -eq 2 |
| 38 |
$(FLUSTER) run -ts dummy -tth 0.000000001; test $$? -eq 3 |
| 39 |
$(FLUSTER) run -ts dummy_fail -th 1 |
| 40 |
$(FLUSTER) run -ts dummy_fail -th 2; test $$? -eq 2 |
| 41 |
$(FLUSTER) run -ts dummy_fail -j1 -ff -s; test $$? -ne 0 |
| 42 |
$(FLUSTER) download dummy non_existing_test_suite -k; test $$? -ne 0 |
| 43 |
$(FLUSTER) download dummy dummy_download_fail -k; test $$? -ne 0 |
| 44 |
$(FLUSTER) download H264-min H265-min -k |
| 45 |
$(FLUSTER) run -ts H264-min -d GStreamer-H.264-Libav FFmpeg-H.264 -s |
| 46 |
$(FLUSTER) run -ts H265-min -d GStreamer-H.265-Libav FFmpeg-H.265 -s |
| 47 |
ifeq ($(KERNEL_NAME), Linux) |
| 48 |
$(FLUSTER) download AV1-min VP8-min VP9-min -k |
| 49 |
$(FLUSTER) run -ts AV1-min -d libaom-AV1 -s |
| 50 |
$(FLUSTER) run -ts VP8-min -d libvpx-VP8 -s |
| 51 |
$(FLUSTER) run -ts VP9-min -d libvpx-VP9 -s |
| 52 |
endif |
| 53 |
endif |
| 54 |
@echo "\nAll test finished succesfully!" |
| 55 |
|
| 56 |
create_dirs=mkdir -p $(CONTRIB_DIR) $(DECODERS_DIR) |
| 57 |
|
| 58 |
all_reference_decoders: h264_reference_decoder h265_reference_decoder h266_reference_decoder mpeg_2_aac_reference_decoder mpeg_4_aac_reference_decoder ## build all reference decoders |
| 59 |
|
| 60 |
h266_reference_decoder: ## build H.266 reference decoder |
| 61 |
$(create_dirs) |
| 62 |
cd $(CONTRIB_DIR) && git clone https://vcgit.hhi.fraunhofer.de/jvet/VVCSoftware_VTM.git --depth=1 || true |
| 63 |
cd $(CONTRIB_DIR)/VVCSoftware_VTM && git pull --autostash || true |
| 64 |
cd $(CONTRIB_DIR)/VVCSoftware_VTM && mkdir -p build && cd build && cmake -DCMAKE_BUILD_TYPE=Release .. |
| 65 |
$(MAKE) -C $(CONTRIB_DIR)/VVCSoftware_VTM/build |
| 66 |
find $(CONTRIB_DIR)/VVCSoftware_VTM/bin/ -name "DecoderApp" -type f -exec cp {} $(DECODERS_DIR)/ \; |
| 67 |
|
| 68 |
h266_vvdec_decoder: ## build H.266 VVdeC, the Fraunhofer Versatile Video Decoder |
| 69 |
$(create_dirs) |
| 70 |
cd $(CONTRIB_DIR) && git clone https://github.com/fraunhoferhhi/vvdec.git --depth=1 || true |
| 71 |
cd $(CONTRIB_DIR)/vvdec && git pull --autostash || true |
| 72 |
cd $(CONTRIB_DIR)/vvdec && cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="-Wno-stringop-truncation -Wno-stringop-overflow" && $(MAKE) -C build vvdecapp |
| 73 |
find $(CONTRIB_DIR)/vvdec/bin/release-static/ -name "vvdecapp" -type f -exec cp {} $(DECODERS_DIR)/ \; |
| 74 |
|
| 75 |
h265_reference_decoder: ## build H.265 reference decoder |
| 76 |
$(create_dirs) |
| 77 |
cd $(CONTRIB_DIR) && git clone https://vcgit.hhi.fraunhofer.de/jct-vc/HM.git --depth=1 || true |
| 78 |
cd $(CONTRIB_DIR)/HM && git stash && git pull && git stash apply || true |
| 79 |
cd $(CONTRIB_DIR)/HM && cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-Wno-array-bounds" && $(MAKE) -C build TAppDecoder |
| 80 |
find $(CONTRIB_DIR)/HM/bin/umake -name "TAppDecoder" -type f -exec cp {} $(DECODERS_DIR)/ \; |
| 81 |
|
| 82 |
h264_reference_decoder: ## build H.264 reference decoder |
| 83 |
$(create_dirs) |
| 84 |
cd $(CONTRIB_DIR) && git clone https://vcgit.hhi.fraunhofer.de/jct-vc/JM.git --depth=1 || true |
| 85 |
cd $(CONTRIB_DIR)/JM && git stash && git pull && git stash apply || true |
| 86 |
cd $(CONTRIB_DIR)/JM && cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="-Wno-stringop-truncation -Wno-stringop-overflow" && $(MAKE) -C build ldecod |
| 87 |
find $(CONTRIB_DIR)/JM/bin/umake -name "ldecod" -type f -exec cp {} $(DECODERS_DIR)/ \; |
| 88 |
|
| 89 |
mpeg_2_aac_reference_decoder: ## build ISO MPEG2 AAC reference decoder |
| 90 |
ifeq ($(KERNEL_NAME), Linux) |
| 91 |
if ! dpkg -l | grep gcc-multilib -c >>/dev/null; then sudo apt-get install gcc-multilib; fi |
| 92 |
if ! dpkg -l | grep g++-multilib -c >>/dev/null; then sudo apt-get install g++-multilib; fi |
| 93 |
endif |
| 94 |
if [ ! $(wildcard /usr/include/asm) ] && [ $(wildcard /usr/include/asm-generic) ]; then sudo ln -s /usr/include/asm-generic /usr/include/asm; fi |
| 95 |
|
| 96 |
ifeq ($(wildcard $(CONTRIB_DIR)/C039486_Electronic_inserts),) |
| 97 |
$(create_dirs) |
| 98 |
cd $(CONTRIB_DIR) && rm -f iso_cookies.txt |
| 99 |
cd $(CONTRIB_DIR) && wget -qO- --keep-session-cookies --save-cookies iso_cookies.txt \ |
| 100 |
'https://standards.iso.org/ittf/PubliclyAvailableStandards/c039486_ISO_IEC_13818-5_2005_Reference_Software.zip' > /dev/null |
| 101 |
cd $(CONTRIB_DIR) && wget --keep-session-cookies --load-cookies iso_cookies.txt --post-data 'ok=I+accept' \ |
| 102 |
'https://standards.iso.org/ittf/PubliclyAvailableStandards/c039486_ISO_IEC_13818-5_2005_Reference_Software.zip' |
| 103 |
cd $(CONTRIB_DIR) && unzip -oq c039486_ISO_IEC_13818-5_2005_Reference_Software.zip |
| 104 |
cd $(CONTRIB_DIR) && rm -f iso_cookies.txt c039486_ISO_IEC_13818-5_2005_Reference_Software.zip ipmp.zip mpeg2audio.zip systems.zip video.zip |
| 105 |
|
| 106 |
cd $(CONTRIB_DIR) && unzip -oq mpeg2aac.zip |
| 107 |
cd $(CONTRIB_DIR) && rm -f mpeg2aac.zip |
| 108 |
|
| 109 |
cd $(CONTRIB_DIR) && rm -rf isobmff && git clone https://github.com/MPEGGroup/isobmff.git |
| 110 |
cd $(CONTRIB_DIR)/isobmff && git checkout tags/v0.2.0 -b v0.2.0 |
| 111 |
cd $(CONTRIB_DIR)/isobmff && mkdir -p build && cd build && cmake .. -DCMAKE_C_FLAGS=-m32 && $(MAKE) libisomediafile |
| 112 |
cd $(CONTRIB_DIR)/isobmff && mv lib/liblibisomediafile.a lib/libisomediafile.a |
| 113 |
cd $(CONTRIB_DIR) && cp isobmff/lib/libisomediafile.a mpeg2aac/import/lib/ |
| 114 |
cd $(CONTRIB_DIR) && cp isobmff/IsoLib/libisomediafile/src/ISOMovies.h mpeg2aac/import/include/ |
| 115 |
cd $(CONTRIB_DIR) && cp isobmff/IsoLib/libisomediafile/src/MP4Movies.h mpeg2aac/import/include/ |
| 116 |
ifeq ($(OS), Windows_NT) |
| 117 |
cd $(CONTRIB_DIR) && cp isobmff/IsoLib/libisomediafile/w32/MP4OSMacros.h mpeg2aac/import/include/ |
| 118 |
else ifeq ($(KERNEL_NAME), Linux) |
| 119 |
cd $(CONTRIB_DIR) && cp isobmff/IsoLib/libisomediafile/linux/MP4OSMacros.h mpeg2aac/import/include/ || true |
| 120 |
else ifeq ($(KERNEL_NAME), Darwin) |
| 121 |
cd $(CONTRIB_DIR) && cp isobmff/IsoLib/libisomediafile/macosx/MP4OSMacros.h mpeg2aac/import/include/ || true |
| 122 |
endif |
| 123 |
cd $(CONTRIB_DIR) && wget --no-check-certificate https://www-mmsp.ece.mcgill.ca/Documents/Downloads/libtsp/libtsp-v7r0.tar.gz |
| 124 |
cd $(CONTRIB_DIR) && tar -zxf libtsp-v7r0.tar.gz && chmod -R ugo=rwx libtsp-v7r0/ && cd libtsp-v7r0/ && $(MAKE) -s COPTS=-m32 |
| 125 |
cd $(CONTRIB_DIR) && rm -f libtsp-v7r0.tar.gz |
| 126 |
cd $(CONTRIB_DIR) && cp libtsp-v7r0/lib/libtsp.a mpeg2aac/import/lib/ |
| 127 |
cd $(CONTRIB_DIR) && cp libtsp-v7r0/include/libtsp.h mpeg2aac/import/include/ |
| 128 |
cd $(CONTRIB_DIR) && mkdir -p mpeg2aac/import/include/libtsp/ |
| 129 |
cd $(CONTRIB_DIR) && cp libtsp-v7r0/include/libtsp/AFpar.h mpeg2aac/import/include/libtsp/ |
| 130 |
cd $(CONTRIB_DIR) && cp libtsp-v7r0/include/libtsp/UTpar.h mpeg2aac/import/include/libtsp/ |
| 131 |
endif |
| 132 |
cd $(CONTRIB_DIR)/mpeg2aac/aacDec && MAKELEVEL=0 $(MAKE) aacdec_mc REFSOFT_INCLUDE_PATH=../import/include REFSOFT_LIBRARY_PATH=../import/lib CFLAGS=-m32 LDFLAGS=-m32 |
| 133 |
find $(CONTRIB_DIR)/mpeg2aac/bin/mp4mcDec -name "aacdec_mc" -type f -exec cp {} $(DECODERS_DIR) \; |
| 134 |
|
| 135 |
sudo rm -f /usr/include/asm |
| 136 |
|
| 137 |
mpeg_2_video_reference_decoder: ## build ISO MPEG2 video reference decoder |
| 138 |
ifeq ($(KERNEL_NAME), Linux) |
| 139 |
if ! dpkg -l | grep gcc-multilib -c >>/dev/null; then sudo apt-get install gcc-multilib; fi |
| 140 |
if ! dpkg -l | grep g++-multilib -c >>/dev/null; then sudo apt-get install g++-multilib; fi |
| 141 |
endif |
| 142 |
if [ ! $(wildcard /usr/include/asm) ] && [ $(wildcard /usr/include/asm-generic) ]; then sudo ln -s /usr/include/asm-generic /usr/include/asm; fi |
| 143 |
|
| 144 |
ifeq ($(wildcard $(CONTRIB_DIR)/C039486_Electronic_inserts),) |
| 145 |
$(create_dirs) |
| 146 |
cd $(CONTRIB_DIR) && rm -f iso_cookies.txt |
| 147 |
cd $(CONTRIB_DIR) && wget -qO- --keep-session-cookies --save-cookies iso_cookies.txt \ |
| 148 |
'https://standards.iso.org/ittf/PubliclyAvailableStandards/c039486_ISO_IEC_13818-5_2005_Reference_Software.zip' > /dev/null |
| 149 |
cd $(CONTRIB_DIR) && wget --keep-session-cookies --load-cookies iso_cookies.txt --post-data 'ok=I+accept' \ |
| 150 |
'https://standards.iso.org/ittf/PubliclyAvailableStandards/c039486_ISO_IEC_13818-5_2005_Reference_Software.zip' |
| 151 |
cd $(CONTRIB_DIR) && unzip -oq c039486_ISO_IEC_13818-5_2005_Reference_Software.zip |
| 152 |
cd $(CONTRIB_DIR) && rm -f iso_cookies.txt c039486_ISO_IEC_13818-5_2005_Reference_Software.zip ipmp.zip mpeg2audio.zip systems.zip mpeg2aac.zip |
| 153 |
|
| 154 |
cd $(CONTRIB_DIR) && unzip -oq video.zip |
| 155 |
cd $(CONTRIB_DIR) && rm -f video.zip |
| 156 |
endif |
| 157 |
cd $(CONTRIB_DIR)/video/decoder && MAKELEVEL=0 $(MAKE) all |
| 158 |
find $(CONTRIB_DIR)/video/decoder -name "mpeg2decode" -type f -exec cp {} $(DECODERS_DIR) \; |
| 159 |
|
| 160 |
sudo rm -f /usr/include/asm |
| 161 |
|
| 162 |
mpeg_4_aac_reference_decoder: ## build ISO MPEG4 AAC reference decoder |
| 163 |
ifeq ($(KERNEL_NAME), Linux) |
| 164 |
if ! dpkg -l | grep gcc-multilib -c >>/dev/null; then sudo apt-get install gcc-multilib; fi |
| 165 |
if ! dpkg -l | grep g++-multilib -c >>/dev/null; then sudo apt-get install g++-multilib; fi |
| 166 |
endif |
| 167 |
if [ ! $(wildcard /usr/include/asm) ] && [ $(wildcard /usr/include/asm-generic) ]; then sudo ln -s /usr/include/asm-generic /usr/include/asm; fi |
| 168 |
|
| 169 |
ifeq ($(wildcard $(CONTRIB_DIR)/C050470e_Electronic_inserts), ) |
| 170 |
$(create_dirs) |
| 171 |
cd $(CONTRIB_DIR) && rm -f iso_cookies.txt |
| 172 |
cd $(CONTRIB_DIR) && wget -qO- --keep-session-cookies --save-cookies iso_cookies.txt \ |
| 173 |
'https://standards.iso.org/ittf/PubliclyAvailableStandards/c050470__ISO_IEC_14496-5_2001_Amd_20_2009_Reference_Software.zip' > /dev/null |
| 174 |
cd $(CONTRIB_DIR) && wget --keep-session-cookies --load-cookies iso_cookies.txt --post-data 'ok=I+accept' \ |
| 175 |
'https://standards.iso.org/ittf/PubliclyAvailableStandards/c050470__ISO_IEC_14496-5_2001_Amd_20_2009_Reference_Software.zip' |
| 176 |
cd $(CONTRIB_DIR) && unzip -oq c050470__ISO_IEC_14496-5_2001_Amd_20_2009_Reference_Software.zip |
| 177 |
cd $(CONTRIB_DIR) && rm -f iso_cookies.txt c050470__ISO_IEC_14496-5_2001_Amd_20_2009_Reference_Software.zip |
| 178 |
|
| 179 |
cd $(CONTRIB_DIR) && rm -rf isobmff && git clone https://github.com/MPEGGroup/isobmff.git |
| 180 |
cd $(CONTRIB_DIR)/isobmff && git checkout tags/v0.2.0 -b v0.2.0 |
| 181 |
cd $(CONTRIB_DIR)/isobmff && mkdir -p build && cd build && cmake .. -DCMAKE_C_FLAGS=-m32 && $(MAKE) libisomediafile |
| 182 |
cd $(CONTRIB_DIR)/isobmff && mv lib/liblibisomediafile.a lib/libisomediafile.a |
| 183 |
cd $(CONTRIB_DIR) && cp isobmff/lib/libisomediafile.a C050470e_Electronic_inserts/audio/natural/import/lib/ |
| 184 |
cd $(CONTRIB_DIR) && cp isobmff/IsoLib/libisomediafile/src/ISOMovies.h C050470e_Electronic_inserts/audio/natural/import/include/ |
| 185 |
cd $(CONTRIB_DIR) && cp isobmff/IsoLib/libisomediafile/src/MP4Movies.h C050470e_Electronic_inserts/audio/natural/import/include/ |
| 186 |
ifeq ($(OS), Windows_NT) |
| 187 |
cd $(CONTRIB_DIR) && cp isobmff/IsoLib/libisomediafile/w32/MP4OSMacros.h C050470e_Electronic_inserts/audio/natural/import/include/ |
| 188 |
else ifeq ($(KERNEL_NAME), Linux) |
| 189 |
cd $(CONTRIB_DIR) && cp isobmff/IsoLib/libisomediafile/linux/MP4OSMacros.h C050470e_Electronic_inserts/audio/natural/import/include/ || true |
| 190 |
else ifeq ($(KERNEL_NAME), Darwin) |
| 191 |
cd $(CONTRIB_DIR) && cp isobmff/IsoLib/libisomediafile/macosx/MP4OSMacros.h C050470e_Electronic_inserts/audio/natural/import/include/ || true |
| 192 |
endif |
| 193 |
cd $(CONTRIB_DIR) && wget --no-check-certificate https://www-mmsp.ece.mcgill.ca/Documents/Downloads/libtsp/libtsp-v7r0.tar.gz |
| 194 |
cd $(CONTRIB_DIR) && tar -zxf libtsp-v7r0.tar.gz && chmod -R ugo=rwx libtsp-v7r0/ && cd libtsp-v7r0/ && $(MAKE) -s COPTS=-m32 |
| 195 |
cd $(CONTRIB_DIR) && rm -f libtsp-v7r0.tar.gz |
| 196 |
cd $(CONTRIB_DIR) && cp libtsp-v7r0/lib/libtsp.a C050470e_Electronic_inserts/audio/natural/import/lib/ |
| 197 |
cd $(CONTRIB_DIR) && cp libtsp-v7r0/include/libtsp.h C050470e_Electronic_inserts/audio/natural/import/include/ |
| 198 |
cd $(CONTRIB_DIR) && mkdir -p C050470e_Electronic_inserts/audio/natural/import/include/libtsp/ |
| 199 |
cd $(CONTRIB_DIR) && cp libtsp-v7r0/include/libtsp/AFpar.h C050470e_Electronic_inserts/audio/natural/import/include/libtsp/ |
| 200 |
cd $(CONTRIB_DIR) && cp libtsp-v7r0/include/libtsp/UTpar.h C050470e_Electronic_inserts/audio/natural/import/include/libtsp/ |
| 201 |
endif |
| 202 |
cd $(CONTRIB_DIR)/C050470e_Electronic_inserts/audio/natural/mp4mcDec && MAKELEVEL=0 $(MAKE) mp4audec_mc REFSOFT_INCLUDE_PATH=../import/include REFSOFT_LIBRARY_PATH=../import/lib CFLAGS=-m32 LDFLAGS=-m32 |
| 203 |
find $(CONTRIB_DIR)/C050470e_Electronic_inserts/audio/natural/bin/mp4mcDec -name "mp4audec_mc" -type f -exec cp {} $(DECODERS_DIR) \; |
| 204 |
|
| 205 |
sudo rm -f /usr/include/asm |
| 206 |
|
| 207 |
mpeg_4_aac_error_resilient_reference_decoder: ## build ISO MPEG4 AAC reference decoder for Error resilient, Low delay and Escape value test vectors |
| 208 |
ifeq ($(KERNEL_NAME), Linux) |
| 209 |
if ! dpkg -l | grep gcc-multilib -c >>/dev/null; then sudo apt-get install gcc-multilib; fi |
| 210 |
if ! dpkg -l | grep g++-multilib -c >>/dev/null; then sudo apt-get install g++-multilib; fi |
| 211 |
endif |
| 212 |
if [ ! $(wildcard /usr/include/asm) ] && [ $(wildcard /usr/include/asm-generic) ]; then sudo ln -s /usr/include/asm-generic /usr/include/asm; fi |
| 213 |
|
| 214 |
ifeq ($(wildcard $(CONTRIB_DIR)/C050470e_Electronic_inserts), ) |
| 215 |
$(create_dirs) |
| 216 |
cd $(CONTRIB_DIR) && rm -f iso_cookies.txt |
| 217 |
cd $(CONTRIB_DIR) && wget -qO- --keep-session-cookies --save-cookies iso_cookies.txt \ |
| 218 |
'https://standards.iso.org/ittf/PubliclyAvailableStandards/c050470__ISO_IEC_14496-5_2001_Amd_20_2009_Reference_Software.zip' > /dev/null |
| 219 |
cd $(CONTRIB_DIR) && wget --keep-session-cookies --load-cookies iso_cookies.txt --post-data 'ok=I+accept' \ |
| 220 |
'https://standards.iso.org/ittf/PubliclyAvailableStandards/c050470__ISO_IEC_14496-5_2001_Amd_20_2009_Reference_Software.zip' |
| 221 |
cd $(CONTRIB_DIR) && unzip -oq c050470__ISO_IEC_14496-5_2001_Amd_20_2009_Reference_Software.zip |
| 222 |
cd $(CONTRIB_DIR) && rm -f iso_cookies.txt c050470__ISO_IEC_14496-5_2001_Amd_20_2009_Reference_Software.zip |
| 223 |
|
| 224 |
cd $(CONTRIB_DIR) && rm -rf isobmff && git clone https://github.com/MPEGGroup/isobmff.git |
| 225 |
cd $(CONTRIB_DIR)/isobmff && git checkout tags/v0.2.0 -b v0.2.0 |
| 226 |
cd $(CONTRIB_DIR)/isobmff && mkdir -p build && cd build && cmake .. -DCMAKE_C_FLAGS=-m32 && $(MAKE) libisomediafile |
| 227 |
cd $(CONTRIB_DIR)/isobmff && mv lib/liblibisomediafile.a lib/libisomediafile.a |
| 228 |
cd $(CONTRIB_DIR) && cp isobmff/lib/libisomediafile.a C050470e_Electronic_inserts/audio/natural/import/lib/ |
| 229 |
cd $(CONTRIB_DIR) && cp isobmff/IsoLib/libisomediafile/src/ISOMovies.h C050470e_Electronic_inserts/audio/natural/import/include/ |
| 230 |
cd $(CONTRIB_DIR) && cp isobmff/IsoLib/libisomediafile/src/MP4Movies.h C050470e_Electronic_inserts/audio/natural/import/include/ |
| 231 |
ifeq ($(OS), Windows_NT) |
| 232 |
cd $(CONTRIB_DIR) && cp isobmff/IsoLib/libisomediafile/w32/MP4OSMacros.h C050470e_Electronic_inserts/audio/natural/import/include/ |
| 233 |
else ifeq ($(KERNEL_NAME), Linux) |
| 234 |
cd $(CONTRIB_DIR) && cp isobmff/IsoLib/libisomediafile/linux/MP4OSMacros.h C050470e_Electronic_inserts/audio/natural/import/include/ || true |
| 235 |
else ifeq ($(KERNEL_NAME), Darwin) |
| 236 |
cd $(CONTRIB_DIR) && cp isobmff/IsoLib/libisomediafile/macosx/MP4OSMacros.h C050470e_Electronic_inserts/audio/natural/import/include/ || true |
| 237 |
endif |
| 238 |
cd $(CONTRIB_DIR) && wget --no-check-certificate https://www-mmsp.ece.mcgill.ca/Documents/Downloads/libtsp/libtsp-v7r0.tar.gz |
| 239 |
cd $(CONTRIB_DIR) && tar -zxf libtsp-v7r0.tar.gz && chmod -R ugo=rwx libtsp-v7r0/ && cd libtsp-v7r0/ && $(MAKE) -s COPTS=-m32 |
| 240 |
cd $(CONTRIB_DIR) && rm -f libtsp-v7r0.tar.gz |
| 241 |
cd $(CONTRIB_DIR) && cp libtsp-v7r0/lib/libtsp.a C050470e_Electronic_inserts/audio/natural/import/lib/ |
| 242 |
cd $(CONTRIB_DIR) && cp libtsp-v7r0/include/libtsp.h C050470e_Electronic_inserts/audio/natural/import/include/ |
| 243 |
cd $(CONTRIB_DIR) && mkdir -p C050470e_Electronic_inserts/audio/natural/import/include/libtsp/ |
| 244 |
cd $(CONTRIB_DIR) && cp libtsp-v7r0/include/libtsp/AFpar.h C050470e_Electronic_inserts/audio/natural/import/include/libtsp/ |
| 245 |
cd $(CONTRIB_DIR) && cp libtsp-v7r0/include/libtsp/UTpar.h C050470e_Electronic_inserts/audio/natural/import/include/libtsp/ |
| 246 |
endif |
| 247 |
cd $(CONTRIB_DIR)/C050470e_Electronic_inserts/audio/natural/mp4AudVm_Rewrite && MAKELEVEL=0 $(MAKE) mp4audec REFSOFT_INCLUDE_PATH=../import/include REFSOFT_LIBRARY_PATH=../import/lib CFLAGS=-m32 LDFLAGS=-m32 |
| 248 |
find $(CONTRIB_DIR)/C050470e_Electronic_inserts/audio/natural/bin/mp4AudVm_Tbt_VmMp4AuDecRewrite/Linux_v2_c1_eptool_sbr_ps_mpeg12_gcc_O0d -name "mp4audec" -type f -exec cp {} $(DECODERS_DIR) \; |
| 249 |
|
| 250 |
sudo rm -f /usr/include/asm |
| 251 |
|
| 252 |
ac4_reference_decoder: ## install AC4 Dolby reference decoder (requires Dolby customer credentials - NOT included in all_reference_decoders) |
| 253 |
$(create_dirs) |
| 254 |
@if [ ! -f "$(AC4_DECODER_BIN)" ]; then \ |
| 255 |
echo "ERROR: AC4 reference decoder binary not found at '$(AC4_DECODER_BIN)'"; \ |
| 256 |
echo ""; \ |
| 257 |
echo "This decoder requires Dolby customer credentials to download."; \ |
| 258 |
echo "1. Log in to the Dolby customer portal (credentials required):"; \ |
| 259 |
echo " https://customer.dolby.com/licensing-resources/technologies/dolby-pro-audio-decoder-software-development-kit-v45/downloads/tools/decoder_reference_app/linux/x86_64"; \ |
| 260 |
echo "2. Download 'decoder_reference_app_linux_x86_64'"; \ |
| 261 |
echo "3. Run: make ac4_reference_decoder AC4_DECODER_BIN=/path/to/decoder_reference_app_linux_x86_64"; \ |
| 262 |
exit 1; \ |
| 263 |
fi |
| 264 |
cp $(AC4_DECODER_BIN) $(DECODERS_DIR)/decoder_reference_app_linux_x86_64 |
| 265 |
chmod +x $(DECODERS_DIR)/decoder_reference_app_linux_x86_64 |
| 266 |
|
| 267 |
clean: ## remove contrib temporary folder |
| 268 |
rm -rf $(CONTRIB_DIR) |
| 269 |
|
| 270 |
dbg-%: |
| 271 |
echo "Value of $* = $($*)" |
| 272 |
|
| 273 |
.PHONY: help \ |
| 274 |
all_reference_decoders \ |
| 275 |
h264_reference_decoder \ |
| 276 |
h265_reference_decoder \ |
| 277 |
h266_reference_decoder \ |
| 278 |
h266_vvdec_decoder \ |
| 279 |
mpeg_2_aac_reference_decoder \ |
| 280 |
mpeg_2_video_reference_decoder \ |
| 281 |
mpeg_4_aac_reference_decoder \ |
| 282 |
mpeg_4_aac_error_resilient_reference_decoder \ |
| 283 |
ac4_reference_decoder \ |
| 284 |
check \ |
| 285 |
install_deps \ |
| 286 |
clean |