Created
September 1, 2022 18:10
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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