UJP - 技術情報2 : HomeBrewでffmpegをインストール HomeBrew/ffmpeg

Life is fun and easy!

不正IP報告数

Okan Sensor
 
メイン
ログイン
ブログ カテゴリ一覧

Page Top

はじめに anchor.png

 MacOS X 10.11.5 El Capitanを搭載するMacBook Airに,ffmpegをインストールする.imagemagickとffmpegを使って連続写真を動画にするのが目的.  ffmpegをインストールする際に依存関係のあるx264, lame, xvidも一緒にインストールされる.x264は動画をH.264 (MPEG-4 AVC) ビデオストリームへエンコードするためのプログラム.lame(レイム)は,MP3への変換に用いられるフリーライブラリ.xvidはフリーのビデオコーデック.

Page Top

brew search ffmpeg anchor.png

MBA13:~ ujpadmin$ brew search ffmpeg
ffmpeg                  ffmpeg2theora             ffmpegthumbnailer
homebrew/versions/ffmpeg28                        homebrew/versions/gst-ffmpeg010
MBA13:~ ujpadmin$
Page Top

brew install ffmpeg anchor.png

MBA13:~ ujpadmin$ brew install ffmpeg
==> Installing dependencies for ffmpeg: x264, lame, xvid
==> Installing ffmpeg dependency: x264
==> Downloading https://homebrew.bintray.com/bottles/x264-r2668.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring x264-r2668.el_capitan.bottle.tar.gz
🍺  /usr/local/Cellar/x264/r2668: 10 files, 3.3M
==> Installing ffmpeg dependency: lame
==> Downloading https://homebrew.bintray.com/bottles/lame-3.99.5.el_capitan.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring lame-3.99.5.el_capitan.bottle.1.tar.gz
🍺  /usr/local/Cellar/lame/3.99.5: 26 files, 2M
==> Installing ffmpeg dependency: xvid
==> Downloading https://homebrew.bintray.com/bottles/xvid-1.3.4.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring xvid-1.3.4.el_capitan.bottle.tar.gz
🍺  /usr/local/Cellar/xvid/1.3.4: 9 files, 1.3M
==> Installing ffmpeg
==> Downloading https://homebrew.bintray.com/bottles/ffmpeg-3.0.2.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring ffmpeg-3.0.2.el_capitan.bottle.tar.gz
==> Caveats
The native FFmpeg AAC encoder has been stable since FFmpeg 3.0. If you
were using libvo-aacenc or libaacplus, both of which have been dropped in
FFmpeg 3.0, please consider switching to the native encoder (-c:a aac),
fdk-aac (-c:a libfdk_aac, ffmpeg needs to be installed with the
--with-fdk-aac option), or faac (-c:a libfaac, ffmpeg needs to be
installed with the --with-faac option).
See the announcement
https://ffmpeg.org/index.html#removing_external_aac_encoders for details,
and https://trac.ffmpeg.org/wiki/Encode/AAC on best practices of encoding
AAC with FFmpeg.
==> Summary
🍺  /usr/local/Cellar/ffmpeg/3.0.2: 230 files, 47M
MBA13:~ ujpadmin$
Page Top

anchor.png

MBA13:~ ujpadmin$ brew info ffmpeg
ffmpeg: stable 3.0.2 (bottled), HEAD
Play, record, convert, and stream audio and video
https://ffmpeg.org/
/usr/local/Cellar/ffmpeg/3.0.2 (230 files, 47M) *
  Poured from bottle on 2016-07-09 at 16:34:51
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/ffmpeg.rb
==> Dependencies
Build: pkg-config ✔, texi2html ✘, yasm ✘
Recommended: x264 ✔, lame ✔, xvid ✔
Optional: faac ✘, fontconfig ✘, freetype ✔, theora ✘, libvorbis ✘, libvpx ✘,
rtmpdump ✘, opencore-amr ✘, libass ✘, openjpeg ✘, snappy ✘, speex ✘,
schroedinger ✘, fdk-aac ✘, opus ✘, frei0r ✘, libcaca ✘, libbluray ✘,
libsoxr ✘, libvidstab ✘, x265 ✘, openssl ✔, libssh ✘, webp ✘, zeromq ✘,
libbs2b ✘, dcadec ✘, rubberband ✘, zimg ✘, openh264 ✘, xz ✔
==> Options
--with-dcadec
	Enable dcadec library
--with-faac
	Build with faac support
--with-fdk-aac
	Enable the Fraunhofer FDK AAC library
--with-ffplay
	Enable FFplay media player
--with-fontconfig
	Build with fontconfig support
--with-freetype
	Build with freetype support
--with-frei0r
	Build with frei0r support
--with-libass
	Enable ASS/SSA subtitle format
--with-libbluray
	Build with libbluray support
