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
11 years ago
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e53655ee837f538b3b7762da4552cc93427a78bb
e53655ee
1 parent
0322dbbf
refine the build script
隐藏空白字符变更
内嵌
并排对比
正在显示
5 个修改的文件
包含
48 行增加
和
24 行删除
.gitignore
trunk/auto/depends.sh
trunk/configure
trunk/research/librtmp/Makefile
trunk/src/libs/srs_librtmp.hpp
.gitignore
查看文件 @
e53655e
...
...
@@ -11,3 +11,16 @@
*.lai
*.la
*.a
# by winlin
*.pyc
*.swp
/trunk/Makefile
/trunk/objs
/trunk/research/librtmp/objs
/trunk/3rdparty/ccache/ccache-3.1.9
/trunk/3rdparty/gprof/graphviz-2.36.0
/trunk/research/api-server/static-dir/crossdomain.xml
/trunk/research/api-server/static-dir/forward
/trunk/research/api-server/static-dir/live
/trunk/research/api-server/static-dir/players
...
...
trunk/auto/depends.sh
查看文件 @
e53655e
...
...
@@ -571,6 +571,10 @@ if [ $SRS_RESEARCH = YES ]; then
(
cd
research/ffempty
&&
make
${
SRS_JOBS
}
&&
mv ffempty ../../
${
SRS_OBJS
}
/research
)
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
echo
"build research/ffempty failed, ret=
$ret
"
;
exit
$ret
;
fi
# librtmp
(
cd
research/librtmp
&&
mkdir -p objs
&&
ln -sf
`
pwd
`
/objs ../../
${
SRS_OBJS
}
/research/librtmp
)
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
echo
"link research/librtmp failed, ret=
$ret
"
;
exit
$ret
;
fi
fi
#####################################################################################
...
...
trunk/configure
查看文件 @
e53655e
...
...
@@ -157,7 +157,7 @@ echo -e " | ${SrsGprofSummaryColor}rm -f gmon.out; ./objs/srs -c conf/sr
echo -e " | ${SrsGprofSummaryColor}killall -2 srs # or CTRL+C to stop gprof\${BLACK}"
echo -e " | ${SrsGprofSummaryColor}gprof -b ./objs/srs gmon.out > gprof.srs.log && rm -f gmon.out # gprof report to gprof.srs.log\${BLACK}"
echo -e " \${BLACK}+------------------------------------------------------------------------------------\${BLACK}"
echo -e " |${SrsResearchSummaryColor}research: ./objs/research, api server, players, ts info.\${BLACK}"
echo -e " |${SrsResearchSummaryColor}research: ./objs/research, api server, players, ts info
, librtmp
.\${BLACK}"
echo -e " \${BLACK}+------------------------------------------------------------------------------------\${BLACK}"
echo -e " |${SrsBWTCSummaryColor}bandwidth: ./objs/bandwidth, the bandwidth test client\${BLACK}"
echo -e " \${BLACK}+------------------------------------------------------------------------------------\${BLACK}"
...
...
@@ -176,10 +176,12 @@ echo -e " | ${SrsDvrSummaryColor}dvr @see: https://github.com/winlinvip/
echo -e " | ${SrsDvrSummaryColor}dvr: record RTMP stream to flv files.\${BLACK}"
echo -e " | ${SrsNginxSummaryColor}nginx @see: https://github.com/winlinvip/simple-rtmp-server/wiki/DeliveryHLS\${BLACK}"
echo -e " | ${SrsNginxSummaryColor}nginx: delivery HLS stream by nginx\${BLACK}"
echo -e " | ${SrsNginxSummaryColor}nginx: sudo ./objs/nginx/sbin/nginx\${BLACK}"
echo -e " | ${SrsSslSummaryColor}ssl @see: https://github.com/winlinvip/simple-rtmp-server/wiki/RTMPHandshake\${BLACK}"
echo -e " | ${SrsSslSummaryColor}ssl: support RTMP complex handshake for client required, for instance, flash\${BLACK}"
echo -e " | ${SrsFfmpegSummaryColor}ffmpeg @see: https://github.com/winlinvip/simple-rtmp-server/wiki/FFMPEG\${BLACK}"
echo -e " | ${SrsFfmpegSummaryColor}ffmpeg: transcode, mux, ingest tool\${BLACK}"
echo -e " | ${SrsFfmpegSummaryColor}ffmpeg: ./objs/ffmpeg/bin/ffmpeg\${BLACK}"
echo -e " | ${SrsTranscodeSummaryColor}transcode @see: https://github.com/winlinvip/simple-rtmp-server/wiki/FFMPEG\${BLACK}"
echo -e " | ${SrsTranscodeSummaryColor}transcode: support transcoding RTMP stream\${BLACK}"
echo -e " | ${SrsIngestSummaryColor}ingest @see: https://github.com/winlinvip/simple-rtmp-server/wiki/Ingest\${BLACK}"
...
...
@@ -192,6 +194,10 @@ echo -e " | ${SrsHttpApiSummaryColor}http-api @see: https://github.com/w
echo -e " | ${SrsHttpApiSummaryColor}http-api: support http api to manage server\${BLACK}"
echo -e " \${BLACK}+------------------------------------------------------------------------------------\${BLACK}"
echo -e "\${GREEN}binaries @see: https://github.com/winlinvip/simple-rtmp-server/wiki/Build\${BLACK}"
echo "you can:"
echo " ./objs/srs -c conf/srs.conf"
echo " to start the srs server, with config file."
END
#####################################################################################
...
...
@@ -651,12 +657,9 @@ fi
#####################################################################################
ip
=
`
ifconfig|grep
"inet addr"
| grep -v
"127.0.0.1"
|awk
'{print $2}'
|awk -F
':'
'NR==1 {print $2}'
`
echo
""
echo
"you can:"
echo
"
\"
make
\"
to build the srs(simple rtmp server)."
echo
"
\"
make help
\"
to get the usage of make"
echo
"to run 3rdparty application:"
if
[
$SRS_NGINX
=
YES
]
;
then
echo
"
\"
sudo ./objs/nginx/sbin/nginx
\"
to start the nginx http server for hls"
echo
"
\"
http://
$ip
\"
rtmp players(OSMF/JWPlayer)"
fi
if
[
$SRS_FFMPEG_TOOL
=
YES
]
;
then
echo
-e
"
\"
./objs/ffmpeg/bin/ffmpeg
\"
is used for live stream transcoding"
...
...
@@ -664,5 +667,7 @@ fi
if
[
$SRS_HTTP_CALLBACK
=
YES
]
;
then
echo
-e
"
\"
python ./research/api-server/server.py 8085
\"
to start the api-server"
fi
echo
"
\"
./objs/srs -c conf/srs.conf
\"
to start the srs live server"
echo
"
\"
./objs/srs.test
\"
to test srs"
echo
""
echo
"to build:"
echo
"
\"
make
\"
to build the srs(simple rtmp server)."
echo
"
\"
make help
\"
to get the usage of make"
...
...
trunk/research/librtmp/Makefile
查看文件 @
e53655e
...
...
@@ -3,7 +3,7 @@ GCC = gcc
ifeq
($(HANDSHAKE),)
ST_ALL
=
help
else
ST_ALL
=
srs_flv_parser srs_flv_injecter srs_publish srs_play srs_ingest_flv srs_ingest_rtmp
srs_detect_rtmp
ST_ALL
=
objs/srs_flv_parser objs/srs_flv_injecter objs/srs_publish objs/srs_play objs/srs_ingest_flv objs/srs_ingest_rtmp objs/
srs_detect_rtmp
endif
.PHONY
:
default clean help ssl nossl
...
...
@@ -32,7 +32,7 @@ help:
@
echo
"Remark: before make this sample, user must make the srs, with/without ssl"
clean
:
@
rm -
f srs_flv_parser srs_flv_injecter srs_publish srs_play srs_ingest_flv srs_ingest_rtmp srs_detect_rtmp
@
rm -
rf objs
# srs library root
SRS_OBJS
=
../../objs
...
...
@@ -62,27 +62,29 @@ ifeq ($(HANDSHAKE), SSL)
endif
ssl
:
@
mkdir -p objs
$(MAKE)
HANDSHAKE
=
"SSL"
nossl
:
@
mkdir -p objs
$(MAKE)
HANDSHAKE
=
"NOSSL"
srs_flv_parser
:
srs_flv_parser.c $(SRS_RESEARCH_DEPS) $(SRS_LIBRTMP_I) $(SRS_LIBRTMP_L)
$(GCC)
srs_flv_parser.c
$(SRS_LIBRTMP_L)
$(SRS_LIBSSL_L)
$(EXTRA_CXX_FLAG)
-o srs_flv_parser
objs/srs_flv_parser
:
srs_flv_parser.c $(SRS_RESEARCH_DEPS) $(SRS_LIBRTMP_I) $(SRS_LIBRTMP_L)
$(GCC)
srs_flv_parser.c
$(SRS_LIBRTMP_L)
$(SRS_LIBSSL_L)
$(EXTRA_CXX_FLAG)
-o objs/srs_flv_parser
srs_flv_injecter
:
srs_flv_injecter.c $(SRS_RESEARCH_DEPS) $(SRS_LIBRTMP_I) $(SRS_LIBRTMP_L)
$(GCC)
srs_flv_injecter.c
$(SRS_LIBRTMP_L)
$(SRS_LIBSSL_L)
$(EXTRA_CXX_FLAG)
-o srs_flv_injecter
objs/srs_flv_injecter
:
srs_flv_injecter.c $(SRS_RESEARCH_DEPS) $(SRS_LIBRTMP_I) $(SRS_LIBRTMP_L)
$(GCC)
srs_flv_injecter.c
$(SRS_LIBRTMP_L)
$(SRS_LIBSSL_L)
$(EXTRA_CXX_FLAG)
-o objs/srs_flv_injecter
srs_publish
:
srs_publish.c $(SRS_RESEARCH_DEPS) $(SRS_LIBRTMP_I) $(SRS_LIBRTMP_L) $(SRS_LIBSSL_L)
$(GCC)
srs_publish.c
$(SRS_LIBRTMP_L)
$(SRS_LIBSSL_L)
$(EXTRA_CXX_FLAG)
-o srs_publish
objs/srs_publish
:
srs_publish.c $(SRS_RESEARCH_DEPS) $(SRS_LIBRTMP_I) $(SRS_LIBRTMP_L) $(SRS_LIBSSL_L)
$(GCC)
srs_publish.c
$(SRS_LIBRTMP_L)
$(SRS_LIBSSL_L)
$(EXTRA_CXX_FLAG)
-o objs/srs_publish
srs_play
:
srs_play.c $(SRS_RESEARCH_DEPS) $(SRS_LIBRTMP_I) $(SRS_LIBRTMP_L) $(SRS_LIBSSL_L)
$(GCC)
srs_play.c
$(SRS_LIBRTMP_L)
$(SRS_LIBSSL_L)
$(EXTRA_CXX_FLAG)
-o srs_play
objs/srs_play
:
srs_play.c $(SRS_RESEARCH_DEPS) $(SRS_LIBRTMP_I) $(SRS_LIBRTMP_L) $(SRS_LIBSSL_L)
$(GCC)
srs_play.c
$(SRS_LIBRTMP_L)
$(SRS_LIBSSL_L)
$(EXTRA_CXX_FLAG)
-o objs/srs_play
srs_ingest_flv
:
srs_ingest_flv.c $(SRS_RESEARCH_DEPS) $(SRS_LIBRTMP_I) $(SRS_LIBRTMP_L) $(SRS_LIBSSL_L)
$(GCC)
srs_ingest_flv.c
$(SRS_LIBRTMP_L)
$(SRS_LIBSSL_L)
$(EXTRA_CXX_FLAG)
-o srs_ingest_flv
objs/srs_ingest_flv
:
srs_ingest_flv.c $(SRS_RESEARCH_DEPS) $(SRS_LIBRTMP_I) $(SRS_LIBRTMP_L) $(SRS_LIBSSL_L)
$(GCC)
srs_ingest_flv.c
$(SRS_LIBRTMP_L)
$(SRS_LIBSSL_L)
$(EXTRA_CXX_FLAG)
-o objs/srs_ingest_flv
srs_ingest_rtmp
:
srs_ingest_rtmp.c $(SRS_RESEARCH_DEPS) $(SRS_LIBRTMP_I) $(SRS_LIBRTMP_L) $(SRS_LIBSSL_L)
$(GCC)
srs_ingest_rtmp.c
$(SRS_LIBRTMP_L)
$(SRS_LIBSSL_L)
$(EXTRA_CXX_FLAG)
-o srs_ingest_rtmp
objs/srs_ingest_rtmp
:
srs_ingest_rtmp.c $(SRS_RESEARCH_DEPS) $(SRS_LIBRTMP_I) $(SRS_LIBRTMP_L) $(SRS_LIBSSL_L)
$(GCC)
srs_ingest_rtmp.c
$(SRS_LIBRTMP_L)
$(SRS_LIBSSL_L)
$(EXTRA_CXX_FLAG)
-o objs/srs_ingest_rtmp
srs_detect_rtmp
:
srs_detect_rtmp.c $(SRS_RESEARCH_DEPS) $(SRS_LIBRTMP_I) $(SRS_LIBRTMP_L) $(SRS_LIBSSL_L)
$(GCC)
srs_detect_rtmp.c
$(SRS_LIBRTMP_L)
$(SRS_LIBSSL_L)
$(EXTRA_CXX_FLAG)
-o srs_detect_rtmp
objs/srs_detect_rtmp
:
srs_detect_rtmp.c $(SRS_RESEARCH_DEPS) $(SRS_LIBRTMP_I) $(SRS_LIBRTMP_L) $(SRS_LIBSSL_L)
$(GCC)
srs_detect_rtmp.c
$(SRS_LIBRTMP_L)
$(SRS_LIBSSL_L)
$(EXTRA_CXX_FLAG)
-o objs/srs_detect_rtmp
...
...
trunk/src/libs/srs_librtmp.hpp
查看文件 @
e53655e
...
...
@@ -42,7 +42,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
extern
"C"
{
#endif
// the
output
handler.
// the
RTMP
handler.
typedef
void
*
srs_rtmp_t
;
/**
...
...
请
注册
或
登录
后发表评论