First working implementation of VideoStreamer

This commit is contained in:
brunoherbelin
2020-10-17 11:32:29 +02:00
parent 007d876dbc
commit 59c07ceb96
9 changed files with 350 additions and 7 deletions

View File

@@ -16,7 +16,7 @@ class VideoStreamer : public FrameGrabber
uint height_;
// operation
std::atomic<bool> recording_;
std::atomic<bool> streaming_;
std::atomic<bool> accept_buffer_;
// gstreamer pipeline
@@ -32,10 +32,13 @@ class VideoStreamer : public FrameGrabber
public:
typedef enum {
UDP_MJPEG = 0,
UDP_MPEG4,
UDP_h264,
DEFAULT
} Profile;
static const char* profile_name[DEFAULT];
static const std::vector<std::string> profile_description;
static const std::vector<std::string> receiver_example;
VideoStreamer();
~VideoStreamer();