|
使用VC开发的OCX控件,系统内部网络测试一台机器作为服务器以及其中一个客户端,另外一台机器也是内网。测试连接正常。但是把另外一台机器通过3G路由器接入到另外一个网段后,该机器可以访问到服务器,语音也可以通,但是视频却一直不显示。
麻烦帮我分析一下可能的原因。
日志如下:
设备1的日志
[2015-04-02 16:05:17(265)] Invoke BRAC_Connect(125.1.204.60,5050)=0
[2015-04-02 16:05:17(265)] Invoke LoginServer(username=52.17.228.153)
[2015-04-02 16:05:17(296)] CheckClientSocketLink Connect(ip=125.1.204.60,port=5050)
[2015-04-02 16:05:21(250)] Server version: V5.2(Build Time:2015-01-23 18:11:44, Server OS:Windows)
[2015-04-02 16:05:21(468)] Message OnConnect(bSuccess:1, errorcode=0)
[2015-04-02 16:05:21(468)] Invoke LoginServer(username=52.17.228.153)
[2015-04-02 16:05:23(812)] Message OnLoginSystem(userid=-5,errorcode=0,username=52.17.228.153), msg deliver worked(1)
[2015-04-02 16:05:23(828)] Load BRMediaUtil.dll success!(V5.2 Build Time:Jan 23 2015 18:11:01)
[2015-04-02 16:05:23(843)] Load BRMediaShow.dll success!(V5.2 Build Time:Jan 23 2015 18:10:58)
[2015-04-02 16:05:23(859)] Load BRMediaCore.dll success!(V5.2 Build Time:Jan 23 2015 18:11:17)
[2015-04-02 16:05:23(906)] Server running time: 0 days, 0 hours, 21 minutes, license mode:0
[2015-04-02 16:05:23(906)] Invoke EnterRoom(roomid=1)
[2015-04-02 16:05:24(406)] Connection to streaming media server successfully!(udp delay:250ms)
[2015-04-02 16:05:24(890)] Message OnEnterRoom(roomid=1,errorcode=0,siteindex=1)
[2015-04-02 16:05:24(890)] Message OnReceiveOnlineUser(count=2,roomid=1)
[2015-04-02 16:05:24(937)] Invoke UserCameraControl(userid=-1,bOpen=1)
[2015-04-02 16:05:24(953)] WaveIn Audio Capture Driver(SoundMAX HD Audio)
[2015-04-02 16:05:24(953)] Audio Init, error:0, device:0, 1, 16000, 16, capmode:0
[2015-04-02 16:05:24(953)] Audio codec init, handle:1, 11, 1, 16000, 16, 15850
[2015-04-02 16:05:24(953)] Audio Playback Device Init(0, 1, 16000, 16), WaveOut Playback Driver
[2015-04-02 16:05:24(953)] Invoke UserSpeakControl(userid=-1,bOpen=1)
[2015-04-02 16:05:24(953)] Invoke BRAC_SetVideoPos(dwUserId:-4, hWnd:0xe0280, l:0, t:0, r:320, b:240)
[2015-04-02 16:05:24(953)] Invoke UserCameraControl(userid=-4,bOpen=1)
[2015-04-02 16:05:24(953)] Invoke UserSpeakControl(userid=-4,bOpen=1)
[2015-04-02 16:05:24(953)] Invoke StreamRecordCtrlEx(-4, 1, 0x33, 1, )=0
[2015-04-02 16:05:24(968)] ****Open Local Video Fail,ErrorCode:10011
[2015-04-02 16:05:24(984)] Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1
[2015-04-02 16:05:25(625)] Invoke BRAC_SetVideoPos(dwUserId:-1, hWnd:0x8022c, l:0, t:0, r:320, b:240)
[2015-04-02 16:05:25(625)] Invoke UserCameraControl(userid=-1,bOpen=1)
[2015-04-02 16:05:25(640)] Invoke UserSpeakControl(userid=-1,bOpen=1)
[2015-04-02 16:05:25(640)] ****Open Local Video Fail,ErrorCode:10011
[2015-04-02 16:05:25(968)] On Remote UserSpeakControl(dwUserId:-4, bOpen:1)
[2015-04-02 16:05:37(218)] Invoke SnapShot(-4, 0x0, 1)=0
[2015-04-02 16:05:49(875)] Record audio parameters: aac, 2 channel, 16.0kHz, 64kbps
[2015-04-02 16:05:49(890)] Record video parameters: none, 320x240, 25fps, 400kbps
[2015-04-02 16:05:49(890)] Record status, input video count:0(0 ms), record video count:0(0 ms), 25 fps, audio frame count:336896(21056 ms), audio_eof:1, video_eof:1
[2015-04-02 16:05:49(890)] Record filename: C:\log\2015-04-02\16-05-28-734_127.0.0.1_0.mp4
[2015-04-02 16:05:50(000)] Invoke LeaveRoom(roomid=-1) Elapse:156 ms
[2015-04-02 16:05:50(015)] Message OnLinkClose(reason=0, dwErrorCode:100)
[2015-04-02 16:05:56(062)] CheckClientSocketLink Connect(ip=125.1.204.60,port=5050)
[2015-04-02 16:05:56(968)] Server version: V5.2(Build Time:2015-01-23 18:11:44, Server OS:Windows)
[2015-04-02 16:05:57(468)] Message OnConnect(bSuccess:1, errorcode=0)
[2015-04-02 16:05:57(468)] Invoke LoginServer(username=52.17.228.153)
[2015-04-02 16:05:58(671)] Message OnLoginSystem(userid=-6,errorcode=0,username=52.17.228.153), msg deliver worked(1)
[2015-04-02 16:05:58(703)] Load BRMediaUtil.dll success!(V5.2 Build Time:Jan 23 2015 18:11:01)
[2015-04-02 16:05:58(703)] Load BRMediaShow.dll success!(V5.2 Build Time:Jan 23 2015 18:10:58)
[2015-04-02 16:05:58(718)] Load BRMediaCore.dll success!(V5.2 Build Time:Jan 23 2015 18:11:17)
[2015-04-02 16:05:58(734)] Invoke EnterRoom(roomid=1)
[2015-04-02 16:05:58(734)] Server running time: 0 days, 0 hours, 21 minutes, license mode:0
[2015-04-02 16:05:58(859)] Connection to streaming media server successfully!(udp delay:62ms)
[2015-04-02 16:05:59(234)] Message OnEnterRoom(roomid=1,errorcode=0,siteindex=1)
[2015-04-02 16:05:59(234)] Message OnReceiveOnlineUser(count=2,roomid=1)
[2015-04-02 16:05:59(250)] Invoke UserCameraControl(userid=-1,bOpen=1)
[2015-04-02 16:05:59(250)] WaveIn Audio Capture Driver(SoundMAX HD Audio)
[2015-04-02 16:05:59(250)] Audio Init, error:0, device:0, 1, 16000, 16, capmode:0
[2015-04-02 16:05:59(250)] Audio codec init, handle:1, 11, 1, 16000, 16, 15850
[2015-04-02 16:05:59(265)] Invoke UserSpeakControl(userid=-1,bOpen=1)
[2015-04-02 16:05:59(328)] Invoke BRAC_SetVideoPos(dwUserId:-4, hWnd:0xe0280, l:0, t:0, r:320, b:240)
[2015-04-02 16:05:59(328)] Audio Playback Device Init(0, 1, 16000, 16), WaveOut Playback Driver
[2015-04-02 16:05:59(328)] Invoke UserCameraControl(userid=-4,bOpen=1)
[2015-04-02 16:05:59(328)] Invoke UserSpeakControl(userid=-4,bOpen=1)
[2015-04-02 16:05:59(328)] Invoke StreamRecordCtrlEx(-4, 1, 0x33, 1, )=0
[2015-04-02 16:05:59(328)] ****Open Local Video Fail,ErrorCode:10011
[2015-04-02 16:05:59(359)] Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1
[2015-04-02 16:05:59(718)] Invoke BRAC_SetVideoPos(dwUserId:-1, hWnd:0x8022c, l:0, t:0, r:320, b:240)
[2015-04-02 16:05:59(718)] Invoke UserCameraControl(userid=-1,bOpen=1)
[2015-04-02 16:05:59(734)] Invoke UserSpeakControl(userid=-1,bOpen=1)
[2015-04-02 16:05:59(734)] ****Open Local Video Fail,ErrorCode:10011
[2015-04-02 16:06:00(015)] On Remote UserSpeakControl(dwUserId:-4, bOpen:1)
[2015-04-02 16:06:06(859)] Record audio parameters: aac, 2 channel, 16.0kHz, 64kbps
[2015-04-02 16:06:06(890)] Record video parameters: none, 320x240, 25fps, 400kbps
[2015-04-02 16:06:06(890)] Record status, input video count:0(0 ms), record video count:0(0 ms), 25 fps, audio frame count:65536(4096 ms), audio_eof:1, video_eof:1
[2015-04-02 16:06:06(890)] Record filename: C:\log\2015-04-02\16-06-02-718_127.0.0.1_77.mp4
[2015-04-02 16:06:07(000)] Invoke LeaveRoom(roomid=-1) Elapse:172 ms
[2015-04-02 16:06:07(015)] Invoke LogoutServer(userid=-6) Elapse:16 ms
设备2的日志
[2015-04-02 16:03:07(453)] ---------------------------AnyChat Platform Core SDK Client Log---------------------------
[2015-04-02 16:03:07(453)] Load BRAnyChatCore.dll success!(V5.2 Build Time:Jan 23 2015 18:12:29)
[2015-04-02 16:03:07(453)] Load BRMiscUtil.dll success!(V5.2 Build Time:Jan 23 2015 18:10:50)
[2015-04-02 16:03:07(468)] Load BRMediaUtil.dll success!(V5.2 Build Time:Jan 23 2015 18:11:01)
[2015-04-02 16:03:07(468)] Load BRMediaShow.dll success!(V5.2 Build Time:Jan 23 2015 18:10:58)
[2015-04-02 16:03:07(484)] Load BRMediaCore.dll success!(V5.2 Build Time:Jan 23 2015 18:11:17)
[2015-04-02 16:03:07(687)] Support video show pixfmt:YUV420P
[2015-04-02 16:03:07(781)] Invoke BRAC_SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=3)
[2015-04-02 16:03:07(781)] Invoke SetSDKOption(BRAC_SO_AUDIO_VADCTRL,1)
[2015-04-02 16:03:07(781)] Invoke SetSDKOption(BRAC_SO_AUDIO_NSCTRL,1)
[2015-04-02 16:03:07(781)] Invoke SetSDKOption(BRAC_SO_AUDIO_ECHOCTRL,1)
[2015-04-02 16:03:07(781)] Invoke SetSDKOption(BRAC_SO_AUDIO_AGCCTRL,1)
[2015-04-02 16:03:07(781)] Invoke SetSDKOption(BRAC_SO_AUDIO_CAPTUREMODE,0)
[2015-04-02 16:03:07(906)] Support video show pixfmt:YUV420P
[2015-04-02 16:03:09(828)] Invoke BRAC_Connect(127.0.0.1,5050)=0
[2015-04-02 16:03:09(828)] Invoke LoginServer(username=127.0.0.1)
[2015-04-02 16:03:09(875)] CheckClientSocketLink Connect(ip=127.0.0.1,port=5050)
[2015-04-02 16:03:10(000)] Server version: V5.2(Build Time:2015-01-23 18:11:44, Server OS:Windows)
[2015-04-02 16:03:10(015)] Message OnConnect(bSuccess:1, errorcode=0)
[2015-04-02 16:03:10(015)] Invoke LoginServer(username=127.0.0.1)
[2015-04-02 16:03:10(031)] Message OnLoginSystem(userid=-4,errorcode=0,username=127.0.0.1), msg deliver worked(1)
[2015-04-02 16:03:10(031)] Invoke EnterRoom(roomid=1)
[2015-04-02 16:03:10(046)] Server running time: 0 days, 0 hours, 19 minutes, license mode:0
[2015-04-02 16:03:10(078)] Connection to streaming media server successfully!(udp delay:15ms)
[2015-04-02 16:03:10(078)] Message OnEnterRoom(roomid=1,errorcode=0,siteindex=0)
[2015-04-02 16:03:10(078)] Message OnReceiveOnlineUser(count=1,roomid=1)
[2015-04-02 16:03:10(156)] WaveIn Audio Capture Driver(HD Pro Webcam C920)
[2015-04-02 16:03:10(171)] Audio Init, error:0, device:0, 1, 16000, 16, capmode:0
[2015-04-02 16:03:10(171)] Audio codec init, handle:1, 11, 1, 16000, 16, 15850
[2015-04-02 16:03:10(171)] Audio Playback Device Init(0, 1, 16000, 16), WaveOut Playback Driver
[2015-04-02 16:03:12(640)] Invoke BRAC_SetVideoPos(dwUserId:-1, hWnd:0x40354, l:0, t:0, r:320, b:240)
[2015-04-02 16:03:12(640)] Invoke UserCameraControl(userid=-1,bOpen=1)
[2015-04-02 16:03:12(640)] Invoke UserCameraControl(userid=-1,bOpen=1)
[2015-04-02 16:03:12(859)] Video Config Size(640, 480) Format(H264, 25fps)
[2015-04-02 16:03:12(875)] MinCroppingSize(640, 480) MaxCroppingSize(640, 480) Format(RGB24, 0x0)
[2015-04-02 16:03:12(875)] MinCroppingSize(160, 90) MaxCroppingSize(160, 90) Format(RGB24, 0x0)
[2015-04-02 16:03:12(875)] MinCroppingSize(160, 120) MaxCroppingSize(160, 120) Format(RGB24, 0x0)
[2015-04-02 16:03:12(875)] MinCroppingSize(176, 144) MaxCroppingSize(176, 144) Format(RGB24, 0x0)
[2015-04-02 16:03:12(875)] MinCroppingSize(320, 180) MaxCroppingSize(320, 180) Format(RGB24, 0x0)
[2015-04-02 16:03:12(875)] MinCroppingSize(320, 240) MaxCroppingSize(320, 240) Format(RGB24, 0x0)
[2015-04-02 16:03:12(875)] MinCroppingSize(352, 288) MaxCroppingSize(352, 288) Format(RGB24, 0x0)
[2015-04-02 16:03:12(875)] MinCroppingSize(432, 240) MaxCroppingSize(432, 240) Format(RGB24, 0x0)
[2015-04-02 16:03:12(875)] MinCroppingSize(640, 360) MaxCroppingSize(640, 360) Format(RGB24, 0x0)
[2015-04-02 16:03:12(875)] MinCroppingSize(800, 448) MaxCroppingSize(800, 448) Format(RGB24, 0x0)
[2015-04-02 16:03:12(875)] MinCroppingSize(800, 600) MaxCroppingSize(800, 600) Format(RGB24, 0x0)
[2015-04-02 16:03:12(875)] MinCroppingSize(864, 480) MaxCroppingSize(864, 480) Format(RGB24, 0x0)
[2015-04-02 16:03:12(875)] MinCroppingSize(960, 720) MaxCroppingSize(960, 720) Format(RGB24, 0x0)
[2015-04-02 16:03:12(875)] MinCroppingSize(1024, 576) MaxCroppingSize(1024, 576) Format(RGB24, 0x0)
[2015-04-02 16:03:12(875)] MinCroppingSize(1280, 720) MaxCroppingSize(1280, 720) Format(RGB24, 0x0)
[2015-04-02 16:03:12(875)] MinCroppingSize(1600, 896) MaxCroppingSize(1600, 896) Format(RGB24, 0x0)
[2015-04-02 16:03:12(890)] MinCroppingSize(1920, 1080) MaxCroppingSize(1920, 1080) Format(RGB24, 0x0)
[2015-04-02 16:03:12(890)] MinCroppingSize(2304, 1296) MaxCroppingSize(2304, 1296) Format(RGB24, 0x0)
[2015-04-02 16:03:12(890)] MinCroppingSize(2304, 1536) MaxCroppingSize(2304, 1536) Format(RGB24, 0x0)
[2015-04-02 16:03:12(890)] MinCroppingSize(640, 480) MaxCroppingSize(640, 480) Format(YUV420P, 0x30323449)
[2015-04-02 16:03:12(890)] MinCroppingSize(160, 90) MaxCroppingSize(160, 90) Format(YUV420P, 0x30323449)
[2015-04-02 16:03:12(890)] MinCroppingSize(160, 120) MaxCroppingSize(160, 120) Format(YUV420P, 0x30323449)
[2015-04-02 16:03:12(890)] MinCroppingSize(176, 144) MaxCroppingSize(176, 144) Format(YUV420P, 0x30323449)
[2015-04-02 16:03:12(890)] MinCroppingSize(320, 180) MaxCroppingSize(320, 180) Format(YUV420P, 0x30323449)
[2015-04-02 16:03:12(890)] MinCroppingSize(320, 240) MaxCroppingSize(320, 240) Format(YUV420P, 0x30323449)
[2015-04-02 16:03:12(890)] MinCroppingSize(352, 288) MaxCroppingSize(352, 288) Format(YUV420P, 0x30323449)
[2015-04-02 16:03:12(890)] MinCroppingSize(432, 240) MaxCroppingSize(432, 240) Format(YUV420P, 0x30323449)
[2015-04-02 16:03:12(890)] MinCroppingSize(640, 360) MaxCroppingSize(640, 360) Format(YUV420P, 0x30323449)
[2015-04-02 16:03:12(890)] MinCroppingSize(800, 448) MaxCroppingSize(800, 448) Format(YUV420P, 0x30323449)
[2015-04-02 16:03:12(890)] MinCroppingSize(800, 600) MaxCroppingSize(800, 600) Format(YUV420P, 0x30323449)
[2015-04-02 16:03:12(890)] MinCroppingSize(864, 480) MaxCroppingSize(864, 480) Format(YUV420P, 0x30323449)
[2015-04-02 16:03:12(890)] MinCroppingSize(960, 720) MaxCroppingSize(960, 720) Format(YUV420P, 0x30323449)
[2015-04-02 16:03:12(906)] MinCroppingSize(1024, 576) MaxCroppingSize(1024, 576) Format(YUV420P, 0x30323449)
[2015-04-02 16:03:12(906)] MinCroppingSize(1280, 720) MaxCroppingSize(1280, 720) Format(YUV420P, 0x30323449)
[2015-04-02 16:03:12(906)] MinCroppingSize(1600, 896) MaxCroppingSize(1600, 896) Format(YUV420P, 0x30323449)
[2015-04-02 16:03:12(906)] MinCroppingSize(1920, 1080) MaxCroppingSize(1920, 1080) Format(YUV420P, 0x30323449)
[2015-04-02 16:03:12(906)] MinCroppingSize(2304, 1296) MaxCroppingSize(2304, 1296) Format(YUV420P, 0x30323449)
[2015-04-02 16:03:12(906)] MinCroppingSize(2304, 1536) MaxCroppingSize(2304, 1536) Format(YUV420P, 0x30323449)
[2015-04-02 16:03:12(906)] MinCroppingSize(640, 480) MaxCroppingSize(640, 480) Format(MJPG, 0x47504a4d)
[2015-04-02 16:03:12(906)] MinCroppingSize(160, 90) MaxCroppingSize(160, 90) Format(MJPG, 0x47504a4d)
[2015-04-02 16:03:12(906)] MinCroppingSize(160, 120) MaxCroppingSize(160, 120) Format(MJPG, 0x47504a4d)
[2015-04-02 16:03:12(906)] MinCroppingSize(176, 144) MaxCroppingSize(176, 144) Format(MJPG, 0x47504a4d)
[2015-04-02 16:03:12(906)] MinCroppingSize(320, 180) MaxCroppingSize(320, 180) Format(MJPG, 0x47504a4d)
[2015-04-02 16:03:12(906)] MinCroppingSize(320, 240) MaxCroppingSize(320, 240) Format(MJPG, 0x47504a4d)
[2015-04-02 16:03:12(906)] MinCroppingSize(352, 288) MaxCroppingSize(352, 288) Format(MJPG, 0x47504a4d)
[2015-04-02 16:03:12(906)] MinCroppingSize(432, 240) MaxCroppingSize(432, 240) Format(MJPG, 0x47504a4d)
[2015-04-02 16:03:12(906)] MinCroppingSize(640, 360) MaxCroppingSize(640, 360) Format(MJPG, 0x47504a4d)
[2015-04-02 16:03:12(906)] MinCroppingSize(800, 448) MaxCroppingSize(800, 448) Format(MJPG, 0x47504a4d)
[2015-04-02 16:03:12(921)] MinCroppingSize(800, 600) MaxCroppingSize(800, 600) Format(MJPG, 0x47504a4d)
[2015-04-02 16:03:12(921)] MinCroppingSize(864, 480) MaxCroppingSize(864, 480) Format(MJPG, 0x47504a4d)
[2015-04-02 16:03:12(921)] MinCroppingSize(960, 720) MaxCroppingSize(960, 720) Format(MJPG, 0x47504a4d)
[2015-04-02 16:03:12(921)] MinCroppingSize(1024, 576) MaxCroppingSize(1024, 576) Format(MJPG, 0x47504a4d)
[2015-04-02 16:03:12(921)] MinCroppingSize(1280, 720) MaxCroppingSize(1280, 720) Format(MJPG, 0x47504a4d)
[2015-04-02 16:03:12(921)] MinCroppingSize(1600, 896) MaxCroppingSize(1600, 896) Format(MJPG, 0x47504a4d)
[2015-04-02 16:03:12(921)] MinCroppingSize(1920, 1080) MaxCroppingSize(1920, 1080) Format(MJPG, 0x47504a4d)
[2015-04-02 16:03:12(953)] Video Config Size(640, 480) Format(YUV420P, 25fps)
[2015-04-02 16:03:13(421)] video init finish:640x480, YUV420, fps:25
[2015-04-02 16:03:13(421)] Invoke UserSpeakControl(userid=-1,bOpen=1)
[2015-04-02 16:03:13(453)] Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1
[2015-04-02 16:03:13(562)] video codec init:codec:1, 24fps, 640x480, bitrate:6400kbps, quality:5, preset:3, gop:30, handle:2
[2015-04-02 16:04:24(078)] Message OnUserEnterRoom(userid=-5,nickname=52.17.228.153,siteindex=1)
[2015-04-02 16:04:24(984)] On Remote UserCameraControl(dwUserId:-5, bOpen:1)
[2015-04-02 16:04:24(984)] On Remote UserSpeakControl(dwUserId:-5, bOpen:1)
[2015-04-02 16:04:24(984)] Invoke UserSpeakControl(userid=-5,bOpen=1)
[2015-04-02 16:04:49(328)] Message OnUserLeaveRoom(userid=-5,siteindex=1)
[2015-04-02 16:04:58(453)] Message OnUserEnterRoom(userid=-6,nickname=52.17.228.153,siteindex=1)
[2015-04-02 16:04:59(125)] On Remote UserCameraControl(dwUserId:-6, bOpen:1)
[2015-04-02 16:04:59(125)] On Remote UserSpeakControl(dwUserId:-6, bOpen:1)
[2015-04-02 16:04:59(125)] Invoke UserSpeakControl(userid=-6,bOpen=1)
[2015-04-02 16:05:06(843)] Message OnUserLeaveRoom(userid=-6,siteindex=1)
[2015-04-02 16:06:19(265)] Invoke LeaveRoom(roomid=-1) Elapse:921 ms
[2015-04-02 16:06:19(281)] Invoke LogoutServer(userid=-4) Elapse:16 ms
[2015-04-02 16:06:22(531)] Invoke BRAC_Release Elapse:47 ms
|
|