Skip to content

Instantly share code, notes, and snippets.

@lightcode
Created July 2, 2015 10:15
Show Gist options
  • Save lightcode/f4d65a7a810b723e1e21 to your computer and use it in GitHub Desktop.
Save lightcode/f4d65a7a810b723e1e21 to your computer and use it in GitHub Desktop.
Commands to manipulate audio files on Linux

Convert music on Linux

Split a FLAC into small parts with a CUE file :

shnsplit -f CDImage.cue -t %n-%t -o flac CDImage.flac

Remove metadata on FLAC in a directory :

find -name '*.flac' -exec metaflac --remove-all {} \;

Join multiple FLAC into one file :

shntool join -n -o flac 0[1-4]*.flac
shntool join -n -o flac 0*.flac -a "My File Name"
mp3wrap out.mp3 0[123]*.mp3
find -maxdepth 1 -name '*.mp3' -exec id3v2 -d "{}" \;
find -maxdepth 1 -name '*.mp3' -exec cleanmp3 "{}" \;
find -maxdepth 1 -name '*.mp3' -exec mp3wrap out.mp3 "{}" \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment