[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Chris Hecker <checker@d...> |
| Subject: | Re: [Caml-list] MPEG-Lib for OCaml? |
>I only have found very general papers on mpeg-video >processing, but no file-format-specification. >a) Are there any libs for OCaml, reading in video-data? >b) ( The off-topic-part of this mail ;-) ) > Are there any papers with a detailed description > of the file format? I have a really crappy hookup to the Berkeley MPEG library that you're welcome to use. It doesn't support sound, or fast-forward, or anything. But, it'll give you a bitmap of every frame, so if you just need that then it works okay. The, uh, "interface" is below (Image.t is just a bigarray wrapper you're welcome to have as well). Chris (* * mpeg.ml - a really cheesy interface to the really crappy berkeley mpeg library * 2003/2/10 checker * @todo this code is not shippable, the mpeg library is totally flakey and unstable * *) type t external create : string -> t = "mpeg_create" external get_size : t -> int * int = "mpeg_get_size" external get_next_frame : t -> Image.t -> bool = "mpeg_get_next_frame" external is_destroyed : t -> bool = "mpeg_is_destroyed" external destroy : t -> unit = "mpeg_destroy" ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners