6.3. Share your work

Note

To know how to build Lame, see Section 3.15.

Now that we have our song in WAV format, we will convert it in OGG and MP3 format to share it more easily.

oggenc and lame allow us to specify some extra attributs for our songs, like its title or its genre (see manpages). Usually I only specify title and genre.

To obtain a list of genres, pass the --genre-list argument to Lame. It will output the following:

Example 6-1. Music genre's list for OGG and MP3 encoding


123 A Cappella
 34 Acid
 74 Acid Jazz
 73 Acid Punk
 99 Acoustic
 20 Alternative
 40 Alt. Rock
 26 Ambient
145 Anime
 90 Avantgarde
116 Ballad
 41 Bass
135 Beat
 85 Bebob
 96 Big Band
138 Black Metal
 89 Bluegrass
  0 Blues
107 Booty Bass
132 BritPop
 65 Cabaret
 88 Celtic
104 Chamber Music
102 Chanson
 97 Chorus
136 Christian Gangsta Rap
 61 Christian Rap
141 Christian Rock
 32 Classical
  1 Classic Rock
112 Club
128 Club-House
 57 Comedy
140 Contemporary Christian
  2 Country
139 Crossover
 58 Cult
  3 Dance
125 Dance Hall
 50 Darkwave
 22 Death Metal
  4 Disco
 55 Dream
127 Drum & Bass
122 Drum Solo
120 Duet
 98 Easy Listening
 52 Electronic
 48 Ethnic
 54 Eurodance
124 Euro-House
 25 Euro-Techno
 84 Fast-Fusion
 80 Folk
115 Folklore
 81 Folk/Rock
119 Freestyle
  5 Funk
 30 Fusion
 36 Game
 59 Gangsta Rap
126 Goa
 38 Gospel
 49 Gothic
 91 Gothic Rock
  6 Grunge
129 Hardcore
 79 Hard Rock
137 Heavy Metal
  7 Hip-Hop
 35 House
100 Humour
131 Indie
 19 Industrial
 33 Instrumental
 46 Instrumental Pop
 47 Instrumental Rock
  8 Jazz
 29 Jazz+Funk
146 JPop
 63 Jungle
 86 Latin
 71 Lo-Fi
 45 Meditative
142 Merengue
  9 Metal
 77 Musical
 82 National Folk
 64 Native American
133 Negerpunk
 10 New Age
 66 New Wave
 39 Noise
 11 Oldies
103 Opera
 12 Other
 75 Polka
134 Polsk Punk
 13 Pop
 53 Pop-Folk
 62 Pop/Funk
109 Porn Groove
117 Power Ballad
 23 Pranks
108 Primus
 92 Progressive Rock
 67 Psychedelic
 93 Psychedelic Rock
 43 Punk
121 Punk Rock
 15 Rap
 68 Rave
 14 R&B
 16 Reggae
 76 Retro
 87 Revival
118 Rhythmic Soul
 17 Rock
 78 Rock & Roll
143 Salsa
114 Samba
110 Satire
 69 Showtunes
 21 Ska
111 Slow Jam
 95 Slow Rock
105 Sonata
 42 Soul
 37 Sound Clip
 24 Soundtrack
 56 Southern Rock
 44 Space
101 Speech
 83 Swing
 94 Symphonic Rock
106 Symphony
147 Synthpop
113 Tango
 18 Techno
 51 Techno-Industrial
130 Terror
144 Thrash Metal
 60 Top 40
 70 Trailer
 31 Trance
 72 Tribal
 27 Trip-Hop
 28 Vocal
      

A basic OGG encoding could be done with:


$ oggenc -a"Emmanuel Saracco" -t"Blackbird" -G"Fusion" -d2005-08-23 blackbird.wav
      

Where -a is for author name, -t for title, -G for genre, and -d for entire date.

A basic MP3 encoding could be done with:


$ lame -s 48 --ta "Emmanuel Saracco" --tt "Blackbird" --tg"Fusion" --ty "2005" blackbird.wav blackbird.mp3
      

Where --ta is for author name, --tt for title, --tg for genre, and --ty for year.

Note

If you need to convert a old MP3 file to OGG, you can use ecasound like the following:


$ ecasound -i blackbird.mp3 -o blackbird.ogg