Last change
on this file since 35178 was 34419, checked in by davidb, 4 years ago |
Version of script where an Essentia profile is also specified
|
-
Property svn:executable
set to
*
|
File size:
457 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | if [ $# != 2 ] && [ $# != 3 ] ; then
|
---|
4 | echo "Usage: $0 input-file.mp3 essentia.profile [output-file.json]" 1>&2
|
---|
5 | exit 1
|
---|
6 | fi
|
---|
7 |
|
---|
8 | ifile=$1
|
---|
9 | profile=$2
|
---|
10 |
|
---|
11 | if [ $# == 3 ] ; then
|
---|
12 | ofile=$3
|
---|
13 | else
|
---|
14 | ofile=${ifile%.*}.json
|
---|
15 | fi
|
---|
16 |
|
---|
17 | echo "######"
|
---|
18 | echo "Running extractor on: $ifile"
|
---|
19 | echo " with profile: $profile"
|
---|
20 | echo " generating output file: $ofile"
|
---|
21 | echo "######"
|
---|
22 | essentia_streaming_extractor_music $ifile $ofile $profile
|
---|
23 |
|
---|
24 | echo "######"
|
---|
25 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.