add conf sample for ingest rtsp

pull/737/head
winlin 8 years ago
parent 4709d0214c
commit d29416a5f0

60
trunk/.gitignore vendored

@ -1,32 +1,32 @@
*.conf
doc/frozen*.flv
doc/kungfupanda*.flv
doc/time*.flv
html
ide/srs_xcode/srs_xcode.xcodeproj/project.xcworkspace/xcshareddata/
ide/srs_xcode/srs_xcode.xcodeproj/project.xcworkspace/xcuserdata/
ide/srs_xcode/srs_xcode.xcodeproj/xcuserdata/
research/aac/
.idea/ .idea/
research/api-server/static-dir/mse /*.conf
research/bat/ /doc/frozen*.flv
research/big/ /doc/kungfupanda*.flv
research/bitch/ /doc/time*.flv
research/bott/ /html
research/cgo/ /ide/srs_xcode/srs_xcode.xcodeproj/project.xcworkspace/xcshareddata/
research/dns/ /ide/srs_xcode/srs_xcode.xcodeproj/project.xcworkspace/xcuserdata/
research/empty/ /ide/srs_xcode/srs_xcode.xcodeproj/xcuserdata/
research/golang/golang /research/aac/
research/golang/temp.flv /research/api-server/static-dir/mse
research/librtmp/720p.h264.raw /research/bat/
research/librtmp/test.h264 /research/big/
research/licenser/ /research/bitch/
research/players/fls_player/ /research/bott/
research/players/mic/ /research/cgo/
research/proxy/ /research/dns/
research/redis-ocluster/ /research/empty/
research/rtmfp/ /research/golang/golang
research/snap/ /research/golang/temp.flv
research/speex/ /research/librtmp/720p.h264.raw
test/ /research/librtmp/test.h264
/research/licenser/
/research/players/fls_player/
/research/players/mic/
/research/proxy/
/research/redis-ocluster/
/research/rtmfp/
/research/snap/
/research/speex/
/test/

@ -1230,6 +1230,10 @@ vhost transcode.ingest.srs.com {
ffmpeg ./objs/ffmpeg/bin/ffmpeg; ffmpeg ./objs/ffmpeg/bin/ffmpeg;
engine { engine {
enabled off; enabled off;
perfile {
re;
rtsp_transport tcp;
}
iformat flv; iformat flv;
vfilter { vfilter {
i ./doc/ffmpeg-logo.png; i ./doc/ffmpeg-logo.png;

@ -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…
Cancel
Save