海思3519A 移植ffmpeg

試著忘記壹切 提交于 2020-02-06 08:00:41

文件下载

  • 下载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
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!