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
2013-12-01 14:08:28 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9d65cd1c9f80a2fdbf51b97fe328e862a6b204fa
9d65cd1c
1 parent
35676920
change server name to demo, dev used for development vhost
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
52 行增加
和
15 行删除
README.md
trunk/conf/srs.conf
README.md
查看文件 @
9d65cd1
...
...
@@ -42,33 +42,33 @@ For example, use ffmpeg to publish:
sleep 1;
\
done
</pre>
step 6: add server ip to hosts as de
v
.
<br/>
step 6: add server ip to hosts as de
mo
.
<br/>
<pre>
# edit the folowing file:
# linux: /etc/hosts
# windows: C:\Windows\System32\drivers\etc\hosts
192.
168.2.111 de
v
192.
168.2.111 de
mo
</pre>
step 7: play live stream.
<br/>
<pre>
rtmp url: rtmp://dev:1935/live/livestream
m3u8 url: http://dev:80/live/livestream.m3u8
rtmp url: rtmp://demo:1935/live/livestream
m3u8 url: http://demo:80/live/livestream.m3u8
</pre>
step 8: play live stream auto transcoded
<br/>
<pre>
rtmp url: rtmp://dev:1935/live/livestream_ld
m3u8 url: http://dev:80/live/livestream_ld.m3u8
rtmp url: rtmp://dev:1935/live/livestream_sd
m3u8 url: http://dev:80/live/livestream_sd.m3u8
rtmp url: rtmp://demo:1935/live/livestream_ld
m3u8 url: http://demo:80/live/livestream_ld.m3u8
rtmp url: rtmp://demo:1935/live/livestream_sd
m3u8 url: http://demo:80/live/livestream_sd.m3u8
</pre>
step 9: play live stream auto forwarded, the hls dir change to /forward
<br/>
<pre>
rtmp url: rtmp://dev:19350/live/livestream
m3u8 url: http://dev:80/forward/live/livestream.m3u8
rtmp url: rtmp://dev:19350/live/livestream_ld
m3u8 url: http://dev:80/forward/live/livestream_ld.m3u8
rtmp url: rtmp://dev:19350/live/livestream_sd
m3u8 url: http://dev:80/forward/live/livestream_sd.m3u8
rtmp url: rtmp://demo:19350/live/livestream
m3u8 url: http://demo:80/forward/live/livestream.m3u8
rtmp url: rtmp://demo:19350/live/livestream_ld
m3u8 url: http://demo:80/forward/live/livestream_ld.m3u8
rtmp url: rtmp://demo:19350/live/livestream_sd
m3u8 url: http://demo:80/forward/live/livestream_sd.m3u8
</pre>
### System Requirements
...
...
trunk/conf/srs.conf
查看文件 @
9d65cd1
...
...
@@ -8,6 +8,7 @@ listen 1935;
chunk_size
65000
;
# vhost list, the __defaultVhost__ is the default vhost
# for which cannot identify the required vhost.
# for default demo.
vhost
__
defaultVhost__
{
enabled
on
;
gop_cache
on
;
...
...
@@ -15,7 +16,7 @@ vhost __defaultVhost__ {
hls_path
./
objs
/
nginx
/
html
;
hls_fragment
5
;
hls_window
30
;
#
forward 127.0.0.1:19350;
forward
127
.
0
.
0
.
1
:
19350
;
transcode
{
enabled
on
;
ffmpeg
./
objs
/
ffmpeg
/
bin
/
ffmpeg
;
...
...
@@ -68,6 +69,42 @@ vhost __defaultVhost__ {
}
}
}
# for development
vhost
dev
{
enabled
on
;
gop_cache
on
;
hls
on
;
hls_path
./
objs
/
nginx
/
html
;
hls_fragment
5
;
hls_window
30
;
forward
dev
:
19350
;
transcode
{
enabled
on
;
ffmpeg
./
objs
/
ffmpeg
/
bin
/
ffmpeg
;
engine
dev
{
enabled
on
;
vfilter
{
}
vcodec
libx264
;
vbitrate
300
;
vfps
20
;
vwidth
768
;
vheight
320
;
vthreads
1
;
vprofile
baseline
;
vpreset
superfast
;
vparams
{
}
acodec
libaacplus
;
abitrate
30
;
asample_rate
44100
;
achannels
2
;
aparams
{
}
output
rtmp
://[
vhost
]:[
port
]/[
app
]/[
stream
]
_
dev
;
}
}
}
# the mirror filter of ffmpeg, @see: http://ffmpeg.org/ffmpeg-filters.html#Filtering-Introduction
vhost
mirror
.
transcode
.
vhost
.
com
{
transcode
{
...
...
请
注册
或
登录
后发表评论