2014-04-07 07:04:31 +00:00
|
|
|
# use ffmpeg to ingest file/stream/device to SRS
|
2022-07-31 08:26:35 +00:00
|
|
|
# @see https://ossrs.net/lts/zh-cn/docs/v4/doc/sample-ingest
|
2014-04-07 07:04:31 +00:00
|
|
|
# @see full.conf for detail config.
|
|
|
|
|
|
|
|
listen 1935;
|
2014-07-26 07:34:45 +00:00
|
|
|
max_connections 1000;
|
2021-02-18 03:39:25 +00:00
|
|
|
daemon off;
|
|
|
|
srs_log_tank console;
|
2014-04-07 07:04:31 +00:00
|
|
|
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;
|
2022-08-31 05:30:13 +00:00
|
|
|
output rtmp://127.0.0.1:[port]/live/livestream?vhost=[vhost];
|
2014-04-07 07:04:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|