FFMPEG 安装和使用(centos7)
- 安装扩展源
su -c 'yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-7.noarch.rpm'
- 安装二进制文件
rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
- yum安装
yum -y install ffmpeg ffmpeg-devel
- 查看版本
ffmpeg -version
- 切片
ffmpeg -i 1.mp4 -c:v libx264 -hls_time 60 -hls_list_size 0 -c:a aac -strict -2 -f hls v/list.m3u8
原文地址:https://www.cnblogs.com/wuxiaoshi/p/11768666.html
时间: 2024-08-01 23:53:46