赞
踩
系统:Fedora 39
ffmpeg: 6.0-11.fc39
运行以下命令
ffmpeg -i aa.mp4 -vf "subtitles=aa.srt:force_style='FontName=msyh,FontSize=30,PrimaryColor=&H0000FFFF,OutlineColor=&H00222222,Outline=1'" -c:a copy output.mp4
报错:
[libopenh264 @ 0x564b8e6449c0] libopenh264.so.7: cannot open shared object file: No such file or directory: libopenh264.so.7 is missing, openh264 support will be disabled
安装openh264
sudo dnf config-manager --set-enabled fedora-cisco-openh264
dnf provides */libopenh264.so.7
Last metadata expiration check: 0:00:10 ago on Tue 23 Apr 2024 12:01:41 PM CST.
openh264-2.4.0-2.fc39.x86_64 : H.264 codec library
Repo : fedora-cisco-openh264
Matched from:
Filename : /usr/lib64/libopenh264.so.7
dnf install openh264
重新执行ffmpeg命令,报错
......
Duration: 00:17:43.80, start: 0.000000, bitrate: 461 kb/s
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。