I need to encode a sequence of frames with a lossless video codec and play them in a Java app. I don't care about the file size. The output frames should match the input frames exactly. Lossy codecs don't do this even at high bit rates.
None of these well-known lossless video codecs appear to be supported in JMF or FMJ:
- HuffYUV
- CorePNG
- Lagarith
- FFV1
- ...
Do you know of any lossless video codec that is supported in Java?
Other options I've considered:
- animated GIF: is the playback guaranteed to have a constant frame rate like real video codecs?
- load and display the separate frames: how difficult will it be to do this at a constant frame rate and without dropping too many frames?
- Proce55ing: the video playback library requires Quicktime, which isn't available on my platform.
EDIT: I finally decided to settle for JMF's (non-standard) MotionJPEG at highest quality. It's not strictly lossless, but still much better quality than MPEG4.