AnyChat技术支持论坛

标题: 你好,帮忙看看视频画面模糊并且卡的原因!谢谢 [打印本页]

作者: wx88933120    时间: 2013-12-18 13:40
标题: 你好,帮忙看看视频画面模糊并且卡的原因!谢谢
[2013-12-18 13:30:34(347)]    ---------------------------AnyChat Platform Core SDK Client Log---------------------------
[2013-12-18 13:30:34(355)]    Load libanychatcore.so success!(V4.8 Build Time:Nov 25 2013 09:22:51)
[2013-12-18 13:30:34(356)]    Android OS SDK Version:17, Support ARMv7:2, Support Neon:4
[2013-12-18 13:30:34(372)]    Load libmediautil_v7.so success!(V4.8 Build Time:Nov 25 2013 09:24:09)
[2013-12-18 13:30:34(380)]    Load libmediashow_4.0.so success!(V4.8 Build Time:Nov 25 2013 09:23:27)
[2013-12-18 13:30:34(392)]    Load libmediacore_4.2.so success!(V4.8 Build Time:Nov 25 2013 09:23:57)
[2013-12-18 13:30:34(402)]    CPU:1810.43 MIPS, Hardware:sun7i
[2013-12-18 13:30:34(402)]    Invoke    BRAC_ChangeChatMode(1)
[2013-12-18 13:30:34(404)]    Invoke    BRAC_Connect(demo.anychat.cn,8906)=0
[2013-12-18 13:30:34(408)]    Invoke    LoginServer(username=ghj)
[2013-12-18 13:30:34(546)]    CheckClientSocketLink     Connect(ip=121.199.51.198,port=8906)
[2013-12-18 13:30:34(710)]    Server version: V4.8(Build Time:2013-12-17 11:09:07, Server OS:Windows)
[2013-12-18 13:30:34(792)]    Message    OnConnect(bSuccess:1, errorcode=0)
[2013-12-18 13:30:35(181)]    Message    OnLoginSystem(userid=-445,errorcode=0,username=ghj), msg deliver worked(0)
[2013-12-18 13:30:35(205)]    Invoke    EnterRoom(roomid=1)
[2013-12-18 13:30:35(245)]    Connection to streaming media server successfully!(udp delay:31ms)
[2013-12-18 13:30:35(372)]    Message    OnEnterRoom(roomid=1,errorcode=0,siteindex=0)
[2013-12-18 13:30:35(385)]    AllocAudioStream(dwFrameCount:3200, ret:0)
[2013-12-18 13:30:35(386)]    Audio Playback Device Init(0, 1, 16000, 16), Default Playback Driver
[2013-12-18 13:30:35(387)]    Message    OnReceiveOnlineUser(count=2,roomid=1)
[2013-12-18 13:30:35(406)]    Invoke    BRAC_Connect(demo.anychat.cn,8906)=0
[2013-12-18 13:30:49(480)]    Message    OnUserEnterRoom(userid=-443,nickname=nnnq,siteindex=1)
[2013-12-18 13:30:49(489)]    Invoke    BRAC_Connect(demo.anychat.cn,8906)=0
[2013-12-18 13:31:20(501)]    Message    OnUserEnterRoom(userid=-432,nickname=Llllll,siteindex=3)
[2013-12-18 13:31:20(515)]    Invoke    BRAC_Connect(demo.anychat.cn,8906)=0
[2013-12-18 13:31:20(888)]    Message    OnP2PConnectState(userid=-432, state=2)
[2013-12-18 13:31:21(312)]    Message    OnP2PConnectState(userid=-432, state=3)
[2013-12-18 13:31:34(556)]    OnReceiveUserDefine(dwSrcUserId:-432, dwTarUserId:-445, dwCommand:7, wParam:2, lParam:2, dwBufSize:0)
[2013-12-18 13:31:34(607)]    OnReceiveUserDefine(dwSrcUserId:-432, dwTarUserId:-445, dwCommand:7, wParam:4, lParam:2, dwBufSize:0)
[2013-12-18 13:31:37(758)]    Message    OnUserEnterRoom(userid=-446,nickname=admin,siteindex=4)
[2013-12-18 13:31:37(771)]    Invoke    BRAC_Connect(demo.anychat.cn,8906)=0
[2013-12-18 13:31:43(802)]    Message    OnUserLeaveRoom(userid=-432,siteindex=3)
[2013-12-18 13:31:43(823)]    Invoke    BRAC_Connect(demo.anychat.cn,8906)=0
[2013-12-18 13:31:43(866)]    socket error, disconnected by peer!, bTcp(1) - userid(-432)
[2013-12-18 13:31:46(637)]    Message    OnP2PConnectState(userid=-446, state=2)
[2013-12-18 13:32:02(857)]    Message    OnUserLeaveRoom(userid=-446,siteindex=4)
[2013-12-18 13:32:02(873)]    Invoke    BRAC_Connect(demo.anychat.cn,8906)=0
[2013-12-18 13:32:28(479)]    Message    OnUserEnterRoom(userid=-447,nickname=win,siteindex=3)
[2013-12-18 13:32:28(496)]    Invoke    BRAC_Connect(demo.anychat.cn,8906)=0
[2013-12-18 13:32:31(658)]    Message    OnP2PConnectState(userid=-447, state=2)
[2013-12-18 13:32:41(338)]    Message    OnUserLeaveRoom(userid=-447,siteindex=3)
[2013-12-18 13:32:41(355)]    Invoke    BRAC_Connect(demo.anychat.cn,8906)=0
[2013-12-18 13:33:13(890)]    Message    OnUserEnterRoom(userid=-448,nickname=d,siteindex=3)
[2013-12-18 13:33:13(907)]    Invoke    BRAC_Connect(demo.anychat.cn,8906)=0
[2013-12-18 13:33:17(500)]    Message    OnP2PConnectState(userid=-448, state=2)
[2013-12-18 13:33:28(057)]    Message    OnUserLeaveRoom(userid=-448,siteindex=3)
[2013-12-18 13:33:28(066)]    Invoke    BRAC_Connect(demo.anychat.cn,8906)=0
[2013-12-18 13:34:09(228)]    Message    OnUserEnterRoom(userid=-449,nickname=but,siteindex=3)
[2013-12-18 13:34:09(238)]    Invoke    BRAC_Connect(demo.anychat.cn,8906)=0
[2013-12-18 13:34:09(687)]    Message    OnP2PConnectState(userid=-449, state=2)
[2013-12-18 13:34:10(320)]    Message    OnP2PConnectState(userid=-449, state=3)
[2013-12-18 13:34:23(122)]    Invoke    BRAC_ChangeChatMode(1)
[2013-12-18 13:34:24(464)]    Invoke    UserCameraControl(userid=-449,bOpen=1)
[2013-12-18 13:34:24(465)]    Invoke    UserSpeakControl(userid=-449,bOpen=1)
[2013-12-18 13:34:24(467)]    Apply video parameter:640x480, bitrate:60000, quality:3, gop:20, fps:8, preset:3, codec:0
[2013-12-18 13:34:24(468)]    Invoke    UserCameraControl(userid=-1,bOpen=1)
[2013-12-18 13:34:24(470)]    Invoke    UserSpeakControl(userid=-1,bOpen=1)
[2013-12-18 13:34:25(097)]    userid(-449) video decode delay:245ms
[2013-12-18 13:34:25(391)]    camera-hal-version=3000130327_V1.0;capture-size-height=720;capture-size-width=1280;effect=none;effect-values=none,mono,negative,sepia,aqua;exposure-compensation=0;exposure-compensation-step=1;focal-length=3.43;focus-areas=(0,0,0,0,0);focus-distances=0.10,1.20,Infinity;focus-mode=auto;focus-mode-values=auto,infinity,macro,fixed,continuous-video,continuous-picture;horizontal-view-angle=51.2;jpeg-quality=95;jpeg-thumbnail-height=240;jpeg-thumbnail-quality=90;jpeg-thumbnail-size-values=320x240,0x0;jpeg-thumbnail-width=320;max-exposure-compensation=3;max-num-detected-faces-hw=0;max-num-detected-faces-sw=0;max-num-focus-areas=1;max-zoom=100;min-exposure-compensation=-3;picture-format=jpeg;picture-format-values=jpeg;picture-size=2592x1936;picture-size-values=2592x1936,1600x1200,1280x1024;preview-format=yuv420sp;preview-format-values=yuv420sp,yuv420p;preview-fps-range=5000,60000;preview-fps-range-values=(5000,60000);preview-frame-rate=25;preview-frame-rate-values=25;preview-size=640x480;preview-size-values=1280x720,
[2013-12-18 13:34:25(392)]    Video Config: id:0, 640x480, 25fps, yuv420sp
[2013-12-18 13:34:25(512)]    Invoke    BRAC_SetVideoPos(dwUserId:-449, hWnd:0xa740001d, l:0, t:0, r:0, b:0)
[2013-12-18 13:34:26(334)]    video init finish:640x480, NV21, fps:25
[2013-12-18 13:34:26(377)]    Invoke    BRAC_SetVideoPos(dwUserId:-1, hWnd:0xaec0001d, l:0, t:0, r:0, b:0)
[2013-12-18 13:34:26(558)]    video codec init:codec:1, 8fps, 640x480, bitrate:60000, quality:3, preset:3, gop:20, handle:3
[2013-12-18 13:34:36(376)]    Default Audio Capture Driver()
[2013-12-18 13:34:36(376)]    Audio Init, error:0, device:0, 1, 16000, 16, capmode:0
[2013-12-18 13:34:36(377)]    Audio codec init, handle:4, 11, 1, 16000, 16, 15850
[2013-12-18 13:34:36(403)]    Audio FX Status: VAD:0, NS:2, AGC:8, AEC:4
[2013-12-18 13:35:25(775)]    Invoke    UserCameraControl(userid=-449,bOpen=0)
[2013-12-18 13:35:25(779)]    Invoke    UserSpeakControl(userid=-449,bOpen=0)
[2013-12-18 13:35:25(800)]    Invoke    UserCameraControl(userid=-1,bOpen=0)
[2013-12-18 13:35:26(599)]    Invoke    UserSpeakControl(userid=-1,bOpen=0)
[2013-12-18 13:35:26(716)]    Invoke    EnterRoom(roomid=1)
[2013-12-18 13:35:27(232)]    Invoke    BRAC_Connect(demo.anychat.cn,8906)=0
[2013-12-18 13:35:27(250)]    Invoke    BRAC_Connect(demo.anychat.cn,8906)=0
[2013-12-18 13:35:46(363)]    Invoke    BRAC_Release    Elapse:42 ms

