Skip to content

Instantly share code, notes, and snippets.

@maboloshi
Created February 7, 2019 14:39
Show Gist options
  • Save maboloshi/0ad1457254f6f068783471e73eb13f06 to your computer and use it in GitHub Desktop.
Save maboloshi/0ad1457254f6f068783471e73eb13f06 to your computer and use it in GitHub Desktop.
[ape2flac] ape格式转为flac格式

安装 Monkey's Audio 第三方解码器

brew tap fernandotcl/homebrew-fernandotcl
brew install monkeys-audio

安装 FLAC 解码器

brew install flac

或者 直接安装强大的 avconv 解码工具

brew install libav

批量转化脚本

# avconv工具转化
for f in (*.Ape||*.ape||*.APE)  ; do avconv -i "$f"  "${f%.*ape}.flac"; done

# mac 和 flac 转化
for f in (*.Ape||*.ape||*.APE)  ; do mac "$f" - -d|flac -o "${f%.*pe}.flac" - && echo "${f%.*pe}.flac"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment