Informations :
Dates
- Publish : : Friday 18 january 2013
- Modification : Friday 18 january 2013
- 594 views
Share :
Utiliser FFMPEG
On fait un script SH : vim m4a2mp3.sh
Script avec 20 lignes
001#!/bin/sh002# name of this script: m4a2mp3.sh003# m4a (aacp) to mp3004 005DIR=$1;006echo "On scanne $DIR"007echo ""008 009for i in $DIR/*.m4a;010do011echo "Encodage de $i"012ffmpeg -i "$i" -ab 320000 -ac 2 "${i%.m4a}.mp3"013echo "ok...."014 015#faad "$i"016#x=`echo "$i"|sed -e 's/.m4a/.wav/'`017#y=`echo "$i"|sed -e 's/.m4a/.mp3/'`018#lame -h -b 192 "$x" "$y"019#rm "$x"020done
La commande :sh ./m4a2mp3.sh /le/repertoire/a/scanner/contenant/les/fichiers/aac/
Liens connexes :
- How'to > GNU/Linux > Multimédia > Convertion fichier WMA vers OGG
- How'to > GNU/Linux > Multimédia > Convertion fichier MP4 vers MP3
Liens qui peuvent vous intéresser :
- How'to > GNU/Linux > SHells > Les expressions régulières (Regex/Regular)
- How'to > GNU/Linux > SHells > Utiliser FIND pour retrouver un fichier
- How'to > GNU/Linux > SHells > Utiliser GREP pour retrouver une chaine de caractères
- How'to > GNU/Linux > SHells > Utiliser XARGS pour retrouver une chaine dans n fichier(s)

