Pour éditer le wiki, il faut demander un compte à un Lapin !

Difference between revisions of "Musique/MusicBrainz"

From Le L∞p's Wiki
Jump to: navigation, search
m (wikify)
([Brouillon] Ajout de contenu)
Line 1: Line 1:
Apprenez à faire des rips CD de qualité (et ceci dans les formats audio libres que sont Vorbis et FLAC), puis découvrez et enrichissez MusicBrainz, la base de données musicale collaborative et librement diffusable.
+
{{Brouillon}}
  
Faites-vous plaisir, ramenez du CD !
+
Apprenez à faire vos rips CD en ligne de commande et dans les formats libres que sont Ogg Vorbis et FLAC, puis découvrez et enrichissez MusicBrainz, la base de données musicale libre et collaborative.
 +
 
 +
Mangez du CD, c'est bon pour le cholestérol.
  
 
== Description ==
 
== Description ==
 +
;<u>'''Ripping'''</u>:Processus d'extraction de données depuis une source analogique ou numérique vers un format numérique.
  
On partira d'[http://lly.org/~rcw/abcde/page/abcde.1.html abcde], programme ''frontend'' permettant l'automatisation de la procédure, pour ripper nos CD.
 
Nous aborderons ensuite [http://musicbrainz.org/ MusicBrainz] et verrons comment utiliser [http://musicbrainz.org/doc/MusicBrainz_Picard Picard], l'outil utilisé pour l'upload et l'édition des méta-tags.
 
  
 +
=== Logiciels requis ===
  
 +
{| class="wikitable" style="text-align: center" width="85%"
 +
! scope="col" style="background-color: Snow2; color: DarkSlateGrey" | Requête CDDB
 +
! scope="col" style="background-color: Snow2; color: DarkSlateGrey" | Extraction
 +
! scope="col" style="background-color: Snow2; color: DarkSlateGrey" | Encodage
 +
! scope="col" style="background-color: Snow2; color: DarkSlateGrey" | Ajout / Édition des tags
 +
! scope="col" style="background-color: Snow2; color: DarkSlateGrey" | Soumission des tags à MusicBrainz
 +
|-
 +
| [http://freecode.com/projects/cddiscid '''cd-discid''']
 +
| [http://www.xiph.org/paranoia/ '''cdparanoia''']
 +
| [http://flac.sourceforge.net/documentation_tools.html '''flac'''] <nowiki>|</nowiki> [http://www.vorbis.com/setup_linux/ '''oggenc''']
 +
| [http://flac.sourceforge.net/documentation_tools_metaflac.html '''metaflac'''] <nowiki>|</nowiki> [http://wiki.xiph.org/index.php/VorbisComment '''vorbiscomment''']
 +
| rowspan="2" | [http://musicbrainz.org/doc/MusicBrainz_Picard '''MusicBrainz Picard''']
 +
|-
 +
| colspan="4" | [http://code.google.com/p/abcde/ '''abcde''']
 +
|}
  
== Organisation ==
 
  
;Date:du 19 au 25 mars, de 18 h à 20 h
+
<big>'''Voir aussi :'''</big>
;Lieu:'''''La Hutte aux Pies'''''
+
104 bis boulevard Kellermann, 13e arr.
+
  
T°3 - arrêt Stade Charlety
+
* [https://wiki.xiph.org/Metadata Les métadonnées selon Xiph.org]
;Animation: [[User:enso|enso]] et [[User:Naar|naar]]
+
  
[[Category:Workshops]]
+
 
 +
==== Fichiers de configuration ====
 +
 
 +
Voici deux fichiers <tt>.abcde.conf</tt>, respectivement pour de l'Ogg Vorbis Q8 (~ 256 kbps) et du FLAC (~ kbps). À déposer délicatement dans votre <tt>$HOME</tt> ou votre répertoire <tt>/etc</tt>.
 +
 
 +
<u>'''Note'''</u> : Pour ceux susceptibles de ripper leurs albums dans ces deux formats, nommez le fichier de configuration du plus couramment utilisé <span style="background-color: lightgray"><tt>.abcde.conf</tt></span> et l'autre <span style="background-color: lightgray"><tt>.abcde.{vorbis,flac}.conf</tt></span>.
 +
 
 +
Invoquez-le simplement par cette commande :
 +
  <tt>user@host:~$ abcde -c .abcde.<span style="color: lightgreen; background-color: black">xxx</span>.conf</tt>
 +
 
 +
Faites-en un <tt>alias</tt> éventuellement :
 +
 
 +
  <tt>user@host:~$ alias abcde_<span style="color: lightgreen; background-color: black">xxx</span>='abcde -c .abcde.<span style="color: lightgreen; background-color: black">xxx</span>.conf'</tt>
 +
 
 +
 
 +
===== Ogg Vorbis =====
 +
 
 +
<syntaxhighlight lang="bash">
 +
 +
  # Specifies  the method to use to retrieve the track information.
 +
  # Two values are recognized: "cddb" and "musicbrainz".
 +
  CDDBMETHOD=musicbrainz
 +
 
 +
  # Specify the encoder to use for Ogg Vorbis. In this case
 +
  # vorbize is the other choice.
 +
  OGGENCODERSYNTAX=oggenc
 +
 
 +
  # Specify the path to the selected encoder. In most cases the encoder
 +
  # should be in your $PATH as I illustrate below, otherwise you will
 +
  # need to specify the full path. For example: /usr/bin/oggenc
 +
  OGGENC=oggenc
 +
 
 +
  # Specify your required encoding options here. Multiple options can
 +
  # be selected as '-q 6 --another-option'.
 +
  OGGENCOPTS='-q 8' 
 +
 
 +
  # Output type for Ogg Vorbis
 +
  OUTPUTTYPE="vorbis"
 +
 
 +
  # The cd ripping program to use. There are a few choices here: cdda2wav,
 +
  # dagrab, cddafs (Mac OS X only) and flac.
 +
  CDROMREADERSYNTAX=cdparanoia           
 +
                                     
 +
  # Give the location of the ripping program and pass any extra options:
 +
  CDPARANOIA=cdparanoia 
 +
  CDPARANOIAOPTS="--never-skip=40"
 +
 
 +
  # Give the location of the CD identification program:     
 +
  CDDISCID=cd-discid           
 +
                               
 +
  # Give the base location here for the encoded music files.
 +
  OUTPUTDIR="$HOME/musique/a_trier/vorbis/"             
 +
 
 +
  # The default actions that abcde will take.
 +
  ACTIONS=cddb,playlist,read,encode,tag,move,clean
 +
             
 +
  # Decide here how you want the tracks labelled for a standard 'single-artist',
 +
  # multi-track encode and also for a multi-track, 'various-artist' encode:
 +
  OUTPUTFORMAT='${ARTISTFILE}.${YEAR}.${ALBUMFILE}/${TRACKNUM}.${ARTISTFILE}_-_${TRACKFILE}'
 +
  VAOUTPUTFORMAT='V.A.${YEAR}.${ALBUMFILE}/${TRACKNUM}.${ARTISTFILE}_-_${TRACKFILE}'
 +
 
 +
  # Decide here how you want the tracks labelled for a standard 'single-artist',
 +
  # single-track encode and also for a single-track 'various-artist' encode.
 +
  # (Create a single-track encode with 'abcde -1' from the commandline.)
 +
  ONETRACKOUTPUTFORMAT='${OUTPUT}/${ARTISTFILE}-${ALBUMFILE}/${ALBUMFILE}'
 +
  VAONETRACKOUTPUTFORMAT='${OUTPUT}/Various-${ALBUMFILE}/${ALBUMFILE}'
 +
 
 +
  # Create playlists for single and various-artist encodes. I would suggest
 +
  # commenting these out for single-track encoding.
 +
  PLAYLISTFORMAT='${ARTISTFILE}.${YEAR}.${ALBUMFILE}/${ARTISTFILE}_-_${ALBUMFILE}.m3u'
 +
  VAPLAYLISTFORMAT='V.A.${YEAR}.${ALBUMFILE}/${ARTISTFILE}_-_${ALBUMFILE}.m3u'
 +
 
 +
  # Put spaces in the filenames instead of the more correct underscores:
 +
  # mungefilename ()
 +
  # {
 +
  #  echo "$@" | sed s,:,-,g | tr / _ | tr -d \'\"\?\[:cntrl:\]
 +
  # }
 +
 
 +
  # What extra options?
 +
  MAXPROCS=2                              # Run a few encoders simultaneously
 +
  PADTRACKS=y                            # Makes tracks 01 02 not 1 2
 +
  EXTRAVERBOSE=y                          # Useful for debugging
 +
  EJECTCD=y                              # Please eject cd when finished :-)
 +
 
 +
</syntaxhighlight>
 +
 
 +
<small>'''Source :''' http://www.andrews-corner.org/abcde.html#ogg</small> (avec quelques retouches).
 +
 
 +
 
 +
===== FLAC =====
 +
 
 +
=== Mise en œuvre ===
 +
 
 +
== Organisation ==

Revision as of 00:00, 18 December 2012

Warning construction blue.png Cette page est un brouillon en cours de rédaction.


Apprenez à faire vos rips CD en ligne de commande et dans les formats libres que sont Ogg Vorbis et FLAC, puis découvrez et enrichissez MusicBrainz, la base de données musicale libre et collaborative.

Mangez du CD, c'est bon pour le cholestérol.

Description

Ripping
Processus d'extraction de données depuis une source analogique ou numérique vers un format numérique.


Logiciels requis

Requête CDDB Extraction Encodage Ajout / Édition des tags Soumission des tags à MusicBrainz
cd-discid cdparanoia flac | oggenc metaflac | vorbiscomment MusicBrainz Picard
abcde


Voir aussi :


Fichiers de configuration

Voici deux fichiers .abcde.conf, respectivement pour de l'Ogg Vorbis Q8 (~ 256 kbps) et du FLAC (~ kbps). À déposer délicatement dans votre $HOME ou votre répertoire /etc.

Note : Pour ceux susceptibles de ripper leurs albums dans ces deux formats, nommez le fichier de configuration du plus couramment utilisé .abcde.conf et l'autre .abcde.{vorbis,flac}.conf.

Invoquez-le simplement par cette commande :

 user@host:~$ abcde -c .abcde.xxx.conf

Faites-en un alias éventuellement :

 user@host:~$ alias abcde_xxx='abcde -c .abcde.xxx.conf' 


Ogg Vorbis
 
  # Specifies  the method to use to retrieve the track information.
  # Two values are recognized: "cddb" and "musicbrainz".
  CDDBMETHOD=musicbrainz
  
  # Specify the encoder to use for Ogg Vorbis. In this case
  # vorbize is the other choice.
  OGGENCODERSYNTAX=oggenc
  
  # Specify the path to the selected encoder. In most cases the encoder
  # should be in your $PATH as I illustrate below, otherwise you will 
  # need to specify the full path. For example: /usr/bin/oggenc
  OGGENC=oggenc
  
  # Specify your required encoding options here. Multiple options can
  # be selected as '-q 6 --another-option'.
  OGGENCOPTS='-q 8'  
  
  # Output type for Ogg Vorbis
  OUTPUTTYPE="vorbis"
  
  # The cd ripping program to use. There are a few choices here: cdda2wav,
  # dagrab, cddafs (Mac OS X only) and flac.
  CDROMREADERSYNTAX=cdparanoia            
                                       
  # Give the location of the ripping program and pass any extra options:
  CDPARANOIA=cdparanoia  
  CDPARANOIAOPTS="--never-skip=40"
  
  # Give the location of the CD identification program:       
  CDDISCID=cd-discid            
                                 
  # Give the base location here for the encoded music files.
  OUTPUTDIR="$HOME/musique/a_trier/vorbis/"               
  
  # The default actions that abcde will take.
  ACTIONS=cddb,playlist,read,encode,tag,move,clean
              
  # Decide here how you want the tracks labelled for a standard 'single-artist',
  # multi-track encode and also for a multi-track, 'various-artist' encode:
  OUTPUTFORMAT='${ARTISTFILE}.${YEAR}.${ALBUMFILE}/${TRACKNUM}.${ARTISTFILE}_-_${TRACKFILE}'
  VAOUTPUTFORMAT='V.A.${YEAR}.${ALBUMFILE}/${TRACKNUM}.${ARTISTFILE}_-_${TRACKFILE}'
  
  # Decide here how you want the tracks labelled for a standard 'single-artist',
  # single-track encode and also for a single-track 'various-artist' encode.
  # (Create a single-track encode with 'abcde -1' from the commandline.)
  ONETRACKOUTPUTFORMAT='${OUTPUT}/${ARTISTFILE}-${ALBUMFILE}/${ALBUMFILE}'
  VAONETRACKOUTPUTFORMAT='${OUTPUT}/Various-${ALBUMFILE}/${ALBUMFILE}'
  
  # Create playlists for single and various-artist encodes. I would suggest
  # commenting these out for single-track encoding.
  PLAYLISTFORMAT='${ARTISTFILE}.${YEAR}.${ALBUMFILE}/${ARTISTFILE}_-_${ALBUMFILE}.m3u'
  VAPLAYLISTFORMAT='V.A.${YEAR}.${ALBUMFILE}/${ARTISTFILE}_-_${ALBUMFILE}.m3u'

  # Put spaces in the filenames instead of the more correct underscores:
  # mungefilename ()
  # {
  #   echo "$@" | sed s,:,-,g | tr / _ | tr -d \'\"\?\[:cntrl:\]
  # }
  
  # What extra options?
  MAXPROCS=2                              # Run a few encoders simultaneously
  PADTRACKS=y                             # Makes tracks 01 02 not 1 2
  EXTRAVERBOSE=y                          # Useful for debugging
  EJECTCD=y                               # Please eject cd when finished :-)

Source : http://www.andrews-corner.org/abcde.html#ogg (avec quelques retouches).


FLAC

Mise en œuvre

Organisation