Trying to build and install ffmpeg with hardware encoder and rtsp streaming enabled. Attempted to follow instructions here: (https://github.com/KhaosT/homebridge-camera-ffmpeg/wiki/Raspberry-PI) but running ffmpeg command to test installation immediately results in "Illegal instructions".
Copying code from website here:
# install build tools sudo apt-get install pkg-config autoconf automake libtool libx264-dev # download and build fdk-aac git clone https://github.com/mstorsjo/fdk-aac.git cd fdk-aac ./autogen.sh ./configure --prefix=/usr/local --enable-shared --enable-static make sudo make install sudo ldconfig cd .. # download and build ffmpeg git clone https://github.com/FFmpeg/FFmpeg.git cd FFmpeg ./configure --prefix=/usr/local --arch=armel --target-os=linux --enable-omx-rpi --enable-nonfree --enable-gpl --enable-libfdk-aac --enable-mmal --enable-libx264 --enable-decoder=h264 --enable-network --enable-protocol=tcp --enable-demuxer=rtsp make sudo make install
Tried installing it this way (https://superuser.com/a/1082860), which didn't work -- resulted in "can't find command".
Tried this way (https://superuser.com/a/1069053), and couldn't even get past configure.
I'm at a complete lost. I figured I probably need instructions for cleaning up the mess I probably created from my attempts as well as how to actually get ffmpeg either compiled or downloaded for use with homebridge-camera-ffmpeg.
I also installed libfdk-aac-dev from deb-multimedia's list because the ffmpeg's .configure still complained about missing fdk-aac after the fdk-aac build. Is the deb-multimedia list installation the cause of my issues and did I officially put my RPi in hell? (see: https://www.raspberrypi.org/forums/viewtopic.php?p=1055179)