腕にffmpegを移植する

オンラインインストールと同じ手順

1. x264をダウンロードしてインストールする

x264ダウンロードリンク:http : //download.videolan.org/pub/videolan/x264/snapshots/

私はx264-snapshot-20120301-2245を使用しました。適切なものを自分でダウンロードできます

解凍:tar xvf last_x264_120.tar.bz2

開く:cd x264-snapshot-20120301-2245 /

配置:./ configure --enable-shared --prefix = / usr / local / --host = arm-linux --disable-asm

コンパイルしてインストール:make; make install

 

2. ffmpegソースパッケージをダウンロードする

ffmpegダウンロードリンク:https//ffmpeg.org/releases/

私はhttps://ffmpeg.org/releases/ffmpeg-2.3.1.tar.bz2を使用しました 

解凍:tar xvf ffmpeg-2.3.1.tar.bz2

打开:cd ffmpeg-2.3.1
配置:./ configure --cross-prefix = arm-linux-gnueabihf- --enable-cross-compile --target-os = linux --cc = arm-linux-gnueabihf-gcc --arch = arm --prefix = / usr / local / --enable-shared --disable-static --enable-gpl --enable-nonfree --disable-ffplay --enable-swscale --enable-pthreads- -disable-armv5te --disable-armv6 --disable-armv6t2 --disable-yasm --disable-stripping

コンパイルしてインストール:make; make install

 

エラー:

 

--enable-picオプションを再構成して追加する

再次配置:./ configure --cross-prefix = arm-linux-gnueabihf- --enable-cross-compile --target-os = linux --cc = arm-linux-gnueabihf-gcc --arch = arm- prefix = / usr / local / --enable-shared --enable-pic --disable-static --enable-gpl --enable-nonfree --disable-ffplay --enable-swscale --enable-pthreads --disable -armv5te --disable-armv6 --disable-armv6t2 --disable-yasm --disable-stripping

コンパイルして再インストール:make; make install

成功。

最初のステップは完了し、次のステップはプレーヤーを腕につけることです

おすすめ

転載: blog.csdn.net/u010868213/article/details/108551937