VPS video encoding speed comparison

I was looking at VPS providers for batch video encoding runs. These numbers are in no way a comprehensive test, I was just surprised by some of them so I thought I’d share.

My source file is a 04:17 1080p mp4 and I ran it through HandbrakeCLI to create an optimised 720p version – I used the exact same commands on all the servers I span up. This is how long it took to encode:

$80 6 cores 2:21
$160 8 cores 1:53
$120 8 dedicated cores 2:53 (slower than 6 non-dedicated cores which is half the price)

$160 8 cores 2:35
$160 8 optimised cores 1:30

$160 8 cores 1:47

I was looking to compare the $160/8 core price point, the Linode $80 test is only included to show that it is faster that the 8 dedicated cores option.

CentOs: Install ffmpeg & ffmpeg-php 0.6

The ffmpeg installed by yum cannot be used with ffmpeg-php, so we need to download and compile it:

cd ~admin/software
wget http://www.ffmpeg.org/releases/ffmpeg-0.6.tar.gz
tar zxfv ffmpeg-0.6.tar.gz
cd ffmpeg-0.6
./configure --enable-shared
make install

Now we need to download and configure ffmpeg-php:

cd ~admin/software
wget http://downloads.sourceforge.net/project/ffmpeg-php/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2?use_mirror=puzzle&ts=1278667907
tar -xjf ffmpeg-php-0.6.0.tbz2
cd ffmpeg-php-0.6.0

There’s an error in this version (0.6) we need to correct or it won’t compile, so run:

vi ffmpeg_frame.c

We need to substitute PIX_FMT_RGBA32 for PIX_FMT_RGB32, so enter this command :%s/PIX_FMT_RGBA32/PIX_FMT_RGB32 and hit return. Now compile and install:

make install
echo "extension=ffmpeg.so" > /etc/php.d/ffmpeg.ini
service httpd restart