mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 03:41:55 +00:00
update readme
This commit is contained in:
parent
52e6115f9a
commit
601a69aa70
1 changed files with 517 additions and 514 deletions
3
trunk/src/core/srs_core_encoder.cpp
Normal file → Executable file
3
trunk/src/core/srs_core_encoder.cpp
Normal file → Executable file
|
@ -216,6 +216,7 @@ int SrsFFMPEG::start()
|
|||
char s_achannels[10];
|
||||
snprintf(s_achannels, sizeof(s_achannels), "%d", achannels);
|
||||
|
||||
// TODO: execl donot support the params.
|
||||
// video params
|
||||
std::string s_vpreset = vpreset;
|
||||
if (!vparams.empty()) {
|
||||
|
@ -229,6 +230,7 @@ int SrsFFMPEG::start()
|
|||
s_aparams += aparams;
|
||||
}
|
||||
|
||||
// TODO: fork or vfork?
|
||||
if ((pid = fork()) < 0) {
|
||||
ret = ERROR_ENCODER_FORK;
|
||||
srs_error("vfork process failed. ret=%d", ret);
|
||||
|
@ -237,6 +239,7 @@ int SrsFFMPEG::start()
|
|||
|
||||
// child process: ffmpeg encoder engine.
|
||||
if (pid == 0) {
|
||||
// TODO: execl or execlp
|
||||
ret = execl(ffmpeg.c_str(),
|
||||
ffmpeg.c_str(),
|
||||
"-f", "flv",
|
||||
|
|
Loading…
Reference in a new issue