source: gs3-extensions/mars-src/trunk/bin/script/essentia-extractor-file-with-profile.sh@ 35178

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
3if [ $# != 2 ] && [ $# != 3 ] ; then
4 echo "Usage: $0 input-file.mp3 essentia.profile [output-file.json]" 1>&2
5 exit 1
6fi
7
8ifile=$1
9profile=$2
10
11if [ $# == 3 ] ; then
12 ofile=$3
13else
14 ofile=${ifile%.*}.json
15fi
16
17echo "######"
18echo "Running extractor on: $ifile"
19echo " with profile: $profile"
20echo " generating output file: $ofile"
21echo "######"
22essentia_streaming_extractor_music $ifile $ofile $profile
23
24echo "######"
25
Note: See TracBrowser for help on using the repository browser.