fm.liveswitch.matroska.VideoRecorder Class Reference

A Matroska video recorder. More...

Public Member Functions

 VideoRecorder (String path, fm.liveswitch.VideoFormat inputFormat)
 Initializes a new instance of the fm.liveswitch.matroska.VideoRecorder class. More...
 
- Public Member Functions inherited from fm.liveswitch.VideoRecorder
 VideoRecorder (String path)
 Initializes a new instance of the fm.liveswitch.VideoRecorder class. More...
 

Protected Member Functions

void doUpdateHeader ()
 Updates the file header. More...
 
boolean doWrite (fm.liveswitch.VideoBuffer buffer, long presentationTimestamp)
 Write an encoded video frame. More...
 
void doWriteHeader ()
 Writes the file header. More...
 

Detailed Description

A Matroska video recorder.

Constructor & Destructor Documentation

◆ VideoRecorder()

fm.liveswitch.matroska.VideoRecorder.VideoRecorder ( String  path,
fm.liveswitch.VideoFormat  inputFormat 
)

Initializes a new instance of the fm.liveswitch.matroska.VideoRecorder class.

Parameters
pathThe path.
inputFormatThe input format.

Member Function Documentation

◆ doUpdateHeader()

void fm.liveswitch.matroska.VideoRecorder.doUpdateHeader ( )
protected

Updates the file header.

◆ doWrite()

boolean fm.liveswitch.matroska.VideoRecorder.doWrite ( fm.liveswitch.VideoBuffer  buffer,
long  presentationTimestamp 
)
protected

Write an encoded video frame.

Parameters
bufferThe encoded buffer.
presentationTimestampThe presentation timestamp.
Returns
true
if the encoded frame was written successfully; otherwise,
false

◆ doWriteHeader()

void fm.liveswitch.matroska.VideoRecorder.doWriteHeader ( )
protected

Writes the file header.