Results 1 to 1 of 1
-
9th Dec 2011, 03:41 PM #1OPMember
How to: Compile FFMPEG, FlvTool2 ... etc on Ubuntu and Debian
Hello friends:
I am going to show you how you can compiled ffmpeg, flvtool2, mencoder and mplayer with all required codec on your Debian or Ubuntu dist.
After this your server will be fully supported for all kind of conversations including HTML5 formats support.
First let us be sure that server is clean from this applications:
Code:apt-get remove ffmpeg x264 mencoder mplayer flvtool2 apt-get autoremove
Code:cd /usr/src
Code:apt-get install nano
Code:nano /etc/apt/sources.list
Code:deb http://archive.ubuntu.com/ubuntu natty main restricted universe multiverse
Let us start the dirty work:
1. Installing some required packages:
Code:apt-get update apt-get upgrade apt-get install make automake g++ bzip2 python unzip patch subversion ruby build-essential git-core checkinstall yasm texi2html libfaac-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libsdl1.2-dev libtheora-dev libvdpau-dev libvorbis-dev libvpx-dev libx11-dev libxfixes-dev libxvidcore-dev zlib1g-dev
Code:git clone git://git.videolan.org/x264.git cd x264 ./configure --enable-shared make && make install cd ..
Code:wget http://webm.googlecode.com/files/libvpx-v0.9.7-p1.tar.bz2 tar xvjf ibvpx-v0.9.7-p1.tar.bz2 cd libvpx-v0.9.7-p1 ./configure make make install cd ..
Code:nano /etc/ld.so.conf
Code:/usr/lib /usr/local/lib
Code:ldconfig
Code:git clone git://git.videolan.org/ffmpeg.git cd ffmpeg ./configure --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab make make install cd ..
Code:ldconfig
Code:nano /etc/apt/sources.list
Code:deb http://ftp-stud.hs-esslingen.de/pub/Mirrors/debian-multimedia/ stable main deb-src http://ftp-stud.hs-esslingen.de/pub/Mirrors/debian-multimedia/ stable main
Code:deb http://ftp-stud.hs-esslingen.de/pub/Mirrors/debian-multimedia/ etch main deb-src http://ftp-stud.hs-esslingen.de/pub/Mirrors/debian-multimedia/ etch main
Code:deb http://ftp-stud.hs-esslingen.de/pub/Mirrors/debian-multimedia/ lenny main deb-src http://ftp-stud.hs-esslingen.de/pub/Mirrors/debian-multimedia/ lenny main
Code:apt-get update
Code:apt-get install joe make automake g++ bzip2 python unzip patch subversion ruby
Code:apt-get install libsdl1.2-dev zlib1g-dev libfaad-dev libfaac-dev libgsm1-dev libtheora-dev libvorbis-dev libxvidcore4-dev libspeex-dev
NOTE: on 32 bit systems install the codecs as follows:
Code:wget http://www2.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2 tar xvjf essential-20071007.tar.bz2 mkdir /usr/local/lib/codecs cp -Rvp essential-20071007/* /usr/local/lib/codecs/
Code:wget http://www2.mplayerhq.hu/MPlayer/releases/codecs/essential-amd64-20071007.tar.bz2 tar xvjf essential-amd64-20071007.tar.bz2 mkdir /usr/local/lib/codecs cp -Rvp essential-amd64-20071007/* /usr/local/lib/codecs/
Code:apt-get install libjpeg62 libjpeg62-dev
Code:wget http://ovh.dl.sourceforge.net/sourceforge/lame/lame-398-2.tar.gz tar xvzf lame-398-2.tar.gz cd lame-398-2 ./configure make && make install ldconfig cd ..
Code:wget http://ftp.penguin.cz/pub/users/utx/amr/amrnb-7.0.0.1.tar.bz2 wget http://ftp.penguin.cz/pub/users/utx/amr/amrwb-7.0.0.2.tar.bz2 bzip2 -d amrnb-7.0.0.1.tar.bz2 bzip2 -d amrwb-7.0.0.2.tar.bz2 tar xvf amrnb-7.0.0.1.tar tar xvf amrwb-7.0.0.2.tar cd amrnb-7.0.0.1 ./configure make && make install cd .. cd amrwb-7.0.0.2 ./configure make && make install ldconfig cd ..
Code:wget http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc4.tar.bz2 tar xvjf MPlayer-1.0rc4.tar.bz2 cd MPlayer-1.0rc4 ./configure make && make install ldconfig cd ..
Code:ldd /usr/local/bin/mencoder | grep x264 ldd /usr/local/bin/mencoder | grep lame ldd /usr/local/bin/mencoder | grep jpeg
Code:root:~# ldd /usr/local/bin/mencoder | grep x264 libx264.so.60 => /usr/local/lib/libx264.so.60 (0xb7f18000) root:~# ldd /usr/local/bin/mencoder | grep lame libmp3lame.so.0 => /usr/local/lib/libmp3lame.so.0 (0xb7e75000) root:~# ldd /usr/local/bin/mencoder | grep jpeg libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb7e55000)
Code:apt-get install flvtool2
And the paths are:
Code:/usr/local/bin/ffmpeg /usr/local/bin/mencoder /usr/local/bin/mplayer /usr/bin/flvtool2
Medow7 Reviewed by Medow7 on . How to: Compile FFMPEG, FlvTool2 ... etc on Ubuntu and Debian Hello friends: I am going to show you how you can compiled ffmpeg, flvtool2, mencoder and mplayer with all required codec on your Debian or Ubuntu dist. After this your server will be fully supported for all kind of conversations including HTML5 formats support. First let us be sure that server is clean from this applications: apt-get remove ffmpeg x264 mencoder mplayer flvtool2 apt-get autoremove Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
How to Install rTorrent/ruTorrent Seedbox on Debian/Ubuntu VPS
By VPS6NET in forum Tutorials and GuidesReplies: 5Last Post: 11th Apr 2012, 01:22 PM -
Complete Setup Guide for Linux Seedboxes (Fedora Core/CentOS/Debian/Ubuntu)
By SceneMan in forum Tutorials and GuidesReplies: 12Last Post: 23rd Jan 2012, 10:21 AM -
HOWTO: FFmpeg + FFmpeg-PHP + Mplayer + Mencoder + flv2tool + LAME MP3 Encoder + Libog
By DLow in forum Technical and Security TutorialsReplies: 3Last Post: 12th Sep 2011, 05:15 AM -
How to install ffmpeg & ffmpeg-php Without errors.
By ScopeHosts.Sales in forum Tutorials and GuidesReplies: 3Last Post: 8th Mar 2011, 07:32 PM -
How do I compile Suhosin using VC6 (and php 5.2.14 source)?
By NewEraCracker in forum Technical Help Desk SupportReplies: 2Last Post: 21st Feb 2011, 11:47 PM
themaPoster - post to forums and...
Version 5.22 released. Open older version (or...