视频编码(转码、格式转换等)性能要素

发布于 2024-11-08 14:48:11 字数 156 浏览 7 评论 0原文

我一直在致力于一个项目,允许将任何视频批量编码为任何其他格式, 到目前为止,我一直在寻找我最熟悉的API,但后来我想到视频编码可能是一项繁重的任务,最好使用语言(platofrm)或具有最高性能的API,例如编码使用最适合多CPU作业调度的语言的视频比仅模拟它的语言等更好。对此有什么意见或建议吗?

I have been working on a project to allow for batch encoding of any video to any other format,
up to now I have been looking for API that I am most comfortable with but then it occurred to me that video encoding can be heavy task and it might be better to use Language(platofrm) or API that has the highest performance, for instance encoding video in a language that doest best multi-cpu job scheduling is better than on ones that only simulate it and etc. Any comments or suggestions on this ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

天涯沦落人 2024-11-15 14:48:11

你有两条不同的路线去这里。你可以自己完成这一切,

DIY方法

  • 如果你想做批量编码,你需要强大的机器。在云中旋转一些东西。
  • 设置开源库。 ffmpeg 是一个好的开始。它可以处理多种格式,但不是所有格式。
  • 进行转码/格式转换。
  • 提示:从命令行工具开始,然后使用 ffmpeg 提供的“API”。 “API”方法的学习曲线相当陡峭。

使用编码 API

  • 使用云编码 API 提供商(Google 有很多)。
  • 他们负责所有的后台魔法,您只需设置一个配置即可开始。
  • 它们使用起来超级简单。例如,查看这个简单编码 API
  • 同时,它们为您提供了很多灵活性,并且旨在处理所有奇怪的输入/输出格式组合。
  • 当然,这要花费一些钱。

结论

如果您不介意把手“弄脏”,并且有时间/耐心,请采用 DIY 方法。这是一个非常陡峭的学习曲线,但值得。最后你就会拥有技能。但如果这是您部署用于商业用途的东西,我建议您不要采用这种方法。相反,寻找云编码 API 提供商并开始使用它们。那里有很多,选择你喜欢的。这样您就可以专注于视频编码问题而不是其他问题。

全面披露:我在 Bitmovin 工作,但这并不影响我的回答。

You have two different routes to go here. You could do it all on your own,

DIY Approach

  • If you want to do batch encoding, you need powerful machines. Spin up something in the cloud.
  • Setup open source libraries. ffmpeg is a good start. It can handle many, but not all, kinds of formats.
  • Do the transcodings/format conversions.
  • Tip: Start with the command-line tool, and then go with the "API" offered by ffmpeg. The learning curve for the "API" approach is pretty steep.

Use Encoding APIs

  • Use cloud encoding API providers (there are many google'em).
  • They take care of all the background magic, and you just set up a configuration and go.
  • They are super simple to use. For example, check out this simple encoding api.
  • At the same time, they gave you lots of flexibility and are built to handle all the weird input/output format combinations.
  • Of course, this costs some money.

Conclusion

If you don't mind getting your hands "dirty", have time/patience to spare, go with the DIY approach. It's a very steep learning curve, but worth it. You will have skills at the end. But if this is something you are deploying for commercial use, I would advise against this approach. Rather, look for the cloud encoding API providers and start using them. There are many out there, pick the one you like. That way you can focus on the video encoding problems rather than others.

Full Disclosure: I work at Bitmovin, but that does not influence my answer.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文