作者: wx88933120    时间: 2013-12-18 13:41
主要代码如下:
                AnyChatCoreSDK.SetSDKOptionInt(AnyChatDefine.BRAC_SO_LOCALVIDEO_WIDTHCTRL, 640);
                AnyChatCoreSDK.SetSDKOptionInt(AnyChatDefine.BRAC_SO_LOCALVIDEO_HEIGHTCTRL, 480);
               
                // 设置本地视频编码的帧率
                AnyChatCoreSDK.SetSDKOptionInt(AnyChatDefine.BRAC_SO_LOCALVIDEO_FPSCTRL,8);
                // 设置本地视频编码的关键帧间隔
                AnyChatCoreSDK.SetSDKOptionInt(AnyChatDefine.BRAC_SO_LOCALVIDEO_GOPCTRL,20);
                // 设置本地视频编码的预设参数
                AnyChatCoreSDK.SetSDKOptionInt(AnyChatDefine.BRAC_SO_LOCALVIDEO_PRESETCTRL,3);
                // 设置本地视频编码的码率
                AnyChatCoreSDK.SetSDKOptionInt(AnyChatDefine.BRAC_SO_LOCALVIDEO_BITRATECTRL,60000);
                // 设置本地视频编码的质量因子
                AnyChatCoreSDK.SetSDKOptionInt(AnyChatDefine.BRAC_SO_LOCALVIDEO_QUALITYCTRL,3);

                AnyChatCoreSDK.SetSDKOptionInt(AnyChatDefine.BRAC_SO_LOCALVIDEO_APPLYPARAM, 1);//修改参数

