Android 视频水印,无服务器? [英] Android Video Watermark, W/O Server?

查看:16
本文介绍了Android 视频水印,无服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找一种在视频上添加水印的方法,无论是图像还是文本.诸如XYZ 的财产"之类的内容,或者自视频开始录制2:45"以来已经过去了多少秒.在右下角.

I have been looking for a way to add a watermark, be it image or text, on a video. Something like "Property of XYZ", or how many seconds it's been since the video started recording "2:45." on the bottom right.

到目前为止,我只找到了涉及使用 FFMPEG 服务器的解决方案.这不是我想要的,我想知道是否存在更简单的解决方案.

So far, I have only found solutions that involve using FFMPEG servers. That is not what I was looking for, and I was wondering if a simpler solution exists.

推荐答案

您可以查看 VideoLAN 播放器.具有 GPL 许可证的开源播放器可以呈现几乎所有类型的视频文件.您可以拥有源代码并根据您的要求进行修改.在这种情况下,您必须在预定义的时间段内在视频上添加一个图层,或者在整个视频渲染期间将水印保留为开启".

You can check the VideoLAN player. An Open Source player available with GPL License renders almost all type of video files. You can have the source code and modify as per your requirement. In this case you have to add a layer over the video for predefined time period or just leave the watermark 'ON' for entire video rendering period.

项目代码可在 GIT 获得.请参阅 Mobile VLC 以获得更好的视觉效果.

Project codes are available at GIT. See Mobile VLC for better vision on this.

对于屏幕录制,Android 提供了 Kitkat 及以上版本 (>4.4) 的方法.您可以通过 Android SDK 中包含的 adb 工具使用命令 adb shell screenrecord 访问屏幕录制.

For screen recording Android has provided methods for version Kitkat and above (>4.4). You can access screen recording through the adb tool included in the Android SDK, using the command adb shell screenrecord.

示例代码:(默认以 4Mbps 记录)

Sample code: (by default it records at 4Mbps)

adb shell screenrecord --bit-rate 8000000 /sdcard/yourfilename.mp4

您应该会对此感兴趣.

This shall be of interest to you.

这篇关于Android 视频水印,无服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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