Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 42 lines (30 sloc) 1.03 KB
#!/bin/bash
# Path to jhove
jhove=~/jhove/jhove
# Installation directory
instDir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo $instDir
# Data directory - where files are stored
dataDir="$instDir"/data
# Output directory - tool output goes here
outDir="$instDir"/outputWAV
# Output files for all tools
outJhoveWave=$outDir/jhoveWave.txt
outShntool=$outDir/shntool.txt
outFfmpeg=$outDir/ffmpeg.txt
outMediainfo=$outDir/mediainfo.txt
#outFlac=$outDir/flac.txt
# Remove any old instances of output files
rm "$outDir"/*
for inputFile in $dataDir/*.wav; do
echo '### ' $inputFile >> $outJhoveWave
$jhove -m WAVE-hul $inputFile >> $outJhoveWave
echo '### ' $inputFile >> $outShntool
shntool info $inputFile >> $outShntool
echo '### ' $inputFile >> $outFfmpeg
ffmpeg -v error -i $inputFile -f null - 2>> $outFfmpeg
echo '### ' $inputFile >> $outMediainfo
mediainfo $inputFile -show_format -show_streams >> $outMediainfo
#echo '### ' $inputFile >> $outFlac
#flac -t $inputFile 2>> $outFlac
done