tce-load -i yasm coreutils sdl-dev libass-dev faac-dev pulseaudio-dev libtheora-dev bzip2-dev libva openssl-1.0.0-dev libv4l2-dev libvpx-dev libvdpau-dev perl5 lame-dev x264-dev libwebp-dev speex-dev libbluray-dev libcdio-dev libcdio-paranoia-dev

cd ffmpeg-2.6.3

sed -i 's/-lflite"/-lflite -lasound"/' configure

CC="gcc -mtune=generic -Os -pipe" CXX="g++ -mtune=generic -Os -pipe" ./configure --prefix=/usr/local --disable-static --enable-gpl --enable-version3 --enable-shared --disable-debug --disable-doc --enable-bzlib --enable-fontconfig --enable-libass --enable-libfaac --enable-libfreetype --enable-libpulse --enable-libspeex --enable-libtheora --enable-libvorbis --enable-zlib --enable-libmp3lame --enable-libv4l2 --enable-libvpx --enable-openssl --enable-vdpau --enable-nonfree --enable-libx264 --enable-x11grab --enable-libwebp --enable-libpulse --enable-libspeex --enable-libbluray --enable-libcdio

find . -name Makefile -type f -exec sed -i 's/-O2//g' {} \;

make

gcc tools/qt-faststart.c -o tools/qt-faststart

sudo make install
sudo install -m755    tools/qt-faststart /usr/local/bin

install prefix            /usr/local
source path               .
C compiler                gcc
C library                 glibc
ARCH                      x86 (generic)
big-endian                no
runtime cpu detection     yes
yasm                      yes
MMX enabled               yes
MMXEXT enabled            yes
3DNow! enabled            yes
3DNow! extended enabled   yes
SSE enabled               yes
SSSE3 enabled             yes
AVX enabled               yes
XOP enabled               yes
FMA3 enabled              yes
FMA4 enabled              yes
i686 features enabled     yes
CMOV is fast              yes
EBX available             yes
EBP available             yes
debug symbols             no
strip symbols             yes
optimize for size         no
optimizations             yes
static                    no
shared                    yes
postprocessing support    yes
new filter support        yes
network support           yes
threading support         pthreads
safe bitstream reader     yes
SDL support               yes
opencl enabled            no
texi2html enabled         no
perl enabled              yes
pod2man enabled           yes
makeinfo enabled          no
makeinfo supports HTML    no

External libraries:
bzlib                   libpulse                libxcb
iconv                   libspeex                libxcb_shape
libass                  libtheora               libxcb_shm
libbluray               libv4l2                 libxcb_xfixes
libcdio                 libvorbis               openssl
libfaac                 libvpx                  sdl
libfontconfig           libwebp                 xlib
libfreetype             libx264                 zlib
libmp3lame

