[http @ 0x7f4de0001060] No trailing CRLF found in HTTP header.0/0
[http @ 0x7f4de0001020] No trailing CRLF found in HTTP header.0/0
[http @ 0x7f4de052afe0] No trailing CRLF found in HTTP header.
[mpegts @ 0x7f4de00008c0] Could not find codec parameters for stream 0 (Audio: aac ([15][0][0][0] / 0x000F), 0 channels, fltp): unspecified sample rate
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[hls,applehttp @ 0x7f4de0009240] Could not find codec parameters for stream 0 (Audio: aac ([15][0][0][0] / 0x000F), 0 channels, fltp): unspecified sample rate
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, hls,applehttp, from 'http://172.16.7.60:8080/hls/34020000001320000125@34020000001320000125/34020000001320000125@34020000001320000125.m3u8':
Duration: N/A, start: 1.960000, bitrate: N/A
Program 0
Metadata:
variant_bitrate : 0
Stream #0:0: Audio: aac ([15][0][0][0] / 0x000F), 0 channels, fltp
Stream #0:1: Video: h264 (High) ([27][0][0][0] / 0x001B), yuvj420p(pc, bt470bg/bt470bg/bt709), 1280x720, 25 fps, 25 tbr, 90k tbn, 50 tbc
[swscaler @ 0x7f4dd4605ca0] deprecated pixel format used, make sure you did set range correctly
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) 使用feature/gb28181连接大华或海康的相机,在相机端没有使能音频,让相机推流到srs上,然后使用ffplay播放m3u8,命令如下:
ffplay显示如下:
v=0 o=34020000002000000060 0 0 IN IP4 172.16.7.60 s=Play c=IN IP4 172.16.7.60 t=0 0 m=video 9000 RTP/AVP 96 a=recvonly a=rtpmap:96 PS/90000 y=0200000125
[2021-09-01 20:06:21.759][Trace][29316][3fk32j06] gb28181: client id=34020000001320000125@34020000001320000125, ssrc=0xbebc27d, peer(, 0), rtmp muxer is alive [2021-09-01 20:06:21.765][Trace][29316][750f3313] SrsGb28181SipService::on_udp_packet, peer_ip(172.16.20.125), peer_port(5060) [2021-09-01 20:06:21.766][Trace][29316][750f3313] gb28181:SrsGb28181SipService::on_udp_sip request peer(172.16.20.125, 5060) nbbuf=303 [2021-09-01 20:06:21.766][Trace][29316][750f3313] SrsGb28181SipService::on_udp_sip session_id(34020000001320000125) [2021-09-01 20:06:21.766][Trace][29316][750f3313] SrsGb28181SipService::on_udp_sip gb28181: is_invite request client id=34020000001320000125, peer(172.16.20.125, 5060) [2021-09-01 20:06:21.766][Trace][29316][750f3313] SrsGb28181SipService::on_udp_sip gb28181: is_invite respone method=INVITE, uri=34020000002000000060@3402000000, version=SIP/2.0 [2021-09-01 20:06:21.766][Trace][29316][750f3313] gb28181: INVITE response 34020000001320000125 client status=100 [2021-09-01 20:06:21.766][Trace][29316][750f3313] SrsGb28181SipService::on_udp_packet, peer_ip(172.16.20.125), peer_port(5060) [2021-09-01 20:06:21.766][Trace][29316][750f3313] gb28181:SrsGb28181SipService::on_udp_sip request peer(172.16.20.125, 5060) nbbuf=410 [2021-09-01 20:06:21.766][Trace][29316][750f3313] SrsGb28181SipService::on_udp_sip session_id(34020000001320000125) [2021-09-01 20:06:21.766][Trace][29316][750f3313] SrsGb28181SipService::on_udp_sip gb28181: is_invite request client id=34020000001320000125, peer(172.16.20.125, 5060) [2021-09-01 20:06:21.766][Trace][29316][750f3313] SrsGb28181SipService::on_udp_sip gb28181: is_invite respone method=INVITE, uri=34020000002000000060@3402000000, version=SIP/2.0 [2021-09-01 20:06:21.766][Trace][29316][750f3313] gb28181: INVITE response 34020000001320000125 client status=101 [2021-09-01 20:06:21.771][Trace][29316][750f3313] SrsGb28181SipService::on_udp_packet, peer_ip(172.16.20.125), peer_port(5060) [2021-09-01 20:06:21.771][Trace][29316][750f3313] gb28181:SrsGb28181SipService::on_udp_sip request peer(172.16.20.125, 5060) nbbuf=669 [2021-09-01 20:06:21.771][Trace][29316][750f3313] gb28181: ssrc in y line is 200000125:bebc27d [2021-09-01 20:06:21.771][Trace][29316][750f3313] SrsGb28181SipService::on_udp_sip session_id(34020000001320000125) [2021-09-01 20:06:21.771][Trace][29316][750f3313] SrsGb28181SipService::on_udp_sip gb28181: is_invite request client id=34020000001320000125, peer(172.16.20.125, 5060) [2021-09-01 20:06:21.771][Trace][29316][750f3313] SrsGb28181SipService::on_udp_sip gb28181: is_invite respone method=INVITE, uri=34020000002000000060@3402000000, version=SIP/2.0 [2021-09-01 20:06:21.771][Trace][29316][750f3313] gb28181: INVITE response 34020000001320000125 client status=200 [2021-09-01 20:06:21.771][Trace][29316][750f3313] gb28181: device unique id is 34020000001320000125@34020000001320000125 [2021-09-01 20:06:21.771][Trace][29316][750f3313] gb28181: SrsGb28181SipService::send_message:ACK sip:34020000001320000125@3402000000 SIP/2.0 Via: SIP/2.0/UDP 172.16.7.60:35000;rport;branch=SrsGbB47052612 From: sip:34020000002000000060@3402000000;tag=SrsGbF18238632 To: sip:34020000001320000125@172.16.20.125:5060;tag=6f6ee232c6ae6afe3c3f9b68632ddaeb Call-ID: 202081677651 CSeq: 101 ACK Max-Forwards: 70 User-Agent: SRS/5.0.10(Leo) Content-Length: 0
[2021-09-01 20:06:21.907][Trace][29316][3fk32j06] gb28181: ps map video es_type=h264(1b), es_id=e0, es_info_length=12 [2021-09-01 20:06:21.908][Trace][29316][3fk32j06] 47B video sh, codec(7, profile=High, level=3.1, 1280x720, 0kbps, 0.0fps, 0.0s) [2021-09-01 20:06:22.840][Trace][29316][750f3313] <- GBS gb28181: client_id , peer(172.16.20.125, 9724) ps rtp packet 40B, age=36947487, vt=2/96, sts=214/93600/0xbebc27d, paylod=28B [2021-09-01 20:06:25.896][Trace][29316][a3d8t9la] Hybrid cpu=3.00%,19MB, cid=4,1, timer=62,0,0, clock=0,48,1,1,0,0,0,0,0, objs=(pkt:78,raw:0,fua:78,msg:109,oth:1,buf:1) [2021-09-01 20:06:30.373][Trace][29316][v93v7is0] HTTP #0 172.16.7.60:60342 GET http://172.16.7.60:8080/hls/34020000001320000125@34020000001320000125/34020000001320000125@34020000001320000125.m3u8, content-length=-1 [2021-09-01 20:06:30.373][Trace][29316][v93v7is0] http match file=./objs/nginx/html/hls/34020000001320000125@34020000001320000125/34020000001320000125@34020000001320000125.m3u8, pattern=/, upath=/hls/34020000001320000125@34020000001320000125/34020000001320000125@34020000001320000125.m3u8 [2021-09-01 20:06:30.373][Trace][29316][v93v7is0] TCP: before dispose resource(HttpStream)(0x18f5bc0), conns=2, zombies=0, ign=0, inz=0, ind=0 [2021-09-01 20:06:30.373][Trace][29316][v93v7is0] client finished. [2021-09-01 20:06:30.373][Trace][29316][48y7700u] TCP: clear zombies=1 resources, conns=2, removing=0, unsubs=0 [2021-09-01 20:06:30.373][Trace][29316][v93v7is0] TCP: disposing #0 resource(HttpStream)(0x18f5bc0), conns=2, disposing=1, zombies=0 [2021-09-01 20:06:30.374][Trace][29316][69079r5o] HTTP #0 172.16.7.60:60344 GET http://172.16.7.60:8080/hls/34020000001320000125@34020000001320000125/34020000001320000125@34020000001320000125-1.ts, content-length=-1 [2021-09-01 20:06:30.374][Trace][29316][69079r5o] http match file=./objs/nginx/html/hls/34020000001320000125@34020000001320000125/34020000001320000125@34020000001320000125-1.ts, pattern=/, upath=/hls/34020000001320000125@34020000001320000125/34020000001320000125@34020000001320000125-1.ts [2021-09-01 20:06:30.375][Trace][29316][69079r5o] TCP: before dispose resource(HttpStream)(0x18f5bc0), conns=2, zombies=0, ign=0, inz=0, ind=0 [2021-09-01 20:06:30.375][Trace][29316][69079r5o] client finished. [2021-09-01 20:06:30.375][Trace][29316][48y7700u] TCP: clear zombies=1 resources, conns=2, removing=0, unsubs=0 [2021-09-01 20:06:30.375][Trace][29316][69079r5o] TCP: disposing #0 resource(HttpStream)(0x18f5bc0), conns=2, disposing=1, zombies=0 [2021-09-01 20:06:30.413][Trace][29316][3are8721] HTTP #0 172.16.7.60:60346 GET http://172.16.7.60:8080/hls/34020000001320000125@34020000001320000125/34020000001320000125@34020000001320000125-2.ts, content-length=-1 [2021-09-01 20:06:30.413][Trace][29316][3are8721] http match file=./objs/nginx/html/hls/34020000001320000125@34020000001320000125/34020000001320000125@34020000001320000125-2.ts, pattern=/, upath=/hls/34020000001320000125@34020000001320000125/34020000001320000125@34020000001320000125-2.ts [2021-09-01 20:06:30.415][Trace][29316][3are8721] TCP: before dispose resource(HttpStream)(0x19a0ba0), conns=2, zombies=0, ign=0, inz=0, ind=0
listen 1935; max_connections 1000; daemon off; srs_log_tank console;
http_api { enabled on; listen 1985; }
http_server { enabled on; listen 8080; }
stats { network 0; }
stream_caster { enabled on; caster gb28181;
}
rtc_server { enabled on;
Listen at udp://8000
}
vhost defaultVhost { rtc { enabled on; bframe discard; }
}