如何在节省时间的情况下,使用Camerax API向保存的视频添加水印
我正在使用Camerax API方法记录视频并按照文档中的解释保存: https://developer.android.com/training/camerax/video-capture
我尝试了 ffmpeg-android-java 显然需要处理保存的视频,实时添加到保存的帧。
现在,我想以简单而不昂贵的方式在所有保存的视频中添加水印,而无需重新处理视频?
另外,如果没有办法,什么是处理视频以添加水印的最佳和最快的方法?
I am using the CameraX api approach to record the videos and saving them as explained in the documents: https://developer.android.com/training/camerax/video-capture
I tried with ffmpeg-android-java but clearly it needs to process the saved video not adding to the saved frames in real time.
Now, I want to add a watermark to all saved videos in easy and not costly way and without the need to reprocess the video?
Also, if there is no way, what the best and fastest approach to process the video to only add a watermark?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我的建议是,您需要编写一个类似玩家的代码,该代码使用OpenGles绘制视频,以便您可以添加自己的任意水印。或使用交叉编译的FFMEPG动态库(或静态库)添加您自己的过滤器。
My suggestion is that you need to write a player-like code that uses opengles to draw videos so you can add your own arbitrary watermark. Or use the cross-compiled ffmepg dynamic library (or static library) to add your own filters.
我在GitHub上分享了一个跨编译FFMPEG的示例。是实现可以播放视频的播放器。检查一下在这里。
希望您能得到一些帮助。
I shared an example of cross-compiled ffmpeg on github. Is to implement a player that can play video. Check it out here.
I hope you got some help.