C# 中的 H.264(或类似)编码器?
有谁知道 C#(或任何其他托管语言)的开源 H.264 编码器?我也许也可以用 python 实现。
我发现的库(例如x264)是用相当低级的c(带有大量宏的程序)和汇编语言编写的。事实证明,调整它们比我想象的要复杂得多。我的项目不关心性能或兼容性。我们只是想测试一些想法将如何影响输出视频的感知。
如果需要,我们愿意支付或许可代码。
提前致谢!
编辑 - 一些重要的观点:
- 我根本不关心性能(例如实时编码)。对于我关心的所有内容,编码可能需要 10 天。
- 包装器没有帮助,因为我想实际修改编码器本身。
Does anyone know of an open source H.264 encoder in C# (or any other managed language)? I might be able to make do with a python implementation as well.
The libraries that I’ve found (e.g. x264) are written in pretty low level c (procedural with lots of macros) and assembly. 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:
- I don't care about performance (e.g. real time encoding) at all. It could take 10 days to encode for all I care.
- A wrapper isn't helpful since I want to actually modify the encoder itself.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
没有人可能会花时间用这些语言开发编解码器,因为它们对于实际编码来说会非常慢。但是,参考实现应该优化程度较低,但对您来说更有用。它仍然在 C 中。
http://iphome.hhi.de/suehring/tml/download/
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.
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. I'd recommend to port it yourself, document your port well and then start tweakening it.
如果你想将一些编码器移植到 C#,这应该更容易开始 - 大约 8k LOC: http: //sourceforge.net/projects/fevh264/
If you'd want to port some encoder to C#, this should be easier to start with - about 8k LOC: http://sourceforge.net/projects/fevh264/
http://www.ffmpeg-csharp.com/ 怎么样?
How about http://www.ffmpeg-csharp.com/?