简体   繁体   English

C#中的H.264(或类似)编码器?

[英]H.264 (or similar) encoder in C#?

Does anyone know of an open source H.264 encoder in C# (or any other managed language)? 有谁知道C#(或任何其他托管语言)的开源H.264编码器? I might be able to make do with a python implementation as well. 我也许可以使用python实现。

The libraries that I've found (eg x264) are written in pretty low level c (procedural with lots of macros) and assembly. 我发现的库(例如x264)是用非常低级别的c(用大量宏程序编写)和汇编编写的。 Tweaking them is turning out to be far more complex than I'd thought. 调整它们的结果远比我想象的要复杂得多。 My project has no concern for performance or compatibility. 我的项目不关心性能或兼容性。 We just want to test how some ideas will impact the perception of the outputted video. 我们只想测试一些想法会如何影响输出视频的感知。

We'd be willing to pay for or license the code if need be. 如果需要,我们愿意为代码付费或许可。

Thanks in advance! 提前致谢!

Edit - Some important points: 编辑 - 一些要点:

  1. I don't care about performance (eg real time encoding) at all. 我根本不关心性能(例如实时编码)。 It could take 10 days to encode for all I care. 编码所有我关心可能需要10天。
  2. A wrapper isn't helpful since I want to actually modify the encoder itself. 包装器没有帮助,因为我想实际修改编码器本身。

No one would likely spend the time to develop the codec in those languages because they would be hopelessly slow for actual encoding. 没有人会花时间在这些语言中开发编解码器,因为对于实际编码来说它们会很慢。 However, the reference implementation should be less optimized and more useful to you. 但是,参考实现应该不那么优化并且对您更有用。 It is still in C. 它还在C.

http://iphome.hhi.de/suehring/tml/download/ http://iphome.hhi.de/suehring/tml/download/

I don't think there is already such a port you need - you'll find wrappers for any langugae but a pure implementation does not have the critical mass. 我不认为你需要这样一个端口 - 你会找到任何langugae的包装器,但纯粹的实现没有临界质量。 I'd recommend to port it yourself, document your port well and then start tweakening it. 我建议你自己移植它,记录你的端口,然后开始调整它。

如果你想将一些编码器移植到C#,这应该更容易开始 - 大约8k LOC: http//sourceforge.net/projects/fevh264/

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

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