Enabled decoders:
aac                     bfi                     g729
aac_latm                bink                    gif
aasc                    binkaudio_dct           gsm
ac3                     binkaudio_rdft          gsm_ms
ac3_fixed               bintext                 h261
adpcm_4xm               bmp                     h263
adpcm_adx               bmv_audio               h263i
adpcm_afc               bmv_video               h263p
adpcm_ct                brender_pix             h264
adpcm_dtk               c93                     h264_vdpau
adpcm_ea                cavs                    hevc
adpcm_ea_maxis_xa       ccaption                hnm4_video
adpcm_ea_r1             cdgraphics              hqx
adpcm_ea_r2             cdxl                    huffyuv
adpcm_ea_r3             cinepak                 iac
adpcm_ea_xas            cljr                    idcin
adpcm_g722              cllc                    idf
adpcm_g726              comfortnoise            iff_byterun1
adpcm_g726le            cook                    iff_ilbm
adpcm_ima_amv           cpia                    imc
adpcm_ima_apc           cscd                    indeo2
adpcm_ima_dk3           cyuv                    indeo3
adpcm_ima_dk4           dca                     indeo4
adpcm_ima_ea_eacs       dfa                     indeo5
adpcm_ima_ea_sead       dirac                   interplay_dpcm
adpcm_ima_iss           dnxhd                   interplay_video
adpcm_ima_oki           dpx                     jacosub
adpcm_ima_qt            dsd_lsbf                jpeg2000
adpcm_ima_rad           dsd_lsbf_planar         jpegls
adpcm_ima_smjpeg        dsd_msbf                jv
adpcm_ima_wav           dsd_msbf_planar         kgv1
adpcm_ima_ws            dsicinaudio             kmvc
adpcm_ms                dsicinvideo             lagarith
adpcm_sbpro_2           dss_sp                  libspeex
adpcm_sbpro_3           dvbsub                  libvorbis
adpcm_sbpro_4           dvdsub                  libvpx_vp8
adpcm_swf               dvvideo                 loco
adpcm_thp               dxa                     mace3
adpcm_vima              dxtory                  mace6
adpcm_xa                eac3                    mdec
adpcm_yamaha            eacmv                   metasound
aic                     eamad                   microdvd
alac                    eatgq                   mimic
alias_pix               eatgv                   mjpeg
als                     eatqi                   mjpegb
amrnb                   eightbps                mlp
amrwb                   eightsvx_exp            mmvideo
amv                     eightsvx_fib            motionpixels
anm                     escape124               movtext
ansi                    escape130               mp1
ape                     evrc                    mp1float
apng                    exr                     mp2
ass                     ffv1                    mp2float
asv1                    ffvhuff                 mp3
asv2                    ffwavesynth             mp3adu
atrac1                  fic                     mp3adufloat
atrac3                  flac                    mp3float
atrac3p                 flashsv                 mp3on4
aura                    flashsv2                mp3on4float
aura2                   flic                    mpc7
avrn                    flv                     mpc8
avrp                    fourxm                  mpeg1_vdpau
avs                     fraps                   mpeg1video
avui                    frwu                    mpeg2video
ayuv                    g2m                     mpeg4
bethsoftvid             g723_1                  mpeg4_vdpau
mpeg_vdpau              prores                  tta
mpeg_xvmc               prores_lgpl             twinvq
mpegvideo               ptx                     txd
mpl2                    qcelp                   ulti
msa1                    qdm2                    utvideo
msmpeg4v1               qdraw                   v210
msmpeg4v2               qpeg                    v210x
msmpeg4v3               qtrle                   v308
msrle                   r10k                    v408
mss1                    r210                    v410
mss2                    ra_144                  vb
msvideo1                ra_288                  vble
mszh                    ralf                    vc1
mts2                    rawvideo                vc1_vdpau
mvc1                    realtext                vc1image
mvc2                    rl2                     vcr1
mxpeg                   roq                     vima
nellymoser              roq_dpcm                vmdaudio
nuv                     rpza                    vmdvideo
on2avc                  rv10                    vmnc
opus                    rv20                    vorbis
paf_audio               rv30                    vp3
paf_video               rv40                    vp5
pam                     s302m                   vp6
pbm                     sami                    vp6a
pcm_alaw                sanm                    vp6f
pcm_bluray              sgi                     vp7
pcm_dvd                 sgirle                  vp8
pcm_f32be               shorten                 vp9
pcm_f32le               sipr                    vplayer
pcm_f64be               smackaud                vqa
pcm_f64le               smacker                 wavpack
pcm_lxf                 smc                     webp
pcm_mulaw               smvjpeg                 webvtt
pcm_s16be               snow                    wmalossless
pcm_s16be_planar        sol_dpcm                wmapro
pcm_s16le               sonic                   wmav1
pcm_s16le_planar        sp5x                    wmav2
pcm_s24be               srt                     wmavoice
pcm_s24daud             ssa                     wmv1
pcm_s24le               stl                     wmv2
pcm_s24le_planar        subrip                  wmv3
pcm_s32be               subviewer               wmv3_vdpau
pcm_s32le               subviewer1              wmv3image
pcm_s32le_planar        sunrast                 wnv1
pcm_s8                  svq1                    ws_snd1
pcm_s8_planar           svq3                    xan_dpcm
pcm_u16be               tak                     xan_wc3
pcm_u16le               targa                   xan_wc4
pcm_u24be               targa_y216              xbin
pcm_u24le               text                    xbm
pcm_u32be               theora                  xface
pcm_u32le               thp                     xl
pcm_u8                  tiertexseqvideo         xsub
pcm_zork                tiff                    xwd
pcx                     tmv                     y41p
pgm                     truehd                  yop
pgmyuv                  truemotion1             yuv4
pgssub                  truemotion2             zero12v
pictor                  truespeech              zerocodec
pjs                     tscc                    zlib
png                     tscc2                   zmbv
ppm

