listen 8000;
#
# The $CANDIDATE means fetch from env, if not configed, use * as default.
#
# The * means retrieving server IP automatically, from all network interfaces,
# @see https://github.com/ossrs/srs/issues/307#issuecomment-599028124
candidate $CANDIDATE;
描述(Description) 使用 海康的ipc 国标推流到srs-gb28181,归属vhost 是空字符串,添加dvr 录制配置后设备连接不上
[2022-02-11 13:42:37.138][Trace][17032][77k94442] gb28181: 34020000001320000003 clients device=34020000001320000031 send invite code=1028 [2022-02-11 13:42:37.139][Trace][17032][77k94442] gb28181: sip session=34020000001320000003 peer(192.168.2.102, 5060) status(RegisterOk,AliveOk) duration(436,11) [2022-02-11 13:42:37.751][Trace][17032][n70w09eq] gb28181: 34020000001320000002 clients device=34020000001320000021 send invite code=1028 [2022-02-11 13:42:38.139][Trace][17032][77k94442] gb28181: generate ssrc id=34020000001320000003@34020000001320000031, ssrc=23303 [2022-02-11 13:42:38.139][Warn][17032][77k94442][11] gb28181: create rtmp muxer error, code=1028 : gb28181: rtmp muxer initialize 34020000001320000003@34020000001320000031 : gb28181 rtmp: stream /live/34020000001320000003@34020000001320000031 is busy thread [17032][77k94442]: fetch_or_create_rtmpmuxer() [src/app/srs_app_gb28181.cpp:1854][errno=11] thread [17032][77k94442]: initialize() [src/app/srs_app_gb28181.cpp:986][errno=11] [2022-02-11 13:42:38.140][Warn][17032][77k94442][11] gb28181: create rtmp muxer error, code=1028 : gb28181: rtmp muxer initialize 34020000001320000003@34020000001320000031 : gb28181 rtmp: stream /live/34020000001320000003@34020000001320000031 is busy thread [17032][77k94442]: fetch_or_create_rtmpmuxer() [src/app/srs_app_gb28181.cpp:1854][errno=11] thread [17032][77k94442]: initialize() [src/app/srs_app_gb28181.cpp:986][errno=11] [2022-02-11 13:42:38.751][Trace][17032][n70w09eq] gb28181: generate ssrc id=34020000001320000002@34020000001320000021, ssrc=38116615 [2022-02-11 13:42:38.752][Warn][17032][n70w09eq][11] gb28181: create rtmp muxer error, code=1028 : gb28181: rtmp muxer initialize 34020000001320000002@34020000001320000021 : gb28181 rtmp: stream /live/34020000001320000002@34020000001320000021 is busy thread [17032][n70w09eq]: fetch_or_create_rtmpmuxer() [src/app/srs_app_gb28181.cpp:1854][errno=11] thread [17032][n70w09eq]: initialize() [src/app/srs_app_gb28181.cpp:986][errno=11] [2022-02-11 13:42:38.752][Warn][17032][n70w09eq][11] gb28181: create rtmp muxer error, code=1028 : gb28181: rtmp muxer initialize 34020000001320000002@34020000001320000021 : gb28181 rtmp: stream /live/34020000001320000002@34020000001320000021 is busy thread [17032][n70w09eq]: fetch_or_create_rtmpmuxer() [src/app/srs_app_gb28181.cpp:1854][errno=11] thread [17032][n70w09eq]: initialize() [src/app/srs_app_gb28181.cpp:986][errno=11] [2022-02-11 13:42:39.081][Trace][17032][76p5b58o] Hybrid cpu=0.00%,19MB, cid=8,0, timer=62,0,0, clock=0,46,2,0,0,0,0,0,0 [2022-02-11 13:42:39.140][Trace][17032][77k94442] gb28181: 34020000001320000003 clients device=34020000001320000031 send invite code=1028 [2022-02-11 13:42:39.752][Trace][17032][n70w09eq] gb28181: 34020000001320000002 clients device=34020000001320000021 send invite code=1028 [2022-02-11 13:42:39.752][Trace][17032][n70w09eq] gb28181: sip session=34020000001320000002 peer(192.168.2.101, 5060) status(RegisterOk,AliveOk) duration(439,13) ^C[2022-02-11 13:42:39.813][Trace][17032][y3nps8cd] sig=2, user terminate program, fast quit [2022-02-11 13:42:40.141][Trace][17032][77k94442] gb28181: generate ssrc id=34020000001320000003@34020000001320000031, ssrc=23311 [2022-02-11 13:42:40.141][Warn][17032][77k94442][11] gb28181: create rtmp muxer error, code=1028 : gb28181: rtmp muxer initialize 34020000001320000003@34020000001320000031 : gb28181 rtmp: stream /live/34020000001320000003@34020000001320000031 is busy thread [17032][77k94442]: fetch_or_create_rtmpmuxer() [src/app/srs_app_gb28181.cpp:1854][errno=11] thread [17032][77k94442]: initialize() [src/app/srs_app_gb28181.cpp:986][errno=11] [2022-02-11 13:42:40.141][Warn][17032][77k94442][11] gb28181: create rtmp muxer error, code=1028 : gb28181: rtmp muxer initialize 34020000001320000003@34020000001320000031 : gb28181 rtmp: stream /live/34020000001320000003@34020000001320000031 is busy thread [17032][77k94442]: fetch_or_create_rtmpmuxer() [src/app/srs_app_gb28181.cpp:1854][errno=11]
push gb28181 stream to SRS.
listen 1935; max_connections 1000; daemon off; srs_log_tank console;
http_api { enabled on; listen 1985;
}
http_server { enabled on; listen 8080; https { enabled on; listen 443; key ./conf/server.key; cert ./conf/server.crt; }
}
stats { network 0; }
stream_caster { enabled on; caster gb28181;
}
rtc_server { enabled on;
Listen at udp://8000
}
vhost defaultVhost { http_hooks { enabled on; on_connect http://192.168.2.202:8088/srs/v3/api/connect; on_close http://192.168.2.202:8088/srs/v3/api/close;
on_publish http://192.168.2.202:8088/srs/v3/api/publish; on_unpublish http://192.168.2.202:8088/srs/v3/api/unPublish;
on_play http://192.168.2.202:8088/srs/v3/api/play;
on_stop http://192.168.2.202:8088/srs/v3/api/stop; on_hls http://192.168.2.202:8088/srs/v3/api/hls; } dvr { enabled on;
all表示录制所有视频流,也可以按频道录制
}