File format conversions

From Elvanör's Technical Wiki
Revision as of 15:18, 1 December 2018 by Elvanor (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Program with GUI

  • media-sound/flacon is probably the easiest option and can convert most audio files.

Conversion of an APE or FLAC file to a list of OGG / MP3 files

  • The easiest way is to use the cueape.sh script (renamed to cueape) in the following way (-o is for Ogg encoding):
cueape "Falconer - The Sceptre Of Deception-shen.flac" "Falconer - The Sceptre Of Deception [FLAC].cue" -o
  • You will need the Gentoo packages media-libs/flac, media-sound/vorbis-tools, media-sound/mac and media-sound/mp3splt.

Converting mp3 to wav

lame --decode file.mp3 file.wav

Converting a WAV file with a CUE sheet

shnsplit -f file.cue file.cue.wav -o "flac ext=flac flac -s -o %f -"
  • You will need the Gentoo package media-sound/shntool.

Obtaining information about tags in a media file

  • You can run ffprobe to print the list of tags in the file:
ffprobe file.mp3
  • To wipe / strip all tags in case of problems (severe bugs):
id3convert --strip file.mp3 # for MP3 files
vorbiscomment -w -t "artist=" file.ogg # for OGG files
  • These tools are in Gentoo packages media-libs/id3lib and media-sound/vorbis-tools.