mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #367, process support redirect stdout and stderr.
This commit is contained in:
parent
0e1861b084
commit
6fe88d088c
3 changed files with 89 additions and 19 deletions
|
@ -24,12 +24,16 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
#include <srs_app_ffmpeg.hpp>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/wait.h>
|
||||
#include <fcntl.h>
|
||||
#include <signal.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
// for srs-librtmp, @see https://github.com/simple-rtmp-server/srs/issues/213
|
||||
#ifndef _WIN32
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <vector>
|
||||
using namespace std;
|
||||
|
||||
|
@ -407,7 +411,7 @@ int SrsFFMPEG::start()
|
|||
params.push_back(_output);
|
||||
|
||||
// when specified the log file.
|
||||
if (false && !log_file.empty()) {
|
||||
if (!log_file.empty()) {
|
||||
// stdout
|
||||
params.push_back("1");
|
||||
params.push_back(">");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue