Informations :
Dates
- Publish : : Tuesday 29 april 2014
- Modification : Tuesday 29 april 2014
- 893 views
Share :
Utiliser FFMPEG
On fait un script SH : vim mp4-mp3.sh
Script avec 12 lignes
001#!/bin/sh002# name of this script: mp4-mp3.sh003# m4p to mp3004DIR=$1;005echo "On scanne $DIR"006echo ""007for i in $DIR/*.mp4;008do009echo "Encodage de $i"010ffmpeg -i "$i" -f mp3 -ab 320000 -vn "${i%.mp4}.mp3"011echo "ok...."012done
La commande : sh ./mp4-mp3.sh /le/repertoire/a/scanner/contenant/les/fichiers/mp4/
Liens connexes :
- How'to > GNU/Linux > Multimédia > Convertion fichier WMA vers OGG
- How'to > GNU/Linux > Multimédia > Convertion fichier AAC 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)