Enabled encoders:
a64multi                libspeex                pgmyuv
a64multi5               libtheora               png
aac                     libvorbis               ppm
ac3                     libvpx_vp8              prores
ac3_fixed               libwebp                 prores_aw
adpcm_adx               libx264                 prores_ks
adpcm_g722              libx264rgb              qtrle
adpcm_g726              ljpeg                   r10k
adpcm_ima_qt            mjpeg                   r210
adpcm_ima_wav           movtext                 ra_144
adpcm_ms                mp2                     rawvideo
adpcm_swf               mp2fixed                roq
adpcm_yamaha            mpeg1video              roq_dpcm
alac                    mpeg2video              rv10
alias_pix               mpeg4                   rv20
amv                     msmpeg4v2               s302m
ass                     msmpeg4v3               sgi
asv1                    msvideo1                snow
asv2                    nellymoser              sonic
avrp                    pam                     sonic_ls
avui                    pbm                     srt
ayuv                    pcm_alaw                ssa
bmp                     pcm_f32be               subrip
cinepak                 pcm_f32le               sunrast
cljr                    pcm_f64be               svq1
comfortnoise            pcm_f64le               targa
dca                     pcm_mulaw               tiff
dnxhd                   pcm_s16be               tta
dpx                     pcm_s16be_planar        utvideo
dvbsub                  pcm_s16le               v210
dvdsub                  pcm_s16le_planar        v308
dvvideo                 pcm_s24be               v408
eac3                    pcm_s24daud             v410
ffv1                    pcm_s24le               vorbis
ffvhuff                 pcm_s24le_planar        wavpack
flac                    pcm_s32be               webvtt
flashsv                 pcm_s32le               wmav1
flashsv2                pcm_s32le_planar        wmav2
flv                     pcm_s8                  wmv1
g723_1                  pcm_s8_planar           wmv2
gif                     pcm_u16be               xbm
h261                    pcm_u16le               xface
h263                    pcm_u24be               xsub
h263p                   pcm_u24le               xwd
huffyuv                 pcm_u32be               y41p
jpeg2000                pcm_u32le               yuv4
jpegls                  pcm_u8                  zlib
libfaac                 pcx                     zmbv
libmp3lame              pgm

Enabled hwaccels:
h263_vdpau              mpeg1_xvmc              mpeg4_vdpau
h264_vdpau              mpeg2_vdpau             vc1_vdpau
mpeg1_vdpau             mpeg2_xvmc              wmv3_vdpau

Enabled parsers:
aac                     dvd_nav                 mpegvideo
aac_latm                dvdsub                  opus
ac3                     flac                    png
adx                     gsm                     pnm
bmp                     h261                    rv30
cavsvideo               h263                    rv40
cook                    h264                    tak
dca                     hevc                    vc1
dirac                   mjpeg                   vorbis
dnxhd                   mlp                     vp3
dpx                     mpeg4video              vp8
dvbsub                  mpegaudio               vp9

