mirror of
https://github.com/ossrs/srs.git
synced 2025-02-12 19:31:53 +00:00
For #1634, refactor encoder output, support timestamp variables.
This commit is contained in:
parent
66b194cd63
commit
c78595c1fa
1 changed files with 2 additions and 0 deletions
|
@ -33,6 +33,7 @@ using namespace std;
|
||||||
#include <srs_app_pithy_print.hpp>
|
#include <srs_app_pithy_print.hpp>
|
||||||
#include <srs_app_ffmpeg.hpp>
|
#include <srs_app_ffmpeg.hpp>
|
||||||
#include <srs_kernel_utility.hpp>
|
#include <srs_kernel_utility.hpp>
|
||||||
|
#include <srs_app_utility.hpp>
|
||||||
|
|
||||||
// for encoder to detect the dead loop
|
// for encoder to detect the dead loop
|
||||||
static std::vector<std::string> _transcoded_url;
|
static std::vector<std::string> _transcoded_url;
|
||||||
|
@ -284,6 +285,7 @@ srs_error_t SrsEncoder::initialize_ffmpeg(SrsFFMPEG* ffmpeg, SrsRequest* req, Sr
|
||||||
output = srs_string_replace(output, "[stream]", req->stream);
|
output = srs_string_replace(output, "[stream]", req->stream);
|
||||||
output = srs_string_replace(output, "[param]", req->param);
|
output = srs_string_replace(output, "[param]", req->param);
|
||||||
output = srs_string_replace(output, "[engine]", engine->arg0());
|
output = srs_string_replace(output, "[engine]", engine->arg0());
|
||||||
|
output = srs_path_build_timestamp(output);
|
||||||
|
|
||||||
std::string log_file = SRS_CONSTS_NULL_FILE; // disabled
|
std::string log_file = SRS_CONSTS_NULL_FILE; // disabled
|
||||||
// write ffmpeg info to log file.
|
// write ffmpeg info to log file.
|
||||||
|
|
Loading…
Reference in a new issue