Метод | Описание | |
---|---|---|
EndFile ( ) : void |
Close a started MP4f file, writing footer data. After calling this, WriteStream() will cache data.
|
|
FileRoot ( ) : System |
Create a new file root with the given streams. Frame data will be cached until StartFile() is called. Once a file is started, the tracks and streams can't be changed. If you know the tracks in advance, it uses less memory to start the file as early as possible. If you don't know the tracks in advance, don't StartFile() until all tracks are known. It is possible to Write all frames in all tracks then StartFile() and EndFile() in direct succession. |
|
GenerateFileSpec ( ) : byte[] |
Output a 'ftyp' atom and it's children as raw data for the current set of streams. Does not write to file.
|
|
GenerateFooters ( ) : byte[] |
Output a 'mfra' atom and it's children as raw data.
|
|
GenerateFragment ( |
Generate a pair of 'moof' and 'mdat' atoms for the given stream. The stream should contains a populated list of frame data, otherwise output will be empty. Keeps track of fragment index. Does not write to file. Does not remove frames. Does not adjust offset time.
|
|
GenerateHeaders ( ) : byte[] |
Output a 'moov' atom and it's children as raw data for the current set of streams. Does not write to file.
|
|
StartFile ( string FilePath ) : void |
Start an MP4f file. After a sucessful call, all cached data will be sent to this file, and frame data will no longer be cached on subsequent WriteStream() calls.
|
|
WriteStream ( |
Write the frames of a stream to a file if one is open or to memory if not.
|
Метод | Описание | |
---|---|---|
CacheStreamFrames ( |
Store the frames of a stream in the KnownStreams cache, adding a new entry if needed. If there is a file open, then new streams will be refused with an argument exception
|
|
GenerateMoov ( ) : byte[] |
Output a 'moov' atom and it's children as raw data.
|
public GenerateFragment ( |
||
Stream | ||
Результат |
public StartFile ( string FilePath ) : void | ||
FilePath | string | |
Результат | void |
public WriteStream ( |
||
SourceStream | ||
Результат | void |