How can i add watermark to video in android studio with library

淺唱寂寞╮ 提交于 2020-06-29 06:45:36

问题


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.

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.


回答1:


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.

source: how to use latest FFMPEG in android studio project?

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

Integrate FFMpeg (Video Editor) Library using Android Studio Tutorial



来源:https://stackoverflow.com/questions/56750430/how-can-i-add-watermark-to-video-in-android-studio-with-library

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!