下载编译好的deb包
设置环境变量
在ffmpeg.deb同文件夹下面输入:
vim .bashrc
输入:
source /usr/local/Ascend/ascend-toolkit/set_env.sh
export LD_LIBRARY_PATH=/usr/lib:/usr/local/Ascend/ascend-toolkit/latest/acllib/lib64:$LD_LIBRARY_PATH
然后保存就行
然后应用:
source ./.bashrc
安装ffmpeg
sudo dpkg -i ffmpeg_4.4.2-1_arm64.deb
使用上面的命令安装即可
验证
HwHiAiUser@orangepi:~$ ffmpeg -hwaccels | grep ascend
ascend
HwHiAiUser@orangepi:~$ ffmpeg -encoders | grep ascend
V..... h264_ascend Ascend HiMpi H264 encoder (codec h264)
V..... h265_ascend Ascend HiMpi H265 encoder (codec hevc)
HwHiAiUser@orangepi:~$ ffmpeg -decoders | grep ascend
V..... h264_ascend Ascend HiMpi H264 decoder (codec h264)
V..... h265_ascend Ascend HiMpi H265 decoder (codec hevc)