Skip to main content

You are viewing Agora Docs forBetaproducts and features. Switch to Docs

Linux C++
Linux Java

Record raw data

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.

Get raw audio and video data from an individual recording session

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 typeCommand lineAPI settings
Raw audio data
  • --getAudioFrame 1: AAC file
  • --getAudioFrame 2: PCM file
  • decodeAudio = 1: AAC file
  • decodeAudio = 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 file
  • decodeVideo = 2: YUV frame file
  • decodeVideo = 3: JPG frame file
  • decodeVideo = 4: JPG file
  • decodeVideo = 5: JPG file + MP4 video file
  • info

    The Agora Video 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.

    Get raw audio and video data from a composite recording session

    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 typeCommand lineAPI settings
    Raw audio data-- getAudioFrame 3: PCM filedecodeAudio = 3:PCM file

    You can get the raw audio data from the audioFrameReceived callback.

    vundefined