文件下载
- 下载x264
git clone git://git.videolan.org/x264.git
- 下载ffmpeg
git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg
编译和安装
x264编译
CC=arm-himix200-linux-gcc ./configure \ --host=arm-himix200-linux \ --prefix=/opt/ffmpeg-hisi/x264_hisi \ --cross-prefix=arm-himix200-linux- \ --enable-static \ --enable-shared \
make make install
ffmpeg 编译安装
./configure \ --prefix=/opt/ffmpeg-hisi/ffmpeg_hisi/ \ --enable-filters \ --enable-asm \ --enable-ffmpeg \ --enable-ffplay \ --enable-ffprobe \ --enable-doc \ --enable-cross-compile \ --cross-prefix=arm-himix200-linux- \ --arch=arm \ --target-os=linux \ --host-os=linux \ --enable-gpl \ --enable-version3 \ --enable-small \ --enable-shared \ --enable-static \ --enable-encoder=rawvideo \ --enable-encoder=mpeg2video \ --enable-encoder=mp2 \ --enable-encoder=libx264 \ --enable-libx264 \ --enable-muxer=adts \ --enable-muxer=mpegts \ --enable-muxer=mpeg2video \ --enable-muxer=rtsp \ --enable-muxer=hls \ --enable-muxer=h264 \ --enable-muxer=rtp \ --enable-muxer=avi \ --enable-muxer=flv \ --enable-muxer=mp4 \ --enable-demuxer=mpegts \ --enable-demuxer=rtsp \ --enable-demuxer=hls \ --enable-demuxer=h264 \ --enable-demuxer=rtp \ --enable-demuxer=flv \ --enable-muxer=mp4 \ --enable-demuxer=mpegts \ --enable-demuxer=rtsp \ --enable-demuxer=hls \ --enable-demuxer=h264 \ --enable-demuxer=rtp \ --enable-demuxer=flv \ --enable-demuxer=avi \ --enable-demuxer=mpegps \ --enable-demuxer=mpegtsraw \ --enable-demuxer=mpegvideo \ --enable-parser=aac \ --enable-parser=h264 \ --enable-parser=mpeg4video \ --enable-parser=mpegvideo \ --enable-parser=mpegaudio \ --enable-bsf=h264_mp4toannexb \ --enable-protocol=http \ --enable-protocol=rtp \ --enable-protocol=rtmpts \ --enable-protocol=https \ --enable-protocol=hls \ --enable-protocol=file \ --enable-protocol=data \ --enable-gray \ --enable-safe-bitstream-reader \ --extra-cflags=-I/opt/ffmpeg-hisi/x264_hisi/include \ --extra-ldflags=-L/opt/ffmpeg-hisi/x264_hisi/lib
make make install
来源:https://www.cnblogs.com/chay/p/11038678.html