#1 Le 13/09/2006, à 14:39
- Markand
[Résolu] Transformer un m4a/mp4/aac en flac ou ogg
Bonjour
Tout est dans le titre, j'ai de la musique en .m4a et je voudrais l'encoder en ogg ou flac comment faire ? Bon j'ai essayé avec sound converter mais ça ne fonctionne pas .
Et l'encodeur ogg lui ne veut rien savoir
Dernière modification par Mandrake (Le 13/09/2006, à 17:12)
(EN) Library = (FR) Bibliothèque
Jabber: markand@jabber.fr
Hors ligne
#2 Le 13/09/2006, à 14:49
- benjou
Re : [Résolu] Transformer un m4a/mp4/aac en flac ou ogg
installe faad
puis utilise ce script pour convertir tous les m4a d'un repertoire en ogg
#!/bin/bash
#
# m4a to ogg
for i in *.m4a; do
faad "$i"
x=`echo "$i"|sed -e 's/.m4a/.wav/'`
y=`echo "$i"|sed -e 's/.m4a/.ogg/'`
faad -i "$i" 2>.trackinfo.txt
title=`grep 'title: ' .trackinfo.txt|sed -e 's/title: //'`
artist=`grep 'artist: ' .trackinfo.txt|sed -e 's/artist: //'`
album=`grep 'album: ' .trackinfo.txt|sed -e 's/album: //'`
genre=`grep 'genre: ' .trackinfo.txt|sed -e 's/genre: //'`
track=`grep 'track: ' .trackinfo.txt|sed -e 's/track: //'`
year=`grep 'year: ' .trackinfo.txt|sed -e 's/year: //'`
oggenc -q 4 -t "$title" -a "$artist" -l "$album" -G "$genre" -N "$track" -d "$year" -o "$y" "$x"
rm .trackinfo.txt
rm "$x"
done
écrasons l'infâme
Hors ligne
#3 Le 13/09/2006, à 17:12
- Markand
Re : [Résolu] Transformer un m4a/mp4/aac en flac ou ogg
En fait j'ai installé la total gstreamer et ça a fonctionné avec soundconverter, je garde le script au cas où. Merci
(EN) Library = (FR) Bibliothèque
Jabber: markand@jabber.fr
Hors ligne