作者: 廖斌    时间: 2013-12-18 13:56
wx88933120 发表于 2013-12-18 13:41
主要代码如下:
                AnyChatCoreSDK.SetSDKOptionInt(AnyChatDefine.BRAC_SO_LOCALVIDEO_WIDTHCTRL, 640);
...

您好,
1、画面模糊,码率设置的太低了,
  1. AnyChatCoreSDK.SetSDKOptionInt(AnyChatDefine.BRAC_SO_LOCALVIDEO_BITRATECTRL,60000);
复制代码
2、视频卡,帧率可以设置高一些,用640x480分辨率用15fps试下.如果帧率用15fps,关键帧间隔用45
作者: admin    时间: 2013-12-18 14:02
是的,画面模糊通常是分辨率与码率参数设置不匹配,从上面的log来看,分辩率设置为640x480,而码率才60kbps,肯定会模糊了,建议码率设置为400kbps。

参考1:http://www.anychat.cn/faq/index. ... =243&artlang=zh

参考2:http://www.anychat.cn/faq/index. ... =175&artlang=zh
作者: wx88933120    时间: 2013-12-18 14:04
廖斌 发表于 2013-12-18 13:56
您好,
1、画面模糊,码率设置的太低了,2、视频卡,帧率可以设置高一些,用640x480分辨率用15fps试下. ...

您好
码率调高是可以增加画面清晰度
但是画面太卡了,延迟2秒以上
作者: 廖斌    时间: 2013-12-18 14:06
wx88933120 发表于 2013-12-18 14:04
您好
码率调高是可以增加画面清晰度
但是画面太卡了,延迟2秒以上

