AnyChat技术支持论坛

标题: 为什么本地可以录制,LINXU服务器端不可录制??? [打印本页]

作者: LCL5555555    时间: 2016-11-30 18:20
标题: 为什么本地可以录制,LINXU服务器端不可录制???
/*视频开始录制*/
                        var ANYCHAT_RECORD_FLAGS_ABREAST = 0x00000100; //并列录制他人视频
                        var BRAC_RECORD_FLAGS_LOCALCB = 0x00000800; //视频上传服务器支持回调
                        var dwFlags = BRAC_RECORD_FLAGS_LOCALCB + ANYCHAT_RECORD_FLAGS_VIDEO + ANYCHAT_RECORD_FLAGS_AUDIO + ANYCHAT_RECORD_FLAGS_MIXVIDEO + ANYCHAT_RECORD_FLAGS_MIXAUDIO + ANYCHAT_RECORD_FLAGS_SERVER;
                        AddLog(dwFlags+"视频录制开始3"+dwUserId);
                        BRAC_StreamRecordCtrlEx(dwUserId, true,  dwFlags, 0, "LCL");
                        AddLog("视频录制开始2"+dwUserId);
/*视频停止录制*/
                        var dwFlags = BRAC_RECORD_FLAGS_LOCALCB + ANYCHAT_RECORD_FLAGS_VIDEO + ANYCHAT_RECORD_FLAGS_AUDIO + ANYCHAT_RECORD_FLAGS_MIXVIDEO + ANYCHAT_RECORD_FLAGS_MIXAUDIO + ANYCHAT_RECORD_FLAGS_SERVER;
                        BRAC_StreamRecordCtrlEx(dwUserId, false,  dwFlags, 0, "LCL");
                        AddLog(dwFlags+"视频录制结束"+dwUserId);

日志也没有回调录制完成的函数,但是本地录制可以回调,求解?????????????


作者: 佰锐科技-梁国桦    时间: 2016-11-30 18:43
您好,请问录像文件有正常生成吗??另外也麻烦发一下录制发起方的日志
作者: LCL5555555    时间: 2016-12-1 08:56
佰锐科技-梁国桦 发表于 2016-11-30 18:43
您好,请问录像文件有正常生成吗??另外也麻烦发一下录制发起方的日志

BRAC_InitSDK(0)=0 8:53:13
AnyChat Plugin Version:1.0.5.0 8:53:13
AnyChat SDK Version:6.2 8:53:13
Build Time:Nov 20 2016 13:42:22 8:53:13
BRAC_Login(555)=0 8:53:48
OnAnyChatConnect(errorcode=0) 8:53:48
OnAnyChatLoginSystem(userid=-30, errorcode=0) 8:53:49
Initialize Client Object Information 8:53:49
OnAnyChatObjectUpdate(4,10001) 8:53:49
OnAnyChatObjectUpdate(4,10002) 8:53:49
OnAnyChatObjectSyncDataFinish(4,10002) 8:53:49
BRAC_ObjectControl(4,10001,401,0,0,0,0,'')=0 8:53:50
OnAnyChatAgentStatusChanged(6,-30,0) 8:53:50
OnAnyChatObjectUpdate(6,-30) 8:53:50
OnAnyChatObjectSyncDataFinish(6,-30) 8:53:50
OnAnyChatObjectUpdate(5,101) 8:53:50
OnAnyChatObjectUpdate(5,102) 8:53:50
OnAnyChatObjectUpdate(5,103) 8:53:50
OnAnyChatObjectSyncDataFinish(5,103) 8:53:50
OnAnyChatAgentStatusChanged(6,-30,0) 8:53:50
OnAnyChatObjectUpdate(6,-30) 8:53:50
OnAnyChatObjectUpdate(4,10001) 8:53:50
OnAnyChatEnterAreaResult(4,10001,0) 8:53:50
OnAnyChatAreaStatusChange(4,10001,0) 8:53:50
OnAnyChatAreaStatusChange(4,10001,0) 8:54:23
OnAnyChatQueueStatusChanged(5,101) 8:54:23
OnAnyChatAreaStatusChange(4,10001,0) 8:54:25
OnAnyChatAreaStatusChange(4,10001,0) 8:54:34
OnAnyChatQueueStatusChanged(5,101) 8:54:34
OnAnyChatAreaStatusChange(4,10001,0) 8:54:38
OnAnyChatQueueStatusChanged(5,101) 8:54:38
OnAnyChatAreaStatusChange(4,10001,0) 8:54:40
BRAC_ObjectControl(6,-30,602,0,0,0,0,'')=0 8:54:40
OnAnyChatObjectUpdate(8,-32) 8:54:40
OnAnyChatServiceStart(-30,-32,101) 8:54:40
BRAC_VideoCallControl(2,-32,100104,0,0,'')=0 8:54:40
OnAnyChatAgentStatusChanged(6,-30,2) 8:54:40
OnAnyChatQueueStatusChanged(5,101) 8:54:40
OnAnyChatAreaStatusChange(4,10001,0) 8:54:42
BRAC_EnterRoom(1,'',0)=0 8:54:42
OnAnyChatEnterRoom(dwRoomId=1,errorcode=0) 8:54:42
BRAC_UserCameraControl(-30,1)=0 8:54:42
BRAC_UserSpeakControl(-30,1)=0 8:54:42
BRAC_UserCameraControl(-32,1)=0 8:54:42
BRAC_UserSpeakControl(-32,1)=0 8:54:43
function OnAnyChatUserAtRoom(dwUserId=-32) 8:54:43
BRAC_UserCameraControl(-32,1)=0 8:54:43
BRAC_UserSpeakControl(-32,1)=0 8:54:43
51视频录制开始3-32 8:54:43
视频录制开始2-32 8:54:43
BRAC_VideoCallControl(4,-32,0,0,0,'')=0 8:55:05
BRAC_UserCameraControl(-32,0)=3 8:55:05
BRAC_UserSpeakControl(-32,0)=0 8:55:05
0视频录制结束-32 8:55:05
录制完成回调函数执行 8:55:05
C:\PROGRA~2\BAIRUI~1\ANYCHA~1\temp\record\2016-12-01\08-54-49-749_-32_6.mp4录制或则拍照完成,时长为15 8:55:05
OnAnyChatAgentStatusChanged(6,-30,1) 8:55:05



