FFmpeg on AMI Linux and CentOS the easy way

FFmpeg on AMI Linux and CentOS the easy way

FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video.

All you need to do is just install one more repository:
http://rpmfusion.org/Configuration

wget http://download1.rpmfusion.org/free/el/updates/6/i386/rpmfusion-free-release-6-1.noarch.rpm
sudo rpm -Uhv rpmfusion-free-release-6-1.noarch.rpm
wget http://download1.rpmfusion.org/nonfree/el/updates/6/i386/rpmfusion-nonfree-release-6-1.noarch.rpm
sudo rpm -Uhv rpmfusion-nonfree-release-6-1.noarch.rpm
sudo yum install ffmpeg

Done.
ffmpeg version 0.10.15 Copyright (c) 2000-2014 the FFmpeg developers built on Aug 30 2014 15:49:19 with gcc 4.4.7 20120313 (Red Hat 4.4.7-3)

Obviously there is no fun with FFmpeg if you don’t have anything to convert. I needed to crop vertical videos from iPad to square – Vine like format.

unrar on AMU Linux / CentOS boxes

unrar on AMU Linux / CentOS boxes

From time to time you have to decompress .rar archives on your Linux. It’s pretty easy. Just download proper RPM package from repoforge repository . In my case it was

wget http://pkgs.repoforge.org/unrar/unrar-5.0.3-1.el6.rf.x86_64.rpm
sudo rpm -Uvh unrar-5.0.3-1.el6.rf.x86_64.rpm 

Done. To extract archive just use

unrar x yourfile.rar

PHP 5.4.x on CentOS 6.5

PHP 5.4.x on CentOS 6.5

Quick copy and paste list of commands to get PHP 5.4 on CentOS boxes

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm

Enable remi repo

sudo nano /etc/yum.repos.d/remi.repo

Update

sudo yum update
sudo yum info php
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: mirror.optus.net
 * epel: fedora.mirror.serversaustralia.com.au
 * extras: ftp.swin.edu.au
 * remi: remi.kazukioishi.net
 * updates: ftp.swin.edu.au
Available Packages
Name        : php
Arch        : x86_64
Version     : 5.4.33
Release     : 2.el6.remi
Size        : 2.7 M
Repo        : remi

done…

HHVM on Amazon EC2 in 2 minutes

HHVM on Amazon EC2 in 2 minutes

Probably you already heard about  HHVM . As on their website:

HHVM is an open-source virtual machine designed for executing programs written in Hack  and PHP . HHVM uses a just-in-time (JIT) compilation approach to achieve superior performance while maintaining the development flexibility that PHP provides.

Using simple terms – HHVM allows you run scripts written in PHP but much, much more faster. Obviously you the main purpose of HHVM is to run HACK language, but it works pretty good with PHP itself.