Skip to content

Instantly share code, notes, and snippets.

@oct2pus
Created September 1, 2022 18:10
Show Gist options
  • Select an option

  • Save oct2pus/b0b056676414c9b6eedd5611d0b26d2b to your computer and use it in GitHub Desktop.

Select an option

Save oct2pus/b0b056676414c9b6eedd5611d0b26d2b to your computer and use it in GitHub Desktop.
i use .flac for archives, but occassionally i get lossless music as .wav files. little conversion script to simplify my life
#!/bin/env fish
for i in (ls $argv[1]/*.wav)
mkdir -p $argv[2]
set o (basename -s .wav $i)
echo $argv[2]/$o.flac
ffmpeg -i {$i} $argv[2]/$o.flac
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment