terça-feira, 21 de maio de 2013

Mac OS X: como instalar o FFmpeg

... via Homebrew com as principais opções activadas:

~$ brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-frei0r --with-libass --with-libvo-aacenc --with-libvorbis --with-libvpx --with-opencore-amr --with-openjpeg --with-opus --with-rtmpdump --with-schroedinger --with-speex --with-theora --with-tools

Alguns exemplos:
Converter .wav para .mp3:
~$ ffmpeg -i ficheiro.wav -f mp3 ficheiro.mp3

Converter .avi para dvd (com legendas):
~$ ffmpeg -i ficheiro.avi -vf subtitles=legendas.srt -target pal-dvd -aspect 16:9 ficheiro.mpeg

Mais info:
- FFmpeg Documentation
- FFmpeg Wiki
...
- 19 ffmpeg commands for all needs