mirror of
https://github.com/ossrs/srs.git
synced 2025-02-12 19:31:53 +00:00
20 lines
576 B
Text
20 lines
576 B
Text
# use ffmpeg to ingest file/stream/device to SRS
|
|
# @see https://github.com/ossrs/srs/wiki/v1_CN_SampleIngest
|
|
# @see full.conf for detail config.
|
|
|
|
listen 1935;
|
|
max_connections 1000;
|
|
vhost __defaultVhost__ {
|
|
ingest livestream {
|
|
enabled on;
|
|
input {
|
|
type file;
|
|
url ./doc/source.200kbps.768x320.flv;
|
|
}
|
|
ffmpeg ./objs/ffmpeg/bin/ffmpeg;
|
|
engine {
|
|
enabled off;
|
|
output rtmp://127.0.0.1:[port]/live?vhost=[vhost]/livestream;
|
|
}
|
|
}
|
|
}
|