Skip to content

Commit

Permalink
For #1634, refactor encoder output, support timestamp variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Mar 11, 2020
1 parent 66b194c commit c78595c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions trunk/src/app/srs_app_encoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ using namespace std;
#include <srs_app_pithy_print.hpp>
#include <srs_app_ffmpeg.hpp>
#include <srs_kernel_utility.hpp>
#include <srs_app_utility.hpp>

// for encoder to detect the dead loop
static std::vector<std::string> _transcoded_url;
Expand Down Expand Up @@ -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, "[param]", req->param);
output = srs_string_replace(output, "[engine]", engine->arg0());
output = srs_path_build_timestamp(output);

std::string log_file = SRS_CONSTS_NULL_FILE; // disabled
// write ffmpeg info to log file.
Expand Down

0 comments on commit c78595c

Please sign in to comment.