tce-load -i compiletc libass-dev faac-dev pulseaudio-dev libtheora-dev bzip2-dev libv4l2-dev libvpx-dev perl5 lame-dev x264-dev libwebp-dev libopus-dev librsvg-dev gnutls-dev x265-dev SDL2-dev

http://ffmpeg.org/releases/ffmpeg-4.2.2.tar.xz

cd ffmpeg-4.2.2

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

CFLAGS="-march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -Os -pipe" CXXFLAGS="-march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -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-libfreetype --enable-libpulse --enable-libspeex --enable-libtheora --enable-libvorbis --enable-zlib --enable-libmp3lame --enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libx265 --enable-libwebp --enable-libpulse --enable-libspeex --enable-libopus --enable-librsvg --enable-gnutls --enable-sdl2

[--enable-libfdk-aac --enable-openssl non-free]
--enable-mmal            enable Broadcom Multi-Media Abstraction Layer (Raspberry Pi) via MMAL [no]
--enable-omx-rpi         enable OpenMAX IL code for Raspberry Pi [no]

find . -name config.mak -type f -exec sed -i 's/-O3//g' {} \;

make [21m 20.17s]

sudo make install

install prefix            /usr/local
source path               .
C compiler                gcc
C library                 glibc
ARCH                      arm (armv6zk)
big-endian                no
runtime cpu detection     yes
ARMv5TE enabled           yes
ARMv6 enabled             yes
ARMv6T2 enabled           yes
VFP enabled               yes
NEON enabled              yes
THUMB enabled             no
debug symbols             no
strip symbols             yes
optimize for size         no
optimizations             yes
static                    no
shared                    yes
postprocessing support    yes
network support           yes
threading support         pthreads
safe bitstream reader     yes
texi2html enabled         no
perl enabled              yes
pod2man enabled           yes
makeinfo enabled          no
makeinfo supports HTML    no

External libraries:
alsa                    libpulse                libx265
bzlib                   librsvg                 libxcb
gnutls                  libspeex                libxcb_shape
iconv                   libtheora               libxcb_shm
libass                  libv4l2                 libxcb_xfixes
libfontconfig           libvorbis               lzma
libfreetype             libvpx                  sdl2
libmp3lame              libwebp                 zlib
libopus                 libx264

External libraries providing hardware acceleration:
v4l2_m2m

Libraries:
avcodec                 avformat                swresample
avdevice                avutil                  swscale
avfilter                postproc

Programs:
ffmpeg                  ffplay                  ffprobe

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

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

Enabled hwaccels:

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

