lipiaoliang 发表于 2018-6-7 19:29:05

远程视频不显示,是远程视频解码不成功??

WEB网页端有时候会出现,远程视频不显示的情况,特别是首次视频通话的时候,日志如下:        On Remote UserCameraControl(dwUserId:-52499, bOpen:1, streamindex:0)
        On Remote UserSpeakControl(dwUserId:-52499, bOpen:1, streamindex:0)
        MinCroppingSize(640, 480)        MaxCroppingSize(640, 480)        Format(YUY2, 0x32595559, 30fps)
        MinCroppingSize(640, 480)        MaxCroppingSize(640, 480)        Format(YUY2, 0x8d2681, 30fps)
        MinCroppingSize(320, 240)        MaxCroppingSize(320, 240)        Format(YUY2, 0x32595559, 30fps)
        MinCroppingSize(320, 240)        MaxCroppingSize(320, 240)        Format(YUY2, 0x8d2681, 30fps)
        MinCroppingSize(160, 120)        MaxCroppingSize(160, 120)        Format(YUY2, 0x32595559, 30fps)
        MinCroppingSize(160, 120)        MaxCroppingSize(160, 120)        Format(YUY2, 0x8d2681, 30fps)
        MinCroppingSize(352, 288)        MaxCroppingSize(352, 288)        Format(YUY2, 0x32595559, 30fps)
        MinCroppingSize(352, 288)        MaxCroppingSize(352, 288)        Format(YUY2, 0x8d2681, 30fps)
        MinCroppingSize(176, 144)        MaxCroppingSize(176, 144)        Format(YUY2, 0x32595559, 30fps)
        MinCroppingSize(176, 144)        MaxCroppingSize(176, 144)        Format(YUY2, 0x8d2681, 30fps)
        Prepare config camera(1-USB 2.0 WebCamera): 320x240, 25fps
                The best video format is detected: YUY2
                SetFormat(320x240, YUY2, 25fps) = 0
                Video Config Size(320, 240)        Format(YUY2, 25fps)
<font color="Red">        video(stream:0) codec init:codec:1, 15fps, 320x240, bitrate:100kbps, quality:3, preset:3, gop:30, handle:3
        video(stream:0) init finish:320x240, YUY2, fps:25, codecid:1
        video codec init:codec:1, 15fps, 320x240, bitrate:100kbps, quality:3, preset:3, gop:30, handle:4</font>我发现远程视频显示时,日志是        video(stream:0) codec init:codec:1, 15fps, 320x240, bitrate:100kbps, quality:3, preset:3, gop:30, handle:4
        video(stream:0) init finish:320x240, YUY2, fps:25, codecid:1
        <font color="Red">userid(-52599) video decode, codec:1, 640x480, delay:0ms</font>
        video codec init:codec:1, 15fps, 320x240, bitrate:100kbps, quality:3, preset:3, gop:30, handle:6远程视频不显示时,日志是
        video(stream:0) codec init:codec:1, 15fps, 320x240, bitrate:100kbps, quality:3, preset:3, gop:30, handle:3
        video(stream:0) init finish:320x240, YUY2, fps:25, codecid:1
        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:49

您好,您发的日志信息看不出问题原因,能否将整个日志文件上传上来,或者加下我的QQ2637535672

lipiaoliang 发表于 2018-6-8 09:34:20

