English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] MPEG-Lib for OCaml?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-03-18 (20:29)
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).


  * mpeg.ml - a really cheesy interface to the really crappy berkeley mpeg 
  * 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