创建基于centos7的包含ffmpeg和ffprobe和python3的镜像
本方法源自chatgpt,亲测可行
1.拉取基础镜像centos7
docker pull centos:7
2.创建容器
docker run -it centos:7 /bin/bash
3.安装基础环境
yum update
yum install python3
wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-i686-static.tar.xz
tar -xf ffmpeg-release-i686-static.tar.xz
cd ffmpeg-*
cp ffmpeg ffprobe /usr/local/bin/
4.结束
本文来自博客园,作者:海_纳百川,转载请注明原文链接:https://www.cnblogs.com/chentiao/p/17082075.html,如有侵权联系删除

浙公网安备 33010602011771号