佰锐科技-孔华荣 发表于 2018-6-8 09:06
您好,您发的日志信息看不出问题原因,能否将整个日志文件上传上来,或者加下我的QQ2637535672

        ---------------------------AnyChat Platform Core SDK Client Log---------------------------
        Load BRAnyChatCore.dll success!(V6.3 Build Time:Jan 21 2017 20:52:58)
        Load BRMiscUtil.dll success!(V6.3 Build Time:Jan 21 2017 20:55:27)
        Load BRMediaUtil.dll success!(V6.3 Build Time:Jan 21 2017 20:52:01)
        Load BRMediaShow.dll success!(V6.3 Build Time:Jan 21 2017 20:55:33)
        Load BRMediaCore.dll success!(V6.3 Build Time:Jan 21 2017 20:55:47)
        Video capture device supported:
                1-USB 2.0 WebCamera
        Audio capture device supported:
                1-线路输入 (Cirrus Logic CS4206B (AB
                2-数字音频(S/PDIF) (Cirrus Logic CS42
        server net link reset...
        Start network engine(IPv4 mode)...
        Invoke        Connect(demo.anychat.cn,8906)=0
        Invoke        Login(username:张医生)=0
        Invoke        EnterRoom(roomid=1)
        Create anychatdnsserver connect:121.199.51.198(8906)
        On pre-connection result, errorcode:0, anychatcoreserver, 121.199.51.198(8906, tcp:1)
        Start anychat server(121.199.51.198:8906) connect...
        On connect anychat server return, errorcode: 0, appflags:0x460080, svrflags:0x10
        m_ProtocolPipeLine, userid:0, local session:740080682, peer session:0
        Send login request...
        Message        OnConnect(bSuccess:1, errorcode=0)
        Message        OnLoginSystem(userid=-52518,errorcode=0,username=张医生), msg deliver worked(1)
        Server running time: 13 days, 22 hours, 40 minutes, license mode:1, cert:0x39feffff
        Server supports the session hold feature for up to 30000 ms
        Connection to streaming media server successfully!(udp delay:78ms)
        Message        OnEnterRoom(roomid=1,errorcode=0,siteindex=2)
        Unrelated audio mixer,name:主音量, ComponentType:0x7, Pname:线路输入 (Cirrus Logic CS4206B , type:0
        Message        OnReceiveOnlineUser(count=3,roomid=1)
        WaveIn Audio Capture Driver(线路输入 (Cirrus Logic CS4206B )
        Audio Init, error:0, device:0, 1, 16000, 16, capmode:0
        Audio codec init, handle:1, 11, 1, 16000, 16, 15850
        Audio Playback Device Init(0, 1, 16000, 16), WaveOut Playback Driver
        Message        OnP2PConnectState(userid=-52499, state=2)
        Message        OnVideoCallEvent(EventType:1, UserId:-52499, ErrorCode:0, dwFlags:0x2, dwParam:0
        Invoke        VideoCallControl(EventType:2, UserId:-52499, ErrorCode:0, dwFlags:0, dwParam:0, UserStr:)=0
        Message        OnVideoCallEvent(EventType:3, UserId:-52499, ErrorCode:0, dwFlags:0x2, dwParam:340
        Invoke        LeaveRoom(roomid=-1)        Elapse:15 ms
        Invoke        EnterRoom(roomid=340)
        Message        OnEnterRoom(roomid=340,errorcode=0,siteindex=1)
        Unrelated audio mixer,name:主音量, ComponentType:0x7, Pname:线路输入 (Cirrus Logic CS4206B , type:0
        Message        OnReceiveOnlineUser(count=2,roomid=340)
        Invoke        UserCameraControl(userid=-52518, bOpen=1, stream=0)
        Invoke        UserSpeakControl(userid=-52518,bOpen=1)
        WaveIn Audio Capture Driver(线路输入 (Cirrus Logic CS4206B )
        Audio Init, error:0, device:0, 1, 16000, 16, capmode:0
        Audio codec init, handle:2, 11, 1, 16000, 16, 15850
        Audio Playback Device Init(0, 1, 16000, 16), WaveOut Playback Driver
        Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1
        Message        OnP2PConnectState(userid=-52499, state=2)
        On Remote UserCameraControl(dwUserId:-52499, bOpen:1, streamindex:0)
        On Remote UserSpeakControl(dwUserId:-52499, bOpen:1, streamindex:0)
        MinCroppingSize(640, 480)        MaxCroppingSize(640, 480)        Format(YUY2, 0x32595559, 30fps)
        MinCroppingSize(640, 480)        MaxCroppingSize(640, 480)        Format(YUY2, 0x8d2681, 30fps)
        MinCroppingSize(320, 240)        MaxCroppingSize(320, 240)        Format(YUY2, 0x32595559, 30fps)
        MinCroppingSize(320, 240)        MaxCroppingSize(320, 240)        Format(YUY2, 0x8d2681, 30fps)
        MinCroppingSize(160, 120)        MaxCroppingSize(160, 120)        Format(YUY2, 0x32595559, 30fps)
        MinCroppingSize(160, 120)        MaxCroppingSize(160, 120)        Format(YUY2, 0x8d2681, 30fps)
        MinCroppingSize(352, 288)        MaxCroppingSize(352, 288)        Format(YUY2, 0x32595559, 30fps)
        MinCroppingSize(352, 288)        MaxCroppingSize(352, 288)        Format(YUY2, 0x8d2681, 30fps)
        MinCroppingSize(176, 144)        MaxCroppingSize(176, 144)        Format(YUY2, 0x32595559, 30fps)
        MinCroppingSize(176, 144)        MaxCroppingSize(176, 144)        Format(YUY2, 0x8d2681, 30fps)
        Prepare config camera(1-USB 2.0 WebCamera): 320x240, 25fps
                The best video format is detected: YUY2
                SetFormat(320x240, YUY2, 25fps) = 0
                Video Config Size(320, 240)        Format(YUY2, 25fps)
        video(stream:0) codec init:codec:1, 15fps, 320x240, bitrate:100kbps, quality:3, preset:3, gop:30, handle:3
        video(stream:0) init finish:320x240, YUY2, fps:25, codecid:1
        video codec init:codec:1, 15fps, 320x240, bitrate:100kbps, quality:3, preset:3, gop:30, handle:4
        OnSocketClose, index(3)-errorcode(0-0), flags:0x10601, userid(-52499), master connect:0, list:0

        OnSocketClose, index(3)-errorcode(0-0), flags:0x10601, userid(-50497), master connect:0, list:0

        OnSocketClose, index(3)-errorcode(0-0), flags:0x10601, userid(-50497), master connect:0, list:0

        OnSocketClose, index(4)-errorcode(0-183), flags:0x10601, userid(-50497), master connect:0, list:0

佰锐科技-孔华荣 发表于 2018-6-8 10:28:44

lipiaoliang 发表于 2018-6-8 09:34


您好,根据您的日志信息:
1)您日志显示是开了P2P的,P2P打通率不是100%,您尝试下把P2P关了再看下是否出现这个问题?
2)在OnReceiveOnlineUser(count=2,roomid=340) 这个回调后面的日志中总共有3个userid:52499 、50497、52518,打开摄像头的是52518和52499 这两个用户,您确认下是视频通信的双方有没有50497这个用户参与;

佰锐科技-孔华荣 发表于 2018-6-12 11:29:24

已在QQ回复,业务逻辑有问题, 主线流程是,初始化后,连接服务器,登录,进入房间,打开音视频设备就可以开始音视频,不需要先离开房间再另外进入其他房间

admin 发表于 2018-6-19 00:51:52

问题解决了吗?
页: [1]
查看完整版本: 远程视频不显示,是远程视频解码不成功??