Tanoda
|
MP4 video recorder. More...
Public Member Functions | |
MP4Recorder (int width, int height, float frameRate, int sampleRate=0, int channelCount=0, int bitrate=(int)(960 *540 *11.4f), int keyframeInterval=3) | |
Create an MP4 recorder. More... | |
MP4Recorder (int width, int height, float frameRate, string filename, int sampleRate=0, int channelCount=0, int bitrate=(int)(960 *540 *11.4f), int keyframeInterval=3) | |
void | CommitFrame< T > (T[] pixelBuffer, long timestamp) |
Commit a video pixel buffer for encoding. The pixel buffer MUST have an RGBA8888 pixel layout. More... | |
void | CommitFrame (IntPtr nativeBuffer, long timestamp) |
Commit a video pixel buffer for encoding. The pixel buffer MUST have an RGBA8888 pixel layout. More... | |
void | CommitSamples (float[] sampleBuffer, long timestamp) |
Commit an audio sample buffer for encoding. More... | |
Task< string > | FinishWriting () |
Finish writing and return the path to the recorded media file. More... | |
void | CommitFrame< T > (T[] pixelBuffer, long timestamp) |
Commit a video pixel buffer for encoding. The pixel buffer MUST have an RGBA8888 pixel layout. More... | |
void | CommitFrame (IntPtr nativeBuffer, long timestamp) |
Commit a video pixel buffer for encoding. The pixel buffer MUST have an RGBA8888 pixel layout. More... | |
void | CommitSamples (float[] sampleBuffer, long timestamp) |
Commit an audio sample buffer for encoding. More... | |
Task< string > | FinishWriting () |
Finish writing and return the path to the recorded media file. More... | |
Public Attributes | |
int | width |
Video size. More... | |
![]() | |
int | width |
Recording frame size. More... | |
Properties | |
int int height | frameSize [get] |
![]() | |
int int height | frameSize [get] |
MP4 video recorder.
Definition at line 15 of file MP4Recorder.cs.
NatSuite.Recorders.MP4Recorder.MP4Recorder | ( | int | width, |
int | height, | ||
float | frameRate, | ||
int | sampleRate = 0 , |
||
int | channelCount = 0 , |
||
int | bitrate = (int) (960 * 540 * 11.4f) , |
||
int | keyframeInterval = 3 |
||
) |
Create an MP4 recorder.
width | Video width. |
height | Video height. |
frameRate | Video frame rate. |
sampleRate | Audio sample rate. Pass 0 for no audio. |
channelCount | Audio channel count. Pass 0 for no audio. |
bitrate | Video bitrate in bits per second. |
keyframeInterval | Keyframe interval in seconds. |
Definition at line 34 of file MP4Recorder.cs.
NatSuite.Recorders.MP4Recorder.MP4Recorder | ( | int | width, |
int | height, | ||
float | frameRate, | ||
string | filename, | ||
int | sampleRate = 0 , |
||
int | channelCount = 0 , |
||
int | bitrate = (int) (960 * 540 * 11.4f) , |
||
int | keyframeInterval = 3 |
||
) |
Definition at line 42 of file MP4Recorder.cs.
void NatSuite.Recorders.MP4Recorder.CommitFrame | ( | IntPtr | nativeBuffer, |
long | timestamp | ||
) |
Commit a video pixel buffer for encoding. The pixel buffer MUST have an RGBA8888 pixel layout.
nativeBuffer | Pixel buffer in native memory to commit. |
timestamp | Frame timestamp in nanoseconds. |
Implements NatSuite.Recorders.IMediaRecorder.
Definition at line 66 of file MP4Recorder.cs.
void NatSuite.Recorders.MP4Recorder.CommitFrame< T > | ( | T[] | pixelBuffer, |
long | timestamp | ||
) |
Commit a video pixel buffer for encoding. The pixel buffer MUST have an RGBA8888 pixel layout.
pixelBuffer | Pixel buffer containing video frame to commit. |
timestamp | Frame timestamp in nanoseconds. |
Implements NatSuite.Recorders.IMediaRecorder.
T | : | struct |
Definition at line 55 of file MP4Recorder.cs.
void NatSuite.Recorders.MP4Recorder.CommitSamples | ( | float[] | sampleBuffer, |
long | timestamp | ||
) |
Commit an audio sample buffer for encoding.
sampleBuffer | Linear PCM audio sample buffer, interleaved by channel. |
timestamp | Sample buffer timestamp in nanoseconds. |
Implements NatSuite.Recorders.IMediaRecorder.
Definition at line 76 of file MP4Recorder.cs.
Task< string > NatSuite.Recorders.MP4Recorder.FinishWriting | ( | ) |
Finish writing and return the path to the recorded media file.
Implements NatSuite.Recorders.IMediaRecorder.
Definition at line 84 of file MP4Recorder.cs.
int NatSuite.Recorders.MP4Recorder.width |
Video size.
Definition at line 22 of file MP4Recorder.cs.
|
get |
Implements NatSuite.Recorders.IMediaRecorder.
Definition at line 22 of file MP4Recorder.cs.