Skip to content

Class AIAC::Utils::VideoRecorder

ClassList > AIAC > Utils > VideoRecorder

Public Functions

Type Name
void CaptureFrames ()
Capture frames from the window.
void DeleteFrameFolder ()
Delete the /frames folder.
void InitializeDirectories ()
Create folders for captured frames and videos.
void MakeVideoFromFrames ()
Create video from the frames using ffmpeg.
void SaveFrames (int height, int width, std::vector< unsigned char > pixels)
Save frames to the frame folder.
void UpdatePaths ()
Updates the paths used for video and frame storage.
VideoRecorder (const std::string & basePath)
~VideoRecorder ()

Public Functions Documentation

function CaptureFrames

Capture frames from the window.

void AIAC::Utils::VideoRecorder::CaptureFrames () 


function DeleteFrameFolder

Delete the /frames folder.

void AIAC::Utils::VideoRecorder::DeleteFrameFolder () 


function InitializeDirectories

Create folders for captured frames and videos.

void AIAC::Utils::VideoRecorder::InitializeDirectories () 


function MakeVideoFromFrames

Create video from the frames using ffmpeg.

void AIAC::Utils::VideoRecorder::MakeVideoFromFrames () 


function SaveFrames

Save frames to the frame folder.

void AIAC::Utils::VideoRecorder::SaveFrames (
    int height,
    int width,
    std::vector< unsigned char > pixels
) 

Parameters:

  • height Height of the window
  • width Width of the window
  • pixels Vector to hold the data

function UpdatePaths

Updates the paths used for video and frame storage.

void AIAC::Utils::VideoRecorder::UpdatePaths () 


function VideoRecorder

explicit AIAC::Utils::VideoRecorder::VideoRecorder (
    const std::string & basePath
) 

function ~VideoRecorder

AIAC::Utils::VideoRecorder::~VideoRecorder () 


The documentation for this class was generated from the following file src/utils/VideoRecorder.h