这是录制到本地成功的日志
作者: LCL5555555    时间: 2016-12-1 09:01
佰锐科技-梁国桦 发表于 2016-11-30 18:43
您好,请问录像文件有正常生成吗??另外也麻烦发一下录制发起方的日志

BRAC_InitSDK(0)=0 8:58:22
AnyChat Plugin Version:1.0.5.0 8:58:22
AnyChat SDK Version:6.2 8:58:22
Build Time:Nov 20 2016 13:42:22 8:58:22
BRAC_Login(555)=0 8:58:23
OnAnyChatConnect(errorcode=0) 8:58:24
OnAnyChatLoginSystem(userid=-33, errorcode=0) 8:58:24
Initialize Client Object Information 8:58:24
OnAnyChatObjectUpdate(4,10001) 8:58:24
OnAnyChatObjectUpdate(4,10002) 8:58:24
OnAnyChatObjectSyncDataFinish(4,10002) 8:58:24
BRAC_ObjectControl(4,10001,401,0,0,0,0,'')=0 8:58:28
OnAnyChatAgentStatusChanged(6,-33,0) 8:58:28
OnAnyChatObjectUpdate(6,-33) 8:58:28
OnAnyChatObjectSyncDataFinish(6,-33) 8:58:28
OnAnyChatObjectUpdate(5,101) 8:58:28
OnAnyChatObjectUpdate(5,102) 8:58:28
OnAnyChatObjectUpdate(5,103) 8:58:28
OnAnyChatObjectSyncDataFinish(5,103) 8:58:28
OnAnyChatAgentStatusChanged(6,-33,0) 8:58:28
OnAnyChatObjectUpdate(6,-33) 8:58:28
OnAnyChatObjectUpdate(4,10001) 8:58:28
OnAnyChatEnterAreaResult(4,10001,0) 8:58:28
OnAnyChatAreaStatusChange(4,10001,0) 8:58:29
OnAnyChatAreaStatusChange(4,10001,0) 9:00:08
OnAnyChatQueueStatusChanged(5,101) 9:00:08
OnAnyChatAreaStatusChange(4,10001,0) 9:00:10
BRAC_ObjectControl(6,-33,602,0,0,0,0,'')=0 9:00:12
OnAnyChatObjectUpdate(8,-37) 9:00:12
OnAnyChatServiceStart(-33,-37,101) 9:00:12
BRAC_VideoCallControl(2,-37,100104,0,0,'')=0 9:00:12
OnAnyChatAgentStatusChanged(6,-33,2) 9:00:12
OnAnyChatQueueStatusChanged(5,101) 9:00:12
OnAnyChatAreaStatusChange(4,10001,0) 9:00:12
BRAC_EnterRoom(1,'',0)=0 9:00:15
OnAnyChatEnterRoom(dwRoomId=1,errorcode=0) 9:00:15
BRAC_UserCameraControl(-33,1)=0 9:00:15
BRAC_UserSpeakControl(-33,1)=0 9:00:15
BRAC_UserCameraControl(-37,1)=0 9:00:15
BRAC_UserSpeakControl(-37,1)=0 9:00:15
function OnAnyChatUserAtRoom(dwUserId=-37) 9:00:15
BRAC_UserCameraControl(-37,1)=0 9:00:15
BRAC_UserSpeakControl(-37,1)=0 9:00:15
2103视频录制开始3-37 9:00:15
视频录制开始2-37 9:00:15
BRAC_VideoCallControl(4,-37,0,0,0,'')=0 9:00:36
BRAC_UserCameraControl(-37,0)=3 9:00:36
BRAC_UserSpeakControl(-37,0)=0 9:00:36
2103视频录制结束-37 9:00:36
OnAnyChatAgentStatusChanged(6,-33,1) 9:00:36
OnAnyChatAreaStatusChange(4,10001,0) 9:00:37


