2014-04-07 07:04:31 +00:00
|
|
|
# use ffmpeg to ingest file/stream/device to SRS
|
|
|
|
# @see https://github.com/winlinvip/simple-rtmp-server/wiki/SampleIngest
|
|
|
|
# @see full.conf for detail config.
|
|
|
|
|
|
|
|
listen 1935;
|
|
|
|
vhost __defaultVhost__ {
|
2014-04-08 07:47:52 +00:00
|
|
|
ingest livestream {
|
2014-04-17 08:06:49 +00:00
|
|
|
enabled on;
|
2014-04-07 07:04:31 +00:00
|
|
|
input {
|
|
|
|
type file;
|
|
|
|
url ./doc/source.200kbps.768x320.flv;
|
|
|
|
}
|
|
|
|
ffmpeg ./objs/ffmpeg/bin/ffmpeg;
|
|
|
|
engine {
|
2014-04-17 08:06:49 +00:00
|
|
|
enabled off;
|
2014-04-07 07:04:31 +00:00
|
|
|
output rtmp://127.0.0.1:[port]/live?vhost=[vhost]/livestream;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|