下载ffmpeg源码
编译选项:
./configure --prefix=./install --target-os=linux --arch=aarch64 --enable-cross-compile --enable-pthreads \ --disable-doc --disable-debug --disable-network --disable-programs --disable-swresample --disable-swscale --disable-shared --disable-iconv \ --disable-avdevice --disable-postproc --disable-avfilter --disable-asm \ --enable-nonfree --enable-static --enable-small --enable-pic --enable-protocol=file \ --enable-muxer=mp4 --enable-muxer=flv --enable-muxer=mov --enable-muxer=h264 --enable-muxer=avi \ --enable-demuxer=mp4 --enable-demuxer=flv --enable-demuxer=mov --enable-demuxer=h264 --enable-demuxer=h264 --enable-demuxer=avi \ --enable-bsf=h264_mp4toannexb --enable-bsf=hevc_mp4toannexb \ --enable-encoder=flv --enable-encoder=mpeg4 --enable-encoder=mpeg4_v4l2m2m --enable-encoder=msmpeg4v2 --enable-encoder=msmpeg4v3 --disable-gpl \ --cc=arm-himix200-linux-gcc
执行:
make -j8 make install