ストリーミングダウンロードスクリプト

[twitter:@riocampos]さんにトラックバックをいただいた(http://d.hatena.ne.jp/riocampos+tech/20130726/p1)ので自分が使用しているスクリプトをさらします。*1

動作環境

  • Mountain Lion, ffmpeg(homebrew), ruby-1.9.3(rvm) です。

ffmpeg は homebrew でインストールしています。

$ brew info ffmpeg
ffmpeg: stable 1.2.1, HEAD
http://ffmpeg.org/
/usr/local/Cellar/ffmpeg/1.2.1 (149 files, 26M) *
  Built from source with: --with-rtmpdump, --with-openssl, --with-ffplay
From: https://github.com/mxcl/homebrew/commits/master/Library/Formula/ffmpeg.rb
$ ffmpeg -version
ffmpeg version 1.2.1
built on Jul 20 2013 13:52:04 with Apple LLVM version 4.2 (clang-425.0.27) (based on LLVM 3.2svn)
configuration: --prefix=/usr/local/Cellar/ffmpeg/1.2.1 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=cc --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-librtmp --enable-ffplay --enable-openssl
libavutil      52. 18.100 / 52. 18.100
libavcodec     54. 92.100 / 54. 92.100
libavformat    54. 63.104 / 54. 63.104
libavdevice    54.  3.103 / 54.  3.103
libavfilter     3. 42.103 /  3. 42.103
libswscale      2.  2.100 /  2.  2.100
libswresample   0. 17.102 /  0. 17.102
libpostproc    52.  2.100 / 52.  2.100

スクリプト


すごい久しぶりのダイアリーではてな記法がぜんぜん思い出せません。

*1:[twitter:@riocampos]さんが最新版(V2.0)を公開されています。http://d.hatena.ne.jp/riocampos+tech/20130729/p1