如何在节省时间的情况下,使用Camerax API向保存的视频添加水印

发布于 2025-02-10 07:53:59 字数 498 浏览 2 评论 0原文

我正在使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

梦醒灬来后我 2025-02-17 07:53:59

我的建议是,您需要编写一个类似玩家的代码,该代码使用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.

白龙吟 2025-02-17 07:53:59

我在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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文