2014-03-18 07:38:34 +00:00
|
|
|
# the config for srs use ffmpeg to transcode
|
2015-11-11 02:37:50 +00:00
|
|
|
# @see https://github.com/ossrs/srs/wiki/v1_CN_SampleFFMPEG
|
2014-03-18 07:38:34 +00:00
|
|
|
# @see full.conf for detail config.
|
|
|
|
|
2014-03-10 15:13:09 +00:00
|
|
|
listen 1935;
|
2014-07-26 07:34:45 +00:00
|
|
|
max_connections 1000;
|
2014-03-10 15:13:09 +00:00
|
|
|
vhost __defaultVhost__ {
|
|
|
|
transcode {
|
|
|
|
enabled on;
|
|
|
|
ffmpeg ./objs/ffmpeg/bin/ffmpeg;
|
|
|
|
engine ff {
|
|
|
|
enabled on;
|
|
|
|
vfilter {
|
|
|
|
}
|
|
|
|
vcodec libx264;
|
2015-07-21 04:07:26 +00:00
|
|
|
vthreads 4;
|
2014-03-10 15:13:09 +00:00
|
|
|
vprofile main;
|
|
|
|
vpreset medium;
|
|
|
|
vparams {
|
|
|
|
}
|
2015-03-06 14:35:02 +00:00
|
|
|
acodec libfdk_aac;
|
2014-03-10 15:13:09 +00:00
|
|
|
aparams {
|
|
|
|
}
|
|
|
|
output rtmp://127.0.0.1:[port]/[app]?vhost=[vhost]/[stream]_[engine];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|