Python 中有给视频加水印的标准方法吗?
Python 中是否有对某种格式的视频加水印的标准方法?
静止图像怎么样?
Is there any standard method of watermarking videos of some format in Python?
And how about still images?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我建议查看 pyffmpeg 或 pymedia,但这已经是最好的了。如果可以的话,尝试找到一种适当利用 ffmpeg 的方法。
对于静态图像,只需使用 Python 图像库 PIL 即可。
I'd suggest checking out pyffmpeg or pymedia, but that's about as good as it gets. Try to find a way to leverage ffmpeg proper if you can.
For still images, simply use PIL, the Python Imaging Library.
如果您正在寻找强大的(付费)服务,我在 Zencoder 上获得了非常好的体验。 python api 模块易于使用并且有很好的文档记录。
If you're looking for a robust (for-pay) service, I've had a very nice experience with Zencoder. The python api module is easy to use and fairly well documented.
Transloadit 提供图像和通过网络服务进行视频转换,效果很好,而且非常便宜。如果您需要大规模执行此操作并且不想购买大量硬件,那么它们就很棒。有人提到了 Zencoder。我没有经验来理解 Transloadit 和 Zencoder 之间的所有权衡。然而,在当前的定价模式中,Transloadit 按 GB 视频收费,Zencoder 按视频分钟收费。如果您的播放量足够大,担心可扩展的定价问题,那么对于我所研究的场景,Transloadit 对于较小/较低分辨率的视频来说更便宜。也许很明显:)
Transloadit provides image & video conversion via web services, works well, and very cheap. If you need to do this on a large scale and don't want to buy a bunch of HW, they are great. Someone mentioned Zencoder. I don't have experience to understand all the tradeoffs between Transloadit and Zencoder. However in their current pricing models, Transloadit charges per GB of video and Zencoder charges per minute of video. If you are doing enough volume to worry about scalable pricing, for the scenarios I've looked at, Transloadit is cheaper for smaller / lower-resolutions videos. Perhaps obviously :)