Posted in Raspberry Pi

Compile FFMPEG for Raspberry Pi 3

Get FFMPEG source code:

Compile libx264

Compile ALSA

Compile FDK-AAC

Installing build tools:

Compile fdk-aac

Compile FFMPEG

--enable-omx --enable-omx-rpi : This enables ffmpeg runtime hardware encoding

2 thoughts on “Compile FFMPEG for Raspberry Pi 3

  1. Hello Sir, I have followed all the above yet when i try to run at the end the following command it says “ffmpeg: Command not found” can you please help me?

    raspivid -o – -t 0 -w 1280 -h 720 -fps 25 -b 6000000 | ffmpeg -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -f h264 -i – -vcodec copy -acodec aac -ab 128k -g 50 -strict experimental -f flv rtmp://

  2. in case if anyone get an error “Omx_Core.h not available, Please follow the following additional steps before compiling FFMPEG:
    1. Install the package called “libomxil-bellagio-dev”
    2. unside ffmpeg directory, run the command ‘sudo ./configure –enable-omx –enable-omx-rpi’
    3. Then proceed with ffmpeg compilation

Leave a Reply

Your email address will not be published. Required fields are marked *