public class VideoFileOutput extends VideoOutput implements IVideoFileOutput
| Modifier and Type | Field and Description |
|---|---|
protected static byte |
ASYNC_STREAM_ID |
protected static byte |
SYNC_STREAM_ID |
METADATA_AU_HEADER_LEN, options| Constructor and Description |
|---|
VideoFileOutput(VideoOutputOptions options)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMetadataFrame(MetadataFrame frame)
Append a
MetadataFrame to the file. |
void |
addVideoFrame(VideoFrame frame)
Append a
VideoFrame to the file. |
void |
close()
Close the file.
|
boolean |
isOpen()
Check if a file is open.
|
void |
open(String filename)
Open a new file for writing.
|
protected static final byte ASYNC_STREAM_ID
protected static final byte SYNC_STREAM_ID
public VideoFileOutput(VideoOutputOptions options)
options - Options for video outputpublic void open(String filename) throws IOException
IVideoFileOutputopen in interface IVideoFileOutputfilename - The file nameIOException - if the file could not be openedpublic boolean isOpen()
IVideoFileOutputisOpen in interface IVideoFileOutputpublic void close()
throws IOException
IVideoFileOutputclose in interface AutoCloseableclose in interface IVideoFileOutputIOException - if an error occurs while closing the filepublic void addVideoFrame(VideoFrame frame) throws IOException
IVideoFileOutputVideoFrame to the file.addVideoFrame in interface IVideoFileOutputframe - The video frame to addIOException - if the file could not be writtenpublic void addMetadataFrame(MetadataFrame frame) throws IOException
IVideoFileOutputMetadataFrame to the file.addMetadataFrame in interface IVideoFileOutputframe - The metadata frame to addIOException - if the file could not be writtenCopyright © 2022 West Ridge Systems. All rights reserved.