From fda4eb4f383ffeaf038a5734d6a10a5a2e310517 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Tue, 3 Sep 2024 01:51:44 +0200 Subject: napad now works --- skripti/earhorn_waveforms.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 skripti/earhorn_waveforms.sh (limited to 'skripti/earhorn_waveforms.sh') 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 -- cgit v1.2.3