创建基于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.结束

posted @ 2023-02-01 11:42  海_纳百川  阅读(331)  评论(0)    收藏  举报
本站总访问量