A simple program that accepts RTMP streams and then restreams them directly to other services. I use it to record at a higher rate but stream to target services at the rate they want. It's also useful for streaming to multiple sites.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
distributary/config.hpp

22 lines
366 B

#pragma once
#include <nlohmann/json.hpp>
#include <map>
using std::string;
struct SendTo {
string url = "";
string bitrate = "";
};
struct Config {
nlohmann::json json_config;
string listen_at = "";
string bitrate = "";
int fail_max = 6;
std::map<string, SendTo> send_to;
Config(const string json_file);
void load(const string file_name);
};