mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
add conf sample for ingest rtsp
This commit is contained in:
parent
4709d0214c
commit
d29416a5f0
3 changed files with 60 additions and 30 deletions
|
@ -1230,6 +1230,10 @@ vhost transcode.ingest.srs.com {
|
|||
ffmpeg ./objs/ffmpeg/bin/ffmpeg;
|
||||
engine {
|
||||
enabled off;
|
||||
perfile {
|
||||
re;
|
||||
rtsp_transport tcp;
|
||||
}
|
||||
iformat flv;
|
||||
vfilter {
|
||||
i ./doc/ffmpeg-logo.png;
|
||||
|
|
26
trunk/conf/ingest.rtsp.conf
Normal file
26
trunk/conf/ingest.rtsp.conf
Normal file
|
@ -0,0 +1,26 @@
|
|||
# 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 {
|
||||
enabled on;
|
||||
input {
|
||||
type stream;
|
||||
url rtsp://admin:12345678@192.168.2.21:554/Streaming/Channels/501?transportmode=unicast;
|
||||
}
|
||||
ffmpeg ./objs/ffmpeg/bin/ffmpeg;
|
||||
engine {
|
||||
enabled on;
|
||||
perfile {
|
||||
rtsp_transport tcp;
|
||||
}
|
||||
vcodec copy;
|
||||
acodec copy;
|
||||
output rtmp://127.0.0.1:[port]/live?vhost=[vhost]/livestream;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue