android - 无法在视频上使用 FFmpeg 绘制文本
问题描述
我正在尝试使用 FFmpeg 使用“ ffmpeg-android-java ”在视频上叠加文本。我使用的命令是这样的:
command = "ffmpeg -i /storage/emulated/0/GsrVideo/testvideo.mp4 -vf drawtext=\"font=/storage/emulated/0/font/Pacifico.ttf:fontsize=20:fontcolor=red:x=10:y=10:text='hello'\" /storage/emulated/0/GsrVideo/editedVideo.mp4"
但它给出了错误提示 -使用 args ""font=/storage/emulated/0/font/Pacifico.ttf:fontsize=20:fontcolor=red:x=10:y=10:text= 初始化过滤器 'drawtext' 时出错'你好'",打开过滤器时出错!
请任何人都可以帮助我指出过滤器中的问题。
解决方案
推荐阅读
- c++ - 将十进制转换为二进制结果
- windows - 将多个文件从单个源复制到不同的目标,(递归)
- webpack - Webpack 5 和 mini-css-extract-plugin 失败并显示“TypeError: wellKnownSymbol is not a function”
- django - /search/处的Django AssertionError
- reactjs - NextJS 减少共享 JS 的首次加载
- python - 为什么 f-string 文字在这里不起作用,而 %()s 格式可以?
- javascript - 使用另一个 JSON 从 JSON 中检索数据
- javascript - 过滤搜索栏中的项目 Vue Composition API
- vue.js - [Vue 警告]:创建钩子时出错:“TypeError:$ 不是函数”
- python - 尝试使用 dbc 文件解码 CAN 消息时出现 KeyError:392?