Thursday, January 22, 2009

Social Networking @Jobber.MY

The social networking development engine is quite near to finish. It is one man job and I'm using Alan Bradburne's Practical Rails Social Networking Sites as guidance.

Well the book is good if you have basic Ruby knowledge. But I want to add Video engine. User can upload video in various format and rendered in FLV format.

I'm using Centos 5.1 VPS, and I need to install FFMPEG,

1. I use this guide to install FFMPEG ( turn off gpgcheck = 0 )
http://www.tuxmachines.org/node/17063

2. Then I ran yum install ffmpeg and yum install ffmpeg-devel

3. Run ffmpeg -v to check the version
[root@vmap1 social_networking]# ffmpeg -v
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --prefix=/usr --libdir=/usr/lib --mandir=/usr/share/man --incdir=/usr/include/ffmpeg --enable-libmp3lame --enable-libogg --enable-libvorbis --enable-libogg --enable-libtheora --enable-libfaad --enable-libfaac --enable-libgsm --enable-xvid --enable-x264 --enable-liba52 --enable-liba52bin --enable-pp --enable-shared --enable-pthreads --enable-gpl --disable-strip
libavutil version: 49.4.0
libavcodec version: 51.40.4
libavformat version: 51.12.1
built on Jun 4 2007 11:02:12, gcc: 4.1.1 20070105 (Red Hat 4.1.1-52)
ffmpeg: missing argument for option '-v'


4. Cool. Now to install Background Worker for video conversion in Ruby On Rails
http://backgroundrb.rubyforge.org/

5. More reading @
http://kpumuk.info/ruby-on-rails/encoding-media-files-in-ruby-using-ffmpeg-mencoder-with-progress-tracking/

http://jimneath.org/2008/06/03/converting-videos-with-rails-converting-the-video/

No comments:

Post a Comment