InputStream

Video streaming utility.

Constructors

this
this()
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

close
void close()

Close the video stream.

dumpFormat
void dumpFormat()
Undocumented in source. Be warned that the author may not have intended to support it.
open
bool open(string path, InputStreamType type)

Open the video stream.

readFrame
bool readFrame(Image image)

Read the next framw.

seekFrame
void seekFrame(size_t frame)

Seek the video timeline to given frame index.

seekTime
void seekTime(double time)

Seek the video timeline to given time.

Properties

duration
auto duration [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
frameCount
auto frameCount [@property getter]

Get number of frames in video.

frameRate
auto frameRate [@property getter]

Get frame rate of the stream.

frameSize
auto frameSize [@property getter]

Get size of frame in bytes.

height
auto height [@property getter]

Get height of the video frame.

isFileStream
auto isFileStream [@property getter]

Check if this stream is the file stream.

isLiveStream
auto isLiveStream [@property getter]

Check if this stream is the live stream.

isOpen
auto isOpen [@property getter]

Check if stream is open.

streamIndex
auto streamIndex [@property getter]

Get the index of the stream - most commonly is 0, where audio stream is 1.

width
auto width [@property getter]

Get width of the video frame.

Meta