Enabled demuxers:
aa                      iff                     pcm_s8
aac                     ifv                     pcm_u16be
ac3                     ilbc                    pcm_u16le
acm                     image2                  pcm_u24be
act                     image2_alias_pix        pcm_u24le
adf                     image2_brender_pix      pcm_u32be
adp                     image2pipe              pcm_u32le
ads                     image_bmp_pipe          pcm_u8
adx                     image_dds_pipe          pcm_vidc
aea                     image_dpx_pipe          pjs
afc                     image_exr_pipe          pmp
aiff                    image_gif_pipe          pva
aix                     image_j2k_pipe          pvf
amr                     image_jpeg_pipe         qcp
amrnb                   image_jpegls_pipe       r3d
amrwb                   image_pam_pipe          rawvideo
anm                     image_pbm_pipe          realtext
apc                     image_pcx_pipe          redspark
ape                     image_pgm_pipe          rl2
apng                    image_pgmyuv_pipe       rm
aptx                    image_pictor_pipe       roq
aptx_hd                 image_png_pipe          rpl
aqtitle                 image_ppm_pipe          rsd
asf                     image_psd_pipe          rso
asf_o                   image_qdraw_pipe        rtp
ass                     image_sgi_pipe          rtsp
ast                     image_sunrast_pipe      s337m
au                      image_svg_pipe          sami
avi                     image_tiff_pipe         sap
avr                     image_webp_pipe         sbc
avs                     image_xpm_pipe          sbg
avs2                    image_xwd_pipe          scc
bethsoftvid             ingenient               sdp
bfi                     ipmovie                 sdr2
bfstm                   ircam                   sds
bink                    iss                     sdx
bintext                 iv8                     segafilm
bit                     ivf                     ser
bmv                     ivr                     shorten
boa                     jacosub                 siff
brstm                   jv                      sln
c93                     kux                     smacker
caf                     live_flv                smjpeg
cavsvideo               lmlm4                   smush
cdg                     loas                    sol
cdxl                    lrc                     sox
cine                    lvf                     spdif
codec2                  lxf                     srt
codec2raw               m4v                     stl
concat                  matroska                str
data                    mgsts                   subviewer
daud                    microdvd                subviewer1
dcstr                   mjpeg                   sup
dfa                     mjpeg_2000              svag
dhav                    mlp                     swf
dirac                   mlv                     tak
dnxhd                   mm                      tedcaptions
dsf                     mmf                     thp
dsicin                  mov                     threedostr
dss                     mp3                     tiertexseq
dts                     mpc                     tmv
dtshd                   mpc8                    truehd
dv                      mpegps                  tta
dvbsub                  mpegts                  tty
dvbtxt                  mpegtsraw               txd
dxa                     mpegvideo               ty
ea                      mpjpeg                  v210
ea_cdata                mpl2                    v210x
eac3                    mpsub                   vag
epaf                    msf                     vc1
ffmetadata              msnwc_tcp               vc1t
filmstrip               mtaf                    vividas
fits                    mtv                     vivo
flac                    musx                    vmd
flic                    mv                      vobsub
flv                     mvi                     voc
fourxm                  mxf                     vpk
frm                     mxg                     vplayer
fsb                     nc                      vqf
g722                    nistsphere              w64
g723_1                  nsp                     wav
g726                    nsv                     wc3
g726le                  nut                     webm_dash_manifest
g729                    nuv                     webvtt
gdv                     ogg                     wsaud
genh                    oma                     wsd
gif                     paf                     wsvqa
gsm                     pcm_alaw                wtv
gxf                     pcm_f32be               wv
h261                    pcm_f32le               wve
h263                    pcm_f64be               xa
h264                    pcm_f64le               xbin
hcom                    pcm_mulaw               xmv
hevc                    pcm_s16be               xvag
hls                     pcm_s16le               xwma
hnm                     pcm_s24be               yop
ico                     pcm_s24le               yuv4mpegpipe
idcin                   pcm_s32be
idf                     pcm_s32le

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

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

