summaryrefslogtreecommitdiffstats
path: root/skripti/earhorn_waveforms.sh
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2024-09-03 01:51:44 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2024-09-03 01:51:44 +0200
commitfda4eb4f383ffeaf038a5734d6a10a5a2e310517 (patch)
tree6f078a3d46dd80c99e0fc06050e266d890ae7c55 /skripti/earhorn_waveforms.sh
parentnapad (diff)
downloadr-fda4eb4f383ffeaf038a5734d6a10a5a2e310517.tar
r-fda4eb4f383ffeaf038a5734d6a10a5a2e310517.tar.gz
r-fda4eb4f383ffeaf038a5734d6a10a5a2e310517.tar.bz2
r-fda4eb4f383ffeaf038a5734d6a10a5a2e310517.tar.lz
r-fda4eb4f383ffeaf038a5734d6a10a5a2e310517.tar.xz
r-fda4eb4f383ffeaf038a5734d6a10a5a2e310517.tar.zst
r-fda4eb4f383ffeaf038a5734d6a10a5a2e310517.zip
Diffstat (limited to 'skripti/earhorn_waveforms.sh')
-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