Improv MultiFileRecorder to use gstreamer instead of STB

Allows adding images of different size and formats, faster decoding and encoding, add keyframes in recorded video.
This commit is contained in:
Bruno Herbelin
2024-04-29 23:49:41 +02:00
parent cd8f9792ab
commit ec78631691
2 changed files with 107 additions and 81 deletions

View File

@@ -44,7 +44,7 @@ protected:
// gstreamer functions
static std::string assemble (MultiFileRecorder *rec);
bool start_record (const std::string &video_filename);
bool add_image (const std::string &image_filename);
bool add_image (const std::string &image_filename, GstCaps *caps);
bool end_record();
// gstreamer callbacks
@@ -59,7 +59,6 @@ private:
int fps_;
int width_;
int height_;
int bpp_;
// encoder
std::list<std::string> files_;