FFMPEG不能同时去LOGO和加字幕
dwing吧
全部回复
仅看楼主
level 11
asillychild 楼主
ffmpeg -i 121015.RMVB -ss 10 -t 15 -vf "delogo=480:10:160:80:1; subtitles=1.srt" -b:v 720k -s 1024x768 -b:a 96k aaa.mp4 -y
ffmpeg,LOGO,字幕,源视频为同一目录.
提示:
Simple filtergraph 'delogo=480:10:160:80:1; subtitles=1.srt' was expected to have exactly 1 input and 1 output. However, it had >1 input(s) and >1 output(s). Please adjust, or use a complex filtergraph (-filter_complex) instead.
Error opening filters!
2018年11月02日 07点11分 1
level 6
分号改成逗号
2018年11月02日 08点11分 2
神奇的居然成功了,但是我还是想贪心点,如果同时去标,加标,加字幕,三个一起来怎样操作?
2018年11月02日 09点11分
@asillychild 给你个例子ffmpeg -y -i input.mp4 -c:v libx264 -vf "delogo=xxx,fifo[in0];movie='logo.png'[mark0];[in0][mark0]overlay=100:100,subtitles=1.srt" output.mp4
2018年11月02日 10点11分
@asillychild 更复杂的功能,还是建议用-filter_complex,用标准的写法来实现,出错了也比较好修正。filter命令的写法就看这页前4章http://www.ffmpeg.org/ffmpeg-filters.html
2018年11月02日 10点11分
@LuckyDisc fifo是什么,logo.png为什么要加单引号?还有是不是视频得用分号,视频的音频之间要用逗号。还有最后那个100:100是什么意思?其实我很多都不懂的。
2018年11月02日 10点11分
level 11
asillychild 楼主
vf 和filter_compkexd区别大吗
2018年11月02日 13点11分 3
level 1
2楼的回答正解
2019年04月01日 13点04分 4
1