PW Akshay

Generation

generate functionMon, 05 Dec 2022

Program to live stream m3u8 to rtmp in python (no ffmpeg and no function)

++ #include <iostream> #include <string> #include <regex> #include <fstream> #include <streambuf> #include <memory> #include <algorithm> #include <functional> #include <map> #include <unistd.h> #include <openssl/md5.h> #include <curl/curl.h> using namespace std; #define CFG_PATH "./cfg" #define CFG_FILE "hls.cfg" #define LOG_PATH "./log" #define LOG_FILE "hls.log" void log_info(string content); void log_error(string content); void log_info(string content) { time_t now; time(&now); string time_str = ctime(&now); time_str.replace(time_str.find("\n"), 1, ""); time_str += " ";

Questions about programming?Chat with your personal AI assistant