Closed jp1017 closed 6 years ago
单独推送音频时返回0, 1, 2, 4, 是什么问题呢
10-12 14:58:56.007 W/CameraServer(18941): 推流onCallback: 0
10-12 14:58:56.008 W/CameraServer(18941): 推流激活成功
10-12 14:58:56.009 D/libEasyPusher(18941): EasyStreamPusher_StartStream serverAddr[video.qd.com] port[10554] videoCodec[28] audioCodec[86018] samplerate[8000] serverURL[rtsp://video.qd.com:10554/107700000088_11.sdp]
10-12 14:58:56.015 D/libEasyPusher(18941): init sock: 0
10-12 14:58:56.015 E/easypusher_jni(18941): ____isActivated__....... userPtr=-750104944
10-12 14:58:56.015 W/CameraServer(18941): 推流onCallback: 1
10-12 14:58:56.016 W/CameraServer(18941): 推流连接中
10-12 14:58:56.021 W/MediaAudioEncoder(18941): 音/视频: micId: 0
10-12 14:58:56.030 D/libEasyPusher(18941): IP address: 139.224.226.23
10-12 14:58:56.030 D/libEasyPusher(18941): Connecting [139.224.226.23:10554]
10-12 14:58:56.063 E/easypusher_jni(18941): ____isActivated__....... userPtr=-750104944
10-12 14:58:56.063 W/CameraServer(18941): 推流onCallback: 2
10-12 14:58:56.063 W/CameraServer(18941): 推流连接成功
10-12 14:58:56.063 D/libEasyPusher(18941): Connect success
10-12 14:58:56.066 D/libEasyPusher(18941): SEND[726]
10-12 14:58:56.066 D/libEasyPusher(18941): ANNOUNCE rtsp://video.qd.com:10554/107700000088_11.sdp RTSP/1.0
10-12 14:58:56.066 D/libEasyPusher(18941): CSeq: 1
10-12 14:58:56.066 D/libEasyPusher(18941): User-Agent: EasyPusher v1.2.16.1105
10-12 14:58:56.066 D/libEasyPusher(18941): Content-Type: application/sdp
10-12 14:58:56.066 D/libEasyPusher(18941): Content-Length: 557
10-12 14:58:56.066 D/libEasyPusher(18941):
10-12 14:58:56.066 D/libEasyPusher(18941): v=0
10-12 14:58:56.066 D/libEasyPusher(18941): o=- 2205756022 2205756022 IN IP4 127.0.0.1
10-12 14:58:56.066 D/libEasyPusher(18941): s=EasyDarwin
10-12 14:58:56.066 D/libEasyPusher(18941): i=EasyDarwin
10-12 14:58:56.066 D/libEasyPusher(18941): c=IN IP4 127.0.0.1
10-12 14:58:56.066 D/libEasyPusher(18941): t=0 0
10-12 14:58:56.066 D/libEasyPusher(18941): a=x-qt-text-nam:EasyDarwin
10-12 14:58:56.066 D/libEasyPusher(18941): a=x-qt-text-inf:EasyDarwin
10-12 14:58:56.066 D/libEasyPusher(18941): a=x-qt-text-cmt:source application::EasyDarwin
10-12 14:58:56.066 D/libEasyPusher(18941): a=x-qt-text-aut:
10-12 14:58:56.066 D/libEasyPusher(18941): a=x-qt-text-cpy:
10-12 14:58:56.066 D/libEasyPusher(18941): m=video 0 RTP/AVP 96
10-12 14:58:56.066 D/libEasyPusher(18941): a=rtpmap:96 H264/90000
10-12 14:58:56.066 D/libEasyPusher(18941): a=fmtp:96 packetization-mode=1;sprop-parameter-sets=
10-12 14:58:56.066 D/libEasyPusher(18941): a=control:trackID=1
10-12 14:58:56.066 D/libEasyPusher(18941): m=audio 0 RTP/AVP 97
10-12 14:58:56.066 D/libEasyPusher(18941): a=rtpmap:97 MPEG4-GENERIC/8000/1
10-12 14:58:56.066 D/libEasyPusher(18941): a=fmtp:97 streamtype=5;profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3;config=1588
10-12 14:58:56.066 D/libEasyPusher(18941): a=control:trackID=2
10-12 14:58:56.066 D/libEasyPusher(18941):
10-12 14:58:56.092 D/libEasyPusher(18941): RECV[125]
10-12 14:58:56.092 D/libEasyPusher(18941): RTSP/1.0 200 OK
10-12 14:58:56.092 D/libEasyPusher(18941): Server: EasyDarwin/7.3 (Build/17.0325; Platform/Win32; Release/EasyDarwin; State/Development; )
10-12 14:58:56.092 D/libEasyPusher(18941): Cseq: 1
10-12 14:58:56.092 D/libEasyPusher(18941):
10-12 14:58:56.092 D/libEasyPusher(18941):
10-12 14:58:56.092 D/libEasyPusher(18941): SEND[184]
10-12 14:58:56.092 D/libEasyPusher(18941): SETUP rtsp://video.qdsxkj.com:10554/107700000088_11.sdp/trackID=1 RTSP/1.0
10-12 14:58:56.092 D/libEasyPusher(18941): CSeq: 2
10-12 14:58:56.092 D/libEasyPusher(18941): User-Agent: EasyPusher v1.2.16.1105
10-12 14:58:56.092 D/libEasyPusher(18941): Transport: RTP/AVP/TCP;unicast;mode=record;interleaved=0-1
10-12 14:58:56.092 D/libEasyPusher(18941):
10-12 14:58:56.092 D/libEasyPusher(18941):
10-12 14:58:56.123 D/libEasyPusher(18941): RECV[312]
10-12 14:58:56.123 D/libEasyPusher(18941): RTSP/1.0 200 OK
10-12 14:58:56.123 D/libEasyPusher(18941): Server: EasyDarwin/7.3 (Build/17.0325; Platform/Win32; Release/EasyDarwin; State/Development; )
10-12 14:58:56.123 D/libEasyPusher(18941): Cseq: 2
10-12 14:58:56.123 D/libEasyPusher(18941): Cache-Control: no-cache
10-12 14:58:56.123 D/libEasyPusher(18941): Session: 17806934427188
10-12 14:58:56.123 D/libEasyPusher(18941): Date: Thu, 12 Oct 2017 06:58:56 GMT
10-12 14:58:56.123 D/libEasyPusher(18941): Expires: Thu, 12 Oct 2017 06:58:56 GMT
10-12 14:58:56.123 D/libEasyPusher(18941): Transport: RTP/AVP/TCP;unicast;mode=record;interleaved=0-1
10-12 14:58:56.123 D/libEasyPusher(18941):
10-12 14:58:56.123 D/libEasyPusher(18941):
10-12 14:58:56.123 D/libEasyPusher(18941): SEND[209]
10-12 14:58:56.123 D/libEasyPusher(18941): SETUP rtsp://video.qdsxkj.com:10554/107700000088_11.sdp/trackID=2 RTSP/1.0
10-12 14:58:56.123 D/libEasyPusher(18941): CSeq: 3
10-12 14:58:56.123 D/libEasyPusher(18941): User-Agent: EasyPusher v1.2.16.1105
10-12 14:58:56.123 D/libEasyPusher(18941): Transport: RTP/AVP/TCP;unicast;mode=record;interleaved=2-3
10-12 14:58:56.123 D/libEasyPusher(18941): Session: 17806934427188
10-12 14:58:56.123 D/libEasyPusher(18941):
10-12 14:58:56.123 D/libEasyPusher(18941):
10-12 14:58:56.149 D/libEasyPusher(18941): RECV[312]
10-12 14:58:56.149 D/libEasyPusher(18941): RTSP/1.0 200 OK
10-12 14:58:56.149 D/libEasyPusher(18941): Server: EasyDarwin/7.3 (Build/17.0325; Platform/Win32; Release/EasyDarwin; State/Development; )
10-12 14:58:56.149 D/libEasyPusher(18941): Cseq: 3
10-12 14:58:56.149 D/libEasyPusher(18941): Session: 17806934427188
10-12 14:58:56.149 D/libEasyPusher(18941): Cache-Control: no-cache
10-12 14:58:56.149 D/libEasyPusher(18941): Date: Thu, 12 Oct 2017 06:58:56 GMT
10-12 14:58:56.149 D/libEasyPusher(18941): Expires: Thu, 12 Oct 2017 06:58:56 GMT
10-12 14:58:56.149 D/libEasyPusher(18941): Transport: RTP/AVP/TCP;unicast;mode=record;interleaved=2-3
10-12 14:58:56.149 D/libEasyPusher(18941):
10-12 14:58:56.149 D/libEasyPusher(18941):
10-12 14:58:56.149 D/libEasyPusher(18941): SEND[157]
10-12 14:58:56.149 D/libEasyPusher(18941): PLAY rtsp://video.qd.com:10554/107700000088_11.sdp RTSP/1.0
10-12 14:58:56.149 D/libEasyPusher(18941): CSeq: 4
10-12 14:58:56.149 D/libEasyPusher(18941): User-Agent: EasyPusher v1.2.16.1105
10-12 14:58:56.149 D/libEasyPusher(18941): Session: 17806934427188
10-12 14:58:56.149 D/libEasyPusher(18941): Range: npt=0.000-
10-12 14:58:56.149 D/libEasyPusher(18941):
10-12 14:58:56.149 D/libEasyPusher(18941):
10-12 14:58:56.173 W/MediaAudioEncoder(18941): output format changed...
10-12 14:58:56.176 D/libEasyPusher(18941): RECV[309]
10-12 14:58:56.176 D/libEasyPusher(18941): RTSP/1.0 200 OK
10-12 14:58:56.176 D/libEasyPusher(18941): Server: EasyDarwin/7.3 (Build/17.0325; Platform/Win32; Release/EasyDarwin; State/Development; )
10-12 14:58:56.176 D/libEasyPusher(18941): Cseq: 4
10-12 14:58:56.176 D/libEasyPusher(18941): Session: 17806934427188
10-12 14:58:56.176 D/libEasyPusher(18941): RTP-Info: url=rtsp://video.qd.com:10554/107700000088_11.sdp/107700000088_11.sdp,url=rtsp://video.qd.com:10554/107700000088_11.sdp/107700000088_11.sdp
10-12 14:58:56.176 D/libEasyPusher(18941):
10-12 14:58:56.176 D/libEasyPusher(18941):
10-12 14:58:56.176 D/libEasyPusher(18941): RTSP interaction is complete. Prepare to send RTP...
10-12 14:59:00.000 D/libEasyPusher(18941): Video source is lost. times:5
10-12 14:59:00.020 W/LOGSERVICELOG(18941): mLogTaskReceiver: MONITOR_LOG_SIZE
10-12 14:59:00.020 W/LOGSERVICELOG(18941): -- checLogSize() --
10-12 14:59:01.000 D/libEasyPusher(18941): Video source is lost. times:5
10-12 14:59:27.229 D/libEasyPusher(18941): EasyStreamPusher rcvpos: 0
10-12 14:59:27.229 D/libEasyPusher(18941): EasyStreamPusher: 105 exit 0..
10-12 14:59:27.229 E/easypusher_jni(18941): ____isActivated__....... userPtr=-753162752
10-12 14:59:27.230 W/MediaAudioEncoder(18941): 推流onCallback: 4
10-12 14:59:27.230 W/MediaAudioEncoder(18941): 推流连接异常中断
10-12 14:59:27.230 D/libEasyPusher(18941): close socket..
10-12 14:59:27.230 D/libEasyPusher(18941): init sock: -1
如果是自己编译的版本,请重新拉取下编译试试。或者下载https://fir.im/EasyPusher安装试试
key不对, initPusher返回一个负数, 请问这些这些返回码哪里有说明呢 @jinlong0813
返回码分别是0, 1, 2, 6