I have an application that captures analog measurements sever开发者_如何学Cal 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.
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.
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.
精彩评论