Back to FabImage Library website

You are here: Start » Function Reference » Image » Image IO » OpenInputVideoStream

OpenInputVideoStream


Header: FIL.h
Namespace: fil
Module: FoundationLite

Opens and creates a video stream from a file.

Syntax

C++
C#
 
void fil::OpenInputVideoStream
(
	const ftl::File& inFile,
	int inStartFrame,
	fil::InputVideoStream& outInputVideoStream,
	float& outFPS,
	int& outMaxFrame
)

Parameters

Name Type Default Description
Input value
inFile const File& Video file
Input value
inStartFrame int Number of first frame to fetch.
Output value
outInputVideoStream InputVideoStream& Initialized input video stream
Output value
outFPS float& Frames per second
Output value
outMaxFrame int& Last frame number

Errors

List of possible exceptions:

Error type Description
DomainError Function not available under the linux.
DomainError Negative start frame in OpenInputVideoStream.
DomainError Start frame too high for current video in OpenInputVideoStream.
RuntimeError Unexpected error in OpenInputVideoStream.