现在用的什么参数呢,把日志发过来看下
作者: wx88933120    时间: 2013-12-18 14:06
您好,补充下摄像头参数
最高只有25fps的帧率
那关键帧间隔还能用45吗?
作者: wx88933120    时间: 2013-12-18 14:11
                AnyChatCoreSDK.SetSDKOptionInt(AnyChatDefine.BRAC_SO_LOCALVIDEO_WIDTHCTRL, 640);
                AnyChatCoreSDK.SetSDKOptionInt(AnyChatDefine.BRAC_SO_LOCALVIDEO_HEIGHTCTRL, 480);
               
                // 设置本地视频编码的帧率
                AnyChatCoreSDK.SetSDKOptionInt(AnyChatDefine.BRAC_SO_LOCALVIDEO_FPSCTRL,15);
                // 设置本地视频编码的关键帧间隔
                AnyChatCoreSDK.SetSDKOptionInt(AnyChatDefine.BRAC_SO_LOCALVIDEO_GOPCTRL,45);
                // 设置本地视频编码的预设参数
                AnyChatCoreSDK.SetSDKOptionInt(AnyChatDefine.BRAC_SO_LOCALVIDEO_PRESETCTRL,3);
                // 设置本地视频编码的码率
                AnyChatCoreSDK.SetSDKOptionInt(AnyChatDefine.BRAC_SO_LOCALVIDEO_BITRATECTRL,300000);
                // 设置本地视频编码的质量因子
                AnyChatCoreSDK.SetSDKOptionInt(AnyChatDefine.BRAC_SO_LOCALVIDEO_QUALITYCTRL,3);

这样画面清晰了,但是太卡了,延迟2秒以上
作者: admin    时间: 2013-12-18 14:12
可能是您的硬件性能不够造成的,建议将分辩率改为:320x240,再看看效果如何?
作者: wx88933120    时间: 2013-12-18 14:13
admin 发表于 2013-12-18 14:05
可能是您的硬件性能不够造成的,建议将分辩率改为:320x240,再看看效果如何?

硬件是全志的芯片A20
摄像头支持500万最高分辨率的
网速也很好的
作者: admin    时间: 2013-12-18 14:21
wx88933120 发表于 2013-12-18 14:13
硬件是全志的芯片A20
摄像头支持500万最高分辨率的
网速也很好的

把另一方的log也发过来,谢谢。
作者: wx88933120    时间: 2013-12-18 14:22
自己方的log
[2013-12-18 14:19:28(486)]        ---------------------------AnyChat Platform Core SDK Client Log---------------------------

[2013-12-18 14:19:28(488)]        Load libanychatcore.so success!(V4.8 Build Time:Nov 25 2013 09:22:51)

[2013-12-18 14:19:28(489)]        Android OS SDK Version:17, Support ARMv7:2, Support Neon:4

[2013-12-18 14:19:28(511)]        Load libmediautil_v7.so success!(V4.8 Build Time:Nov 25 2013 09:24:09)

[2013-12-18 14:19:28(522)]        Load libmediashow_4.0.so success!(V4.8 Build Time:Nov 25 2013 09:23:27)

[2013-12-18 14:19:28(536)]        Load libmediacore_4.2.so success!(V4.8 Build Time:Nov 25 2013 09:23:57)

[2013-12-18 14:19:28(557)]        CPU:1810.43 MIPS, Hardware:sun7i

[2013-12-18 14:19:28(557)]        Invoke        BRAC_ChangeChatMode(1)

[2013-12-18 14:19:28(566)]        Invoke        BRAC_Connect(demo.anychat.cn,8906)=0

[2013-12-18 14:19:28(582)]        Invoke        LoginServer(username=ghj)

[2013-12-18 14:19:28(673)]        CheckClientSocketLink         Connect(ip=121.199.51.198,port=8906)

[2013-12-18 14:19:29(029)]        Server version: V4.8(Build Time:2013-12-17 11:09:07, Server OS:Windows)

[2013-12-18 14:19:29(082)]        Message        OnConnect(bSuccess:1, errorcode=0)

[2013-12-18 14:19:29(518)]        Message        OnLoginSystem(userid=-464,errorcode=0,username=ghj), msg deliver worked(0)

[2013-12-18 14:19:29(538)]        Invoke        EnterRoom(roomid=1)

[2013-12-18 14:19:29(582)]        Connection to streaming media server successfully!(udp delay:31ms)

[2013-12-18 14:19:29(712)]        Message        OnEnterRoom(roomid=1,errorcode=0,siteindex=0)

[2013-12-18 14:19:29(718)]        AllocAudioStream(dwFrameCount:3200, ret:0)

[2013-12-18 14:19:29(719)]        Audio Playback Device Init(0, 1, 16000, 16), Default Playback Driver

[2013-12-18 14:19:29(720)]        Message        OnReceiveOnlineUser(count=4,roomid=1)

[2013-12-18 14:19:29(991)]        Invoke        BRAC_Connect(demo.anychat.cn,8906)=0

[2013-12-18 14:19:29(998)]        Message        OnP2PConnectState(userid=-463, state=2)

[2013-12-18 14:19:30(025)]        Message        OnP2PConnectState(userid=-463, state=3)

