diff options
| author | joott <joshott16@gmail.com> | 2026-01-26 16:57:46 -0500 |
|---|---|---|
| committer | joott <joshott16@gmail.com> | 2026-01-26 16:57:46 -0500 |
| commit | 4b56db7b3d851ac1732ed27381eb6bf64335762a (patch) | |
| tree | 245d407b6058d7d51ea4b193a88cd16bca6d5a21 /get_recordings | |
| parent | 175a2bdafc838a403d6dc138235f42af3be014ce (diff) | |
| download | bin-4b56db7b3d851ac1732ed27381eb6bf64335762a.tar.gz bin-4b56db7b3d851ac1732ed27381eb6bf64335762a.zip | |
recordings and notes
Diffstat (limited to 'get_recordings')
| -rwxr-xr-x | get_recordings | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/get_recordings b/get_recordings index 23dfdba..6f71d52 100755 --- a/get_recordings +++ b/get_recordings @@ -1,11 +1,14 @@ +#!/usr/bin/env bash + convert_audio () { - target_dir=$HOME/Documents/recordings + target_dir=$HOME/nextcloud/recordings/$2/ filename="$(date -r $1 +%F_%T.mp3 | tr ':' '-')" - ffmpeg -i $1 $target_dir/$filename - rip $1 + ffmpeg -n -v 8 -i $1 $target_dir/$filename } export -f convert_audio -sudo mount -o uid=1000,gid=1000 /media/rec -find /media/rec -name \*.WMA -exec bash -c 'convert_audio "{}"' \; +sudo mount --onlyonce -o uid=1000,gid=1000 /media/rec +find /media/rec/DSS_FLDA -name \*.WMA -exec bash -c 'convert_audio "{}" music' \; +find /media/rec/DSS_FLDB -name \*.WMA -exec bash -c 'convert_audio "{}" bird' \; +find /media/rec/DSS_FLD{C,D,E} -name \*.WMA -exec bash -c 'convert_audio "{}" other' \; sudo umount /media/rec |