Created
April 19, 2020 13:00
-
-
Save cxjava/d39c35b5b82515fa17966c6fb1242b06 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install libomxil-bellagio-dev libfreetype6-dev libmp3lame-dev checkinstall libx264-dev fonts-freefont-ttf libasound2-dev -y | |
cd ~ | |
git clone https://github.com/FFmpeg/FFmpeg.git --depth 1 | |
cd FFmpeg | |
sudo ./configure --arch=armel --target-os=linux --enable-gpl --enable-omx --enable-omx-rpi --enable-nonfree --enable-libfreetype --enable-libx264 --enable-libmp3lame --enable-mmal --enable-indev=alsa --enable-outdev=alsa | |
# For old hardware / Pi zero remove the `-j4` | |
make -j4 | |
sudo make install | |
sudo checkinstall --pkgname=ffmpeg -y | |
sudo apt-mark hold ffmpeg | |
echo "ffmpeg hold" | sudo dpkg --set-selections |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment