File format conversions: Difference between revisions

From Elvanör's Technical Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
= 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 =
= Conversion of an APE or FLAC file to a list of OGG / MP3 files =


Line 16: Line 20:


  shnsplit -f file.cue file.cue.wav -o "flac ext=flac flac -s -o %f -"
  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 =
= Obtaining information about tags in a media file =

Latest revision as of 15:18, 1 December 2018

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.