For version 0.2.0
last update: Tue Jan 22 2008
http://www.fixedpoint.jp/gauche-ffmpeg/
Warning: still unstable.
Each instance of the class has a pointer to its own AVCodecContext.
Close the <avcodec-context> `c'. GC will do that finally even if you leave it open.
Return the libavcodec's version, e.g. "51.27.0".
(For audio only) Return the bit rate of `c'.
(For audio only) Return the sample rate of `c'.
(For video only) Return the width of `c'.
(For video only) Return the height of `c'.
Return its codec name as a string, or #f if failed.
Each instance of the class has a pointer to its own AVFormatContext.
Return the libavformat's version, e.g. "51.6.0".
Open and return a <avformat-context> of the av file of path `path', or #f if falied.
Close a <avformat-context> `c'. GC will do that after all if you do not care.
Return the number of seconds in duration of `c'
Return the plain name of the media file of `c', or #f if failed.
Call `proc' with a <avformat-context>, which newly open the file of path `path', as a single argument, and return the value `proc' does in case of success.
The <avformat-context> will be closed before the procedure returns with an error or without.
Return the libavdevice's version, e.g. "52.0.0".
The first form opens and returns a audio <avcodec-context> from `c'. The second one does a video <avcodec-context>. And the last simultaneously returns both values i.e. audio and video codec contexts in that order.
Any of them returns #f if failed.
Return two numbers: the numerator and denominator of the frame rate of video with `fc' and `cc'.
Given `cc' must be a video context.
Note: the mothod will be not idempotent (currently at least) since it may occur a side effect for `fc'.
Call `proc' with the following two arguments: an audio <avcodec-context> and video <avcodec-context>, which are newly opened from `fc'.
Return the value `proc' does in case of success. The <avcodec-context>s will be closed before the procedure returns with an error or without.