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 11:24:26 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1da09e5ffb513e99e41b3f69145435b8295c21f5
1da09e5f
1 parent
a7c83b1a
add sample video
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
20 行增加
和
17 行删除
README.md
trunk/conf/srs.conf
trunk/doc/source.flv
README.md
查看文件 @
1da09e5
...
...
@@ -31,8 +31,11 @@ step 4: publish live stream <br/>
FMS URL: rtmp://127.0.0.1:1935/live
Stream: livestream
For example, use ffmpeg to publish:
ffmpeg -re -i source.flv -vcodec copy -acodec copy
\
-f flv -y rtmp://127.0.0.1:1935/live/livestream
for((;;)); do
\
./objs/ffmpeg/bin/ffmpeg -re -i doc/source.flv -vcodec copy -acodec copy
\
-f flv -y rtmp://127.0.0.1:1935/live/livestream;
\
sleep 1;
\
done
</pre>
step 5: play live stream
<br/>
<pre>
...
...
@@ -41,8 +44,8 @@ m3u8 url: http://127.0.0.1:80/live/livestream.m3u8
</pre>
step 6: play live stream auto transcoded
<br/>
<pre>
rtmp url: rtmp://127.0.0.1:1935/live/livestream_fast
m3u8 url: http://127.0.0.1:80/live/livestream_fast.m3u8
rtmp url: rtmp://127.0.0.1:1935/live/livestream_ld
m3u8 url: http://127.0.0.1:80/live/livestream_ld.m3u8
rtmp url: rtmp://127.0.0.1:1935/live/livestream_sd
m3u8 url: http://127.0.0.1:80/live/livestream_sd.m3u8
</pre>
...
...
trunk/conf/srs.conf
查看文件 @
1da09e5
...
...
@@ -20,7 +20,7 @@ vhost __defaultVhost__ {
enabled
on
;
ffmpeg
./
objs
/
ffmpeg
/
bin
/
ffmpeg
;
#ffmpeg ./research/ffempty/ffempty;
engine
fast
{
engine
ld
{
enabled
on
;
vfilter
{
#vf 'drawtext=text=SRS';
...
...
@@ -31,7 +31,7 @@ vhost __defaultVhost__ {
vcodec
libx264
;
vbitrate
300
;
vfps
20
;
vwidth
480
;
vwidth
768
;
vheight
320
;
vthreads
1
;
vprofile
baseline
;
...
...
@@ -45,7 +45,7 @@ vhost __defaultVhost__ {
aparams
{
profile
:
a
aac_low
;
}
output
rtmp
://[
vhost
]:[
port
]/[
app
]/[
stream
]
_
fast
;
output
rtmp
://[
vhost
]:[
port
]/[
app
]/[
stream
]
_
ld
;
}
engine
sd
{
enabled
on
;
...
...
@@ -55,8 +55,8 @@ vhost __defaultVhost__ {
vcodec
libx264
;
vbitrate
500
;
vfps
20
;
vwidth
720
;
vheight
480
;
vwidth
768
;
vheight
320
;
vthreads
1
;
vprofile
main
;
vpreset
fast
;
...
...
@@ -85,7 +85,7 @@ vhost all.transcode.vhost.com {
# the transcode engine for matched stream.
# all matched stream will transcoded to the following stream.
# the transcode set name(ie. hd) is optional and not used.
engine
super
{
engine
ff
super
{
# whether the engine is enabled
# default: off.
enabled
on
;
...
...
@@ -143,9 +143,9 @@ vhost all.transcode.vhost.com {
# [port] the intput stream port.
# [app] the input stream app.
# [stream] the input stream name.
output
rtmp
://[
vhost
]:[
port
]/[
app
]/[
stream
]
_
super
;
output
rtmp
://[
vhost
]:[
port
]/[
app
]/[
stream
]
_
ff
super
;
}
engine
hd
{
engine
ff
hd
{
enabled
on
;
vcodec
libx264
;
vbitrate
1200
;
...
...
@@ -163,9 +163,9 @@ vhost all.transcode.vhost.com {
achannels
2
;
aparams
{
}
output
rtmp
://[
vhost
]:[
port
]/[
app
]/[
stream
]
_
hd
;
output
rtmp
://[
vhost
]:[
port
]/[
app
]/[
stream
]
_
ff
hd
;
}
engine
sd
{
engine
ff
sd
{
enabled
on
;
vcodec
libx264
;
vbitrate
800
;
...
...
@@ -183,9 +183,9 @@ vhost all.transcode.vhost.com {
achannels
2
;
aparams
{
}
output
rtmp
://[
vhost
]:[
port
]/[
app
]/[
stream
]
_
sd
;
output
rtmp
://[
vhost
]:[
port
]/[
app
]/[
stream
]
_
ff
sd
;
}
engine
fast
{
engine
f
ff
ast
{
enabled
on
;
vcodec
libx264
;
vbitrate
300
;
...
...
@@ -203,7 +203,7 @@ vhost all.transcode.vhost.com {
achannels
2
;
aparams
{
}
output
rtmp
://[
vhost
]:[
port
]/[
app
]/[
stream
]
_
fast
;
output
rtmp
://[
vhost
]:[
port
]/[
app
]/[
stream
]
_
f
ff
ast
;
}
}
}
...
...
trunk/doc/source.flv
0 → 100644
查看文件 @
1da09e5
不能预览此文件类型
请
注册
或
登录
后发表评论