Output object writing images to a video file using MEncoder. MEncoder is started and a pipe is opened for writing images.
Note that there are still countries with laws restricting the distribution of free video compression software for some codecs.

| MEncoderOutput | Output object writing images to a video file using MEncoder. |
| Functions | |
| MEncoderOutput.new | Run mencoder and connect to it using a pipe. |
| close | Close the video encoder. |
| inspect | Return string with information about this object. |
| write | Write a video frame. |
| status? | Indicates whether the video is still open for writing. |
def MEncoderOutput.new( mrl, fps = 25, params = '-ovc lavc -lavcopts vcodec=msmpeg4:vhq:vbitrate=1000:keyint=100 -cache 8192' )
Run mencoder and connect to it using a pipe. The default list of command line parameters will select FFmpeg’s lossless video codec and will use AVI as a container format.
For the best result in terms of rate/distortion you should record the video using the lossless ffv1 codec and then later use MEncoder to do multi pass encoding (see description of “vpass=<1-3>” in the MEncoder man page). The following string of command line parameters can be used to perform ffv1 compression: “-ovc lavc -lavcopts vcodec=ffv1 -cache 8192”
| mrl | File to save to |
| fps | frame rate for video file |
| params | command line parameters specifying container format and codec |
Run mencoder and connect to it using a pipe.
def MEncoderOutput.new( mrl, fps = 25, params = '-ovc lavc -lavcopts vcodec=msmpeg4:vhq:vbitrate=1000:keyint=100 -cache 8192' )
Close the video encoder.
def close
Return string with information about this object.
def inspect
Write a video frame.
def write( image )
Indicates whether the video is still open for writing.
def status?