Search

RoboSeek

Category

Uncategorized

How to install FFMPEG for Raspberry Pi

FFMPEG is one of those tools I use when I just want to quickly hack together a video and don’t need fancy things like editing, titles, or a user-interface. Compiling on a regular computer isn’t easy, but compiling for the Raspberry Pi takes a little more patience and care. I also wanted to include support for H264 video, which needs to be installed before compiling FFMPEG.

There are lots of examples on the web, but what worked for me was a combination of a few of them, so here’s what I did. Note many of these commands may require  sudo appended before (commands like git ,./configure, and make )

1.INSTALL H264 SUPPORT
Run the following commands, one at a time.

1
2
3
4
5
6
cd /usr/src
git clone git://git.videolan.org/x264
cd x264
./configure host=armunknownlinuxgnueabi enablestatic disableopencl
make
sudo make install

2.INSTALL OTHER LIBRARIES/FORMATS
Anything else you would like to install should be done now, before compiling FFMPEG. This includes MP3, AAC, etc.

3.   INSTALL FFMPEG
Add lines similar to the  –enable-libx264  for anything else installed above. This may take a REALLY long time, so be patient.

As Malcshour notes, if you have a Model B+ you can use make -j4  instead of just make  to take advantage of all four cores!

 

 

  1. DONE! TEST IT
    To test your new install, simply run the command ffmpeg . If you don’t get any errors, you’re all good

Solution for install AUISuite fails

The most recent version of voicecommand has been compiled for ARMv7 (Pi 2). To get it to run on the B+ (ARMv6):

  1. Navigate to PiAUISuite/VoiceCommand
  2. Edit Makefile
  3. Change line 5 to read ARCH := arm
  4. Run make -B (the flag will force it to recompile)
  5. Now try to reinstall the PiAUISuite

To increase size of rasbperry sd card

Error message :

1
No space left on device
Possible solutions :

Expand rootfs

 
In the terminal type
sudo raspi-config
then select “expand_rootfs”

Found this solution from here.

Another method is to

Update your firmware
An easy way to do it is via : rpi-update

Create a free website or blog at WordPress.com.

Up ↑