diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2024-09-03 01:51:44 +0200 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2024-09-03 01:51:44 +0200 |
commit | fda4eb4f383ffeaf038a5734d6a10a5a2e310517 (patch) | |
tree | 6f078a3d46dd80c99e0fc06050e266d890ae7c55 /skripti | |
parent | napad (diff) | |
download | r-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')
-rwxr-xr-x | skripti/earhorn_waveforms.sh | 8 |
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 |