diff options
| author | joott <joshott16@gmail.com> | 2026-01-09 10:52:02 -0500 |
|---|---|---|
| committer | joott <joshott16@gmail.com> | 2026-01-09 10:52:02 -0500 |
| commit | 175a2bdafc838a403d6dc138235f42af3be014ce (patch) | |
| tree | eba26005422621c269dee122054de63b69f5a977 /get_recordings | |
| parent | 6bda2d2a64d0a934bc324788c81768ce99338617 (diff) | |
| download | bin-175a2bdafc838a403d6dc138235f42af3be014ce.tar.gz bin-175a2bdafc838a403d6dc138235f42af3be014ce.zip | |
recordings
Diffstat (limited to 'get_recordings')
| -rwxr-xr-x | get_recordings | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/get_recordings b/get_recordings new file mode 100755 index 0000000..23dfdba --- /dev/null +++ b/get_recordings @@ -0,0 +1,11 @@ +convert_audio () { + target_dir=$HOME/Documents/recordings + filename="$(date -r $1 +%F_%T.mp3 | tr ':' '-')" + ffmpeg -i $1 $target_dir/$filename + rip $1 +} +export -f convert_audio + +sudo mount -o uid=1000,gid=1000 /media/rec +find /media/rec -name \*.WMA -exec bash -c 'convert_audio "{}"' \; +sudo umount /media/rec |