summaryrefslogtreecommitdiffstats
path: root/skripti
diff options
context:
space:
mode:
Diffstat (limited to 'skripti')
-rwxr-xr-xskripti/earhorn_waveforms.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/skripti/earhorn_waveforms.sh b/skripti/earhorn_waveforms.sh
new file mode 100755
index 0000000..33afc0c
--- /dev/null
+++ b/skripti/earhorn_waveforms.sh
@@ -0,0 +1,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