command-line:ffmpeg
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
command-line:ffmpeg [le 24/07/2012 à 08:43] – créée Yosko | command-line:ffmpeg [le 26/06/2022 à 07:34] (Version actuelle) – Yosko | ||
---|---|---|---|
Ligne 3: | Ligne 3: | ||
[[http:// | [[http:// | ||
- | ====== Conversion ====== | + | ===== Syntax |
- | FFmpeg | + | FFmpeg |
+ | <code bash> | ||
+ | ffmpeg [global options] [input file options] -i input-file-name [output options] output-file-name | ||
+ | |||
+ | * __global options :__ options à appliquer aux fichiers en entrée (vidéo/ | ||
+ | * __input file options :__ options à appliquer aux fichiers en entrée (vidéo/ | ||
+ | * __-i input-file-name :__ le(s) fichier(s) en entrée | ||
+ | * __output options :__ actions à appliquer au média | ||
+ | * __output-file-name :__ fichier en sortie avec le rendu final | ||
+ | </ | ||
+ | |||
+ | ===== Analyser un fichier ===== | ||
+ | |||
+ | Pour connaître les détails d' | ||
+ | |||
+ | <code bash> | ||
+ | ffmpeg -i music.mp3 | ||
+ | ffmpeg -i video.mp4 | ||
+ | </ | ||
+ | |||
+ | ===== Conversion ===== | ||
+ | |||
+ | Pour convertir une vidéo d'un format à un autre (résultat de qualité plutôt médiocre) : | ||
+ | |||
+ | <code bash> | ||
ffmpeg -i MaVideoSource.flv MaVideoDestination.mpeg | ffmpeg -i MaVideoSource.flv MaVideoDestination.mpeg | ||
+ | </ | ||
Même conversion au format DVD (qualité plus grande signifiant taille de fichier plus grande) : | Même conversion au format DVD (qualité plus grande signifiant taille de fichier plus grande) : | ||
+ | <code bash> | ||
ffmpeg -i MaVideoSource.flv -target pal-dvd -sameq MaVideoDestination.mpg | ffmpeg -i MaVideoSource.flv -target pal-dvd -sameq MaVideoDestination.mpg | ||
+ | </ | ||
{{tag> | {{tag> | ||
+ | |||
+ | ==== Webm ==== | ||
+ | |||
+ | Webm est le format vidéo HTML5 supporté et conseillé pour Chrome et Firefox. | ||
+ | |||
+ | Le contrôle de la qualité se fait via l' | ||
+ | |||
+ | <code bash> | ||
+ | ffmpeg -i input.mp4 | ||
+ | -c:v libvpx | ||
+ | -qmin 0 | ||
+ | -qmax 50 | ||
+ | -crf 5 | ||
+ | -b:v 1M | ||
+ | -c:a libvorbis | ||
+ | output.webm | ||
+ | </ | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | Il est conseillé d' | ||
+ | |||
+ | ===== Rotation ===== | ||
+ | |||
+ | <code bash> | ||
+ | ffmpeg -i input.mp4 -vf " | ||
+ | </ |
command-line/ffmpeg.1343119385.txt.gz · Dernière modification : le 24/07/2012 à 08:43 de Yosko