树莓派安装ffmpeg

缺乏、安全感 2022-09-09 09:47 344阅读 0赞

环境

Distributor ID: Raspbian
Description: Raspbian GNU/Linux 10 (buster)
Release: 10
Codename: buster

  1. 安装H264

    git clone —depth 1 https://code.videolan.org/videolan/x264

    进入文件

    cd x264
    ./configure —host=arm-unknown-linux-gnueabi —enable-static —disable-opencl
    make -j4
    sudo make install

2.安装ffmpeg

  1. git clone git://source.ffmpeg.org/ffmpeg --depth=1
  2. cd ffmpeg
  3. ./configure --arch=armel --target-os=linux --enable-gpl --enable-libx264 --enable-nonfree
  4. make -j4
  5. sudo make install

3.测试

  1. ffmpeg -i test.h264 -vcodec copy test.mp4

发表评论

表情:
评论列表 (有 0 条评论,344人围观)

还没有评论,来说两句吧...

相关阅读