Files
vimix/VideoBroadcast.h
Bruno Herbelin a9ab4dbe38 More robust implementation of Video Broadcast
Testing GST features and using HW accelerated  encoding if available
2022-01-23 12:17:08 +01:00

35 lines
646 B
C++

#ifndef VIDEOBROADCAST_H
#define VIDEOBROADCAST_H
#include "NetworkToolkit.h"
#include "FrameGrabber.h"
#define BROADCAST_FPS 30
class VideoBroadcast : public FrameGrabber
{
public:
VideoBroadcast(int port = 8888);
virtual ~VideoBroadcast() {}
static bool available();
void stop() override;
std::string info() const override;
private:
std::string init(GstCaps *caps) override;
void terminate() override;
// connection information
int port_;
std::atomic<bool> stopped_;
// pipeline elements
static std::string srt_sink_;
static std::string h264_encoder_;
};
#endif // VIDEOBROADCAST_H