1 Star 6 Fork 0

会飞的芒果猫/云崽一键

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
ffmpeg 2.40 KB
一键复制 编辑 原始数据 按行查看 历史
会飞的芒果猫 提交于 2024-07-09 13:00 . add ffmpeg.
#!/bin/bash
apt update
apt upgrade
apt install git
echo -e "\e[1;31m正在从gitee加速镜像获取ffmpeg...\e[0m"
git clone https://gitee.com/mirrors/ffmpeg.git ~/ffmpeg
apt-get install zlib1g-dev libbz2-dev libssl-dev libncurses5-dev libsqlite3-dev libreadline-dev tk-dev libgdbm-dev libdb-dev libpcap-dev xz-utils libexpat1-dev liblzma-dev libffi-dev libc6-dev
echo -e "\e[1;31m正在安装依赖...\e[0m"
apt install make -y
apt-get install libnuma-dev -y
apt install aptitude -y
aptitude install build-essential -y
aptitude install yasm nasm -y
apt-get install libgmp3-dev -y
apt install pkg-config -y
apt install gnutls-bin -y
aptitude install libaom-dev -y
aptitude install libass-dev -y
aptitude install libbluray-dev -y
aptitude install libfdk-aac-dev -y
aptitude install libmp3lame-dev -y
aptitude install libopencore-amrnb-dev -y
aptitude install libopencore-amrwb-dev -y
aptitude install libopenmpt-dev -y
aptitude install libopus-dev -y
aptitude install libshine-dev -y
aptitude install libsnappy-dev -y
aptitude install libsoxr-dev -y
aptitude install libspeex-dev -y
aptitude install libtheora-dev -y
aptitude install libtwolame-dev -y
aptitude install libvo-amrwbenc-dev -y
aptitude install llibvpx-dev -y
aptitude install libwavpack-dev -y
aptitude install libwebp-dev -y
aptitude install libx264-dev -y
aptitude install libx265-dev -y
aptitude install libxvidcore-dev -y
aptitude install liblzma-dev -y
echo -e "\e[1;31m安装依赖库完成!开始配置安装...(配置时间较长,如没有文字显示,请耐心等待)\e[0m"
cd $HOME/ffmpeg
./configure --prefix=/usr/local --pkg-config-flags=--static --enable-gpl --enable-version3 --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-lzma --enable-zlib --enable-gmp --enable-libvorbis --enable-libvo-amrwbenc --enable-libspeex --enable-libxvid --enable-libaom --enable-libopenmpt --enable-libfdk-aac --enable-nonfree
echo -e "\e[1;31m配置安装完成!开始编译和安装(可能需要较长时间)\e[0m"
cd $HOME/ffmpeg
make
cd $HOME/ffmpeg
make install
cd $HOME/ffmpeg
mv ffmpeg /usr/local/bin/
mv ffprobe /usr/local/bin/
echo -e "\e[1;31m编译和安装完成!\e[0m"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/huifeidemangguomao/yunzai-one-button.git
git@gitee.com:huifeidemangguomao/yunzai-one-button.git
huifeidemangguomao
yunzai-one-button
云崽一键
master

搜索帮助