简体   繁体   English

在andorid中的视频上添加图像水印的最快方法?

[英]quickest way to add image watermark on video in andorid?

  1. I have use ffmpeg and mp4parser to add image watermark on video.我使用 ffmpeg 和 mp4parser 在视频上添加图像水印。 both works when video size is small like less than 5MB to 7Mb but when it comes to large video size(anything above than 7MB or so..) it fails and it doesn't not work.当视频大小小于 5MB 到 7Mb 时,两者都可以工作,但是当视频大小(大于 7MB 左右)时,它会失败并且不起作用。

what are the resources that helps to adding watermark on video quickly.有哪些资源可以帮助快速在视频上添加水印。 if you have any useful resources that please let me know?如果您有任何有用的资源,请告诉我?

It depends on what exactly you need.这取决于你到底需要什么。

If the watermark is just needed when the video is viewed on the android device, the easiest and quickest way is to overlay the image with a transparent background over the video view.如果在 android 设备上观看视频时只需要水印,最简单快捷的方法是在视频视图上覆盖透明背景的图像。 You will need to think about fullscreen vs inline and portrait vs landscape to ensure it lines up as you want.您将需要考虑全屏与内联以及纵向与横向,以确保它按照您的意愿排列。

If you want to watermark the video itself, so that the watermark is included if the video is copied or sent elsewhere, then ffmpeg is likely as fast as other solutions on the device itself.如果您想为视频本身添加水印,以便在视频被复制或发送到其他地方时包含水印,那么 ffmpeg 可能与设备本身的其他解决方案一样快。 If you are able to send the video to a server and have the watermark applied there you will have the ability to use much more powerful compute resource.如果您能够将视频发送到服务器并在那里应用水印,您将能够使用更强大的计算资源。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM