root@www:~# sudo add-apt-repository ppa:mc3man/trusty-media
root@www:~# sudo apt-get update
root@www:~# sudo apt-get install ffmpeg gstreamer0.10-ffmpeg
root@www:~# which ffmpeg
/usr/bin/ffmpeg
root@www:~#

Now we will Install FLVTool2

root@www:~# sudo nano /etc/apt/sources.list
deb http://us.archive.ubuntu.com/ubuntu precise main universe ## add this line at the end
save & exit
root@www:~# apt-get update
root@www:~# sudo apt-get install flvtool2 ruby1.8
root@www:~# which flvtool2 
/usr/bin/flvtool2
root@www:~#

Now will install MP4Box

root@www:~# sudo apt-get install gpac
root@www:~# which MP4Box
/usr/bin/MP4Box
root@www:~#

Recommended For You.

Red Hat Enterprise Linux 7 / CentOS 7 rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum update Red Hat Enterprise Linux 6 / CentOS 6 rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm yum