我正在使用代码在上传的视频中为载波视频添加水印:
process encode_video: [:mp4, resolution: "640x480", watermark: {
path: "app/assets/images/logo-nike.jpg",
position: :bottom_right,
pixels_from_edge: 10
}]
使用此代码时,出现错误:
(简而言之)
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[AVFilterGraph @ 0x55c8909bf180] No such filter: '"movie'
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0
Conversion failed!
):
我的ffmpeg版本是4.1.1
我需要安装ffmpeg缺少的东西吗?我环顾四周,发现使用此代码的其他人都没有问题(尽管大多数文章都已经有多年历史了)
我发现了这个:No such filter: 'drawtext'
但是不是同一回事吗?