[2013-12-18 14:19:38(717)]        Message        OnP2PConnectState(userid=-460, state=2)

[2013-12-18 14:19:38(990)]        Invoke        UserCameraControl(userid=-463,bOpen=1)

[2013-12-18 14:19:38(991)]        Invoke        UserSpeakControl(userid=-463,bOpen=1)

[2013-12-18 14:19:38(996)]        Apply video parameter:640x480, bitrate:300000, quality:3, gop:45, fps:15, preset:3, codec:0

[2013-12-18 14:19:38(996)]        Invoke        UserCameraControl(userid=-1,bOpen=1)

[2013-12-18 14:19:38(996)]        Invoke        UserSpeakControl(userid=-1,bOpen=1)

[2013-12-18 14:19:39(059)]        Invoke        BRAC_Connect(demo.anychat.cn,8906)=0

[2013-12-18 14:19:39(064)]        Invoke        BRAC_Connect(demo.anychat.cn,8906)=0

[2013-12-18 14:19:39(668)]        camera-hal-version=3000130327_V1.0;capture-size-height=720;capture-size-width=1280;effect=none;effect-values=none,mono,negative,sepia,aqua;exposure-compensation=0;exposure-compensation-step=1;focal-length=3.43;focus-areas=(0,0,0,0,0);focus-distances=0.10,1.20,Infinity;focus-mode=auto;focus-mode-values=auto,infinity,macro,fixed,continuous-video,continuous-picture;horizontal-view-angle=51.2;jpeg-quality=95;jpeg-thumbnail-height=240;jpeg-thumbnail-quality=90;jpeg-thumbnail-size-values=320x240,0x0;jpeg-thumbnail-width=320;max-exposure-compensation=3;max-num-detected-faces-hw=0;max-num-detected-faces-sw=0;max-num-focus-areas=1;max-zoom=100;min-exposure-compensation=-3;picture-format=jpeg;picture-format-values=jpeg;picture-size=2592x1936;picture-size-values=2592x1936,1600x1200,1280x1024;preview-format=yuv420sp;preview-format-values=yuv420sp,yuv420p;preview-fps-range=5000,60000;preview-fps-range-values=(5000,60000);preview-frame-rate=25;preview-frame-rate-values=25;preview-size=640x480;preview-size-values=1280x720,

[2013-12-18 14:19:39(670)]        Video Config: id:0, 640x480, 25fps, yuv420sp

[2013-12-18 14:19:40(447)]        video init finish:640x480, NV21, fps:25

[2013-12-18 14:19:40(610)]        Default Audio Capture Driver()

[2013-12-18 14:19:40(610)]        Audio Init, error:0, device:0, 1, 16000, 16, capmode:0

[2013-12-18 14:19:40(615)]        Audio FX Status: VAD:0, NS:2, AGC:8, AEC:4

[2013-12-18 14:19:40(667)]        video codec init:codec:1, 15fps, 640x480, bitrate:300000, quality:3, preset:3, gop:45, handle:1

[2013-12-18 14:19:40(668)]        Invoke        BRAC_SetVideoPos(dwUserId:-1, hWnd:0xf670001d, l:0, t:0, r:0, b:0)

[2013-12-18 14:19:40(669)]        Audio codec init, handle:2, 11, 1, 16000, 16, 15850

[2013-12-18 14:19:43(282)]        Invoke        BRAC_ChangeChatMode(1)

[2013-12-18 14:19:45(220)]        Invoke        BRAC_SetVideoPos(dwUserId:-463, hWnd:0xfc60001d, l:0, t:0, r:0, b:0)

[2013-12-18 14:19:45(559)]        userid(-463) video decode delay:94ms

[2013-12-18 14:20:20(728)]        Message        OnUserLeaveRoom(userid=-460,siteindex=5)

[2013-12-18 14:20:30(864)]        Invoke        UserCameraControl(userid=-463,bOpen=0)

[2013-12-18 14:20:30(875)]        Invoke        UserSpeakControl(userid=-463,bOpen=0)

[2013-12-18 14:20:30(889)]        Invoke        UserCameraControl(userid=-1,bOpen=0)

[2013-12-18 14:20:31(658)]        Invoke        UserSpeakControl(userid=-1,bOpen=0)

[2013-12-18 14:20:31(718)]        Invoke        EnterRoom(roomid=1)
作者: wx88933120    时间: 2013-12-18 14:24
这是对方的log:
[2013-12-18 14:16:09(219)]        ---------------------------AnyChat Platform Core SDK Client Log---------------------------

[2013-12-18 14:16:09(220)]        Load libanychatcore.so success!(V4.8 Build Time:Nov 25 2013 09:22:51)

[2013-12-18 14:16:09(222)]        Android OS SDK Version:17, Support ARMv7:2, Support Neon:4

