|
|
@ -540,46 +540,46 @@ vhost rtc.vhost.srs.com {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#############################################################################################
|
|
|
|
#############################################################################################
|
|
|
|
# Streamer sections
|
|
|
|
# Stream converter sections
|
|
|
|
#############################################################################################
|
|
|
|
#############################################################################################
|
|
|
|
# the streamer cast stream from other protocol to SRS over RTMP.
|
|
|
|
# The stream converter coverts stream from other protocol to SRS over RTMP.
|
|
|
|
# @see https://github.com/ossrs/srs/tree/develop#stream-architecture
|
|
|
|
# @see https://github.com/ossrs/srs/tree/develop#stream-architecture
|
|
|
|
|
|
|
|
|
|
|
|
# Push MPEGTS over UDP, see https://github.com/ossrs/srs/issues/250
|
|
|
|
# Push MPEGTS over UDP to SRS.
|
|
|
|
stream_caster {
|
|
|
|
stream_caster {
|
|
|
|
# whether stream caster is enabled.
|
|
|
|
# Whether stream converter is enabled.
|
|
|
|
# default: off
|
|
|
|
# Default: off
|
|
|
|
enabled on;
|
|
|
|
enabled on;
|
|
|
|
# the caster type of stream, the casters:
|
|
|
|
# The type of stream converter, could be:
|
|
|
|
# mpegts_over_udp, MPEG-TS over UDP caster.
|
|
|
|
# mpegts_over_udp, push MPEG-TS over UDP and convert to RTMP.
|
|
|
|
caster mpegts_over_udp;
|
|
|
|
caster mpegts_over_udp;
|
|
|
|
# the output rtmp url.
|
|
|
|
# The output rtmp url.
|
|
|
|
# for mpegts_over_udp caster, the typically output url:
|
|
|
|
# For mpegts_over_udp converter, the typically output url:
|
|
|
|
# rtmp://127.0.0.1/live/livestream
|
|
|
|
# rtmp://127.0.0.1/live/livestream
|
|
|
|
output rtmp://127.0.0.1/live/livestream;
|
|
|
|
output rtmp://127.0.0.1/live/livestream;
|
|
|
|
# the listen port for stream caster.
|
|
|
|
# The listen port for stream converter.
|
|
|
|
# for mpegts_over_udp caster, listen at udp port. for example, 8935.
|
|
|
|
# For mpegts_over_udp converter, listen at udp port. for example, 8935.
|
|
|
|
listen 8935;
|
|
|
|
listen 8935;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# Push HTTP-FLV stream, see https://github.com/ossrs/srs/issues/2611
|
|
|
|
# Push FLV by HTTP POST to SRS.
|
|
|
|
stream_caster {
|
|
|
|
stream_caster {
|
|
|
|
# whether stream caster is enabled.
|
|
|
|
# Whether stream converter is enabled.
|
|
|
|
# default: off
|
|
|
|
# Default: off
|
|
|
|
enabled on;
|
|
|
|
enabled on;
|
|
|
|
# the caster type of stream, the casters:
|
|
|
|
# The type of stream converter, could be:
|
|
|
|
# flv, FLV over HTTP by POST.
|
|
|
|
# flv, push FLV by HTTP POST and convert to RTMP.
|
|
|
|
caster flv;
|
|
|
|
caster flv;
|
|
|
|
# the output rtmp url.
|
|
|
|
# The output rtmp url.
|
|
|
|
# for flv caster, the typically output url:
|
|
|
|
# For flv converter, the typically output url:
|
|
|
|
# rtmp://127.0.0.1/[app]/[stream]
|
|
|
|
# rtmp://127.0.0.1/[app]/[stream]
|
|
|
|
# for example, POST to url:
|
|
|
|
# For example, POST to url:
|
|
|
|
# http://127.0.0.1:8936/live/livestream.flv
|
|
|
|
# http://127.0.0.1:8936/live/livestream.flv
|
|
|
|
# where the [app] is "live" and [stream] is "livestream", output is:
|
|
|
|
# Where the [app] is "live" and [stream] is "livestream", output is:
|
|
|
|
# rtmp://127.0.0.1/live/livestream
|
|
|
|
# rtmp://127.0.0.1/live/livestream
|
|
|
|
output rtmp://127.0.0.1/[app]/[stream];
|
|
|
|
output rtmp://127.0.0.1/[app]/[stream];
|
|
|
|
# the listen port for stream caster.
|
|
|
|
# The listen port for stream converter.
|
|
|
|
# for flv caster, listen at tcp port. for example, 8936.
|
|
|
|
# For flv converter, listen at tcp port. for example, 8936.
|
|
|
|
listen 8936;
|
|
|
|
listen 8936;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -587,20 +587,20 @@ stream_caster {
|
|
|
|
# For SIP specification, see https://www.ietf.org/rfc/rfc3261.html
|
|
|
|
# For SIP specification, see https://www.ietf.org/rfc/rfc3261.html
|
|
|
|
# For GB28181 2016 spec, see https://openstd.samr.gov.cn/bzgk/gb/newGbInfo?hcno=469659DC56B9B8187671FF08748CEC89
|
|
|
|
# For GB28181 2016 spec, see https://openstd.samr.gov.cn/bzgk/gb/newGbInfo?hcno=469659DC56B9B8187671FF08748CEC89
|
|
|
|
stream_caster {
|
|
|
|
stream_caster {
|
|
|
|
# Whether GB28181 server is enabled.
|
|
|
|
# Whether stream converter is enabled.
|
|
|
|
# Default: off
|
|
|
|
# Default: off
|
|
|
|
enabled off;
|
|
|
|
enabled off;
|
|
|
|
# The caster type of stream, the casters:
|
|
|
|
# The type of stream converter, could be:
|
|
|
|
# gb28181, Push GB28181 stream to SRS.
|
|
|
|
# gb28181, Push GB28181 stream and convert to RTMP.
|
|
|
|
caster gb28181;
|
|
|
|
caster gb28181;
|
|
|
|
# The output rtmp url.
|
|
|
|
# The output rtmp url.
|
|
|
|
# For gb28181 caster, the typically output url:
|
|
|
|
# For gb28181 converter, the typically output url:
|
|
|
|
# rtmp://127.0.0.1/live/[stream]
|
|
|
|
# rtmp://127.0.0.1/live/[stream]
|
|
|
|
# The available variables:
|
|
|
|
# The available variables:
|
|
|
|
# [stream] The video channel codec ID.
|
|
|
|
# [stream] The video channel codec ID.
|
|
|
|
output rtmp://127.0.0.1/live/[stream];
|
|
|
|
output rtmp://127.0.0.1/live/[stream];
|
|
|
|
# The listen TCP/UDP port for stream caster.
|
|
|
|
# The listen TCP/UDP port for stream converter.
|
|
|
|
# For gb28181 caster, listen at TCP/UDP port. for example, 9000.
|
|
|
|
# For gb28181 converter, listen at TCP/UDP port. for example, 9000.
|
|
|
|
# @remark We always enable bundle for media streams at this port.
|
|
|
|
# @remark We always enable bundle for media streams at this port.
|
|
|
|
listen 9000;
|
|
|
|
listen 9000;
|
|
|
|
# SIP server for GB28181. Please note that this is only a demonstrated SIP server, please never use it in your
|
|
|
|
# SIP server for GB28181. Please note that this is only a demonstrated SIP server, please never use it in your
|
|
|
|