如何在带有库的 android studio 中为视频添加水印 [英] How can i add watermark to video in android studio with library

查看:72
本文介绍了如何在带有库的 android studio 中为视频添加水印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为视频添加水印.这样当用户从 android studio 的图库中选择视频时.然后水印将像这样自动添加到视频中.请检查我想如何为视频添加水印徽标的图像,并根据视频自动调整徽标大小.

I want to add a watermark to a video. so that when user select a video from gallery in the android studio. then watermark will be added to the video automatically like this. Please check the image that how i want to add watermark logo to a video with auto adjust logo size according to the video.

或者当用户下载视频时,将在视频中添加水印.我搜索了很多,但没有找到任何可以为视频添加水印的库.我在 FFMPEG 中找到了一些东西,但在 android studio 中不起作用.所以请给我一个库或一种给视频添加水印的方法.

Or when user will download a video then a watermark will be added to the videos. i have searched a lot but not found any library for adding watermark to a video. I have found something with FFMPEG but not working in android studio. so please provide me a library or a way to add watermark to a video.

推荐答案

有一个非常简单的解决方案,有一个适用于 android 的预编译库,如下 https://github.com/WritingMinds/ffmpeg-android-java 只需将其作为 gradle 项目包含在您的代码中,并根据他们的文档添加一些方法和你已经完成了 android 中的 FFMPEG 命令.这个库不是很更新,有一些缺失的功能,但仍然可以很好地用于许多简单的任务.

There's a very easy solution for this, There's a precompiled library for android, as below https://github.com/WritingMinds/ffmpeg-android-java Simply include this as a gradle project in your code and add few methods as per their documentation and you are done with FFMPEG commands in android. This library is not very updated and have some missing features but still its good to use for many simple tasks.

来源:如何在android studio项目中使用最新的FFMPEG?

您可以在以下链接中找到有关使用此库的教程:

you can find a tutorial about using this library at the following link:

使用 Android Studio 教程集成 FFMpeg(视频编辑器)库

这篇关于如何在带有库的 android studio 中为视频添加水印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