HowTo: Install ffmpeg, ffmpeg-php and codecs automagically (Centos 5.2) > 서버관리 Tip

본문 바로가기
 

HowTo: Install ffmpeg, ffmpeg-php and codecs automagically (Centos 5.2…

페이지 정보

작성자 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 댓글 0건 조회 41,050회 작성일 13-05-31 21:32

본문

 

HowTo: Install ffmpeg, ffmpeg-php and codecs automagically (Centos 5.2)

check-small.pngcheck-small.png check-small.png check-small.png check-small.png
A client recently requested ffmpeg to be installed on the server. I have done this in the past on a client's box but he had a different OS setup. For that installation I used a HowTo guide from VexxHost.
For the Lafayette Web server, we are running Centos 5.2, I did some scouting and found what seemed to be a good ffmpeg tutorial but in the end I couldn't get "make" and "make install" to take.
Everyone loves automagic installations! After the first failure I bumped into a forum that let's you download a tarball and install ffmpeg without any hitches and within 20 minutes. This attempt did work!

Pros and Cons of Auto Installer

Con: The downside to the ffmpeg auto install script, you end up downloading and installing many ffmpeg related libraries you might not need.
Pros: No errors and installtions works as expected (at least for my setup).
There are a few things you should know before you get started:
  • Must be a Linux/Unix/POSIX server
  • Must need root shell(bash) access
  • Must need 200 MB of free space in your server
  • The author of this gpl ffmpeg auto install script will know your server ip (see below how to remove this) upon installation.
  • Check if yum is installed or not in the server. If there is no yum, please make sure automake,autoconf and libtools are installed. It is reccommend to configure the distribution specific yum.

Privacy

The one thing I don't like about this script is that it auto emails your server ip to the script owner. You can change this if you want. See instructions below. You also are downloading most of the needed resources from the author (trulymanaged.com) as well, so they will know you (server ip) are using their resources. I would feel much better if the resources were being downloaded from sourceforge or some other trusted name in the Open Source community.
If this doesn't concern you, then no worries. I checked over each x.sh file and didn't see anything else that would cause a security concern.

Setup Installation

First, open up SSH (I like using putty) and login as "root". Once there, run the below commands:

mkdir ~/ffmpeg-packages
cd ~/ffmpeg-packages
wget http://trulymanaged.com/ffmpeg/ffmpeginstaller.tar.gz
tar -xvzf ffmpeginstall.tar.gz
cd ffmpeginstall
If you don't want the author to be emailed upon a successful installation, comment out line 47 of install.sh Here is how...
At the command prompt

# nano install.sh
Now comment out line 47
From

echo `hostname -i `|mail -s " FFmpeg installed $_version " vps @ esds.com
To

# echo `hostname -i `|mail -s " FFmpeg installed $_version " vps @ esds.com
Now let's begin the installation process

./install.sh
Once the installation starts you will see the verbose messages, letting you know the status of the installation.

End Result

You can end up serving videos youtube style. This video was transcoded yesterday with FFmpeg + Drupal + Open Package Video

댓글목록

등록된 댓글이 없습니다.

Total 159건 1 페이지
서버관리 Tip 목록
번호 제목 글쓴이 조회 날짜
159 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 49057 09-13
열람중 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 41051 05-31
157 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 22337 03-28
156 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 21104 04-15
155 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 21029 02-11
154 no_profile 차동박 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 20884 11-28
153 no_profile 차동박 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 20114 11-24
152 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 19866 05-19
151 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 19633 08-05
150 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 19221 08-18
149 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 18379 06-05
148 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 18354 08-20
147 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 18251 09-10
146 no_profile 차동박 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 18113 12-07
145 no_profile 차동박 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 18036 07-14
144 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 18013 02-26
143 no_profile 차동박 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 17819 04-18
142 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 17719 02-15
게시물 검색