以编程方式将图片嵌入视频中
我正在尝试找出在将用户上传的视频发送到 YouTube 频道之前以编程方式将徽标嵌入到视频中的最佳方法。我想在添加最少的工件的情况下完成此操作。这些文件将上传到服务器,我可以通过命令行和 PHP 访问它。它将位于共享主机上,我预计流量一开始不会很高。
我目前的想法是使用 ffmpeg,但是我不确定它的通用性(有大量的格式)。我认为以高比特率对其进行编码,以最大限度地减少添加的伪影,然后上传到油管。
还有其他人必须以编程方式在 YouTube 视频上添加徽标吗?什么对你有效?
I'm trying to figure out the best method to programmatically embed a logo onto videos uploaded from users before they are sent to a youtube channel. I'd like to do this with minimal artifacts added. The files will be uploaded to a server where I'll have both command-line and PHP access to it. It will be on a shared host, and I expect that the traffic won't be high to start.
My current thought is to use ffmpeg, however I wasn't sure how versatile that would be (with the tons of formats out there). I figured encode it at a high bitrate to minimize artifacts added and then upload to you tube.
Has anyone else programmatically had to get a logo onto youtube videos? What worked well for you?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
ffmpeg 显然有一个用于此目的的插件。然而,当我总体上研究转码时,我认为避免所有神秘的视频排列并避免处理长时间运行的进程带来的额外麻烦会更有趣。所以我决定通过一项服务传输我的视频。 Encoding.com 的 API 似乎支持徽标。
ffmpeg apparently has a plugin for this. However when I was looking into transcoding in general I decided it would be more fun to avoid all the arcane video permutations, and avoid the extra aggravation of dealing with long running processes. So I decided to pipe my videos through a service. Encoding.com's API appears to support logos.