summaryrefslogblamecommitdiffstats
path: root/skripti/earhorn_waveforms.sh
blob: 33afc0ceb932d66c97b78d42c1dd683e8ca6ba59 (plain) (tree)
1
2
3
4
5
6
7
8







                                                                                                                                                                                                  
#!/bin/bash
set -xeuo pipefail
find 2* -type f | while read file
do
	dest=waveforms/`cut -d. -f1 <<<$file`.png
	mkdir -p `rev <<<$dest | cut -d/ -f2- | rev`
	[ ! -s $dest ] && ffmpeg -i $file -filter_complex compand,showwavespic=s=16384x768,crop=h=ih/3 -frames:v 1 $dest <<<"" # na začetek filtra lahko daš compand, za dynamic range kompresor
done