SimonJ 发表于 2017-9-20 17:59:40

【求助】摄像头打不开

同样的Demo,我在本机能够进入房间后打开音视频,并且能够接收到音视频数据,
但是在同事的电脑上却打不开视频设备,已经使用用QQ视频聊天等方式确定摄像头没有问题的,
二楼附上打不开视频的Log
使用的是Windows SDK,两台电脑都是Win7 64位

SimonJ 发表于 2017-9-20 18:00:11

        ---------------------------AnyChat Platform Core SDK Client Log---------------------------
        Load BRAnyChatCore.dll success!(V6.4 Build Time:Aug9 2017 09:50:19)
        Load BRMiscUtil.dll success!(V6.4 Build Time:Aug9 2017 09:53:31)
        Load BRMediaUtil.dll success!(V6.4 Build Time:Aug9 2017 09:49:35)
        Load BRMediaShow.dll success!(V6.4 Build Time:Aug9 2017 09:53:37)
        Load BRMediaCore.dll success!(V6.4 Build Time:Aug9 2017 09:53:55)
        Video capture device supported:
                1-Webcam C170
        Audio capture device supported:
                1-麦克风 (Webcam C170)
        server net link reset...
        Local Status: connect:0, login:0, logout:0, release:0, linkclose:0(reason:0)
        Local Status: natreg:0, nattimes:0, inroom:0, tickout:0, curtime:593350640
        Local Status: checknattime:-1, natkeeptime:-1
        Invoke        SetSDKOption(BRAC_SO_CLOUD_APPGUID, A9A750AD-14B4-4837-ADD1-BD5D95644910)
        Invoke        SetSDKOption(BRAC_SO_AUDIO_NSCTRL,1)
        Invoke        SetSDKOption(BRAC_SO_AUDIO_ECHOCTRL,1)
        Invoke        SetSDKOption(BRAC_SO_AUDIO_CAPTUREMODE,0)
        Start network engine(IPv4 mode)...
        Invoke        Connect(cloud.anychat.cn,8906)=0
        Create anychatdnsserver connect:120.76.165.13(8912)
        Create anychatdnsserver connect:120.25.70.134(8912)
        Create anychatdnsserver connect:121.41.5.231(8912)
        Success connect to anychatdnsserver(120.76.165.13:8912, tcp:0)
        Receive connect parameter from anychatdnsserver!
        Receive server list from anychatdnsserver(count:1):
                anychatcoreserver, id:-1317696816, ip:120.76.161.95(tcp:9500, udp:9500), OS:Linux, build Time:2017-09-07 17:23:16, version:6.4.0, serviceGuid:1EBF896B-9CB2-8C42-991A-53F617C2A7DE, machineGuid:6203FF77-F1D8-4649-9930-BD559DF4F84C
                Create anychatcoreserver connect:10.170.167.70(9500, tcp:1)
                Create anychatcoreserver connect:10.170.167.70(9500, tcp:0)
                Create anychatcoreserver connect:120.76.161.95(9500, tcp:1)
                Create anychatcoreserver connect:120.76.161.95(9500, tcp:0)
                Trial connect anychatcoreserver(id:-1317696816) result: 120.76.161.95(9500,tcp:1), errorcode:0, avgtime:78ms
        On trial connect finished, errorcode:0, result size:1, lbserver connect:0
                anychatcoreserver, 120.76.161.95(9500, tcp:1), avg time:78
        On best connection result, errorcode:0, ip:120.76.161.95, port:9500, tcp:1
        On pre-connection result, errorcode:0, anychatcoreserver, 120.76.161.95(9500, tcp:1)
        Start anychat server(120.76.161.95:9500) connect...
        On connect anychat server return, errorcode: 0, appflags:0x460020, svrflags:0x10
        Server version: V6.4(Build Time:2017-09-07 17:23:45, Linux server)
        m_ProtocolPipeLine, userid:0, local session:1567879700, peer session:0
        Message        OnConnect(bSuccess:1, errorcode=0)
        Invoke        Login(username:222)=0
        On tcp connect app reg result, errorcode:0
        Message        OnLoginSystem(userid=-234,errorcode=0,username=222), msg deliver worked(1)
        Apply server config: mtu:1500
        Server running time: 11 days, 15 hours, 55 minutes, license mode:1, cert:(lo:0x80025bf, hi:0x0)
        Server supports the session hold feature for up to 20000 ms
        Invoke        EnterRoom(roomid=10112)
        On udp connect app reg result, errorcode:0
        Connection to streaming media server(120.76.161.95:9500) successfully!(udp delay:39ms)
        Message        OnEnterRoom(roomid=10112,errorcode=0,siteindex=0)
        Message        OnReceiveOnlineUser(count=1,roomid=10112)
        WaveIn Audio Capture Driver(麦克风 (Webcam C170))
        Audio Init, error:0, device:0, 1, 16000, 16, capmode:0
        Invoke        UserCameraControl(userid=-1, bOpen=1) = 0
        Audio codec init, handle:1, 11, 1, 16000, 16, 23850
        Invoke        UserSpeakControl(userid=-1, bOpen=1) = 0
        Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1
        MinCroppingSize(640, 480)        MaxCroppingSize(640, 480)        Format(YUY2, 0x32595559, 30fps)
        MinCroppingSize(640, 480)        MaxCroppingSize(640, 480)        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(320, 240)        MaxCroppingSize(320, 240)        Format(YUY2, 0x32595559, 30fps)
        MinCroppingSize(320, 240)        MaxCroppingSize(320, 240)        Format(YUY2, 0x8d2681, 30fps)
        MinCroppingSize(176, 144)        MaxCroppingSize(176, 144)        Format(YUY2, 0x32595559, 30fps)
        MinCroppingSize(176, 144)        MaxCroppingSize(176, 144)        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(544, 288)        MaxCroppingSize(544, 288)        Format(YUY2, 0x32595559, 30fps)
        MinCroppingSize(544, 288)        MaxCroppingSize(544, 288)        Format(YUY2, 0x8d2681, 30fps)
        MinCroppingSize(432, 240)        MaxCroppingSize(432, 240)        Format(YUY2, 0x32595559, 30fps)
        MinCroppingSize(432, 240)        MaxCroppingSize(432, 240)        Format(YUY2, 0x8d2681, 30fps)
        MinCroppingSize(320, 176)        MaxCroppingSize(320, 176)        Format(YUY2, 0x32595559, 30fps)
        MinCroppingSize(320, 176)        MaxCroppingSize(320, 176)        Format(YUY2, 0x8d2681, 30fps)
        MinCroppingSize(640, 360)        MaxCroppingSize(640, 360)        Format(YUY2, 0x32595559, 30fps)
        MinCroppingSize(640, 360)        MaxCroppingSize(640, 360)        Format(YUY2, 0x8d2681, 30fps)
        MinCroppingSize(640, 480)        MaxCroppingSize(640, 480)        Format(MJPG, 0x47504a4d, 30fps)
        MinCroppingSize(640, 480)        MaxCroppingSize(640, 480)        Format(MJPG, 0x8d1181, 30fps)
        MinCroppingSize(352, 288)        MaxCroppingSize(352, 288)        Format(MJPG, 0x47504a4d, 30fps)
        MinCroppingSize(352, 288)        MaxCroppingSize(352, 288)        Format(MJPG, 0x8d1181, 30fps)
        MinCroppingSize(320, 240)        MaxCroppingSize(320, 240)        Format(MJPG, 0x47504a4d, 30fps)
        MinCroppingSize(320, 240)        MaxCroppingSize(320, 240)        Format(MJPG, 0x8d1181, 30fps)
        MinCroppingSize(176, 144)        MaxCroppingSize(176, 144)        Format(MJPG, 0x47504a4d, 30fps)
        MinCroppingSize(176, 144)        MaxCroppingSize(176, 144)        Format(MJPG, 0x8d1181, 30fps)
        MinCroppingSize(160, 120)        MaxCroppingSize(160, 120)        Format(MJPG, 0x47504a4d, 30fps)
        MinCroppingSize(160, 120)        MaxCroppingSize(160, 120)        Format(MJPG, 0x8d1181, 30fps)
        MinCroppingSize(544, 288)        MaxCroppingSize(544, 288)        Format(MJPG, 0x47504a4d, 30fps)
        MinCroppingSize(544, 288)        MaxCroppingSize(544, 288)        Format(MJPG, 0x8d1181, 30fps)
        MinCroppingSize(432, 240)        MaxCroppingSize(432, 240)        Format(MJPG, 0x47504a4d, 30fps)
        MinCroppingSize(432, 240)        MaxCroppingSize(432, 240)        Format(MJPG, 0x8d1181, 30fps)
        MinCroppingSize(320, 176)        MaxCroppingSize(320, 176)        Format(MJPG, 0x47504a4d, 30fps)
        MinCroppingSize(320, 176)        MaxCroppingSize(320, 176)        Format(MJPG, 0x8d1181, 30fps)
        MinCroppingSize(640, 360)        MaxCroppingSize(640, 360)        Format(MJPG, 0x47504a4d, 30fps)
        MinCroppingSize(640, 360)        MaxCroppingSize(640, 360)        Format(MJPG, 0x8d1181, 30fps)
        MinCroppingSize(800, 480)        MaxCroppingSize(800, 480)        Format(MJPG, 0x47504a4d, 30fps)
        MinCroppingSize(800, 480)        MaxCroppingSize(800, 480)        Format(MJPG, 0x8d1181, 30fps)
        MinCroppingSize(1024, 768)        MaxCroppingSize(1024, 768)        Format(MJPG, 0x47504a4d, 30fps)
        MinCroppingSize(1024, 768)        MaxCroppingSize(1024, 768)        Format(MJPG, 0x8d1181, 30fps)
        Prepare config camera(1-Webcam C170): 320x240, 25fps
                The best video format is detected: YUY2
                SetFormat(320x240, YUY2, 25fps) = 0
                Video Config Size(320, 240)        Format(YUY2, 25fps)
        ****Open Local Video Fail,ErrorCode:10090
        Audio capture device lost, waveInAddBuffer=6
        Audio capture device lost, waveInAddBuffer=6
        Audio capture device lost, waveInAddBuffer=6
        Audio capture device lost, waveInAddBuffer=6
        Prepare logout......
        userid(-1) statist info, video fps:0, video count:0, audio count:0
        Close network engine...
        server net link reset...
        Invoke        Logout()        Elapse:63 ms
        Prepare release......
        server net link reset...
        Invoke        BRAC_Release        Elapse:235 ms