[2013-12-18 14:16:09(240)]        Load libmediautil_v7.so success!(V4.8 Build Time:Nov 25 2013 09:24:09)

[2013-12-18 14:16:09(248)]        Load libmediashow_4.0.so success!(V4.8 Build Time:Nov 25 2013 09:23:27)

[2013-12-18 14:16:09(260)]        Load libmediacore_4.2.so success!(V4.8 Build Time:Nov 25 2013 09:23:57)

[2013-12-18 14:16:09(273)]        CPU:1715.14 MIPS, Hardware:sun7i

[2013-12-18 14:16:09(273)]        Invoke        BRAC_ChangeChatMode(1)

[2013-12-18 14:16:09(275)]        Invoke        BRAC_Connect(demo.anychat.cn,8906)=0

[2013-12-18 14:16:09(278)]        Invoke        LoginServer(username=but)

[2013-12-18 14:16:09(421)]        CheckClientSocketLink         Connect(ip=121.199.51.198,port=8906)

[2013-12-18 14:16:09(714)]        Server version: V4.8(Build Time:2013-12-17 11:09:07, Server OS:Windows)

[2013-12-18 14:16:09(797)]        Message        OnConnect(bSuccess:1, errorcode=0)

[2013-12-18 14:16:15(378)]        Message        OnLoginSystem(userid=-463,errorcode=0,username=but), msg deliver worked(0)

[2013-12-18 14:16:15(413)]        Invoke        EnterRoom(roomid=1)

[2013-12-18 14:16:15(466)]        Connection to streaming media server successfully!(udp delay:33ms)

[2013-12-18 14:16:15(594)]        Message        OnEnterRoom(roomid=1,errorcode=0,siteindex=2)

[2013-12-18 14:16:15(600)]        AllocAudioStream(dwFrameCount:3200, ret:0)

[2013-12-18 14:16:15(600)]        Audio Playback Device Init(0, 1, 16000, 16), Default Playback Driver

[2013-12-18 14:16:15(601)]        Message        OnReceiveOnlineUser(count=5,roomid=1)

[2013-12-18 14:16:15(627)]        Invoke        BRAC_Connect(demo.anychat.cn,8906)=0

[2013-12-18 14:16:15(849)]        Message        OnP2PConnectState(userid=-455, state=1)

[2013-12-18 14:16:16(235)]        Message        OnP2PConnectState(userid=-455, state=3)

[2013-12-18 14:16:16(580)]        Message        OnP2PConnectState(userid=-458, state=2)

[2013-12-18 14:16:16(656)]        Message        OnP2PConnectState(userid=-458, state=3)

[2013-12-18 14:16:19(256)]        Invoke        UserCameraControl(userid=-458,bOpen=1)

[2013-12-18 14:16:19(257)]        Invoke        UserSpeakControl(userid=-458,bOpen=1)

[2013-12-18 14:16:19(258)]        Apply video parameter:640x480, bitrate:300000, quality:3, gop:45, fps:15, preset:3, codec:0

[2013-12-18 14:16:19(258)]        Invoke        UserCameraControl(userid=-1,bOpen=1)

[2013-12-18 14:16:19(259)]        Invoke        UserSpeakControl(userid=-1,bOpen=1)

[2013-12-18 14:16:19(331)]        Invoke        BRAC_Connect(demo.anychat.cn,8906)=0

[2013-12-18 14:16:19(333)]        Invoke        BRAC_Connect(demo.anychat.cn,8906)=0

[2013-12-18 14:16:19(945)]        camera-hal-version=3000130327_V1.0;capture-size-height=720;capture-size-width=1280;effect=none;effect-values=none,mono,negative,sepia,aqua;exposure-compensation=0;exposure-compensation-step=1;focal-length=3.43;focus-areas=(0,0,0,0,0);focus-distances=0.10,1.20,Infinity;focus-mode=auto;focus-mode-values=auto,infinity,macro,fixed,continuous-video,continuous-picture;horizontal-view-angle=51.2;jpeg-quality=95;jpeg-thumbnail-height=240;jpeg-thumbnail-quality=90;jpeg-thumbnail-size-values=320x240,0x0;jpeg-thumbnail-width=320;max-exposure-compensation=3;max-num-detected-faces-hw=0;max-num-detected-faces-sw=0;max-num-focus-areas=1;max-zoom=100;min-exposure-compensation=-3;picture-format=jpeg;picture-format-values=jpeg;picture-size=2592x1936;picture-size-values=2592x1936,1600x1200,1280x1024;preview-format=yuv420sp;preview-format-values=yuv420sp,yuv420p;preview-fps-range=5000,60000;preview-fps-range-values=(5000,60000);preview-frame-rate=25;preview-frame-rate-values=25;preview-size=640x480;preview-size-values=1280x720,

