The Agora On-premise Recording SDK supports raw audio and video data in individual recording mode, and only raw audio data in composite recording mode.
For details about configuring an on-premise recording in these modes, see Individual Recording and Composite Recording.
Depending on whether you record by command line or by APIs, set the parameter according to the following table to get the raw audio and video data from an individual recording.
Data type | Command line | API settings |
---|---|---|
Raw audio data | --getAudioFrame 1 : AAC file--getAudioFrame 2 : PCM file |
decodeAudio = 1 : AAC filedecodeAudio = 2 : PCM file |
Raw video data | --getVideoFrame 1 : H.264 file--getVideoFrame 2 : YUV frame file--getVideoFrame 3 : JPG frame file--getVideoFrame 4 : JPG file--getVideoFrame 5 : JPG file + MPEG-4 video file |
decodeVideo = 1 : H.264 filedecodeVideo = 2 : YUV frame filedecodeVideo = 3 : JPG frame filedecodeVideo = 4 : JPG filedecodeVideo = 5 : JPG file + MP4 video file |
The Agora RTC SDK for Web supports raw data in YUV format only, not in H.264 format.
You can get the raw video data from the videoFrameReceived
callback, and the raw audio data from audioFrameReceived
.
The Agora On-premise Recording SDK supports only raw audio data in composite recording mode. Depending on whether you record by command line or by APIs, set the parameter according to the following table to get the raw audio data in composite recording mode, storing it in a PCM file.
Data type | Command line | API settings |
---|---|---|
Raw audio data | -- getAudioFrame 3 : PCM file |
decodeAudio = 3 :PCM file |
You can get the raw audio data from the audioFrameReceived
callback.