Enabled filters:
abench                  dedot                   palettegen
abitscope               deesser                 paletteuse
acompressor             deflate                 pan
acontrast               deflicker               perms
acopy                   dejudder                perspective
acrossfade              delogo                  phase
acrossover              derain                  pixdesctest
acrusher                deshake                 pixscope
acue                    despill                 pp
adeclick                detelecine              pp7
adeclip                 dilation                premultiply
adelay                  displace                prewitt
aderivative             doubleweave             pseudocolor
adrawgraph              drawbox                 psnr
aecho                   drawgraph               pullup
aemphasis               drawgrid                qp
aeval                   drawtext                random
aevalsrc                drmeter                 readeia608
afade                   dynaudnorm              readvitc
afftdn                  earwax                  realtime
afftfilt                ebur128                 remap
afifo                   edgedetect              removegrain
afir                    elbg                    removelogo
aformat                 entropy                 repeatfields
agate                   eq                      replaygain
agraphmonitor           equalizer               reverse
ahistogram              erosion                 rgbashift
aiir                    extractplanes           rgbtestsrc
aintegral               extrastereo             roberts
ainterleave             fade                    rotate
alimiter                fftdnoiz                sab
allpass                 fftfilt                 scale
allrgb                  field                   scale2ref
allyuv                  fieldhint               select
aloop                   fieldmatch              selectivecolor
alphaextract            fieldorder              sendcmd
alphamerge              fifo                    separatefields
amerge                  fillborders             setdar
ametadata               find_rect               setfield
amix                    firequalizer            setparams
amovie                  flanger                 setpts
amplify                 floodfill               setrange
amultiply               format                  setsar
anequalizer             fps                     settb
anlmdn                  framepack               showcqt
anoisesrc               framerate               showfreqs
anull                   framestep               showinfo
anullsink               freezedetect            showpalette
anullsrc                fspp                    showspatial
apad                    gblur                   showspectrum
aperms                  geq                     showspectrumpic
aphasemeter             gradfun                 showvolume
aphaser                 graphmonitor            showwaves
apulsator               greyedge                showwavespic
arealtime               haas                    shuffleframes
aresample               haldclut                shuffleplanes
areverse                haldclutsrc             sidechaincompress
aselect                 hdcd                    sidechaingate
asendcmd                headphone               sidedata
asetnsamples            hflip                   signalstats
asetpts                 highpass                signature
asetrate                highshelf               silencedetect
asettb                  hilbert                 silenceremove
ashowinfo               histeq                  sinc
asidedata               histogram               sine
asoftclip               hqdn3d                  smartblur
asplit                  hqx                     smptebars
ass                     hstack                  smptehdbars
astats                  hue                     sobel
astreamselect           hwdownload              spectrumsynth
atadenoise              hwmap                   split
atempo                  hwupload                spp
atrim                   hysteresis              sr
avectorscope            idet                    ssim
avgblur                 il                      stereo3d
bandpass                inflate                 stereotools
bandreject              interlace               stereowiden
bass                    interleave              streamselect
bbox                    join                    subtitles
bench                   kerndeint               super2xsai
biquad                  lagfun                  superequalizer
bitplanenoise           lenscorrection          surround
blackdetect             life                    swaprect
blackframe              limiter                 swapuv
blend                   loop                    tblend
bm3d                    loudnorm                telecine
boxblur                 lowpass                 testsrc
bwdif                   lowshelf                testsrc2
cellauto                lumakey                 threshold
channelmap              lut                     thumbnail
channelsplit            lut1d                   tile
chorus                  lut2                    tinterlace
chromahold              lut3d                   tlut2
chromakey               lutrgb                  tmix
chromashift             lutyuv                  tonemap
ciescope                mandelbrot              tpad
codecview               maskedclamp             transpose
color                   maskedmerge             treble
colorbalance            maskfun                 tremolo
colorchannelmixer       mcdeint                 trim
colorhold               mcompand                unpremultiply
colorkey                mergeplanes             unsharp
colorlevels             mestimate               uspp
colormatrix             metadata                vaguedenoiser
colorspace              midequalizer            vectorscope
compand                 minterpolate            vflip
compensationdelay       mix                     vfrdet
concat                  movie                   vibrance
convolution             mpdecimate              vibrato
convolve                mptestsrc               vignette
copy                    negate                  vmafmotion
cover_rect              nlmeans                 volume
crop                    nnedi                   volumedetect
cropdetect              noformat                vstack
crossfeed               noise                   w3fdif
crystalizer             normalize               waveform
cue                     null                    weave
curves                  nullsink                xbr
datascope               nullsrc                 xmedian
dcshift                 oscilloscope            xstack
dctdnoiz                overlay                 yadif
deband                  owdenoise               yuvtestsrc
deblock                 pad                     zoompan
decimate                pal100bars
deconvolve              pal75bars

Enabled bsfs:
aac_adtstoasc           h264_redundant_pps      noise
av1_frame_split         hapqa_extract           null
av1_metadata            hevc_metadata           prores_metadata
chomp                   hevc_mp4toannexb        remove_extradata
dca_core                imx_dump_header         text2movsub
dump_extradata          mjpeg2jpeg              trace_headers
eac3_core               mjpega_dump_header      truehd_core
extract_extradata       mov2textsub             vp9_metadata
filter_units            mp3_header_decompress   vp9_raw_reorder
h264_metadata           mpeg2_metadata          vp9_superframe
h264_mp4toannexb        mpeg4_unpack_bframes    vp9_superframe_split

Enabled indevs:
alsa                    oss                     xcbgrab
fbdev                   pulse
lavfi                   v4l2

Enabled outdevs:
alsa                    oss                     sdl2
fbdev                   pulse                   v4l2

License: GPL version 3 or later