用于编码模拟图形信息/AVI 的最佳视频编解码器
我有一个每秒捕获几次模拟测量的应用程序 - 让您了解它的外观 - 这是一个示例框架(显然曲线随着测量变化而变化):
替代文本 http://img829.imageshack.us/img829/3692/curve.png
我需要这个应用程序来记录这些帧转换为 AVI 或任何其他无需自定义编解码器即可在 Windows 上播放的视频文件。
我想过只创建一个巨大的动画 GIF 文件,但倒带/暂停功能是必须的。 FLV也不行。
是否有任何编解码器能够满足以下条件:
- 最适合此类视频(3-4 种颜色,无抖动,帧与帧之间的变化最小,大约 4-8 fps)
- 可在 Windows Media Player 中轻松使用,
- 可作为库使用对于linux对文件进行编码
任何建议将不胜感激。
I have an application that captures analog measurements several times a second - to give you an idea how it looks like - here is a sample frame (obviously the curve changes as the measurements chage):
alt text http://img829.imageshack.us/img829/3692/curve.png
I need this application to record these frames into an AVI or any other video file that would be playable on windows without a custom codec.
I've thought of just creating a huge animated GIF file but rewind/pause capability is a must. FLV also will not do.
Is there any codec out there that would be:
- best suited to this kind of video (3-4 colors with no dithering, minimal changes frame-to-frame, about 4-8 fps)
- readily available in Windows Media Player
- available as a library for linux to encode the files
Any advice would be much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我的第一个想法是:您可能遇到需求问题。
如果一项要求是“在 Windows Media Player 中随时可用”,那么除非您在 Windows 7 上使用 WMP(最终在 Windows 7 中添加了新的编解码器),否则确实会大大缩小范围。 这是 XP 支持的编解码器列表(Vista 大致相同)。此外,容器格式还存在一些限制,这可能会进一步限制 XP 和 Vista 上的 WMP 实际上只能支持 avi 和 asf 容器。
在 Windows 7 上,您还可以访问 H264 和 mp4 容器。
假设您使用的是 Windows 7,那么最好的选择肯定是 h264。您可以使用 x264,它无疑是当前可用的最佳编码器实现(它将轻松处理您指定的视频类型),将其混合到 MP4 容器中,然后您就拥有了在所有主要操作系统上广泛兼容的文件(Windows/*nix/OSX)。
如果您不使用 Windows 7,那么我认为您最好的选择是 AVI 容器中的 MPEG-4。
My first thought is: you might have a requirements problem.
If one requirement is "readily available in Windows Media Player," that really narrows the field quite a bit unless you're using WMP on Windows 7 (new codecs were finally added in Windows 7). Here's a list of codecs supported in XP (Vista is roughly the same). Also, there are some limitations on container formats that may further restrict that--WMP on XP and Vista really only feasibly supports avi and asf containers.
On Windows 7, you also get access to H264, and mp4 containers.
Assuming you're using Windows 7, your best option is definitely h264. You can use x264, which is hands-down the best encoder implementation currently available (it will easily handle the type of video you specified), mux it into an MP4 container, and then you have files that are broadly compatible across all major operating systems (Windows/*nix/OSX).
If you're not using Windows 7, then I'd say your best option is MPEG-4 in an AVI container.
现在才看到这个问题。对于 Windows 上只有小调色板的图像,最佳解决方案是 WMV 屏幕编解码器(最初是为屏幕捕获而创建的)。
使用 WMV 编码器 SDK,您可以轻松地从图像集合创建 wmv 文件。
Just seen this question now. The best solution for images with only a small color pallet on windows is the WMV Screen Codec (original created for screen capture).
With the WMV Encoder SDK you can easily create a wmv file from a collection of images.