[2013-12-18 14:16:19(946)]        Video Config: id:0, 640x480, 25fps, yuv420sp

[2013-12-18 14:16:20(852)]        video init finish:640x480, NV21, fps:25

[2013-12-18 14:16:20(910)]        Invoke        BRAC_SetVideoPos(dwUserId:-1, hWnd:0x4330001d, l:0, t:0, r:0, b:0)

[2013-12-18 14:16:21(133)]        video codec init:codec:1, 15fps, 640x480, bitrate:300000, quality:3, preset:3, gop:45, handle:1

[2013-12-18 14:16:22(630)]        Invoke        BRAC_ChangeChatMode(1)

[2013-12-18 14:16:24(870)]        Message        OnP2PConnectState(userid=-460, state=2)

[2013-12-18 14:16:30(885)]        Default Audio Capture Driver()

[2013-12-18 14:16:30(886)]        Audio Init, error:0, device:0, 1, 16000, 16, capmode:0

[2013-12-18 14:16:30(886)]        Audio codec init, handle:2, 11, 1, 16000, 16, 15850

[2013-12-18 14:16:30(892)]        Audio FX Status: VAD:0, NS:2, AGC:8, AEC:4

[2013-12-18 14:17:04(372)]        Invoke        UserCameraControl(userid=-458,bOpen=0)

[2013-12-18 14:17:04(374)]        Invoke        UserSpeakControl(userid=-458,bOpen=0)

[2013-12-18 14:17:04(374)]        Invoke        UserCameraControl(userid=-1,bOpen=0)

[2013-12-18 14:17:05(418)]        Invoke        UserSpeakControl(userid=-1,bOpen=0)

[2013-12-18 14:17:05(448)]        Invoke        EnterRoom(roomid=1)

[2013-12-18 14:17:16(798)]        Message        OnP2PConnectState(userid=-455, state=2)

[2013-12-18 14:17:16(798)]        Message        OnP2PConnectState(userid=-455, state=0)

[2013-12-18 14:17:17(209)]        Message        OnP2PConnectState(userid=-458, state=1)

[2013-12-18 14:17:17(312)]        Message        OnP2PConnectState(userid=-458, state=0)

[2013-12-18 14:17:30(352)]        Message        OnUserLeaveRoom(userid=-455,siteindex=0)

[2013-12-18 14:17:30(376)]        Invoke        BRAC_Connect(demo.anychat.cn,8906)=0

[2013-12-18 14:17:30(932)]        Message        OnUserLeaveRoom(userid=-458,siteindex=4)

[2013-12-18 14:17:30(948)]        Invoke        BRAC_Connect(demo.anychat.cn,8906)=0

[2013-12-18 14:19:30(208)]        Message        OnUserEnterRoom(userid=-464,nickname=ghj,siteindex=0)

[2013-12-18 14:19:30(219)]        Invoke        BRAC_Connect(demo.anychat.cn,8906)=0

[2013-12-18 14:19:30(516)]        Message        OnP2PConnectState(userid=-464, state=2)

[2013-12-18 14:19:30(547)]        Message        OnP2PConnectState(userid=-464, state=3)

[2013-12-18 14:19:43(710)]        Invoke        UserCameraControl(userid=-464,bOpen=1)

[2013-12-18 14:19:43(710)]        Invoke        UserSpeakControl(userid=-464,bOpen=1)

[2013-12-18 14:19:43(713)]        Apply video parameter:640x480, bitrate:300000, quality:3, gop:45, fps:15, preset:3, codec:0

[2013-12-18 14:19:43(713)]        Invoke        UserCameraControl(userid=-1,bOpen=1)

[2013-12-18 14:19:43(714)]        Invoke        UserSpeakControl(userid=-1,bOpen=1)

[2013-12-18 14:19:44(434)]        userid(-464) video decode delay:233ms

[2013-12-18 14:19:44(650)]        camera-hal-version=3000130327_V1.0;capture-size-height=720;capture-size-width=1280;effect=none;effect-values=none,mono,negative,sepia,aqua;exposure-compensation=0;exposure-compensation-step=1;focal-length=3.43;focus-areas=(0,0,0,0,0);focus-distances=0.10,1.20,Infinity;focus-mode=auto;focus-mode-values=auto,infinity,macro,fixed,continuous-video,continuous-picture;horizontal-view-angle=51.2;jpeg-quality=95;jpeg-thumbnail-height=240;jpeg-thumbnail-quality=90;jpeg-thumbnail-size-values=320x240,0x0;jpeg-thumbnail-width=320;max-exposure-compensation=3;max-num-detected-faces-hw=0;max-num-detected-faces-sw=0;max-num-focus-areas=1;max-zoom=100;min-exposure-compensation=-3;picture-format=jpeg;picture-format-values=jpeg;picture-size=2592x1936;picture-size-values=2592x1936,1600x1200,1280x1024;preview-format=yuv420sp;preview-format-values=yuv420sp,yuv420p;preview-fps-range=5000,60000;preview-fps-range-values=(5000,60000);preview-frame-rate=25;preview-frame-rate-values=25;preview-size=640x480;preview-size-values=1280x720,

