AnyChat技术支持论坛
标题: 远程视频不显示,是远程视频解码不成功?? [打印本页]
作者: lipiaoliang 时间: 2018-6-7 19:29
标题: 远程视频不显示,是远程视频解码不成功??
WEB网页端有时候会出现,远程视频不显示的情况,特别是首次视频通话的时候,日志如下:
- [2018-06-07 18:23:35(425)][I] On Remote UserCameraControl(dwUserId:-52499, bOpen:1, streamindex:0)
- [2018-06-07 18:23:35(435)][I] On Remote UserSpeakControl(dwUserId:-52499, bOpen:1, streamindex:0)
- [2018-06-07 18:23:35(807)][I] MinCroppingSize(640, 480) MaxCroppingSize(640, 480) Format(YUY2, 0x32595559, 30fps)
- [2018-06-07 18:23:35(808)][I] MinCroppingSize(640, 480) MaxCroppingSize(640, 480) Format(YUY2, 0x8d2681, 30fps)
- [2018-06-07 18:23:35(808)][I] MinCroppingSize(320, 240) MaxCroppingSize(320, 240) Format(YUY2, 0x32595559, 30fps)
- [2018-06-07 18:23:35(808)][I] MinCroppingSize(320, 240) MaxCroppingSize(320, 240) Format(YUY2, 0x8d2681, 30fps)
- [2018-06-07 18:23:35(808)][I] MinCroppingSize(160, 120) MaxCroppingSize(160, 120) Format(YUY2, 0x32595559, 30fps)
- [2018-06-07 18:23:35(809)][I] MinCroppingSize(160, 120) MaxCroppingSize(160, 120) Format(YUY2, 0x8d2681, 30fps)
- [2018-06-07 18:23:35(809)][I] MinCroppingSize(352, 288) MaxCroppingSize(352, 288) Format(YUY2, 0x32595559, 30fps)
- [2018-06-07 18:23:35(809)][I] MinCroppingSize(352, 288) MaxCroppingSize(352, 288) Format(YUY2, 0x8d2681, 30fps)
- [2018-06-07 18:23:35(809)][I] MinCroppingSize(176, 144) MaxCroppingSize(176, 144) Format(YUY2, 0x32595559, 30fps)
- [2018-06-07 18:23:35(810)][I] MinCroppingSize(176, 144) MaxCroppingSize(176, 144) Format(YUY2, 0x8d2681, 30fps)
- [2018-06-07 18:23:35(810)][I] Prepare config camera(1-USB 2.0 WebCamera): 320x240, 25fps
- [2018-06-07 18:23:35(812)][I] The best video format is detected: YUY2
- [2018-06-07 18:23:35(813)][I] SetFormat(320x240, YUY2, 25fps) = 0
- [2018-06-07 18:23:35(813)][I] Video Config Size(320, 240) Format(YUY2, 25fps)
- <font color="Red">[2018-06-07 18:23:35(870)][I] video(stream:0) codec init:codec:1, 15fps, 320x240, bitrate:100kbps, quality:3, preset:3, gop:30, handle:3
- [2018-06-07 18:23:35(870)][I] video(stream:0) init finish:320x240, YUY2, fps:25, codecid:1
- [2018-06-07 18:23:36(434)][I] video codec init:codec:1, 15fps, 320x240, bitrate:100kbps, quality:3, preset:3, gop:30, handle:4</font>
复制代码我发现远程视频显示时,日志是
- [2018-06-07 18:44:23(480)][I] video(stream:0) codec init:codec:1, 15fps, 320x240, bitrate:100kbps, quality:3, preset:3, gop:30, handle:4
- [2018-06-07 18:44:23(480)][I] video(stream:0) init finish:320x240, YUY2, fps:25, codecid:1
- [2018-06-07 18:44:23(588)][I] <font color="Red">userid(-52599) video decode, codec:1, 640x480, delay:0ms</font>
- [2018-06-07 18:44:24(042)][I] video codec init:codec:1, 15fps, 320x240, bitrate:100kbps, quality:3, preset:3, gop:30, handle:6
复制代码 远程视频不显示时,日志是
- [2018-06-07 18:23:35(870)][I] video(stream:0) codec init:codec:1, 15fps, 320x240, bitrate:100kbps, quality:3, preset:3, gop:30, handle:3
- [2018-06-07 18:23:35(870)][I] video(stream:0) init finish:320x240, YUY2, fps:25, codecid:1
- [2018-06-07 18:23:36(434)][I] video codec init:codec:1, 15fps, 320x240, bitrate:100kbps, quality:3, preset:3, gop:30, handle:4
复制代码问:
1 这是不是说明,远程视频不显示,是因为远程视频没有解码成功?
2 为什么会出现解码不成功的情况?
3 针对这种情况应该如何解决?才能使远程视频不出现这种情况
(web端和Android端视频)
作者: 佰锐科技-孔华荣 时间: 2018-6-8 09:06
您好,您发的日志信息看不出问题原因,能否将整个日志文件上传上来,或者加下我的QQ2637535672
作者: lipiaoliang 时间: 2018-6-8 09:34
- [2018-06-07 18:23:22(311)][I] ---------------------------AnyChat Platform Core SDK Client Log---------------------------
- [2018-06-07 18:23:22(312)][I] Load BRAnyChatCore.dll success!(V6.3 Build Time:Jan 21 2017 20:52:58)
- [2018-06-07 18:23:22(314)][I] Load BRMiscUtil.dll success!(V6.3 Build Time:Jan 21 2017 20:55:27)
- [2018-06-07 18:23:22(386)][I] Load BRMediaUtil.dll success!(V6.3 Build Time:Jan 21 2017 20:52:01)
- [2018-06-07 18:23:22(387)][I] Load BRMediaShow.dll success!(V6.3 Build Time:Jan 21 2017 20:55:33)
- [2018-06-07 18:23:22(389)][I] Load BRMediaCore.dll success!(V6.3 Build Time:Jan 21 2017 20:55:47)
- [2018-06-07 18:23:22(420)][I] Video capture device supported:
- [2018-06-07 18:23:22(421)][I] 1-USB 2.0 WebCamera
- [2018-06-07 18:23:22(421)][I] Audio capture device supported:
- [2018-06-07 18:23:22(421)][I] 1-线路输入 (Cirrus Logic CS4206B (AB
- [2018-06-07 18:23:22(421)][I] 2-数字音频(S/PDIF) (Cirrus Logic CS42
- [2018-06-07 18:23:22(422)][I] server net link reset...
- [2018-06-07 18:23:23(628)][I] Start network engine(IPv4 mode)...
- [2018-06-07 18:23:23(629)][I] Invoke Connect(demo.anychat.cn,8906)=0
- [2018-06-07 18:23:23(629)][I] Invoke Login(username:张医生)=0
- [2018-06-07 18:23:23(629)][I] Invoke EnterRoom(roomid=1)
- [2018-06-07 18:23:23(643)][I] Create anychatdnsserver connect:121.199.51.198(8906)
- [2018-06-07 18:23:23(974)][I] On pre-connection result, errorcode:0, anychatcoreserver, 121.199.51.198(8906, tcp:1)
- [2018-06-07 18:23:23(984)][I] Start anychat server(121.199.51.198:8906) connect...
- [2018-06-07 18:23:24(184)][I] On connect anychat server return, errorcode: 0, appflags:0x460080, svrflags:0x10
- [2018-06-07 18:23:24(295)][I] m_ProtocolPipeLine, userid:0, local session:740080682, peer session:0
- [2018-06-07 18:23:24(295)][I] Send login request...
- [2018-06-07 18:23:24(296)][I] Message OnConnect(bSuccess:1, errorcode=0)
- [2018-06-07 18:23:25(076)][I] Message OnLoginSystem(userid=-52518,errorcode=0,username=张医生), msg deliver worked(1)
- [2018-06-07 18:23:25(077)][I] Server running time: 13 days, 22 hours, 40 minutes, license mode:1, cert:0x39feffff
- [2018-06-07 18:23:25(077)][I] Server supports the session hold feature for up to 30000 ms
- [2018-06-07 18:23:25(228)][I] Connection to streaming media server successfully!(udp delay:78ms)
- [2018-06-07 18:23:25(378)][I] Message OnEnterRoom(roomid=1,errorcode=0,siteindex=2)
- [2018-06-07 18:23:25(379)][I] Unrelated audio mixer,name:主音量, ComponentType:0x7, Pname:线路输入 (Cirrus Logic CS4206B , type:0
- [2018-06-07 18:23:25(382)][I] Message OnReceiveOnlineUser(count=3,roomid=1)
- [2018-06-07 18:23:25(392)][I] WaveIn Audio Capture Driver(线路输入 (Cirrus Logic CS4206B )
- [2018-06-07 18:23:25(392)][I] Audio Init, error:0, device:0, 1, 16000, 16, capmode:0
- [2018-06-07 18:23:25(392)][I] Audio codec init, handle:1, 11, 1, 16000, 16, 15850
- [2018-06-07 18:23:25(401)][I] Audio Playback Device Init(0, 1, 16000, 16), WaveOut Playback Driver
- [2018-06-07 18:23:25(913)][I] Message OnP2PConnectState(userid=-52499, state=2)
- [2018-06-07 18:23:32(060)][I] Message OnVideoCallEvent(EventType:1, UserId:-52499, ErrorCode:0, dwFlags:0x2, dwParam:0
- [2018-06-07 18:23:34(114)][I] Invoke VideoCallControl(EventType:2, UserId:-52499, ErrorCode:0, dwFlags:0, dwParam:0, UserStr:)=0
- [2018-06-07 18:23:34(250)][I] Message OnVideoCallEvent(EventType:3, UserId:-52499, ErrorCode:0, dwFlags:0x2, dwParam:340
- [2018-06-07 18:23:34(264)][I] Invoke LeaveRoom(roomid=-1) Elapse:15 ms
- [2018-06-07 18:23:34(264)][I] Invoke EnterRoom(roomid=340)
- [2018-06-07 18:23:34(661)][I] Message OnEnterRoom(roomid=340,errorcode=0,siteindex=1)
- [2018-06-07 18:23:34(661)][I] Unrelated audio mixer,name:主音量, ComponentType:0x7, Pname:线路输入 (Cirrus Logic CS4206B , type:0
- [2018-06-07 18:23:34(664)][I] Message OnReceiveOnlineUser(count=2,roomid=340)
- [2018-06-07 18:23:34(664)][I] Invoke UserCameraControl(userid=-52518, bOpen=1, stream=0)
- [2018-06-07 18:23:34(664)][I] Invoke UserSpeakControl(userid=-52518,bOpen=1)
- [2018-06-07 18:23:34(670)][I] WaveIn Audio Capture Driver(线路输入 (Cirrus Logic CS4206B )
- [2018-06-07 18:23:34(671)][I] Audio Init, error:0, device:0, 1, 16000, 16, capmode:0
- [2018-06-07 18:23:34(671)][I] Audio codec init, handle:2, 11, 1, 16000, 16, 15850
- [2018-06-07 18:23:34(686)][I] Audio Playback Device Init(0, 1, 16000, 16), WaveOut Playback Driver
- [2018-06-07 18:23:34(687)][I] Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1
- [2018-06-07 18:23:35(325)][I] Message OnP2PConnectState(userid=-52499, state=2)
- [2018-06-07 18:23:35(425)][I] On Remote UserCameraControl(dwUserId:-52499, bOpen:1, streamindex:0)
- [2018-06-07 18:23:35(435)][I] On Remote UserSpeakControl(dwUserId:-52499, bOpen:1, streamindex:0)
- [2018-06-07 18:23:35(807)][I] MinCroppingSize(640, 480) MaxCroppingSize(640, 480) Format(YUY2, 0x32595559, 30fps)
- [2018-06-07 18:23:35(808)][I] MinCroppingSize(640, 480) MaxCroppingSize(640, 480) Format(YUY2, 0x8d2681, 30fps)
- [2018-06-07 18:23:35(808)][I] MinCroppingSize(320, 240) MaxCroppingSize(320, 240) Format(YUY2, 0x32595559, 30fps)
- [2018-06-07 18:23:35(808)][I] MinCroppingSize(320, 240) MaxCroppingSize(320, 240) Format(YUY2, 0x8d2681, 30fps)
- [2018-06-07 18:23:35(808)][I] MinCroppingSize(160, 120) MaxCroppingSize(160, 120) Format(YUY2, 0x32595559, 30fps)
- [2018-06-07 18:23:35(809)][I] MinCroppingSize(160, 120) MaxCroppingSize(160, 120) Format(YUY2, 0x8d2681, 30fps)
- [2018-06-07 18:23:35(809)][I] MinCroppingSize(352, 288) MaxCroppingSize(352, 288) Format(YUY2, 0x32595559, 30fps)
- [2018-06-07 18:23:35(809)][I] MinCroppingSize(352, 288) MaxCroppingSize(352, 288) Format(YUY2, 0x8d2681, 30fps)
- [2018-06-07 18:23:35(809)][I] MinCroppingSize(176, 144) MaxCroppingSize(176, 144) Format(YUY2, 0x32595559, 30fps)
- [2018-06-07 18:23:35(810)][I] MinCroppingSize(176, 144) MaxCroppingSize(176, 144) Format(YUY2, 0x8d2681, 30fps)
- [2018-06-07 18:23:35(810)][I] Prepare config camera(1-USB 2.0 WebCamera): 320x240, 25fps
- [2018-06-07 18:23:35(812)][I] The best video format is detected: YUY2
- [2018-06-07 18:23:35(813)][I] SetFormat(320x240, YUY2, 25fps) = 0
- [2018-06-07 18:23:35(813)][I] Video Config Size(320, 240) Format(YUY2, 25fps)
- [2018-06-07 18:23:35(870)][I] video(stream:0) codec init:codec:1, 15fps, 320x240, bitrate:100kbps, quality:3, preset:3, gop:30, handle:3
- [2018-06-07 18:23:35(870)][I] video(stream:0) init finish:320x240, YUY2, fps:25, codecid:1
- [2018-06-07 18:23:36(434)][I] video codec init:codec:1, 15fps, 320x240, bitrate:100kbps, quality:3, preset:3, gop:30, handle:4
- [2018-06-07 18:23:56(935)][E] OnSocketClose, index(3)-errorcode(0-0), flags:0x10601, userid(-52499), master connect:0, list:0
- [2018-06-07 18:23:57(015)][E] OnSocketClose, index(3)-errorcode(0-0), flags:0x10601, userid(-50497), master connect:0, list:0
- [2018-06-07 18:24:00(026)][E] OnSocketClose, index(3)-errorcode(0-0), flags:0x10601, userid(-50497), master connect:0, list:0
- [2018-06-07 18:24:00(026)][E] OnSocketClose, index(4)-errorcode(0-183), flags:0x10601, userid(-50497), master connect:0, list:0
复制代码
作者: 佰锐科技-孔华荣 时间: 2018-6-8 10:28
您好,根据您的日志信息:
1)您日志显示是开了P2P的,P2P打通率不是100%,您尝试下把P2P关了再看下是否出现这个问题?
2)在OnReceiveOnlineUser(count=2,roomid=340) 这个回调后面的日志中总共有3个userid:52499 、50497、52518,打开摄像头的是52518和52499 这两个用户,您确认下是视频通信的双方有没有50497这个用户参与;
作者: 佰锐科技-孔华荣 时间: 2018-6-12 11:29
已在QQ回复,业务逻辑有问题, 主线流程是,初始化后,连接服务器,登录,进入房间,打开音视频设备就可以开始音视频,不需要先离开房间再另外进入其他房间
作者: admin 时间: 2018-6-19 00:51
问题解决了吗?
欢迎光临 AnyChat技术支持论坛 (http://bbs.anychat.cn/) |
Powered by Discuz! X3 |