佰锐科技-刘冬明 发表于 2017-9-20 18:31:39

您好,由于Vista、Win7等系统的安全性较高,默认情况(UAC开启)下是不允许注册插件的,除非拥有管理员权限,所以可以先暂时关闭UAC,重启计算机然后再注册,注册成功后再开启UAC。可以参考下http://www.anychat.cn/faq/index.php?action=artikel&cat=7&id=167&artlang=zh

SimonJ 发表于 2017-9-20 18:37:49

佰锐科技-刘冬明 发表于 2017-9-20 18:31
您好,由于Vista、Win7等系统的安全性较高,默认情况(UAC开启)下是不允许注册插件的,除非拥有管理员权限 ...

我查看我们的电脑的相关设置,都是默认为“从不通知”。为什么SDK还是打不开摄像头

佰锐科技-刘冬明 发表于 2017-9-20 18:50:07

此问题是当前媒体库没有加载成功,请关闭浏览器安装最新插件并重启电脑尝试下,同时您可以参考这个帖子http://bbs.anychat.cn/forum.php?mod=viewthread&tid=96&extra=page%3D1

SimonJ 发表于 2017-9-21 09:50:24

佰锐科技-刘冬明 发表于 2017-9-20 18:50
此问题是当前媒体库没有加载成功,请关闭浏览器安装最新插件并重启电脑尝试下,同时您可以参考这个帖子http ...

查看帖子,发现将【brVideoSink.ax】文件放到应用程序目录下就好了,请问这是什么文件?作用是什么

佰锐科技-成海量 发表于 2017-9-21 15:12:55

您好,这个底层库文件,视频相关的库文件。
页: [1]
查看完整版本: 【求助】摄像头打不开