[2013-12-18 14:19:44(650)]        Video Config: id:0, 640x480, 25fps, yuv420sp

[2013-12-18 14:19:44(728)]        Invoke        BRAC_SetVideoPos(dwUserId:-464, hWnd:0xc950001d, l:0, t:0, r:0, b:0)

[2013-12-18 14:19:45(415)]        video init finish:640x480, NV21, fps:25

[2013-12-18 14:19:45(430)]        Invoke        BRAC_SetVideoPos(dwUserId:-1, hWnd:0xd0d0001d, l:0, t:0, r:0, b:0)

[2013-12-18 14:19:45(732)]        video codec init:codec:1, 15fps, 640x480, bitrate:300000, quality:3, preset:3, gop:45, handle:5

[2013-12-18 14:20:21(232)]        Message        OnUserLeaveRoom(userid=-460,siteindex=5)

[2013-12-18 14:20:31(364)]        Invoke        UserCameraControl(userid=-464,bOpen=0)

[2013-12-18 14:20:31(366)]        Invoke        UserSpeakControl(userid=-464,bOpen=0)

[2013-12-18 14:20:31(382)]        Invoke        UserCameraControl(userid=-1,bOpen=0)

[2013-12-18 14:20:32(832)]        Invoke        UserSpeakControl(userid=-1,bOpen=0)

[2013-12-18 14:20:32(892)]        Invoke        EnterRoom(roomid=1)

[2013-12-18 14:20:36(490)]        Message        OnUserLeaveRoom(userid=-464,siteindex=0)

[2013-12-18 14:20:36(500)]        Invoke        BRAC_Connect(demo.anychat.cn,8906)=0

[2013-12-18 14:20:36(694)]        socket error, disconnected by peer!, bTcp(1) - userid(-464)

[2013-12-18 14:22:36(910)]        Message        OnUserEnterRoom(userid=-465,nickname=admin,siteindex=0)

[2013-12-18 14:22:36(919)]        Invoke        BRAC_Connect(demo.anychat.cn,8906)=0

[2013-12-18 14:22:46(126)]        Message        OnP2PConnectState(userid=-465, state=2)

[2013-12-18 14:23:09(058)]        Message        OnUserEnterRoom(userid=-466,nickname=8688,siteindex=3)

[2013-12-18 14:23:09(081)]        Invoke        BRAC_Connect(demo.anychat.cn,8906)=0

[2013-12-18 14:23:14(532)]        Message        OnUserLeaveRoom(userid=-466,siteindex=3)

[2013-12-18 14:23:14(545)]        Invoke        BRAC_Connect(demo.anychat.cn,8906)=0
作者: admin    时间: 2013-12-18 14:27
[2013-12-18 13:34:09(238)]    Invoke    BRAC_Connect(demo.anychat.cn,8906)=0

为什么在您的log中发现多次调用BRAC_Connect,有意为之?
作者: wx88933120    时间: 2013-12-18 14:36
admin 发表于 2013-12-18 14:27
为什么在您的log中发现多次调用BRAC_Connect,有意为之?

没有有意去做这个
可能是demo版本,经常自动掉线,所以让它重新连接,如果断开了
作者: admin    时间: 2013-12-18 14:38
建议您用我们标准的demo程序测试看看,在大厅的“设置”界面可以调整视频的相关参数的,看是否依然很卡?
作者: wx88933120    时间: 2013-12-18 14:43
admin 发表于 2013-12-18 14:38
建议您用我们标准的demo程序测试看看,在大厅的“设置”界面可以调整视频的相关参数的,看是否依然很卡?

您好,用标准的demo效果都差不多的
作者: admin    时间: 2013-12-18 14:46
您好,我看log里面是连接的我们公开的服务器,您可以尝试一下在本地局域网部署一台服务器,看看效果是否有所改善?
Invoke        BRAC_Connect(demo.anychat.cn,8906)=0

作者: wx88933120    时间: 2013-12-18 15:00
admin 发表于 2013-12-18 14:46
您好,我看log里面是连接的我们公开的服务器,您可以尝试一下在本地局域网部署一台服务器,看看效果是否有 ...

您好
我在局域网内试了
服务器和设备id都是192.168.1.x
还是有1秒多的延迟

作者: admin    时间: 2013-12-18 15:02
用我们标准的demo程序,局域网,分辩率就用默认的320x240,将帧率修改为25fps,看延迟还大吗?




欢迎光临 AnyChat技术支持论坛 (http://bbs.anychat.cn/) Powered by Discuz! X3