Video stream recorder for Lobot/Robolocust project. More...
#include <Robots/LoBot/io/LoVideoRecorder.H>
Public Member Functions | |
VideoRecorder (const std::string &mpeg_name, const VideoStream *) | |
void | update () |
~VideoRecorder () | |
Clean-up. |
Video stream recorder for Lobot/Robolocust project.
This class wraps around INVT's FfmpegEncoder in order to send input video streams to an MPEG file. This is useful for exchanging movies of our robot moving with the Gabbiani team at Baylor so as to get back LGMD spike trains from them.
Definition at line 95 of file LoVideoRecorder.H.
lobot::VideoRecorder::VideoRecorder | ( | const std::string & | mpeg_name, | |
const VideoStream * | S | |||
) |
This constructor sets up a recorder to read input images from the provided video stream and store them in an MPEG file with the given "root" name. The file name extension is appended automatically (by FfmpegEncoder).
Definition at line 82 of file LoVideoRecorder.C.
lobot::VideoRecorder::~VideoRecorder | ( | ) |
Clean-up.
Definition at line 102 of file LoVideoRecorder.C.
void lobot::VideoRecorder::update | ( | ) |
This method reads the current frame from its video stream source and writes it to the MPEG file the recorder is recording to.
Definition at line 95 of file LoVideoRecorder.C.
References lobot::VideoStream::readFrame().
Referenced by lobot::App::run().