Enabled demuxers:
aac                     gsm                     mvi
ac3                     gxf                     mxf
act                     h261                    mxg
adf                     h263                    nc
adp                     h264                    nistsphere
adx                     hevc                    nsv
aea                     hls                     nut
afc                     hnm                     nuv
aiff                    ico                     ogg
amr                     idcin                   oma
anm                     idf                     paf
apc                     iff                     pcm_alaw
ape                     ilbc                    pcm_f32be
apng                    image2                  pcm_f32le
aqtitle                 image2_alias_pix        pcm_f64be
asf                     image2_brender_pix      pcm_f64le
ass                     image2pipe              pcm_mulaw
ast                     image_bmp_pipe          pcm_s16be
au                      image_dpx_pipe          pcm_s16le
avi                     image_exr_pipe          pcm_s24be
avr                     image_j2k_pipe          pcm_s24le
avs                     image_jpeg_pipe         pcm_s32be
bethsoftvid             image_jpegls_pipe       pcm_s32le
bfi                     image_pictor_pipe       pcm_s8
bink                    image_png_pipe          pcm_u16be
bintext                 image_sgi_pipe          pcm_u16le
bit                     image_sunrast_pipe      pcm_u24be
bmv                     image_tiff_pipe         pcm_u24le
boa                     image_webp_pipe         pcm_u32be
brstm                   ingenient               pcm_u32le
c93                     ipmovie                 pcm_u8
caf                     ircam                   pjs
cavsvideo               iss                     pmp
cdg                     iv8                     pva
cdxl                    ivf                     pvf
cine                    jacosub                 qcp
concat                  jv                      r3d
data                    latm                    rawvideo
daud                    live_flv                realtext
dfa                     lmlm4                   redspark
dirac                   loas                    rl2
dnxhd                   lrc                     rm
dsf                     lvf                     roq
dsicin                  lxf                     rpl
dss                     m4v                     rsd
dts                     matroska                rso
dtshd                   mgsts                   rtp
dv                      microdvd                rtsp
dvbsub                  mjpeg                   sami
dxa                     mlp                     sap
ea                      mlv                     sbg
ea_cdata                mm                      sdp
eac3                    mmf                     sdr2
epaf                    mov                     segafilm
ffm                     mp3                     shorten
ffmetadata              mpc                     siff
filmstrip               mpc8                    sln
flac                    mpegps                  smacker
flic                    mpegts                  smjpeg
flv                     mpegtsraw               smush
fourxm                  mpegvideo               sol
frm                     mpl2                    sox
g722                    mpsub                   spdif
g723_1                  msnwc_tcp               srt
g729                    mtv                     stl
gif                     mv                      str
subviewer               txd                     webm_dash_manifest
subviewer1              vc1                     webvtt
sup                     vc1t                    wsaud
swf                     vivo                    wsvqa
tak                     vmd                     wtv
tedcaptions             vobsub                  wv
thp                     voc                     xa
tiertexseq              vplayer                 xbin
tmv                     vqf                     xmv
truehd                  w64                     xwma
tta                     wav                     yop
tty                     wc3                     yuv4mpegpipe

Enabled muxers:
a64                     ipod                    pcm_s24le
ac3                     ircam                   pcm_s32be
adts                    ismv                    pcm_s32le
adx                     ivf                     pcm_s8
aiff                    jacosub                 pcm_u16be
amr                     latm                    pcm_u16le
asf                     lrc                     pcm_u24be
asf_stream              m4v                     pcm_u24le
ass                     matroska                pcm_u32be
ast                     matroska_audio          pcm_u32le
au                      md5                     pcm_u8
avi                     microdvd                psp
avm2                    mjpeg                   rawvideo
bit                     mkvtimestamp_v2         rm
caf                     mlp                     roq
cavsvideo               mmf                     rso
crc                     mov                     rtp
dash                    mp2                     rtp_mpegts
data                    mp3                     rtsp
daud                    mp4                     sap
dirac                   mpeg1system             segment
dnxhd                   mpeg1vcd                smjpeg
dts                     mpeg1video              smoothstreaming
dv                      mpeg2dvd                sox
eac3                    mpeg2svcd               spdif
f4v                     mpeg2video              spx
ffm                     mpeg2vob                srt
ffmetadata              mpegts                  stream_segment
filmstrip               mpjpeg                  swf
flac                    mxf                     tee
flv                     mxf_d10                 tg2
framecrc                mxf_opatom              tgp
framemd5                null                    truehd
g722                    nut                     uncodedframecrc
g723_1                  oga                     vc1
gif                     ogg                     vc1t
gxf                     oma                     voc
h261                    opus                    w64
h263                    pcm_alaw                wav
h264                    pcm_f32be               webm
hds                     pcm_f32le               webm_dash_manifest
hevc                    pcm_f64be               webp
hls                     pcm_f64le               webvtt
ico                     pcm_mulaw               wtv
ilbc                    pcm_s16be               wv
image2                  pcm_s16le               yuv4mpegpipe
image2pipe              pcm_s24be

