AnyChat技术支持论坛

标题: AnyChat在双向视频时同时录制的问题。 [打印本页]

作者: lwj123kkx    时间: 2016-4-8 12:10
标题: AnyChat在双向视频时同时录制的问题。
如题,在进行双向视频时,我们同时进行了视频录制。两台手机之间测试时没有问题。但是在手机与电脑之间进行录制时,手机端点击结束视频,视频录制成功并且上传到了服务器,但是手机端本地的回调函数却没有被调用。
作者: lwj123kkx    时间: 2016-4-8 13:00
这是日志:
[2016-04-08 10:56:48(249)]        ---------------------------AnyChat Platform Core SDK Client Log---------------------------
[2016-04-08 10:56:48(251)]        Load libanychatcore.so success!(V6.0 Build Time:Mar 22 2016 10:51:35)
[2016-04-08 10:56:48(251)]        Android OS SDK Version:16, Support ARMv7:2, Support Neon:4
[2016-04-08 10:56:48(266)]        Load libmediautil_v7.so success!(V6.0 Build Time:Mar 22 2016 10:54:01)
[2016-04-08 10:56:48(273)]        Load libmediashow.so success!(V6.0 Build Time:Mar 22 2016 10:53:38)
[2016-04-08 10:56:48(280)]        Load libmediacore.so success!(V6.0 Build Time:Mar 22 2016 10:53:43)
[2016-04-08 10:56:48(281)]        ZTE U956(alps)   4.1.2
[2016-04-08 10:56:51(130)]        Invoke        SetSDKOption(BRAC_SO_CLOUD_APPGUID, FBE957D1-C25A-4992-9E75-D993294A5D56)
[2016-04-08 10:56:51(131)]        Invoke        Connect(10.10.81.169,8906)=0
[2016-04-08 10:56:51(131)]        Invoke        Login(username:Android123)=0
[2016-04-08 10:56:51(147)]        Create anychatdnsserver connect:10.10.81.169(8906)
[2016-04-08 10:56:51(218)]        On pre-connection result, errorcode:0, anychatcoreserver, 10.10.81.169(8906, tcp:1)
[2016-04-08 10:56:51(249)]        CheckClientSocketLink         Connect(ip=10.10.81.169,port=8906)
[2016-04-08 10:56:51(281)]        Server version: V5.3(Build Time:2015-08-10 12:21:30, Server OS:Windows)
[2016-04-08 10:56:51(323)]        Message        OnConnect(bSuccess:1, errorcode=0)
[2016-04-08 10:56:51(556)]        Message        OnLoginSystem(userid=-36,errorcode=0,username=Android123), msg deliver worked(0)
[2016-04-08 10:56:51(557)]        Server running time: 0 days, 14 hours, 5 minutes, license mode:0
[2016-04-08 10:56:51(561)]        Object InitFlags:0x0
[2016-04-08 10:56:51(579)]        Connection to streaming media server successfully!(udp delay:10ms)
[2016-04-08 10:56:51(697)]        Apply video parameter:320x240, bitrate:150kbps, quality:3, gop:40, fps:10, preset:3, codec:1
[2016-04-08 10:56:51(698)]        Invoke        SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=1)
[2016-04-08 10:56:51(698)]        Invoke        SetSDKOption(BRAC_SO_AUDIO_ECHOCTRL,1)
[2016-04-08 10:56:51(698)]        Invoke        SetSDKOption(BRAC_SO_CORESDK_USEHWCODEC=0)
[2016-04-08 10:56:51(941)]        Area(10001) Object Event, unknow event:2, dwParam1:-36
[2016-04-08 10:56:53(349)]        Area(10001) Object Event, Enter Result:0
[2016-04-08 10:56:53(349)]        Area(10001) Object Event, unknow event:401, dwParam1:0
[2016-04-08 10:56:55(344)]        Area(10001) Object Event, unknow event:401, dwParam1:0
[2016-04-08 10:56:58(621)]        Area(10001) Object Event, unknow event:401, dwParam1:0
[2016-04-08 10:57:01(313)]        Area(10001) Object Event, unknow event:401, dwParam1:0
[2016-04-08 10:57:01(335)]        Message        OnVideoCallEvent(EventType:1, UserId:10213, ErrorCode:0, dwFlags:0x0, dwParam:0
[2016-04-08 10:57:02(945)]        Invoke        VideoCallControl(EventType:2, UserId:10213, ErrorCode:0, dwFlags:0, dwParam:0, UserStr=0
[2016-04-08 10:57:02(956)]        Message        OnVideoCallEvent(EventType:3, UserId:10213, ErrorCode:0, dwFlags:0x0, dwParam:1
[2016-04-08 10:57:03(232)]        Invoke        EnterRoom(roomid=1)
[2016-04-08 10:57:03(235)]        Apply video parameter:640x480, bitrate:300kbps, quality:6, gop:45, fps:15, preset:3, codec:1
[2016-04-08 10:57:03(243)]        Invoke        StreamRecordCtrlEx(-1, 1, 0x837, 0, 开始录制)=0
[2016-04-08 10:57:03(459)]        Message        OnEnterRoom(roomid=1,errorcode=0,siteindex=1)
[2016-04-08 10:57:03(460)]        Audio Playback Device Init(0, 1, 16000, 16), Default Playback Driver
[2016-04-08 10:57:03(461)]        Message        OnReceiveOnlineUser(count=2,roomid=1)
[2016-04-08 10:57:03(548)]        On Remote UserCameraControl(dwUserId:10213, bOpen:1)
[2016-04-08 10:57:03(670)]        APPLOG        Camera Preview size: 176 x 144
[2016-04-08 10:57:03(671)]        APPLOG        Camera Preview size: 320 x 240
[2016-04-08 10:57:03(671)]        APPLOG        Camera Preview size: 352 x 288
[2016-04-08 10:57:03(672)]        APPLOG        Camera Preview size: 480 x 320
[2016-04-08 10:57:03(673)]        APPLOG        Camera Preview size: 480 x 368
[2016-04-08 10:57:03(673)]        APPLOG        Camera Preview size: 640 x 480
[2016-04-08 10:57:03(674)]        APPLOG        Camera FrameRate: 5000 , 60000
[2016-04-08 10:57:03(741)]        Message        OnP2PConnectState(userid=10213, state=2)
[2016-04-08 10:57:03(763)]        On Remote UserSpeakControl(dwUserId:10213, bOpen:1)
[2016-04-08 10:57:04(014)]        Invoke        SetSDKOption(BRAC_SO_CORESDK_EXTVIDEOINPUT=1)
[2016-04-08 10:57:04(015)]        Invoke        SetInputVideoFormat(pixfmt:8, 640x480, 60fps, flags:0)
[2016-04-08 10:57:04(088)]        video init finish:640x480, NV21, fps:60, codecid:1
[2016-04-08 10:57:04(146)]        Invoke        UserCameraControl(userid=-1, bOpen=1, stream=0)
[2016-04-08 10:57:04(149)]        Invoke        UserSpeakControl(userid=-1,bOpen=1)
[2016-04-08 10:57:04(149)]        Invoke        UserCameraControl(userid=10213, bOpen=1, stream=0)
[2016-04-08 10:57:04(149)]        Invoke        UserSpeakControl(userid=10213,bOpen=1)
[2016-04-08 10:57:04(346)]        Invoke        SetSDKOption(BRAC_SO_CORESDK_EXTVIDEOINPUT=1)
[2016-04-08 10:57:04(362)]        Invoke        SetInputVideoFormat(pixfmt:8, 640x480, 30fps, flags:0)
[2016-04-08 10:57:04(365)]        userid(10213) audio decode, codec:11, 1 channel, 16000Hz
[2016-04-08 10:57:04(403)]        Message        OnP2PConnectState(userid=10213, state=3)
[2016-04-08 10:57:04(436)]        video init finish:640x480, NV21, fps:30, codecid:1
[2016-04-08 10:57:04(463)]        Invoke        SetInputAudioFormat(1, 16000, 16, flags:0)
[2016-04-08 10:57:04(463)]        Audio Init, error:0, device:-1, 1, 16000, 16, capmode:0
[2016-04-08 10:57:04(464)]        Audio codec init, handle:4, 11, 1, 16000, 16, 15850
[2016-04-08 10:57:04(757)]        Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1
[2016-04-08 10:57:04(826)]        video codec init:codec:1, 15fps, 640x480, bitrate:300kbps, quality:6, preset:3, gop:45, handle:5
[2016-04-08 10:57:04(853)]        userid(10213) video decode, codec:1, 320x240, delay:16ms
[2016-04-08 10:57:17(095)]        Invoke        VideoCallControl(EventType:4, UserId:10213, ErrorCode:0, dwFlags:0, dwParam:0, UserStr=0
[2016-04-08 10:57:17(256)]        Message        OnVideoCallEvent(EventType:4, UserId:10213, ErrorCode:0, dwFlags:0x0, dwParam:0
[2016-04-08 10:57:17(425)]        Invoke        StreamRecordCtrlEx(-1, 0, 0x837, 0, 结束录制)=0
[2016-04-08 10:57:17(666)]        On Remote UserCameraControl(dwUserId:10213, bOpen:0)
[2016-04-08 10:57:17(666)]        On Remote UserSpeakControl(dwUserId:10213, bOpen:0)
[2016-04-08 10:57:17(666)]        Message        OnUserLeaveRoom(userid=10213,siteindex=0)
[2016-04-08 10:57:17(714)]        Invoke        UserCameraControl(userid=10213, bOpen=1, stream=0)
[2016-04-08 10:57:17(714)]        Invoke        UserSpeakControl(userid=10213,bOpen=1)
[2016-04-08 10:57:37(541)]        OnSocketClose, index(3)-errorcode(0-11), flags:0x10081, bTcp(1),userid(10213), list:0

[2016-04-08 10:57:53(569)]        Area(10001) Object Event, unknow event:401, dwParam1:0
[2016-04-08 11:02:04(826)]        Area(10001) Object Event, unknow event:401, dwParam1:0
[2016-04-08 11:06:04(140)]        Area(10001) Object Event, unknow event:401, dwParam1:0



作者: 佰锐科技-江裕    时间: 2016-4-8 13:54
lwj123kkx 发表于 2016-4-8 13:00
这是日志:
[2016-04-08 10:56:48(249)]        ---------------------------AnyChat Platform Core SDK Client L ...

您好,将录像服务器的日志发上来看看。
作者: 佰锐科技-邵光清    时间: 2016-4-8 14:01
lwj123kkx 发表于 2016-4-8 13:00
这是日志:
[2016-04-08 10:56:48(249)]        ---------------------------AnyChat Platform Core SDK Client L ...

您好,这样可以成功录制、并生产文件?
作者: lwj123kkx    时间: 2016-4-8 14:04
可以的,服务器上可以打开播放录制的视频。
作者: lwj123kkx    时间: 2016-4-8 14:04
佰锐科技-江裕 发表于 2016-4-8 13:54
您好,将录像服务器的日志发上来看看。

录像服务器的日志:
[2016-02-17 19:59:32(450)]        AnyChat Record Server Init,V5.3, Build Time:Aug 10 2015 12:20:39
[2016-02-17 19:59:32(451)]        Record Root Directory: C:\Users\1\Desktop\d\AnyChat\AnyChatCoreSDK_Win32_r4840\bin\recordserver\record\
[2016-02-17 19:59:32(451)]        Record Stream Buffer Time: 10000 ms
[2016-02-17 19:59:32(452)]        Ready to connect anychatcoreserver  127.0.0.1(8907)....
[2016-02-17 19:59:32(473)]        Load BRMediaUtil.dll success!(V5.3 Build Time:Aug 10 2015 12:20:02)
[2016-02-17 19:59:32(474)]        Try connect to anychatcoreserver(127.0.0.1:8907)...
[2016-02-17 19:59:32(476)]        Successfully connect to the anychatcoreserver(127.0.0.1:8907)!
[2016-02-29 15:22:19(087)]        AnyChat Record Server Init,V5.3, Build Time:Aug 10 2015 12:20:39
[2016-02-29 15:22:19(103)]        Record Root Directory: D:\public\video\
[2016-02-29 15:22:19(103)]        Record Stream Buffer Time: 10000 ms
[2016-02-29 15:22:19(103)]        Ready to connect anychatcoreserver  127.0.0.1(8907)....
[2016-02-29 15:22:19(119)]        Load BRMediaUtil.dll success!(V5.3 Build Time:Aug 10 2015 12:20:02)
[2016-02-29 15:22:19(119)]        Try connect to anychatcoreserver(127.0.0.1:8907)...
[2016-02-29 15:22:19(134)]        Successfully connect to the anychatcoreserver(127.0.0.1:8907)!
[2016-03-17 20:29:11(450)]        AnyChat Record Server Init,V5.3, Build Time:Aug 10 2015 12:20:39
[2016-03-17 20:29:11(450)]        Record Root Directory: D:\public\video\
[2016-03-17 20:29:11(450)]        Record Stream Buffer Time: 10000 ms
[2016-03-17 20:29:11(450)]        Ready to connect anychatcoreserver  127.0.0.1(8907)....
[2016-03-17 20:29:11(715)]        Load BRMediaUtil.dll success!(V5.3 Build Time:Aug 10 2015 12:20:02)
[2016-03-17 20:29:11(715)]        Try connect to anychatcoreserver(127.0.0.1:8907)...
[2016-03-17 20:29:11(731)]        Successfully connect to the anychatcoreserver(127.0.0.1:8907)!
[2016-03-22 14:39:27(870)]        Lost the connection to the server(errorcode:0, param:0), ready to reconnect...
[2016-03-22 14:39:27(963)]        Try connect to anychatcoreserver(127.0.0.1:8907)...
[2016-03-22 14:39:28(962)]        AnyChat Record Server Stoped...

[2016-03-22 14:39:43(766)]        AnyChat Record Server Init,V5.3, Build Time:Aug 10 2015 12:20:39
[2016-03-22 14:39:43(766)]        Record Root Directory: D:\public\video\
[2016-03-22 14:39:43(766)]        Record Stream Buffer Time: 10000 ms
[2016-03-22 14:39:43(766)]        Ready to connect anychatcoreserver  127.0.0.1(8907)....
[2016-03-22 14:39:43(766)]        Load BRMediaUtil.dll success!(V5.3 Build Time:Aug 10 2015 12:20:02)
[2016-03-22 14:39:43(766)]        Try connect to anychatcoreserver(127.0.0.1:8907)...
[2016-03-22 14:39:43(782)]        Successfully connect to the anychatcoreserver(127.0.0.1:8907)!
[2016-03-22 15:26:19(039)]        Lost the connection to the server(errorcode:0, param:0), ready to reconnect...
[2016-03-22 15:26:19(133)]        Try connect to anychatcoreserver(127.0.0.1:8907)...
[2016-03-22 15:26:21(335)]        Successfully connect to the anychatcoreserver(127.0.0.1:8907)!
[2016-03-22 15:41:48(495)]        Lost the connection to the server(errorcode:0, param:0), ready to reconnect...
[2016-03-22 15:41:48(558)]        Try connect to anychatcoreserver(127.0.0.1:8907)...
[2016-03-22 15:41:59(493)]        Successfully connect to the anychatcoreserver(127.0.0.1:8907)!
[2016-03-22 17:10:44(358)]        Lost the connection to the server(errorcode:0, param:0), ready to reconnect...
[2016-03-22 17:10:44(374)]        Try connect to anychatcoreserver(127.0.0.1:8907)...
[2016-03-22 17:11:20(442)]        Successfully connect to the anychatcoreserver(127.0.0.1:8907)!
[2016-03-22 17:11:54(546)]        AnyChat Record Server Stoped...

[2016-03-22 17:11:59(351)]        AnyChat Record Server Init,V5.3, Build Time:Aug 10 2015 12:20:39
[2016-03-22 17:11:59(351)]        Record Root Directory: D:\public\video\
[2016-03-22 17:11:59(351)]        Record Stream Buffer Time: 10000 ms
[2016-03-22 17:11:59(351)]        Ready to connect anychatcoreserver  127.0.0.1(8907)....
[2016-03-22 17:11:59(351)]        Load BRMediaUtil.dll success!(V5.3 Build Time:Aug 10 2015 12:20:02)
[2016-03-22 17:11:59(351)]        Try connect to anychatcoreserver(127.0.0.1:8907)...
[2016-03-22 17:11:59(366)]        Successfully connect to the anychatcoreserver(127.0.0.1:8907)!
[2016-03-23 14:25:53(001)]        Lost the connection to the server(errorcode:0, param:0), ready to reconnect...
[2016-03-23 14:25:53(017)]        Try connect to anychatcoreserver(127.0.0.1:8907)...
[2016-03-23 14:26:07(213)]        Successfully connect to the anychatcoreserver(127.0.0.1:8907)!
[2016-04-07 20:44:05(478)]        Lost the connection to the server(errorcode:0, param:0), ready to reconnect...
[2016-04-07 20:44:05(525)]        Try connect to anychatcoreserver(127.0.0.1:8907)...
[2016-04-07 20:44:06(788)]        AnyChat Record Server Stoped...

[2016-04-07 20:44:30(672)]        AnyChat Record Server Init,V5.3, Build Time:Aug 10 2015 12:20:39
[2016-04-07 20:44:30(672)]        Record Root Directory: D:\public\video\
[2016-04-07 20:44:30(672)]        Record Stream Buffer Time: 10000 ms
[2016-04-07 20:44:30(672)]        Ready to connect anychatcoreserver  127.0.0.1(8907)....
[2016-04-07 20:44:30(672)]        Load BRMediaUtil.dll success!(V5.3 Build Time:Aug 10 2015 12:20:02)
[2016-04-07 20:44:30(672)]        Try connect to anychatcoreserver(127.0.0.1:8907)...
[2016-04-07 20:44:30(703)]        Successfully connect to the anychatcoreserver(127.0.0.1:8907)!
[2016-04-07 20:50:43(201)]        Lost the connection to the server(errorcode:0, param:0), ready to reconnect...
[2016-04-07 20:50:43(216)]        Try connect to anychatcoreserver(127.0.0.1:8907)...
[2016-04-07 20:50:45(416)]        Successfully connect to the anychatcoreserver(127.0.0.1:8907)!

作者: lwj123kkx    时间: 2016-4-8 14:05
佰锐科技-邵光清 发表于 2016-4-8 14:01
您好,这样可以成功录制、并生产文件?

还有另一个日志:
[2016-04-08 14:01:57(309)]        Received recording tasks(userid:10228, roomid:1, flags:0x1837), preparing record...
[2016-04-08 14:01:57(309)]        Received recording tasks(userid:-69, roomid:1, flags:0xb37), preparing record...
[2016-04-08 14:01:58(354)]                userid:-69-received audio stream info: codec:11, 1, 16000, 16
[2016-04-08 14:01:58(354)]                userid:-69-received video stream info: codec:1, 640x480, 15fps
[2016-04-08 14:02:12(753)]        Received stop record command(userid:-69)
[2016-04-08 14:02:12(815)]                Prepare stop record(userid:-69)
[2016-04-08 14:02:12(815)]        Stop recording(userid:-69), seconds:0, elapse:15 , record file name:

[2016-04-08 14:02:12(815)]                userid:10228-CRecordScheme::StreamRecordCheck(audio seq:-1, audio max:-1, video seq:-1, video max:-1)
[2016-04-08 14:02:12(815)]                userid:-69-CRecordScheme::StreamRecordCheck(audio seq:-1, audio max:-1, video seq:-1, video max:-1)
[2016-04-08 14:02:12(831)]        Received stop record command(userid:10228)
[2016-04-08 14:02:12(846)]        Received stop record command(userid:10228)
[2016-04-08 14:02:12(846)]        Received stop record command(userid:10228)
[2016-04-08 14:02:12(924)]                Prepare stop record(userid:10228)
[2016-04-08 14:02:12(924)]                userid:10228-CRecordScheme::StreamRecordCheck(audio seq:-1, audio max:-1, video seq:-1, video max:-1)
[2016-04-08 14:02:12(924)]        Stop recording(userid:10228), seconds:0, elapse:15 , record file name:

[2016-04-08 14:02:33(875)]        Received recording tasks(userid:-69, roomid:1, flags:0xb37), preparing record...
[2016-04-08 14:02:33(969)]        Received user(-69) audio stream buffer, seqno:2306, flags:0x84, size:1
[2016-04-08 14:02:34(499)]        Received user(-69) video stream buffer, seqno:1031, flags:0x12, size:1200
[2016-04-08 14:02:35(498)]                userid:-69-received audio stream info: codec:11, 1, 16000, 16
[2016-04-08 14:02:35(498)]                userid:-69-received video stream info: codec:1, 640x480, 15fps
[2016-04-08 14:02:35(638)]        Received stop record command(userid:-69)
[2016-04-08 14:02:35(747)]                Prepare stop record(userid:-69)
[2016-04-08 14:02:35(747)]        Stop recording(userid:-69), seconds:0, elapse:1 , record file name:

[2016-04-08 14:02:35(747)]                userid:-69-CRecordScheme::StreamRecordCheck(audio seq:-1, audio max:2341, video seq:-1, video max:1044)
[2016-04-08 14:02:35(841)]        Received recording tasks(userid:-69, roomid:1, flags:0xb37), preparing record...
[2016-04-08 14:02:36(465)]        Received user(-69) video stream buffer, seqno:1045, flags:0x8012, size:1200
[2016-04-08 14:02:36(543)]        Received user(-69) audio stream buffer, seqno:2342, flags:0x24, size:87
[2016-04-08 14:02:36(590)]                userid:-69-received audio stream info: codec:11, 1, 16000, 16
[2016-04-08 14:02:36(590)]                userid:-69-received video stream info: codec:1, 640x480, 15fps
作者: lwj123kkx    时间: 2016-4-8 14:14
忘记说了,录制视频采用的是服务器端录制的模式。
作者: 佰锐科技-江裕    时间: 2016-4-8 14:20
lwj123kkx 发表于 2016-4-8 14:05
还有另一个日志:
[2016-04-08 14:01:57(309)]        Received recording tasks(userid:10228, roomid:1, flag ...

您好,日志的时间和上面客户端的日志时间对不上。
作者: lwj123kkx    时间: 2016-4-8 14:21
佰锐科技-江裕 发表于 2016-4-8 14:20
您好,日志的时间和上面客户端的日志时间对不上。

我是重现了一下这个问题,然后把找服务端要的日志。
作者: 佰锐科技-江裕    时间: 2016-4-8 14:27
lwj123kkx 发表于 2016-4-8 14:21
我是重现了一下这个问题,然后把找服务端要的日志。

您好,将客户端的日志也发上来看看。
作者: lwj123kkx    时间: 2016-4-8 14:37
客户端日志:
[2016-04-08 14:34:01(276)]        ---------------------------AnyChat Platform Core SDK Client Log---------------------------
[2016-04-08 14:34:01(278)]        Load libanychatcore.so success!(V6.0 Build Time:Mar 22 2016 10:51:35)
[2016-04-08 14:34:01(286)]        Android OS SDK Version:23, Support ARMv7:2, Support Neon:4
[2016-04-08 14:34:01(309)]        Load libmediautil_v7.so success!(V6.0 Build Time:Mar 22 2016 10:54:01)
[2016-04-08 14:34:01(319)]        Load libmediashow.so success!(V6.0 Build Time:Mar 22 2016 10:53:38)
[2016-04-08 14:34:01(329)]        Load libmediacore.so success!(V6.0 Build Time:Mar 22 2016 10:53:43)
[2016-04-08 14:34:01(333)]        HTC A9w(HTC) msm8952  6.0
[2016-04-08 14:34:03(207)]        Invoke        SetSDKOption(BRAC_SO_CLOUD_APPGUID, 00000000-0000-0000-0000-000000000000)
[2016-04-08 14:34:03(208)]        Invoke        Connect(10.10.81.169,8906)=0
[2016-04-08 14:34:03(209)]        Invoke        Login(username:Android456)=0
[2016-04-08 14:34:03(275)]        Create anychatdnsserver connect:10.10.81.169(8906)
[2016-04-08 14:34:03(367)]        On pre-connection result, errorcode:0, anychatcoreserver, 10.10.81.169(8906, tcp:1)
[2016-04-08 14:34:03(379)]        CheckClientSocketLink         Connect(ip=10.10.81.169,port=8906)
[2016-04-08 14:34:03(410)]        Server version: V5.3(Build Time:2015-08-10 12:21:30, Server OS:Windows)
[2016-04-08 14:34:03(462)]        Message        OnConnect(bSuccess:1, errorcode=0)
[2016-04-08 14:34:05(107)]        Message        OnLoginSystem(userid=-73,errorcode=0,username=Android456), msg deliver worked(0)
[2016-04-08 14:34:05(108)]        Server running time: 0 days, 17 hours, 43 minutes, license mode:0
[2016-04-08 14:34:05(118)]        Object InitFlags:0x0
[2016-04-08 14:34:05(140)]        Connection to streaming media server successfully!(udp delay:15ms)
[2016-04-08 14:34:05(173)]        Apply video parameter:320x240, bitrate:150kbps, quality:3, gop:40, fps:10, preset:3, codec:1
[2016-04-08 14:34:05(173)]        Invoke        SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=1)
[2016-04-08 14:34:05(174)]        Invoke        SetSDKOption(BRAC_SO_AUDIO_ECHOCTRL,1)
[2016-04-08 14:34:05(174)]        Invoke        SetSDKOption(BRAC_SO_CORESDK_USEHWCODEC=0)
[2016-04-08 14:34:05(499)]        Area(10001) Object Event, unknow event:2, dwParam1:-73
[2016-04-08 14:34:50(928)]        Area(10001) Object Event, Enter Result:0
[2016-04-08 14:34:50(929)]        Area(10001) Object Event, unknow event:401, dwParam1:0
[2016-04-08 14:34:57(013)]        Area(10001) Object Event, unknow event:401, dwParam1:0
[2016-04-08 14:35:02(164)]        Area(10001) Object Event, unknow event:401, dwParam1:0
[2016-04-08 14:35:04(287)]        Area(10001) Object Event, unknow event:401, dwParam1:0
[2016-04-08 14:35:11(865)]        Area(10001) Object Event, unknow event:401, dwParam1:0
[2016-04-08 14:35:12(180)]        Message        OnVideoCallEvent(EventType:1, UserId:10235, ErrorCode:0, dwFlags:0x0, dwParam:0
[2016-04-08 14:35:12(966)]        Invoke        VideoCallControl(EventType:2, UserId:10235, ErrorCode:0, dwFlags:0, dwParam:0, UserStr=0
[2016-04-08 14:35:12(994)]        Area(10001) Object Event, unknow event:401, dwParam1:0
[2016-04-08 14:35:13(006)]        Message        OnVideoCallEvent(EventType:3, UserId:10235, ErrorCode:0, dwFlags:0x0, dwParam:1
[2016-04-08 14:35:13(083)]        Invoke        EnterRoom(roomid=1)
[2016-04-08 14:35:13(085)]        Apply video parameter:640x480, bitrate:300kbps, quality:6, gop:45, fps:15, preset:3, codec:1
[2016-04-08 14:35:13(089)]        Invoke        StreamRecordCtrlEx(-1, 1, 0x807, 0, 开始录制)=0
[2016-04-08 14:35:13(262)]        APPLOG        Camera Preview size: 1920 x 1080
[2016-04-08 14:35:13(263)]        APPLOG        Camera Preview size: 1280 x 960
[2016-04-08 14:35:13(264)]        APPLOG        Camera Preview size: 1280 x 720
[2016-04-08 14:35:13(264)]        APPLOG        Camera Preview size: 1024 x 576
[2016-04-08 14:35:13(265)]        APPLOG        Camera Preview size: 800 x 480
[2016-04-08 14:35:13(266)]        APPLOG        Camera Preview size: 720 x 480
[2016-04-08 14:35:13(267)]        APPLOG        Camera Preview size: 640 x 640
[2016-04-08 14:35:13(267)]        APPLOG        Camera Preview size: 640 x 480
[2016-04-08 14:35:13(268)]        APPLOG        Camera FrameRate: 7500 , 30000
[2016-04-08 14:35:13(269)]        APPLOG        Camera FrameRate: 30000 , 30000
[2016-04-08 14:35:13(281)]        Message        OnEnterRoom(roomid=1,errorcode=0,siteindex=0)
[2016-04-08 14:35:13(281)]        Audio Playback Device Init(0, 1, 16000, 16), Default Playback Driver
[2016-04-08 14:35:13(282)]        Message        OnReceiveOnlineUser(count=1,roomid=1)
[2016-04-08 14:35:13(354)]        Message        OnUserEnterRoom(userid=10235,nickname=chenchen,siteindex=1)
[2016-04-08 14:35:13(392)]        Invoke        SetSDKOption(BRAC_SO_CORESDK_EXTVIDEOINPUT=1)
[2016-04-08 14:35:13(392)]        Invoke        SetInputVideoFormat(pixfmt:8, 640x480, 30fps, flags:0)
[2016-04-08 14:35:13(423)]        video init finish:640x480, NV21, fps:30, codecid:1
[2016-04-08 14:35:13(466)]        On Remote UserCameraControl(dwUserId:10235, bOpen:1)
[2016-04-08 14:35:13(467)]        On Remote UserSpeakControl(dwUserId:10235, bOpen:1)
[2016-04-08 14:35:13(479)]        Invoke        UserCameraControl(userid=-1, bOpen=1, stream=0)
[2016-04-08 14:35:13(480)]        Invoke        UserSpeakControl(userid=-1,bOpen=1)
[2016-04-08 14:35:13(483)]        Invoke        UserCameraControl(userid=10235, bOpen=1, stream=0)
[2016-04-08 14:35:13(484)]        Invoke        UserSpeakControl(userid=10235,bOpen=1)
[2016-04-08 14:35:13(485)]        Invoke        UserCameraControl(userid=10235, bOpen=1, stream=0)
[2016-04-08 14:35:13(485)]        Invoke        UserSpeakControl(userid=10235,bOpen=1)
[2016-04-08 14:35:13(498)]        Invoke        SetSDKOption(BRAC_SO_CORESDK_EXTVIDEOINPUT=1)
[2016-04-08 14:35:13(502)]        Invoke        SetInputVideoFormat(pixfmt:8, 640x480, 40fps, flags:0)
[2016-04-08 14:35:13(535)]        video init finish:640x480, NV21, fps:40, codecid:1
[2016-04-08 14:35:13(572)]        video codec init:codec:1, 15fps, 640x480, bitrate:300kbps, quality:6, preset:3, gop:45, handle:3
[2016-04-08 14:35:13(599)]        Invoke        SetInputAudioFormat(1, 16000, 16, flags:0)
[2016-04-08 14:35:13(600)]        Audio Init, error:0, device:-1, 1, 16000, 16, capmode:0
[2016-04-08 14:35:13(602)]        Audio codec init, handle:4, 11, 1, 16000, 16, 15850
[2016-04-08 14:35:13(735)]        Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1
[2016-04-08 14:35:31(791)]        Invoke        VideoCallControl(EventType:4, UserId:10235, ErrorCode:0, dwFlags:0, dwParam:0, UserStr=0
[2016-04-08 14:35:32(075)]        Message        OnVideoCallEvent(EventType:4, UserId:10235, ErrorCode:0, dwFlags:0x0, dwParam:0
[2016-04-08 14:35:32(136)]        Invoke        StreamRecordCtrlEx(-1, 0, 0x807, 0, 结束录制)=0
[2016-04-08 14:35:32(150)]        On Remote UserCameraControl(dwUserId:10235, bOpen:0)
[2016-04-08 14:35:32(151)]        On Remote UserSpeakControl(dwUserId:10235, bOpen:0)
[2016-04-08 14:35:32(151)]        Message        OnUserLeaveRoom(userid=10235,siteindex=1)
[2016-04-08 14:35:32(258)]        Invoke        UserCameraControl(userid=10235, bOpen=1, stream=0)
[2016-04-08 14:35:32(260)]        Invoke        UserSpeakControl(userid=10235,bOpen=1)


服务端日志:
[2016-04-08 14:35:13(613)]        Received recording tasks(userid:-73, roomid:1, flags:0x807), preparing record...
[2016-04-08 14:35:13(831)]        Received recording tasks(userid:10235, roomid:1, flags:0x1837), preparing record...
[2016-04-08 14:35:14(877)]                userid:-73-received audio stream info: codec:11, 1, 16000, 16
[2016-04-08 14:35:14(877)]                userid:-73-received video stream info: codec:1, 640x480, 15fps
[2016-04-08 14:35:32(520)]        Received stop record command(userid:10235)
[2016-04-08 14:35:32(520)]        Received stop record command(userid:10235)
[2016-04-08 14:35:32(536)]        Received stop record command(userid:10235)
[2016-04-08 14:35:32(536)]                Prepare stop record(userid:10235)
[2016-04-08 14:35:32(536)]                userid:10235-CRecordScheme::StreamRecordCheck(audio seq:-1, audio max:-1, video seq:-1, video max:-1)
[2016-04-08 14:35:32(536)]        Stop recording(userid:10235), seconds:0, elapse:18 , record file name:

[2016-04-08 14:35:32(536)]        Received stop record command(userid:-73)
[2016-04-08 14:35:32(645)]                Prepare stop record(userid:-73)
[2016-04-08 14:35:32(645)]                userid:-73-CRecordScheme::StreamRecordCheck(audio seq:-1, audio max:-1, video seq:-1, video max:-1)
[2016-04-08 14:35:32(645)]        Stop recording(userid:-73), seconds:0, elapse:19 , record file name:
作者: 佰锐科技-邵光清    时间: 2016-4-8 14:53
lwj123kkx 发表于 2016-4-8 14:37
客户端日志:
[2016-04-08 14:34:01(276)]        ---------------------------AnyChat Platform Core SDK Client ...

您好,record file name:是空的,确定可以生成视频文件了?
作者: lwj123kkx    时间: 2016-4-8 15:15
刚刚查了一下,确实没有生成文件。但是我两个手机之间是生成了的。这个是为什么呢?

作者: 佰锐科技-江裕    时间: 2016-4-8 15:36
lwj123kkx 发表于 2016-4-8 15:15
刚刚查了一下,确实没有生成文件。但是我两个手机之间是生成了的。这个是为什么呢?

您好,从你的日志上分析,有可能是你的视频界面还没加载完成,您已经触发录制操作。
作者: lwj123kkx    时间: 2016-4-8 17:27
在anychat的回调中,哪里能确定是双方开始视频的呢?我在onResume()里调用开始录制,也不能拿到回调。
作者: lwj123kkx    时间: 2016-4-8 17:27
佰锐科技-江裕 发表于 2016-4-8 15:36
您好,从你的日志上分析,有可能是你的视频界面还没加载完成,您已经触发录制操作。


在anychat的回调中,哪里能确定是双方开始视频的呢?我在onResume()里调用开始录制,也不能拿到回调。
作者: 佰锐科技-江裕    时间: 2016-4-8 18:06
lwj123kkx 发表于 2016-4-8 17:27
在anychat的回调中,哪里能确定是双方开始视频的呢?我在onResume()里调用开始录制,也不能拿到回调 ...

您好,在进行房间回调OnAnyChatEnterRoomMessage调用查询视频码率的接口BRAC_QueryUserState,当查到的视频码率大于0时开始录制。
作者: 廖斌    时间: 2016-4-8 18:08
lwj123kkx 发表于 2016-4-8 17:27
在anychat的回调中,哪里能确定是双方开始视频的呢?我在onResume()里调用开始录制,也不能拿到回调 ...

file:///C:\Users\Administrator\AppData\Roaming\Tencent\Users\929312417\QQ\WinTemp\RichOle\E)Y]CE_OTD_`PL9U]LVOUF8.png从您天上来的日志看,录制时间只有1s钟。我们录制有一个最小缓冲时间的,一般是5s左右,小于5s的话,不会写文件。

E)Y]CE_OTD_`PL9U]LVOUF8.png (52.94 KB, 下载次数: 3989)

E)Y]CE_OTD_`PL9U]LVOUF8.png

作者: 廖斌    时间: 2016-4-8 18:08
廖斌 发表于 2016-4-8 18:08
从您天上来的日志看,录制时间只有1s钟。我们录制有一个最小缓冲时间的,一般是5s左右,小于5s的话,不会 ...

您说的问题是每次都发生吗?还是偶然性的呢?




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