这是录制到服务器的失败日志
作者: 佰锐科技-梁国桦    时间: 2016-12-1 09:28
您好,我说的日志指的是AnyChat生成的日志,在插件的安装目录(默认安装目录:C:\Program Files (x86)\BaiRuiTech\AnyChatWeb),文件名:BRAnyChatCore.log,如果找不到该日志,请卸载插件后重新安装到其他非系统盘看看
作者: LCL5555555    时间: 2016-12-1 09:37
佰锐科技-梁国桦 发表于 2016-12-1 09:28
您好,我说的日志指的是AnyChat生成的日志,在插件的安装目录(默认安装目录:C:\Program Files (x86)\BaiR ...

[2016-12-01 09:31:06(763)][I]        ---------------------------AnyChat Platform Core SDK Client Log---------------------------
[2016-12-01 09:31:06(779)][I]        Load BRAnyChatCore.dll success!(V6.2 Build Time:Nov 20 2016 13:42:22)
[2016-12-01 09:31:06(779)][I]        Load BRMiscUtil.dll success!(V6.2 Build Time:Nov 20 2016 13:44:17)
[2016-12-01 09:31:06(825)][I]        Load BRMediaUtil.dll success!(V6.2 Build Time:Nov 20 2016 13:41:38)
[2016-12-01 09:31:06(825)][I]        Load BRMediaShow.dll success!(V6.2 Build Time:Nov 20 2016 13:44:22)
[2016-12-01 09:31:06(841)][I]        Load BRMediaCore.dll success!(V6.2 Build Time:Nov 20 2016 13:44:35)
[2016-12-01 09:31:06(872)][I]        Video capture device supported:
[2016-12-01 09:31:06(872)][I]                1-Lenovo USB2.0 UVC Camera
[2016-12-01 09:31:06(872)][I]        Audio capture device supported:
[2016-12-01 09:31:06(872)][I]                1-麦克风 (Lenovo USB2.0 Audio)
作者: 佰锐科技-梁国桦    时间: 2016-12-1 09:38
对了,请问有启动录像服务器吗?
作者: 佰锐科技-刘洋    时间: 2016-12-1 09:38
LCL5555555 发表于 2016-12-1 09:01
BRAC_InitSDK(0)=0 8:58:22
AnyChat Plugin Version:1.0.5.0 8:58:22
AnyChat SDK Version:6.2 8:58:22 ...

你好 请问 有启动录像服务器吗?
作者: LCL5555555    时间: 2016-12-1 09:39
佰锐科技-梁国桦 发表于 2016-12-1 09:28
您好,我说的日志指的是AnyChat生成的日志,在插件的安装目录(默认安装目录:C:\Program Files (x86)\BaiR ...

视频录制抓拍到本地一点问题都没有,就是录制到LINXU服务器端不行
作者: LCL5555555    时间: 2016-12-1 09:40
佰锐科技-刘洋 发表于 2016-12-1 09:38
你好 请问 有启动录像服务器吗?

启动了啊,本地就可以录制呢
作者: 佰锐科技-梁国桦    时间: 2016-12-1 09:43
LCL5555555 发表于 2016-12-1 09:40
启动了啊,本地就可以录制呢

发一下日志吧
作者: 佰锐科技-刘洋    时间: 2016-12-1 09:43
LCL5555555 发表于 2016-12-1 09:40
启动了啊,本地就可以录制呢

上面日志 不完整  你跑一个完整的服务器录像日志发上来
作者: LCL5555555    时间: 2016-12-1 09:53
佰锐科技-刘洋 发表于 2016-12-1 09:43
上面日志 不完整  你跑一个完整的服务器录像日志发上来

[2016-12-01 09:43:22(859)][I]        ---------------------------AnyChat Platform Core SDK Client Log---------------------------
[2016-12-01 09:43:22(859)][I]        Load BRAnyChatCore.dll success!(V6.2 Build Time:Nov 20 2016 13:42:22)
[2016-12-01 09:43:22(859)][I]        Load BRMiscUtil.dll success!(V6.2 Build Time:Nov 20 2016 13:44:17)
[2016-12-01 09:43:22(906)][I]        Load BRMediaUtil.dll success!(V6.2 Build Time:Nov 20 2016 13:41:38)
[2016-12-01 09:43:22(906)][I]        Load BRMediaShow.dll success!(V6.2 Build Time:Nov 20 2016 13:44:22)
[2016-12-01 09:43:22(921)][I]        Load BRMediaCore.dll success!(V6.2 Build Time:Nov 20 2016 13:44:35)
[2016-12-01 09:43:22(952)][I]        Video capture device supported:
[2016-12-01 09:43:22(952)][I]                1-Lenovo USB2.0 UVC Camera
[2016-12-01 09:43:22(952)][I]        Audio capture device supported:
[2016-12-01 09:43:22(952)][I]                1-麦克风 (Lenovo USB2.0 Audio)
[2016-12-01 09:43:23(093)][I]        Start network engine(IPv4 mode)...
[2016-12-01 09:43:23(093)][I]        Invoke        Connect(10.7.7.100,8906)=0
[2016-12-01 09:43:23(093)][I]        Invoke        Login(username:weded)=0
[2016-12-01 09:43:23(109)][I]        Create anychatdnsserver connect:10.7.7.100(8906)
[2016-12-01 09:43:23(312)][I]        On pre-connection result, errorcode:0, anychatcoreserver, 10.7.7.100(8906, tcp:1)
[2016-12-01 09:43:23(312)][I]        CheckClientSocketLink         Connect(ip=10.7.7.100,port=8906)
[2016-12-01 09:43:23(406)][I]        On connect return, errorcode:0
[2016-12-01 09:43:23(453)][I]        Server version: V6.1(Build Time:2016-06-30 15:26:09, Linux server)
[2016-12-01 09:43:23(515)][I]        Message        OnConnect(bSuccess:1, errorcode=0)
[2016-12-01 09:43:23(640)][I]        Message        OnLoginSystem(userid=-45,errorcode=0,username=weded), msg deliver worked(1)
[2016-12-01 09:43:23(640)][I]        Server running time: 0 days, 15 hours, 49 minutes, license mode:0, cloud:0
[2016-12-01 09:43:23(671)][I]        Object InitFlags:0x2
[2016-12-01 09:43:23(687)][I]        Connection to streaming media server successfully!(udp delay:23ms)
[2016-12-01 09:43:23(687)][I]        Invoke        ObjectControl(objecttype:4, objectid:-1, ctrlcode:3, params:-45, 0, 0, 0) = 0
[2016-12-01 09:43:23(812)][I]        Sync area data finish, total area count:2
[2016-12-01 09:43:23(812)][I]                Area object(type:4) id:10001 Area Name:科韵路营业厅 Guest Count:0 Agent Count:0
[2016-12-01 09:43:23(812)][I]                Area object(type:4) id:10002 Area Name:天河路营业厅 Guest Count:0 Agent Count:0
[2016-12-01 09:43:25(265)][I]        Invoke        ObjectControl(objecttype:4, objectid:10001, ctrlcode:401, params:0, 0, 0, 0) = 0
[2016-12-01 09:43:25(363)][I]        Area(10001) object Event, enter result errorcode:0, queue count:3
[2016-12-01 09:43:45(987)][I]        Invoke        ObjectControl(objecttype:6, objectid:-45, ctrlcode:602, params:0, 0, 0, 0) = 0
[2016-12-01 09:43:46(128)][I]        Invoke        VideoCallControl(EventType:1, UserId:-46, ErrorCode:0, dwFlags:0, dwParam:0, UserStr=0
[2016-12-01 09:43:46(206)][I]        Message        OnVideoCallEvent(EventType:2, UserId:-46, ErrorCode:0, dwFlags:0x0, dwParam:0
[2016-12-01 09:43:47(940)][I]        Message        OnVideoCallEvent(EventType:3, UserId:-46, ErrorCode:0, dwFlags:0x0, dwParam:1
[2016-12-01 09:43:47(940)][I]        Invoke        EnterRoom(roomid=1)
[2016-12-01 09:43:48(065)][I]        Message        OnEnterRoom(roomid=1,errorcode=0,siteindex=0)
[2016-12-01 09:43:48(065)][I]        Message        OnReceiveOnlineUser(count=1,roomid=1)
[2016-12-01 09:43:48(081)][I]        Invoke        UserCameraControl(userid=-45, bOpen=1, stream=0)
[2016-12-01 09:43:48(097)][I]        Invoke        UserSpeakControl(userid=-45,bOpen=1)
[2016-12-01 09:43:48(112)][I]        Message        OnUserEnterRoom(userid=-46,nickname=android1,siteindex=1)
[2016-12-01 09:43:48(254)][I]        WaveIn Audio Capture Driver(麦克风 (Lenovo USB2.0 Audio))
[2016-12-01 09:43:48(254)][I]        Audio Init, error:0, device:0, 1, 16000, 16, capmode:0
[2016-12-01 09:43:48(270)][I]        Audio codec init, handle:1, 11, 1, 16000, 16, 15850
[2016-12-01 09:43:48(301)][I]        Invoke        UserCameraControl(userid=-46, bOpen=1, stream=0)
[2016-12-01 09:43:48(317)][I]        Invoke        UserSpeakControl(userid=-46,bOpen=1)
[2016-12-01 09:43:48(332)][I]        Audio Playback Device Init(0, 1, 16000, 16), WaveOut Playback Driver
[2016-12-01 09:43:48(348)][I]        Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1
[2016-12-01 09:43:48(362)][I]        Invoke        UserCameraControl(userid=-46, bOpen=1, stream=0)
[2016-12-01 09:43:48(370)][I]        Invoke        UserSpeakControl(userid=-46,bOpen=1)
[2016-12-01 09:43:48(386)][I]        Invoke        StreamRecordCtrlEx(-46, -1, 0x837, 0, LCL)=0
[2016-12-01 09:43:48(482)][I]        MinCroppingSize(1280, 720)        MaxCroppingSize(1280, 720)        Format(MJPG, 0x47504a4d, 30fps)
[2016-12-01 09:43:48(483)][I]        MinCroppingSize(352, 288)        MaxCroppingSize(352, 288)        Format(MJPG, 0x47504a4d, 30fps)
[2016-12-01 09:43:48(484)][I]        MinCroppingSize(320, 240)        MaxCroppingSize(320, 240)        Format(MJPG, 0x47504a4d, 30fps)
[2016-12-01 09:43:48(485)][I]        MinCroppingSize(176, 144)        MaxCroppingSize(176, 144)        Format(MJPG, 0x47504a4d, 30fps)
[2016-12-01 09:43:48(485)][I]        MinCroppingSize(160, 120)        MaxCroppingSize(160, 120)        Format(MJPG, 0x47504a4d, 30fps)
[2016-12-01 09:43:48(486)][I]        MinCroppingSize(640, 360)        MaxCroppingSize(640, 360)        Format(MJPG, 0x47504a4d, 30fps)
[2016-12-01 09:43:48(487)][I]        MinCroppingSize(640, 480)        MaxCroppingSize(640, 480)        Format(MJPG, 0x47504a4d, 30fps)
[2016-12-01 09:43:48(488)][I]        MinCroppingSize(1280, 720)        MaxCroppingSize(1280, 720)        Format(YUY2, 0x32595559, 10fps)
[2016-12-01 09:43:48(489)][I]        MinCroppingSize(352, 288)        MaxCroppingSize(352, 288)        Format(YUY2, 0x32595559, 30fps)
[2016-12-01 09:43:48(490)][I]        MinCroppingSize(320, 240)        MaxCroppingSize(320, 240)        Format(YUY2, 0x32595559, 30fps)
[2016-12-01 09:43:48(490)][I]        MinCroppingSize(176, 144)        MaxCroppingSize(176, 144)        Format(YUY2, 0x32595559, 30fps)
[2016-12-01 09:43:48(491)][I]        MinCroppingSize(160, 120)        MaxCroppingSize(160, 120)        Format(YUY2, 0x32595559, 30fps)
[2016-12-01 09:43:48(492)][I]        MinCroppingSize(640, 360)        MaxCroppingSize(640, 360)        Format(YUY2, 0x32595559, 30fps)
[2016-12-01 09:43:48(492)][I]        MinCroppingSize(640, 480)        MaxCroppingSize(640, 480)        Format(YUY2, 0x32595559, 30fps)
[2016-12-01 09:43:48(493)][I]        Prepare config camera(1-Lenovo USB2.0 UVC Camera): 320x240, 25fps
[2016-12-01 09:43:48(497)][I]                The best video format is detected: YUY2
[2016-12-01 09:43:48(498)][I]                SetFormat(320x240, YUY2, 25fps) = 0
[2016-12-01 09:43:48(499)][I]                Video Config Size(320, 240)        Format(YUY2, 25fps)
[2016-12-01 09:43:48(522)][I]        video init finish:320x240, YUY2, fps:25, codecid:1
[2016-12-01 09:43:48(534)][I]        On Remote UserCameraControl(dwUserId:-46, bOpen:1)
[2016-12-01 09:43:48(535)][I]        On Remote UserSpeakControl(dwUserId:-46, bOpen:1)
[2016-12-01 09:43:48(714)][I]        video codec init:codec:1, 15fps, 320x240, bitrate:90kbps, quality:3, preset:3, gop:30, handle:3
[2016-12-01 09:43:52(803)][I]        Message        OnP2PConnectState(userid=-46, state=1)
[2016-12-01 09:43:53(410)][I]        Message        OnP2PConnectState(userid=-46, state=3)
[2016-12-01 09:43:54(699)][I]        userid(-46) video decode, codec:1, 320x240, delay:0ms
[2016-12-01 09:43:58(300)][I]        userid(-46) audio decode, codec:11, 1 channel, 16000Hz
[2016-12-01 09:44:01(916)][I]        Invoke        SnapShot(-45, 0x0, 0)=0
[2016-12-01 09:44:01(926)][I]        Prepare create record file:C:\PROGRA~2\BAIRUI~1\ANYCHA~1\temp\snapshot\2016-12-01\09-44-01-924_weded_38.jpg, dwFlags:0x0
[2016-12-01 09:44:03(428)][I]        Invoke        SnapShot(-45, 0x0, 0)=0
[2016-12-01 09:44:03(461)][I]        Prepare create record file:C:\PROGRA~2\BAIRUI~1\ANYCHA~1\temp\snapshot\2016-12-01\09-44-03-460_weded_38.jpg, dwFlags:0x0
[2016-12-01 09:44:28(255)][I]        Invoke        VideoCallControl(EventType:4, UserId:-46, ErrorCode:0, dwFlags:0, dwParam:0, UserStr=0
[2016-12-01 09:44:28(274)][I]        Message        OnVideoCallEvent(EventType:4, UserId:-46, ErrorCode:0, dwFlags:0x0, dwParam:0
[2016-12-01 09:44:28(328)][I]        On Remote UserSpeakControl(dwUserId:-46, bOpen:0)
[2016-12-01 09:44:28(330)][I]        On Remote UserCameraControl(dwUserId:-46, bOpen:0)
[2016-12-01 09:44:28(332)][I]        Message        OnUserLeaveRoom(userid=-46,siteindex=1)
[2016-12-01 09:44:28(614)][I]        Invoke        LeaveRoom(roomid=1)        Elapse:344 ms
[2016-12-01 09:44:28(614)][I]        Invoke        UserCameraControl(userid=-46, bOpen=0, stream=0)
[2016-12-01 09:44:28(661)][I]        Invoke        UserSpeakControl(userid=-46,bOpen=0)
[2016-12-01 09:44:28(701)][I]        Invoke        ObjectControl(objecttype:6, objectid:-45, ctrlcode:604, params:0, 0, 0, 0) = 0
[2016-12-01 09:44:28(711)][I]        Invoke        StreamRecordCtrlEx(-46, 0, 0x837, 0, LCL)=0
[2016-12-01 09:44:28(743)][I]        OnSocketClose, index(3)-errorcode(0-0), flags:0x10481, bTcp(1),userid(-46), list:0

[2016-12-01 09:44:28(787)][I]        Invoke        ObjectControl(objecttype:6, objectid:-45, ctrlcode:604, params:0, 0, 0, 0) = 0
[2016-12-01 09:44:28(791)][I]        Invoke        UserCameraControl(userid=-46, bOpen=0, stream=0)
[2016-12-01 09:44:28(791)][I]        Invoke        UserSpeakControl(userid=-46,bOpen=0)
[2016-12-01 09:50:58(796)][I]        Invoke        SnapShot(-45, 0x0, 0)=3
[2016-12-01 09:51:05(234)][I]        Invoke        ObjectControl(objecttype:6, objectid:-45, ctrlcode:602, params:0, 0, 0, 0) = 0
[2016-12-01 09:51:22(410)][I]        Invoke        ObjectControl(objecttype:6, objectid:-45, ctrlcode:602, params:0, 0, 0, 0) = 0
[2016-12-01 09:51:22(613)][I]        Invoke        VideoCallControl(EventType:1, UserId:-48, ErrorCode:0, dwFlags:0, dwParam:0, UserStr=0
[2016-12-01 09:51:22(691)][I]        Message        OnVideoCallEvent(EventType:2, UserId:-48, ErrorCode:0, dwFlags:0x0, dwParam:0
[2016-12-01 09:51:25(848)][I]        Message        OnVideoCallEvent(EventType:3, UserId:-48, ErrorCode:0, dwFlags:0x0, dwParam:1
[2016-12-01 09:51:25(848)][I]        Invoke        EnterRoom(roomid=1)
[2016-12-01 09:51:26(004)][I]        Message        OnEnterRoom(roomid=1,errorcode=0,siteindex=0)
[2016-12-01 09:51:26(004)][I]        Message        OnReceiveOnlineUser(count=1,roomid=1)
[2016-12-01 09:51:26(004)][I]        Message        OnUserEnterRoom(userid=-48,nickname=android1,siteindex=1)
[2016-12-01 09:51:26(051)][I]        Invoke        UserCameraControl(userid=-45, bOpen=1, stream=0)
[2016-12-01 09:51:26(082)][I]        Invoke        UserSpeakControl(userid=-45,bOpen=1)
[2016-12-01 09:51:26(195)][I]        WaveIn Audio Capture Driver(麦克风 (Lenovo USB2.0 Audio))
[2016-12-01 09:51:26(210)][I]        Audio Init, error:0, device:0, 1, 16000, 16, capmode:0
[2016-12-01 09:51:26(210)][I]        Audio codec init, handle:6, 11, 1, 16000, 16, 15850
[2016-12-01 09:51:26(257)][I]        Invoke        UserCameraControl(userid=-48, bOpen=1, stream=0)
[2016-12-01 09:51:26(273)][I]        Audio Playback Device Init(0, 1, 16000, 16), WaveOut Playback Driver
[2016-12-01 09:51:26(289)][I]        Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1
[2016-12-01 09:51:26(301)][I]        Invoke        UserSpeakControl(userid=-48,bOpen=1)
[2016-12-01 09:51:26(365)][I]        Invoke        UserCameraControl(userid=-48, bOpen=1, stream=0)
[2016-12-01 09:51:26(392)][I]        MinCroppingSize(1280, 720)        MaxCroppingSize(1280, 720)        Format(MJPG, 0x47504a4d, 30fps)
[2016-12-01 09:51:26(393)][I]        MinCroppingSize(352, 288)        MaxCroppingSize(352, 288)        Format(MJPG, 0x47504a4d, 30fps)
[2016-12-01 09:51:26(394)][I]        MinCroppingSize(320, 240)        MaxCroppingSize(320, 240)        Format(MJPG, 0x47504a4d, 30fps)
[2016-12-01 09:51:26(394)][I]        MinCroppingSize(176, 144)        MaxCroppingSize(176, 144)        Format(MJPG, 0x47504a4d, 30fps)
[2016-12-01 09:51:26(395)][I]        MinCroppingSize(160, 120)        MaxCroppingSize(160, 120)        Format(MJPG, 0x47504a4d, 30fps)
[2016-12-01 09:51:26(395)][I]        Invoke        UserSpeakControl(userid=-48,bOpen=1)
[2016-12-01 09:51:26(395)][I]        MinCroppingSize(640, 360)        MaxCroppingSize(640, 360)        Format(MJPG, 0x47504a4d, 30fps)
[2016-12-01 09:51:26(396)][I]        MinCroppingSize(640, 480)        MaxCroppingSize(640, 480)        Format(MJPG, 0x47504a4d, 30fps)
[2016-12-01 09:51:26(396)][I]        MinCroppingSize(1280, 720)        MaxCroppingSize(1280, 720)        Format(YUY2, 0x32595559, 10fps)
[2016-12-01 09:51:26(397)][I]        MinCroppingSize(352, 288)        MaxCroppingSize(352, 288)        Format(YUY2, 0x32595559, 30fps)
[2016-12-01 09:51:26(397)][I]        MinCroppingSize(320, 240)        MaxCroppingSize(320, 240)        Format(YUY2, 0x32595559, 30fps)
[2016-12-01 09:51:26(398)][I]        MinCroppingSize(176, 144)        MaxCroppingSize(176, 144)        Format(YUY2, 0x32595559, 30fps)
[2016-12-01 09:51:26(399)][I]        MinCroppingSize(160, 120)        MaxCroppingSize(160, 120)        Format(YUY2, 0x32595559, 30fps)
[2016-12-01 09:51:26(399)][I]        MinCroppingSize(640, 360)        MaxCroppingSize(640, 360)        Format(YUY2, 0x32595559, 30fps)
[2016-12-01 09:51:26(400)][I]        MinCroppingSize(640, 480)        MaxCroppingSize(640, 480)        Format(YUY2, 0x32595559, 30fps)
[2016-12-01 09:51:26(400)][I]        Prepare config camera(1-Lenovo USB2.0 UVC Camera): 320x240, 25fps
[2016-12-01 09:51:26(402)][I]                The best video format is detected: YUY2
[2016-12-01 09:51:26(404)][I]                SetFormat(320x240, YUY2, 25fps) = 0
[2016-12-01 09:51:26(404)][I]                Video Config Size(320, 240)        Format(YUY2, 25fps)
[2016-12-01 09:51:26(419)][I]        On Remote UserCameraControl(dwUserId:-48, bOpen:1)
[2016-12-01 09:51:26(420)][I]        On Remote UserSpeakControl(dwUserId:-48, bOpen:1)
[2016-12-01 09:51:26(420)][I]        video init finish:320x240, YUY2, fps:25, codecid:1
[2016-12-01 09:51:26(459)][I]        Invoke        StreamRecordCtrlEx(-48, -1, 0x837, 0, LCL)=0
[2016-12-01 09:51:26(598)][I]        video codec init:codec:1, 15fps, 320x240, bitrate:90kbps, quality:3, preset:3, gop:30, handle:8
[2016-12-01 09:51:30(840)][I]        Message        OnP2PConnectState(userid=-48, state=2)
[2016-12-01 09:51:30(913)][I]        userid(-48) audio decode, codec:11, 1 channel, 16000Hz
[2016-12-01 09:51:31(703)][I]        Message        OnP2PConnectState(userid=-48, state=3)
[2016-12-01 09:51:32(525)][I]        userid(-48) video decode, codec:1, 320x240, delay:0ms
[2016-12-01 09:51:42(850)][I]        Invoke        SnapShot(-45, 0x0, 0)=0
[2016-12-01 09:51:42(905)][I]        Prepare create record file:C:\PROGRA~2\BAIRUI~1\ANYCHA~1\temp\snapshot\2016-12-01\09-51-42-900_weded_38.jpg, dwFlags:0x0
[2016-12-01 09:51:47(173)][I]        Invoke        VideoCallControl(EventType:4, UserId:-48, ErrorCode:0, dwFlags:0, dwParam:0, UserStr=0
[2016-12-01 09:51:47(182)][I]        Message        OnVideoCallEvent(EventType:4, UserId:-48, ErrorCode:0, dwFlags:0x0, dwParam:0
[2016-12-01 09:51:47(484)][I]        Invoke        LeaveRoom(roomid=1)        Elapse:266 ms
[2016-12-01 09:51:47(484)][I]        Invoke        UserCameraControl(userid=-48, bOpen=0, stream=0)
[2016-12-01 09:51:47(549)][I]        Invoke        UserSpeakControl(userid=-48,bOpen=0)
[2016-12-01 09:51:47(562)][I]        Invoke        ObjectControl(objecttype:6, objectid:-45, ctrlcode:604, params:0, 0, 0, 0) = 0
[2016-12-01 09:51:47(580)][I]        Invoke        StreamRecordCtrlEx(-48, 0, 0x837, 0, LCL)=0
[2016-12-01 09:51:47(637)][I]        OnSocketClose, index(3)-errorcode(0-0), flags:0x10481, bTcp(1),userid(-48), list:0

[2016-12-01 09:51:58(380)][I]        Invoke        ObjectControl(objecttype:4, objectid:10001, ctrlcode:402, params:0, 0, 0, 0) = 0
[2016-12-01 09:51:58(443)][I]        Area(10001) object Event, leave result errorcode:0
[2016-12-01 09:52:02(661)][I]        Close network engine...
[2016-12-01 09:52:02(677)][I]        Invoke        LogoutServer(userid=-45)        Elapse:141 ms




这是录制到服务器失败日志
作者: 佰锐科技-刘洋    时间: 2016-12-1 10:28
LCL5555555 发表于 2016-12-1 09:53
[2016-12-01 09:43:22(859)]        ---------------------------AnyChat Platform Core SDK Client Log-------- ...

[2016-12-01 09:51:47(580)][I]        Invoke        StreamRecordCtrlEx(-48, 0, 0x837, 0, LCL)=0   
客户端调用API:BRAC_StreamRecordCtrlEx录像完成之后,将会触发该回调事件
作者: LCL5555555    时间: 2016-12-1 10:35
佰锐科技-刘洋 发表于 2016-12-1 10:28
[2016-12-01 09:51:47(580)]        Invoke        StreamRecordCtrlEx(-48, 0, 0x837, 0, LCL)=0   
...

录制到本地可以回调成功,录制到服务器就不能回调了,但是BRAC_StreamRecordCtrlEx开录停录都调用成功了
作者: 佰锐科技-刘洋    时间: 2016-12-1 10:42
本帖最后由 佰锐科技-刘洋 于 2016-12-1 10:47 编辑
LCL5555555 发表于 2016-12-1 10:35
录制到本地可以回调成功,录制到服务器就不能回调了,但是BRAC_StreamRecordCtrlEx开录停录都调用成功了

建议在发起录像方在触发onVideoCallControlFinish之后结束录像,不要在对方离开房间之后才结束录像;另外,你这是【服务器合成录像】,不建议录像api传对方userid;录像第三个参数加上BRAC_RECORD_FLAGS_STREAM就是【合成流】,合成流可以自己也可以传对方;


作者: 佰锐科技-刘洋    时间: 2016-12-1 12:52
本帖最后由 佰锐科技-刘洋 于 2016-12-1 15:18 编辑
LCL5555555 发表于 2016-12-1 10:35
录制到本地可以回调成功,录制到服务器就不能回调了,但是BRAC_StreamRecordCtrlEx开录停录都调用成功了

请问 结束录制的时候 是点击按钮结束吗?如果是这样 就不能传对方的userid.
作者: LCL5555555    时间: 2016-12-2 09:50
佰锐科技-刘洋 发表于 2016-12-1 12:52
请问 结束录制的时候 是点击按钮结束吗?如果是这样 就不能传对方的userid.

BRAC_StreamRecordCtrlEx(dwUserId, true,  dwFlags, 0, "LCL");
我是单击按钮结束的唉,
这个方法的dwUserId可以省略不写呀?????
你说的该怎么调录制接口呢???
作者: LCL5555555    时间: 2016-12-2 09:55
佰锐科技-刘洋 发表于 2016-12-1 10:42
建议在发起录像方在触发onVideoCallControlFinish之后结束录像,不要在对方离开房间之后才结束录像;另外 ...

case BRAC_VIDEOCALL_EVENT_FINISH:
                        /*视频停止录制*/
                        BRAC_StreamRecordCtrlEx(0, false,  dwFlags, 0, "LCL");
                        AddLog(dwFlags+"视频录制结束"+dwUserId);
                        //视频通话结束
                        onVideoCallControlFinish(dwUserId, dwErrorCode, dwFlags, dwParam, szUserStr);
                    
                        break;

是这样写的
作者: 佰锐科技-邵光清    时间: 2016-12-2 09:56
LCL5555555 发表于 2016-12-2 09:50
BRAC_StreamRecordCtrlEx(dwUserId, true,  dwFlags, 0, "LCL");
我是单击按钮结束的唉,
这个方法的dw ...

您好,你采用了【服务器合成录像】,录像api传的对方的userid,我们建议传本地的userid或者-1也可以,如果是【合成流】,即录像api第三个参数加上BRAC_RECORD_FLAGS_STREAM,此时传本地或者对方的userid都是可以的;
作者: 佰锐科技-梁国桦    时间: 2016-12-2 10:00
[2016-12-01 09:43:48(386)][I]        Invoke        StreamRecordCtrlEx(-46, -1, 0x837, 0, LCL)=0

开始录制的第二个参数应该传1,怎么传了-1呢?
作者: LCL5555555    时间: 2016-12-2 10:02
佰锐科技-梁国桦 发表于 2016-12-2 10:00
[2016-12-01 09:43:48(386)]        Invoke        StreamRecordCtrlEx(-46, -1, 0x837, 0, LCL)=0

开始 ...

我写的是true,我改成1试试
作者: 佰锐科技-梁国桦    时间: 2016-12-2 10:03
LCL5555555 发表于 2016-12-2 10:02
我写的是true,我改成1试试

用1和0,别用true false
作者: LCL5555555    时间: 2016-12-2 10:23
佰锐科技-梁国桦 发表于 2016-12-2 10:03
用1和0,别用true false

// 视频通话消息通知回调函数
function OnAnyChatVideoCallEvent(dwEventType, dwUserId, dwErrorCode, dwFlags,dwParam, szUserStr) {
        switch(dwEventType)
        {
                case BRAC_VIDEOCALL_EVENT_REQUEST:
                        //收到视频呼叫请求
                        onVideoCallControlRequest(dwUserId, dwErrorCode, dwFlags, dwParam, szUserStr);
                        break;
                case BRAC_VIDEOCALL_EVENT_REPLY:
                        ////视频呼叫请求回复
                    onVideoCallControlReply(dwUserId, dwErrorCode, dwFlags, dwParam, szUserStr);
                        break;
                case BRAC_VIDEOCALL_EVENT_START:
                        //通话开始
                        onVideoCallControlStart(dwUserId, dwErrorCode, dwFlags, dwParam, szUserStr);
                       
                        /*视频开始录制*/
                        var ANYCHAT_RECORD_FLAGS_ABREAST = 0x00000100; //并列录制他人视频
                        var BRAC_RECORD_FLAGS_LOCALCB = 0x00000800; //视频上传服务器支持回调
                       
                        dwFlags = BRAC_RECORD_FLAGS_LOCALCB + ANYCHAT_RECORD_FLAGS_VIDEO + ANYCHAT_RECORD_FLAGS_AUDIO + ANYCHAT_RECORD_FLAGS_SERVER + ANYCHAT_RECORD_FLAGS_STREAM + ANYCHAT_RECORD_FLAGS_MIXVIDEO + ANYCHAT_RECORD_FLAGS_MIXAUDIO;
                       
                       
                        AddLog(dwFlags+"视频录制开始3"+dwUserId);
                        BRAC_StreamRecordCtrlEx(-1,1,dwFlags, 0, "LCL");
                        AddLog("视频录制开始2"+dwUserId);
                        break;
                case BRAC_VIDEOCALL_EVENT_FINISH:
                        /*视频停止录制*/
                        BRAC_StreamRecordCtrlEx(-1,0,dwFlags, 0, "LCL");
                        AddLog(dwFlags+"视频录制结束"+dwUserId);
                        //视频通话结束
                        onVideoCallControlFinish(dwUserId, dwErrorCode, dwFlags, dwParam, szUserStr);
                    
                        break;
               
        }
}
作者: LCL5555555    时间: 2016-12-2 10:23
LCL5555555 发表于 2016-12-2 10:23
// 视频通话消息通知回调函数
function OnAnyChatVideoCallEvent(dwEventType, dwUserId, dwErrorCode,  ...

全部这样写哪里还有不对的呢?
作者: 佰锐科技-邵光清    时间: 2016-12-2 10:43
LCL5555555 发表于 2016-12-2 10:23
全部这样写哪里还有不对的呢?

不建议这样,必须保证进入房间之后,即触发OnAnyChatEnterRoom之后,收到对方的视频流之后,才发起录像;
作者: 佰锐科技-邵光清    时间: 2016-12-2 10:49
按照你之前的方式,使用按钮来控制录像,是很理想的!
作者: LCL5555555    时间: 2016-12-12 11:33
佰锐科技-邵光清 发表于 2016-12-2 09:56
您好,你采用了【服务器合成录像】,录像api传的对方的userid,我们建议传本地的userid或者-1也可以,如 ...

困扰好久的问题,原来使用最新SDK就可以了唉




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