Enabled protocols:
bluray                  http                    rtmpt
cache                   httpproxy               rtmpte
concat                  https                   rtmpts
crypto                  icecast                 rtp
data                    md5                     srtp
ffrtmpcrypt             mmsh                    subfile
ffrtmphttp              mmst                    tcp
file                    pipe                    tls
ftp                     rtmp                    udp
gopher                  rtmpe                   udplite
hls                     rtmps                   unix

Enabled filters:
adelay                  deshake                 perms
aecho                   drawbox                 perspective
aeval                   drawgrid                phase
aevalsrc                drawtext                pixdesctest
afade                   earwax                  pp
aformat                 ebur128                 pp7
ainterleave             edgedetect              psnr
allpass                 elbg                    pullup
alphaextract            eq                      qp
alphamerge              equalizer               removelogo
amerge                  extractplanes           repeatfields
amix                    fade                    replaygain
amovie                  field                   rgbtestsrc
anull                   fieldmatch              rotate
anullsink               fieldorder              sab
anullsrc                flanger                 scale
apad                    format                  select
aperms                  fps                     sendcmd
aphaser                 framepack               separatefields
aresample               framestep               setdar
aselect                 fspp                    setfield
asendcmd                geq                     setpts
asetnsamples            gradfun                 setsar
asetpts                 haldclut                settb
asetrate                haldclutsrc             showcqt
asettb                  hflip                   showinfo
ashowinfo               highpass                showpalette
asplit                  histeq                  showspectrum
ass                     histogram               showwaves
astats                  hqdn3d                  shuffleplanes
astreamsync             hqx                     signalstats
atempo                  hue                     silencedetect
atrim                   idet                    silenceremove
avectorscope            il                      sine
bandpass                interlace               smartblur
bandreject              interleave              smptebars
bass                    join                    smptehdbars
bbox                    kerndeint               split
biquad                  lenscorrection          spp
blackdetect             life                    stereo3d
blackframe              lowpass                 subtitles
blend                   lut                     super2xsai
boxblur                 lut3d                   swapuv
cellauto                lutrgb                  tblend
channelmap              lutyuv                  telecine
channelsplit            mandelbrot              testsrc
codecview               mcdeint                 thumbnail
color                   mergeplanes             tile
colorbalance            movie                   tinterlace
colorchannelmixer       mpdecimate              transpose
colorlevels             mptestsrc               treble
colormatrix             negate                  trim
compand                 noformat                unsharp
concat                  noise                   uspp
copy                    null                    vflip
crop                    nullsink                vignette
cropdetect              nullsrc                 volume
curves                  overlay                 volumedetect
dcshift                 owdenoise               w3fdif
dctdnoiz                pad                     xbr
decimate                palettegen              yadif
dejudder                paletteuse              zoompan
delogo                  pan

Enabled bsfs:
aac_adtstoasc           imx_dump_header         mp3_header_decompress
chomp                   mjpeg2jpeg              noise
dump_extradata          mjpega_dump_header      remove_extradata
h264_mp4toannexb        mov2textsub             text2movsub

Enabled indevs:
alsa                    lavfi                   pulse
dv1394                  libcdio                 v4l2
fbdev                   oss                     x11grab_xcb

Enabled outdevs:
alsa                    pulse                   v4l2
fbdev                   sdl                     xv
oss

