source: gs3-extensions/mars-src/trunk/packages/CASCADE-MAKE.sh

Last change on this file was 34805, checked in by davidb, 3 years ago

Bash script that breaks up the audio into 6 second chunks, spaced out every 3 secs, needs to know the duration of a song. This is done using ffprobe, and so need ffmpeg compiled up as part of extension

  • Property svn:executable set to *
File size: 1.7 KB
Line 
1#!/bin/bash
2
3source ../cascade-make/lib/cascade-lib.bash GEXT_MARS .. $*
4
5if [ -z "$GEXT_MARS_DEVEL" ] ; then
6 cd .. && source ./devel.bash
7fi
8
9# Turns out essentia has an optional script inside it for getting and compiling
10# up the necessary supporting packages. The configure options it uses are more
11# optimal than the onces developed in the CASCADE-MAKE files, and so look to be
12# actively maintained, so have changed CASCADE-MAKE/ESSENTIA.sh to trigger this
13# optional script as part of it's configure stage.
14
15# *IMPORTANT*
16# The route to have things statically compiled is currently followed. Consequently:
17# packaging/build_config.sh
18# has been tweaked from the git cloned file to specify --enable-static --disable-shared
19
20# AND
21# there needs to static versions of -lm and -lc
22# Not all Linux distributions ship with these.
23#
24# For Amazon Linux 2 AMI it was found to neeed:
25# sudo yum install glibc-static
26
27
28# As things stand, the CASCADE-MAKE version of these files still had a couple of issues.
29#
30# (i) CHROMAPRINT needed -lz added to the link command for fpcalc when statically linked.
31# (ii) ESSENTIA hit a linking error at [308/408], again to do with not having the right
32# libraries for linking provided, even though they do exist
33
34#for d in EIGEN3 FFMPEG LIBSAMPLERATE TAGLIB YAML FFTW CHROMAPRINT ESSENTIA ; do
35
36#!!
37# Update: added FFMPEG back in, as need 'ffprobe' available on command-line for
38# ./AUDIO-FRAME-TO-ESSENTIA-CSV-FEATURE-FILE.pl
39#!!
40
41for d in ESSENTIA FFMPEG ; do
42 echo " Running CASCADE-MAKE/$d.sh"
43
44 ./CASCADE-MAKE/$d.sh $*
45
46 if [ $? != 0 ] ; then
47 echo "Error encountered running CASCADE-MAKE/$d.sh"
48 exit 1
49 fi
50done
Note: See TracBrowser for help on using the repository browser.