Sox – musique dans un terminal
Documentation
sox.sourceforge.net/
doc.ubuntu-fr.org/sox
memo-linux.com/lire-de-la-musique-dans-un-terminal-avec-sox/
Utilisation
Flac en mp3 (bitrate 320)
sox input.flac -C 320 output.mp3
Fractionner un fichier
Début à T=20 secondes du fichier et fin à T=3 mn
sox entree.flac sortie.flac trim 00:20 =03:00
Début à T=20 secondes du fichier et durée 3 mn donc fin à T=3 mn 20 sec
sox entree.flac sortie.flac trim 00:20 03:00
trim start [length|=end]
The optional length parameter gives the length of audio to output after the start sample and is thus used to trim off the end of the audio.
Alternatively, an absolute end location can be given by preceding it with an equals sign. Using a value of 0 for the start parameter will allow trimming off the end only.
07:04.75 = 7 mn 4 sec 75 centièmes
