23 #include <gst/app/gstappsrc.h> 25 #define ISAAC_MAX_HEARTBEAT 200 30 RTMPImageConnector( std::string name, std::string apikey, std::string base_url,
int bitrate = 400,
bool dummy_audio =
false );
43 GstElement *audiotestsrc;
45 GstElement *videoconvert;
46 GstElement *capsfilter;
47 GstElement *videorate_capsfilter;
48 GstElement *videorate;
54 pthread_mutex_t heartbeat_mutex;
55 pthread_t heartbeat_thread;
58 volatile bool heartbeat_finish;
static void addFrame(ImageBuffer *image, GstAppSrc *appsrc, InsituConnectorGroup *group)
static uint64_t getTicksMs()
RTMPImageConnector(std::string name, std::string apikey, std::string base_url, int bitrate=400, bool dummy_audio=false)
static void * heartbeatFunction(void *ptr)
errorCode init(int minport, int maxport)