设为首页收藏本站

AnyChat技术支持论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 10127|回复: 19
打印 上一主题 下一主题

AnyChat在双向视频时同时录制的问题。

[复制链接]

1

主题

11

帖子

37

积分

新手上路

Rank: 1

积分
37
跳转到指定楼层
楼主
发表于 2016-4-8 12:10:31 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
如题,在进行双向视频时,我们同时进行了视频录制。两台手机之间测试时没有问题。但是在手机与电脑之间进行录制时,手机端点击结束视频,视频录制成功并且上传到了服务器,但是手机端本地的回调函数却没有被调用。
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

1

主题

11

帖子

37

积分

新手上路

Rank: 1

积分
37
沙发
 楼主| 发表于 2016-4-8 13:00:32 | 只看该作者
这是日志:
[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


回复 支持 反对

使用道具 举报

0

主题

56

帖子

172

积分

注册会员

Rank: 2

积分
172
板凳
发表于 2016-4-8 13:54:29 | 只看该作者
lwj123kkx 发表于 2016-4-8 13:00
这是日志:
[2016-04-08 10:56:48(249)]        ---------------------------AnyChat Platform Core SDK Client L ...

您好,将录像服务器的日志发上来看看。
回复 支持 反对

使用道具 举报

地板
发表于 2016-4-8 14:01:05 | 只看该作者
lwj123kkx 发表于 2016-4-8 13:00
这是日志:
[2016-04-08 10:56:48(249)]        ---------------------------AnyChat Platform Core SDK Client L ...

您好,这样可以成功录制、并生产文件?
回复 支持 反对

使用道具 举报

1

主题

11

帖子

37

积分

新手上路

Rank: 1

积分
37
5#
 楼主| 发表于 2016-4-8 14:04:00 | 只看该作者
可以的,服务器上可以打开播放录制的视频。
回复 支持 反对

使用道具 举报

1

主题

11

帖子

37

积分

新手上路

Rank: 1

积分
37
6#
 楼主| 发表于 2016-4-8 14:04:35 | 只看该作者
佰锐科技-江裕 发表于 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)!
回复 支持 反对

使用道具 举报

1

主题

11

帖子

37

积分

新手上路

Rank: 1

积分
37
7#
 楼主| 发表于 2016-4-8 14:05:01 | 只看该作者
佰锐科技-邵光清 发表于 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
回复 支持 反对

使用道具 举报

1

主题

11

帖子

37

积分

新手上路

Rank: 1

积分
37
8#
 楼主| 发表于 2016-4-8 14:14:54 | 只看该作者
忘记说了,录制视频采用的是服务器端录制的模式。
回复 支持 反对

使用道具 举报

0

主题

56

帖子

172

积分

注册会员

Rank: 2

积分
172
9#
发表于 2016-4-8 14:20:31 | 只看该作者
lwj123kkx 发表于 2016-4-8 14:05
还有另一个日志:
[2016-04-08 14:01:57(309)]        Received recording tasks(userid:10228, roomid:1, flag ...

您好,日志的时间和上面客户端的日志时间对不上。
回复 支持 反对

使用道具 举报

1

主题

11

帖子

37

积分

新手上路

Rank: 1

积分
37
10#
 楼主| 发表于 2016-4-8 14:21:59 | 只看该作者
佰锐科技-江裕 发表于 2016-4-8 14:20
您好,日志的时间和上面客户端的日志时间对不上。

我是重现了一下这个问题,然后把找服务端要的日志。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|AnyChat ( 粤ICP备13022410号-1 )  

GMT+8, 2024-11-26 14:18 , Processed in 0.142263 second(s), 22 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表