PySpin.SpinVideo¶
- class SpinVideo¶
Provides the functionality for the user to record images to an AVI/MP4 file.
- Append(self, pImage)¶
Parameters¶
pImage: Spinnaker::ImagePtr
Append an image to the video file. When using the H264 encoder, several images are required to be appended before the encoder is able to output the first encoded frame.
- param pImage:
The image to append.
- Close(self)¶
Close the video file. This function will throw an exception when the H264 encoder was unable to output any encoded frames, in which case the output video should be considered invalid.
See: Open()
Append(ImagePtr pImage)
- Open(self, pFileName, pOption)¶
Parameters¶
pFileName: char const * pOption: Spinnaker::Video::AVIOption &
Open(self, pFileName, pOption)
Parameters¶
pFileName: char const * pOption: Spinnaker::Video::MJPGOption &
Open(self, pFileName, pOption)
Parameters¶
pFileName: char const * pOption: Spinnaker::Video::H264Option &
Open an H264 MP4 video file in preparation for writing Images to disk. The size of MP4 files is limited to 2GB. The filenames are automatically generated using the filename specified.
- param pFileName:
The filename of the MP4 video file.
- param pOption:
H264 options to apply to the MP4 video file.
- See:
Close()
H264Option
- SetMaximumFileSize(self, size)¶
Parameters¶
size: unsigned int
Set the maximum file size (in megabytes) of a AVI/MP4 file. A new video file is created automatically when file size limit is reached. Setting a maximum size of 0 indicates no limit on file size.
Note that this size serves only as a hint and can still be slightly exceeded in some cases after the video trailer is written.
- param size:
The maximum video file size in MB.
- See:
Append(ImagePtr pImage)