Compile FFmpeg for Raspberry Pi

From JMK Wiki
Jump to navigation Jump to search

x264

user@localhost ~ $ mkdir -p /usr/local/src
user@localhost ~ $ cd /usr/local/src
user@localhost /usr/local/src $ git clone git://git://git.videolan.org/x264.git
user@localhost /usr/local/src $ cd x264
user@localhost /usr/local/src $ ./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-opencl
user@localhost /usr/local/src $ make
root@localhost /usr/local/src/x264 # make install

FFmpeg

user@localhost ~ $ mkdir -p /usr/local/src
user@localhost ~ $ cd /usr/local/src
user@localhost /usr/local/src $ git clone git://git://git.videolan.org/ffmpeg.git
user@localhost /usr/local/src $ cd ffmpeg
user@localhost /usr/local/src $ ./configure --arch=armel \--target-os=linux --enable-gpl --enable-libx264 --enable-nonfree
user@localhost /usr/local/src $ make
root@localhost /usr/local/src/ffmpeg # make install