买了个pi3,pi相对于通常的嵌入式系统的最大好处是里面夹带了gcc编译器,有很多东西都不需要交叉编译了。
arm和pc的性能还是不能比的,io的瓶颈还是很明显的, 想要编的快点还是要在pc上交叉编译的。
心血来潮安装了个ffmpeg用来转转编码
1. 安装H264
cd /usr/src git clone git://git.videolan.org/x264 cd x264 ./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-opencl make -j4 sudo make install
2. 安装ffmpeg(添加--enable-libx264, 如果还安装了其他的添加类似的选项开启)
cd /usr/src git clone git://source.ffmpeg.org/ffmpeg.git cd ffmpeg sudo ./configure --arch=armel --target-os=linux --enable-gpl --enable-libx264 --enable-nonfree make -j4 sudo make install
make的时候会花上一段时间,需要点耐心
更多的解码方式可以参照:
https://www.raspberrypi.org/forums/viewtopic.php?f=43&t=53936