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-07-19 15:20:16 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f8423dfa902bb6661d6629dd627293c76c5975af
f8423dfa
1 parent
9bf7b722
fix #119: use iformat and oformat for ffmpeg transcode.
隐藏空白字符变更
内嵌
并排对比
正在显示
5 个修改的文件
包含
15 行增加
和
6 行删除
README.md
trunk/src/app/srs_app_ffmpeg.cpp
trunk/src/app/srs_app_ffmpeg.hpp
trunk/src/app/srs_app_ingest.cpp
trunk/src/core/srs_core.hpp
README.md
查看文件 @
f8423df
...
...
@@ -208,6 +208,7 @@ Supported operating systems and hardware:
*
2013-10-17, Created.
<br/>
## History
*
v1.0, 2014-07-19, fix
[
#119
](
https://github.com/winlinvip/simple-rtmp-server/issues/119
)
, use iformat and oformat for ffmpeg transcode. 0.9.163.
*
<strong>
v1.0, 2014-07-13,
[
1.0 mainline6(0.9.160)
](
https://github.com/winlinvip/simple-rtmp-server/releases/tag/1.0.mainline8
)
released. 50029 lines.
</strong>
*
v1.0, 2014-07-13, refine the bandwidth check/test, add as/js library, use srs-librtmp for linux tool. 0.9.159
*
v1.0, 2014-07-12, complete rtmp stack utest. 0.9.156
...
...
trunk/src/app/srs_app_ffmpeg.cpp
查看文件 @
f8423df
...
...
@@ -76,6 +76,11 @@ void SrsFFMPEG::set_iparams(string iparams)
_iparams
=
iparams
;
}
void
SrsFFMPEG
::
set_oformat
(
string
format
)
{
oformat
=
format
;
}
string
SrsFFMPEG
::
output
()
{
return
_output
;
...
...
@@ -243,7 +248,7 @@ int SrsFFMPEG::start()
}
// input.
if
(
iformat
!=
"off"
)
{
if
(
iformat
!=
"off"
&&
!
iformat
.
empty
()
)
{
params
.
push_back
(
"-f"
);
params
.
push_back
(
iformat
);
}
...
...
@@ -346,7 +351,7 @@ int SrsFFMPEG::start()
}
// output
if
(
oformat
!=
"off"
)
{
if
(
oformat
!=
"off"
&&
!
oformat
.
empty
()
)
{
params
.
push_back
(
"-f"
);
params
.
push_back
(
oformat
);
}
...
...
trunk/src/app/srs_app_ffmpeg.hpp
查看文件 @
f8423df
...
...
@@ -75,6 +75,7 @@ public:
virtual
~
SrsFFMPEG
();
public
:
virtual
void
set_iparams
(
std
::
string
iparams
);
virtual
void
set_oformat
(
std
::
string
format
);
virtual
std
::
string
output
();
public
:
virtual
int
initialize
(
std
::
string
in
,
std
::
string
out
,
std
::
string
log
);
...
...
trunk/src/app/srs_app_ingest.cpp
查看文件 @
f8423df
...
...
@@ -317,12 +317,14 @@ int SrsIngester::initialize_ffmpeg(SrsFFMPEG* ffmpeg, SrsConfDirective* vhost, S
ingest
->
arg0
().
c_str
(),
input_type
.
c_str
(),
ret
);
}
// set output format to flv for RTMP
ffmpeg
->
set_oformat
(
"flv"
);
std
::
string
vcodec
=
_srs_config
->
get_engine_vcodec
(
engine
);
std
::
string
acodec
=
_srs_config
->
get_engine_acodec
(
engine
);
// whatever the engine config, use copy as default.
if
(
!
engine
||
vcodec
.
empty
()
||
acodec
.
empty
()
||
!
_srs_config
->
get_engine_enabled
(
engine
)
)
{
bool
engine_disabled
=
!
engine
||
!
_srs_config
->
get_engine_enabled
(
engine
);
if
(
engine_disabled
||
vcodec
.
empty
()
||
acodec
.
empty
())
{
if
((
ret
=
ffmpeg
->
initialize_copy
())
!=
ERROR_SUCCESS
)
{
return
ret
;
}
...
...
trunk/src/core/srs_core.hpp
查看文件 @
f8423df
...
...
@@ -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 "16
2
"
#define VERSION_REVISION "16
3
"
#define RTMP_SIG_SRS_VERSION VERSION_MAJOR"."VERSION_MINOR"."VERSION_REVISION
// server info.
#define RTMP_SIG_SRS_KEY "SRS"
...
...
请
注册
或
登录
后发表评论