public
Description: Capistrano recipe for Panda and MySql
Homepage: http://redwriteshere.com
Clone URL: git://github.com/reddavis/panda_cap.git
panda_cap / ffmpeg.rb
100644 30 lines (26 sloc) 1.402 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
namespace :panda do
  
  # TODO break out into smaller sections
  desc "Install FFMPEG"
  task :install_ffmpeg do
    ["rm lame-398.tar.gz",
     "rm -rf lame-398",
     "wget http://downloads.sourceforge.net/lame/lame-398.tar.gz?modtime=1215212728&big_mirror=0",
     "sudo tar -xf lame-398.tar.gz",
     "cd lame-398 && ./configure && make && sudo make install",
     "sudo aptitude install build-essential git-core zlib1g-dev checkinstall libgpac-dev libfaad-dev libfaac-dev liblame-dev libtheora-dev libvorbis-dev gpac subversion -y",
     
     # Make video encoding faster
     "rm yasm-0.7.1.tar.gz",
     "rm -rf yasm-0.7.1",
     "wget http://www.tortall.net/projects/yasm/releases/yasm-0.7.1.tar.gz",
     "tar xzvf yasm-0.7.1.tar.gz",
     "cd yasm-0.7.1 && ./configure && make && sudo make install",
     
     "sudo rm -rf x264",
     "git clone git://git.videolan.org/x264.git",
     "cd x264 && ./configure --enable-pthread --enable-mp4-output --enable-shared && sudo make && sudo make install",
     "sudo ldconfig",
     "sudo rm -rf ffmpeg",
     "sudo svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg",
     "cd ffmpeg && ./configure --enable-gpl --enable-postproc --enable-libvorbis --enable-libtheora --disable-debug --enable-libmp3lame --enable-libfaad --enable-libfaac --enable-pthreads --enable-libx264 && make && sudo make install"
   ].each {|cmd| run cmd}
  end
  
end