由于OBS Studio缺少视觉指示器来显示视频的进展情况(以及何时需要前进到下一个场景),我想知道是否有命令行选项(或解决方案)将FFMPEG转换为重新编码视频,并在视频底部显示进度条,以显示到目前为止视频已播放多长时间。
有这样的功能吗?
答案 0 :(得分:1)
这是一个使用动画overlay的简单的3秒示例:
ffmpeg -i input.mp4 -filter_complex "color=c=red:s=1280x10[bar];[0][bar]overlay=-w+(w/10)*t:H-h:shortest=1" -c:a copy output.mp4
您将需要更改的内容:
在彩色滤光片中,我以1280
为例来匹配input.mp4
的宽度。您可以使用ffprobe
to get the width或scale2ref过滤器调整大小以匹配input.mp4
。
在覆盖过滤器中,我以10
为例来举例说明input.mp4
的总持续时间(以秒为单位)。您可以使用ffprobe
to get the duration。