dotfiles

regexghost dotfiles and scripts
git clone https://git.regexghost.com/dotfiles.git
Log | Files | Refs | README

commit 9c4d96bf316a58b428408a2012c0c0c754946b16
parent 91d0c448c235be79249c118fc427ea32a59fa1c3
Author: regexghost <dev@regexghost.com>
Date:   Wed, 17 Jun 2026 14:45:04 +0100

added wemb to m4a script

Diffstat:
Aterminal-scripts/webm_to_m4a.sh | 14++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)

diff --git a/terminal-scripts/webm_to_m4a.sh b/terminal-scripts/webm_to_m4a.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +oldIFS="$IFS" +IFS=$'\n' +files=( $(find initial/ -type f) ) +IFS="$oldIFS" + +for file in "${files[@]}"; do + echo $file + new="$(echo "$file" | sed 's/webm$/m4a/g; s/^initial/done/g')" + dir="$(dirname "$new")" + [ -d "$dir" ] || mkdir "$dir" + ffmpeg -i "$file" -map_metadata -1 -vn -acodec aac -aac_pns 0 "$new" +done