--with-libbs2b
	Build with libbs2b support
--with-libcaca
	Build with libcaca support
--with-libsoxr
	Enable the soxr resample library
--with-libssh
	Enable SFTP protocol via libssh
--with-libvidstab
	Enable vid.stab support for video stabilization
--with-libvorbis
	Build with libvorbis support
--with-libvpx
	Build with libvpx support
--with-opencore-amr
	Enable Opencore AMR NR/WB audio format
--with-openh264
	Enable OpenH264 library
--with-openjpeg
	Enable JPEG 2000 image format
--with-openssl
	Enable SSL support
--with-opus
	Build with opus support
--with-rtmpdump
	Enable RTMP protocol
--with-rubberband
	Enable rubberband library
--with-schroedinger
	Enable Dirac video format
--with-snappy
	Enable Snappy library
--with-speex
	Build with speex support
--with-theora
	Build with theora support
--with-tools
	Enable additional FFmpeg tools
--with-webp
	Enable using libwebp to encode WEBP images
--with-x265
	Enable x265 encoder
--with-xz
	Enable decoding of LZMA-compressed TIFF files
--with-zeromq
	Enable using libzeromq to receive commands sent through a libzeromq client
--with-zimg
	Enable z.lib zimg library
--without-lame
	Disable MP3 encoder
--without-qtkit
	Disable deprecated QuickTime framework
--without-x264
	Disable H.264 encoder
--without-xvid
	Disable Xvid MPEG-4 video encoder
--HEAD
	Install HEAD version
==> Caveats
The native FFmpeg AAC encoder has been stable since FFmpeg 3.0. If you
were using libvo-aacenc or libaacplus, both of which have been dropped in
FFmpeg 3.0, please consider switching to the native encoder (-c:a aac),
fdk-aac (-c:a libfdk_aac, ffmpeg needs to be installed with the
--with-fdk-aac option), or faac (-c:a libfaac, ffmpeg needs to be
installed with the --with-faac option).
See the announcement
https://ffmpeg.org/index.html#removing_external_aac_encoders for details,
and https://trac.ffmpeg.org/wiki/Encode/AAC on best practices of encoding
AAC with FFmpeg.
MBA13:~ ujpadmin$

 依存関係の無いオプションのライブラリもいくつかある.

Page Top

オプションライブラリの説明 anchor.png

 ffmpegに関係するオプションライブラリについて調べてみた.

faac AAC(Advanced Audio Coding)エンコーダ.
fontconfig フォントの設定.動画に文字を入れる時に利用か.
freetype フォントエンジン.TrueTypeとかのType.
theora セオラ,シオラ.非可逆の動画圧縮コーデック.
libvorbis オーディオコーデック.WebMでも使われている.
libvpx VP8コーデックライブラリー.ビデオコーデック.WebMで使われている.
rtmpdump RTMPストリーミングデータをダンプする.ニコ動の録画とか.
opencore-amr 音声コーデックのOpenCOREフレームワーク実装のライブラリ.
libass 字幕レンダリングエンジン.
openjpeg オープンソースJPEG 2000ライブラリ.
snappy 圧縮アルゴリズムライブラリ.
speex VpIPやポッドキャストで使われる音声圧縮コーデック.
schroedinger Dirac(ダイラック)ビデオコーデック.
fdk-aac AACエンコーダ.最高品質らしい.
opus 音声圧縮フォーマト
frei0r 顔認識ライブラリ.
libcaca 画像をASCIIアートに変換するライブラリ.
libbluray ブルーレイ用ライブラリ.
libsoxr The SoX Resampler library.オーディオ系.
libvidstab 動画の手ぶれ補正ライブラリ.
x265 HEVCエンコーダ.ビデオコーデック.
openssl SSL
libssh SSH
webp Googleが開発している静止画フォーマット.
zeromq ZeroMQ.プロセス間通信するソケットライブラリ.
libbs2b DSP(Digital Signal Processer)のライブラリ?
dcadec DTSアコースティックデコーダ.
rubberband オーディオのストレッチやピッチシフトを行う.
zimg png/jpeg画像から2DのASCIIデータをレンダリングする.
openh264 OpenH264,H.264/MPEG-4 AVCのリアルタイムストリーミングライブラリ.
xz 圧縮ライブラリ.圧縮は遅いが高速伸長が可能.

 興味深いものもある.


トップ   差分 バックアップ 複製 名前変更 リロード   ページ新規作成 全ページ一覧 単語検索 最新ページの一覧   ヘルプ   最新ページのRSS 1.0 最新ページのRSS 2.0 最新ページのRSS Atom
Counter: 1913, today: 2, yesterday: 0
最終更新: 2016-07-09 (土) 18:00:47 (JST) (2810d) by shinnai(shinnai)

広告スペース
Google