mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
update demo script, remove ffmpeg publish. use ingest instead
This commit is contained in:
parent
4f445f2f60
commit
3d073f9ef6
3 changed files with 32 additions and 8 deletions
|
@ -112,6 +112,18 @@ vhost demo.srs.com {
|
|||
output rtmp://127.0.0.1:[port]/[app]?vhost=[vhost]/[stream]_[engine];
|
||||
}
|
||||
}
|
||||
ingest {
|
||||
enable on;
|
||||
input {
|
||||
type file;
|
||||
url ./doc/source.200kbps.768x320.flv;
|
||||
}
|
||||
ffmpeg ./objs/ffmpeg/bin/ffmpeg;
|
||||
engine {
|
||||
enable off;
|
||||
output rtmp://127.0.0.1:[port]/live?vhost=[vhost]/livestream;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
vhost players {
|
||||
|
@ -145,6 +157,18 @@ vhost players {
|
|||
output rtmp://127.0.0.1:[port]/[app]?vhost=players_pub/[stream];
|
||||
}
|
||||
}
|
||||
ingest {
|
||||
enable on;
|
||||
input {
|
||||
type file;
|
||||
url ./doc/source.200kbps.768x320.flv;
|
||||
}
|
||||
ffmpeg ./objs/ffmpeg/bin/ffmpeg;
|
||||
engine {
|
||||
enable off;
|
||||
output rtmp://127.0.0.1:[port]/live?vhost=[vhost]/demo;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
vhost players_pub {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue