From: Chris Hecker <checker@d6.com>
To: oliver@first.in-berlin.de (Oliver Bandel), caml-list@inria.fr
Subject: Re: [Caml-list] MPEG-Lib for OCaml?
Date: Tue, 18 Mar 2003 12:25:26 -0800 [thread overview]
Message-ID: <4.3.2.7.2.20030318122106.0425ce80@localhost> (raw)
In-Reply-To: <20030318092639.GA598@first.in-berlin.de>
>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
prev parent reply other threads:[~2003-03-18 20:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-18 9:26 Oliver Bandel
2003-03-18 20:25 ` Chris Hecker [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4.3.2.7.2.20030318122106.0425ce80@localhost \
--to=checker@d6.com \
--cc=caml-list@inria.fr \
--cc=oliver@first.in-berlin.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox