Home > C: Programming > How To Proceed > Saving Images and Videos > | History back Previous chapter Next chapter Print |
Capturing AVIs |
uEye Camera Manual Version 3.80
Capturing AVIs
The functions of the uEye_tools.dll enable you to save images captured with the uEye as sequences to an AVI file. In order to reduce the file size, the single frames are stored in the AVI container using an adjustable JPEG compression. It is possible to extract single frames from the AVI file.
AVI Capture Workflow
Initializes the uEye AVI interface. |
|
Terminates and closes the uEye AVI interface. |
|
Opens an AVI file for capturing. |
|
Closes an AVI file. |
|
Returns the name of the current AVI file. |
The following settings should also be done prior to starting the recording.
Sets the frame rate of the AVI video. |
|
Sets the compression level / image quality of the AVI video. |
|
Sets the size and offset of the input image memory. |
Once the AVI file has been created, captured images are placed in a buffer. Then, the images are compressed and added to the AVI file which is stored on the hard disk. These operations are not performed in the same thread as the capturing process. If you capture more images while a compression or write operation is in progress, the new images will be discarded.
Starts AVI recording. |
|
Adds a compressed image to the AVI file. |
|
Stops AVI recording. |
With these functions, you can query additional information on the ongoing recording.
Returns the size of the current AVI file. |
|
Returns the number of frames in the current AVI file. |
|
Returns the number of frames that have been discarded so far. |
|
Resets the counters for discarded and saved frames to 0. |
Events can be used to get signalled when a frame was added.
Disables a uEye AVI event. |
|
Enables a uEye AVI-Event. |
|
Turns off uEye AVI event handling. |
|
Turns on uEye AVI event handling. |
Supported color Formats
The supported input color formats are RGB32, RGB24, Y8 and raw Bayer. The output file will always be in RGB24 format, regardless of the input data format. You can adjust the size of the images to be stored by defining a freely selectable area of interest (AOI).
Capture Speed
The possible speed of capture depends on the selected color format, the image size and the compression level of the AVI file as well as the PC performance.
Playback in External Applications
AVI files you have captured using the uEye_tools.dll can also be played back in external applications, such as Windows Media Player. To do this, you need to install the uEye MJPEG codec on your system:
• | Open the uEye installation directory (default: C:\Program Files\IDS\uEye\Program). |
• | Right-click the IdsMjpeg.inf file. |
• | Select "Install". The codec is installed automatically. |
In player or recording software, the codec will show up as "Intermedia-X MJPEG Codec".
![]() Figure 145: Flowchart - Capturing AVIs with the uEye |