Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2014-05-27 14:10:46 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d74921e1ab6cf83188e529a9f787d0e2a3b6c060
d74921e1
1 parent
14f0a2e0
fix #89, config to /dev/null to disable ffmpeg log. 0.9.117
显示空白字符变更
内嵌
并排对比
正在显示
7 个修改的文件
包含
16 行增加
和
3 行删除
README.md
trunk/conf/full.conf
trunk/src/app/srs_app_config.cpp
trunk/src/app/srs_app_config.hpp
trunk/src/app/srs_app_encoder.cpp
trunk/src/app/srs_app_ingest.cpp
trunk/src/core/srs_core.hpp
README.md
查看文件 @
d74921e
...
...
@@ -228,6 +228,7 @@ Supported operating systems and hardware:
*
2013-10-17, Created.
<br/>
## History
*
v1.0, 2014-05-25, fix
[
#89
](
https://github.com/winlinvip/simple-rtmp-server/issues/89
)
, config to /dev/null to disable ffmpeg log. 0.9.117
*
v1.0, 2014-05-25, fix
[
#76
](
https://github.com/winlinvip/simple-rtmp-server/issues/76
)
, allow edge vhost to add or remove. 0.9.114
*
v1.0, 2014-05-24, Johnny contribute
[
ossrs.net
](
http://ossrs.net
)
. karthikeyan start to translate wiki to English.
*
v1.0, 2014-05-22, fix
[
#78
](
https://github.com/winlinvip/simple-rtmp-server/issues/78
)
, st joinable thread must be stop by other threads, 0.9.113
...
...
trunk/conf/full.conf
查看文件 @
d74921e
...
...
@@ -19,6 +19,7 @@ pid ./objs/srs.pid;
chunk_size
60000
;
# the logs dir.
# if enabled ffmpeg, each stracoding stream will create a log file.
# /dev/null to disable the log.
# default: ./objs
ff_log_dir
./
objs
;
# the log tank, console or file.
...
...
trunk/src/app/srs_app_config.cpp
查看文件 @
d74921e
...
...
@@ -2410,6 +2410,12 @@ string SrsConfig::get_log_file()
return
conf
->
arg0
();
}
bool
SrsConfig
::
get_ffmpeg_log_enabled
()
{
string
log
=
get_ffmpeg_log_dir
();
return
log
!=
"/dev/null"
;
}
string
SrsConfig
::
get_ffmpeg_log_dir
()
{
srs_assert
(
root
);
...
...
trunk/src/app/srs_app_config.hpp
查看文件 @
d74921e
...
...
@@ -253,6 +253,7 @@ public:
virtual
bool
get_log_tank_file
();
virtual
std
::
string
get_log_level
();
virtual
std
::
string
get_log_file
();
virtual
bool
get_ffmpeg_log_enabled
();
virtual
std
::
string
get_ffmpeg_log_dir
();
// hls section
private:
...
...
trunk/src/app/srs_app_encoder.cpp
查看文件 @
d74921e
...
...
@@ -287,8 +287,9 @@ int SrsEncoder::initialize_ffmpeg(SrsFFMPEG* ffmpeg, SrsRequest* req, SrsConfDir
output
=
srs_string_replace
(
output
,
"[stream]"
,
req
->
stream
);
output
=
srs_string_replace
(
output
,
"[engine]"
,
engine
->
arg0
());
std
::
string
log_file
;
std
::
string
log_file
=
"/dev/null"
;
// disabled
// write ffmpeg info to log file.
if
(
_srs_config
->
get_ffmpeg_log_enabled
())
{
log_file
=
_srs_config
->
get_ffmpeg_log_dir
();
log_file
+=
"/"
;
log_file
+=
"ffmpeg-encoder"
;
...
...
@@ -299,6 +300,7 @@ int SrsEncoder::initialize_ffmpeg(SrsFFMPEG* ffmpeg, SrsRequest* req, SrsConfDir
log_file
+=
"-"
;
log_file
+=
req
->
stream
;
log_file
+=
".log"
;
}
// important: loop check, donot transcode again.
std
::
vector
<
std
::
string
>::
iterator
it
;
...
...
trunk/src/app/srs_app_ingest.cpp
查看文件 @
d74921e
...
...
@@ -262,8 +262,9 @@ int SrsIngester::initialize_ffmpeg(SrsFFMPEG* ffmpeg, SrsConfDirective* vhost, S
app
=
app
.
substr
(
0
,
pos
);
}
std
::
string
log_file
;
std
::
string
log_file
=
"/dev/null"
;
// disabled
// write ffmpeg info to log file.
if
(
_srs_config
->
get_ffmpeg_log_enabled
())
{
log_file
=
_srs_config
->
get_ffmpeg_log_dir
();
log_file
+=
"/"
;
log_file
+=
"ffmpeg-ingest"
;
...
...
@@ -274,6 +275,7 @@ int SrsIngester::initialize_ffmpeg(SrsFFMPEG* ffmpeg, SrsConfDirective* vhost, S
log_file
+=
"-"
;
log_file
+=
stream
;
log_file
+=
".log"
;
}
// input
std
::
string
input_type
=
_srs_config
->
get_ingest_input_type
(
ingest
);
...
...
trunk/src/core/srs_core.hpp
查看文件 @
d74921e
...
...
@@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// current release version
#define VERSION_MAJOR "0"
#define VERSION_MINOR "9"
#define VERSION_REVISION "11
6
"
#define VERSION_REVISION "11
7
"
#define RTMP_SIG_SRS_VERSION VERSION_MAJOR"."VERSION_MINOR"."VERSION_REVISION
// server info.
#define RTMP_SIG_SRS_KEY "SRS"
...
...
请
注册
或
登录
后发表评论