适用于 DirectShow 实时视频压缩的编解码器
有人可以推荐一个好的实时视频压缩编解码器吗?以下是关键要求列表:
- 必须表示为 DirectShow 视频压缩过滤器
- 免版税
- 良好的质量/比特率输出,在相对较低的分辨率(最大 640x480)下可与 DivX 相媲美
- 快速且资源高效的实时压缩
- 与一些流行的兼容性格式(如 MPEG-4)以在不同的视频播放器中得到广泛支持
我提到了 DivX,我认为它是一个非常好的编解码器,但如果我理解正确的话,它不是免版税的,如果你想要,你需要支付 DivX Inc将他们的编解码器集成到您的软件中。
Can anybody suggest a good codec for real-time video compression? Here is a list of key requirements:
- Must be represented as DirectShow video compression filter
- Royalty-free
- Good quality/bitrate output comparable to the DivX on relatively low resolutions (640x480 max)
- Fast and resources-efficient for real-time compression
- Compatibility with some popular format (like MPEG-4) for wide support in different video players
I mentioned DivX and I think it is a very good codec, but if I understand correctly it is not royalty-free and you need to pay DivX Inc if you want to integrate their codec into your software.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
大多数编解码器在 directshow 下开箱即用,因此这应该不是问题。
但大多数“当前”编解码器都不是免版税的。再次重复一遍,即使您使用 x264,h264 也不免版税。您必须为编码器支付一定的费用。 Xvid 也同样如此。唯一真正免版税的编解码器是 VP4 (OggTheora) 和 VP8 (WebM)。除了狂热的 PC 视频用户之外,两者都没有得到太多支持。
另一方面,实时压缩并不是当前一代编解码器的目标,特别是如果您提供正确的参数,x264 会针对快速、低延迟编码进行优化。您必须检查您的目标平台是否为使用此编解码器进行实时编码提供足够的性能。
注意:有许多供应商提供了许多商业 h264/MPEG4/MPEG2 编解码器实现。也许其中之一适合您的需求。
Most codecs work out of the box under directshow, so that should not be a problem.
But most 'current' codecs are not royalty free. Too repeat this, h264 even when you use x264 is not royalty free. You have to pay for the encoder a certain amount. In this vain Xvid is in the same boat. The only codecs which are really royalty free are VP4 (OggTheora) and VP8 (WebM). Neither enjoys much support outside enthusiast PC video users.
Real-Time compression is not a target of current generation of codecs, on the other hand, especially x264 was optimized for fast, low-latency encoding if you supply the right parameters. You have to check, if your target platform provides enough performance for real-time encoding with this codec.
NB: There are many commercial h264/MPEG4/MPEG2 codec implementations by several vendors. Maybe one of them fits your needs.
Afaik,ffdshow 包含一个 MJPEG 编码器,它可能非常适合您的需求。如果您需要更好的压缩比,可以转换为 h264(例如使用 x264)作为离线任务(或者你有一台非常强大的计算机,可以直接编码为 h264)。
Afaik, ffdshow includes a MJPEG encoder, which might be a good fit for you needs. If you need better compression ratio, you can convert to h264 (e.g. using x264) as an offline task (or you have a very capable computer which can encode to h264 directly).