mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-05 15:30:00 +01:00
(slow) and optimize distribution of gabbed frames to multiple recording and streaming pipelines (e.g. record H264 *and* share stream on the network). New implementation of Loopback source for LINUX using v4l2loopback (experimental).
32 lines
545 B
C++
32 lines
545 B
C++
#ifndef LOOPBACK_H
|
|
#define LOOPBACK_H
|
|
|
|
#include <vector>
|
|
|
|
#include <gst/pbutils/pbutils.h>
|
|
#include <gst/app/gstappsrc.h>
|
|
|
|
#include "FrameGrabber.h"
|
|
|
|
|
|
class Loopback : public FrameGrabber
|
|
{
|
|
static std::string system_loopback_pipeline;
|
|
static std::string system_loopback_name;
|
|
static bool system_loopback_initialized;
|
|
|
|
void init(GstCaps *caps) override;
|
|
void terminate() override;
|
|
|
|
public:
|
|
|
|
Loopback();
|
|
|
|
static bool systemLoopbackInitialized();
|
|
static bool initializeSystemLoopback();
|
|
|
|
};
|
|
|
|
|
|
#endif // LOOPBACK_H
|