Last active
January 13, 2020 00:54
-
-
Save sm-Fifteen/63c5dad4413f1a9075e9f52bd0e57e76 to your computer and use it in GitHub Desktop.
Bash snippets
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
# Encode all FLAC files in a directory in Opus | |
# Picked 128 kbps because of this : | |
# https://wiki.xiph.org/Opus_Recommended_Settings#Recommended_Bitrates | |
for file in *.flac; do opusenc --bitrate 128 "${file}" "${file%%.flac}.opus"; done | |
# Alternatively | |
parallel opusenc --bitrate 128 {} "{.}.opus" ::: ./*.flac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment