AnyChat技术支持论坛

标题: 什么办法可以手动调整视频或者摄像头方向? [打印本页]

作者: youmingdot    时间: 2014-2-14 15:43
标题: 什么办法可以手动调整视频或者摄像头方向?
手机通话过程中画面方向是错误的,关闭了自动检查方向后还是错误的。觉得是摄像头固有方向有问题,对于这种设备,有没有什么办法可以手动设置摄像头方向,或者手动改动视频的方向?


作者: youmingdot    时间: 2014-2-14 15:48
修正一下,应该不是摄像头的问题,视频在本地展示的时候是正确的位置,传送到另一台上面就上下颠倒了。
SDK和服务器版本都是最新的。

作者: admin    时间: 2014-2-14 15:48
您好,是前置摄像头,还是后置摄像头有问题,或是两个摄像头的方向都有问题?手机的品牌、型号是?
作者: fighter    时间: 2014-3-3 17:07
同问,
我用 galaxy notes 1 and 红米, 均有此问题, 请帮忙看下有没方法可以旋转图像,谢谢
作者: admin    时间: 2014-3-3 17:12
您好,请上传一下android客户端的日志文件(在SD卡根目录下:BRAnyChatCore.log),判断一下您所使用的SDK版本信息,谢谢。
作者: admin    时间: 2014-3-3 17:18
另外,我们有提供一个修正远程视频方向的API接口,参考:http://bbs.anychat.cn/forum.php? ... &extra=page%3D1,您可以试一下。
作者: fighter    时间: 2014-3-3 17:23
[2014-03-03 15:49:15(374)]        ---------------------------AnyChat Platform Core SDK Client Log---------------------------
[2014-03-03 15:49:15(380)]        Load libanychatcore.so success!(V4.9 Build Time:Feb  9 2014 10:22:56)
[2014-03-03 15:49:15(382)]        Android OS SDK Version:16, Support ARMv7:2, Support Neon:4
[2014-03-03 15:49:15(515)]        Load libmediautil_v7.so success!(V4.9 Build Time:Feb  9 2014 10:03:39)
[2014-03-03 15:49:15(579)]        Load libmediashow_4.0.so success!(V4.9 Build Time:Feb  9 2014 10:03:04)
[2014-03-03 15:49:15(665)]        Cannot load library: reloc_library[1307]:  1738 cannot locate '_ZN7android6Camera7connectEi'...

[2014-03-03 15:49:15(684)]        Load libmediacore.so success!(V4.9 Build Time:Feb  9 2014 10:03:08)
[2014-03-03 15:49:15(688)]        CPU:1592.52 MIPS, Hardware:SMDK4210
[2014-03-03 15:49:15(746)]        Apply video parameter:320x240, bitrate:150000, quality:3, gop:40, fps:10, preset:3, codec:0
[2014-03-03 15:49:15(746)]        Invoke        BRAC_SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=1)
[2014-03-03 15:49:15(747)]        Invoke        SetSDKOption(BRAC_SO_AUDIO_ECHOCTRL,1)
[2014-03-03 15:49:15(747)]        Invoke        BRAC_SetSDKOption(BRAC_SO_CORESDK_USEHWCODEC=0)
[2014-03-03 15:49:15(747)]        Invoke        BRAC_Connect(demo.anychat.cn,8906)=0
[2014-03-03 15:49:15(763)]        Invoke        LoginServer(username=VideoChat_Mobile)
[2014-03-03 15:49:16(034)]        CheckClientSocketLink         Connect(ip=121.199.51.198,port=8906)
[2014-03-03 15:49:16(177)]        Server version: V4.9(Build Time:2014-01-01 11:41:52, Server OS:Windows)
[2014-03-03 15:49:16(252)]        Message        OnConnect(bSuccess:1, errorcode=0)
[2014-03-03 15:49:16(639)]        Message        OnLoginSystem(userid=12093,errorcode=0,username=VideoChat_Mobile), msg deliver worked(0)
[2014-03-03 15:49:16(665)]        Invoke        EnterRoom(roomid=1)
[2014-03-03 15:49:16(702)]        Connection to streaming media server successfully!(udp delay:31ms)
[2014-03-03 15:49:16(815)]        Message        OnEnterRoom(roomid=1,errorcode=0,siteindex=4)
[2014-03-03 15:49:16(815)]        Audio Playback Device Init(0, 1, 16000, 16), Default Playback Driver
[2014-03-03 15:49:16(816)]        Message        OnReceiveOnlineUser(count=7,roomid=1)
[2014-03-03 15:49:16(909)]        Invoke        UserCameraControl(userid=12092,bOpen=1)
[2014-03-03 15:49:16(911)]        Invoke        UserSpeakControl(userid=12092,bOpen=1)
[2014-03-03 15:49:16(921)]        Invoke        UserCameraControl(userid=-1,bOpen=1)
[2014-03-03 15:49:16(922)]        Invoke        UserSpeakControl(userid=-1,bOpen=1)
[2014-03-03 15:49:16(922)]        Invoke        UserCameraControl(userid=12092,bOpen=1)
[2014-03-03 15:49:16(922)]        Invoke        UserSpeakControl(userid=12092,bOpen=1)
[2014-03-03 15:49:16(980)]        On Remote UserCameraControl(dwUserId:12092, bOpen:1)
[2014-03-03 15:49:17(042)]        On Remote UserSpeakControl(dwUserId:12092, bOpen:1)
[2014-03-03 15:49:17(339)]        Message        OnP2PConnectState(userid=12092, state=2)
[2014-03-03 15:49:17(778)]        Message        OnP2PConnectState(userid=12092, state=3)
[2014-03-03 15:49:18(126)]        userid(12092) video decode delay:87ms
[2014-03-03 15:49:18(150)]        video init finish:320x240, NV21, fps:25
[2014-03-03 15:49:18(224)]        Audio Init, error:0, device:-1, 1, 16000, 16, capmode:0
[2014-03-03 15:49:18(224)]        Audio codec init, handle:3, 11, 1, 16000, 16, 15850
[2014-03-03 15:49:18(482)]        Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1
[2014-03-03 15:49:18(545)]        socket error, disconnected by peer!, bTcp(1) - userid(-11712)
[2014-03-03 15:49:19(280)]        Invoke        LeaveRoom(roomid=-1)        Elapse:104 ms
[2014-03-03 15:49:19(285)]        Invoke        LogoutServer(userid=12093)        Elapse:6 ms
[2014-03-03 15:49:19(314)]        Invoke        BRAC_Release        Elapse:145 ms

作者: fighter    时间: 2014-3-3 17:31
admin 发表于 2014-3-3 17:18
另外,我们有提供一个修正远程视频方向的API接口,参考:http://bbs.anychat.cn/forum.php?mod=viewthread& ...

这个android 有支持吗?
作者: admin    时间: 2014-3-3 17:39
喔,抱歉,android暂时还没有更新SDK到网上,我会尽快通知负责SDK发布的同事来处理。
作者: admin    时间: 2014-3-4 18:06
您好,已经更新Android SDK,请重新下载,解压缩之后,版本号为r4012或以上版本即可,需要同时更新库(.so)和SDK(.java)文件。

使用方法可参考:http://bbs.anychat.cn/forum.php? ... =520&extra=page%3D1
作者: gguofei    时间: 2015-4-8 20:53
admin 发表于 2014-2-14 15:48
您好,是前置摄像头,还是后置摄像头有问题,或是两个摄像头的方向都有问题?手机的品牌、型号是?

我的问题是:平板上,前置摄像头时竖屏时发送给其他客户端,其他客户端接收到的图像是颠倒的,横屏时正常;后置摄像头时,都正常?平板品牌为:台电p98   
作者: admin    时间: 2015-4-8 21:53
您好,请上传日志文件(BRAnyChatCore.log),位于SD卡根目录下。

另外竖屏时图像颠倒,是指上下颠倒了吗,对方看到的图像是倒立的?
作者: gguofei    时间: 2015-4-9 09:40
admin 发表于 2015-4-8 21:53
您好,请上传日志文件(BRAnyChatCore.log),位于SD卡根目录下。

另外竖屏时图像颠倒,是指上下颠倒了 ...

恩,竖屏时,对方看到的图像是倒立的
作者: gguofei    时间: 2015-4-9 09:42
admin 发表于 2015-4-8 21:53
您好,请上传日志文件(BRAnyChatCore.log),位于SD卡根目录下。

另外竖屏时图像颠倒,是指上下颠倒了 ...

[2015-04-09 01:39:19(716)]        ---------------------------AnyChat Platform Core SDK Client Log---------------------------
[2015-04-09 01:39:19(717)]        Load libanychatcore.so success!(V5.1 Build Time:Nov 11 2014 08:33:16)
[2015-04-09 01:39:19(718)]        Android OS SDK Version:21, Support ARMv7:2, Support Neon:4
[2015-04-09 01:39:19(737)]        Load libmediautil_v7.so success!(V5.2 Build Time:Nov 11 2014 08:35:05)
[2015-04-09 01:39:19(747)]        Load libmediashow.so failed,video display functions will fail!(dlopen failed: cannot locate symbol "_ZN7android7Surface7isValidEv" referenced by "libmediashow.so"...)
[2015-04-09 01:39:19(757)]        dlopen failed: cannot locate symbol "_ZN7android6Camera17setPreviewDisplayERKNS_2spINS_7SurfaceEEE" referenced by "libmediacore_4.2.so"...
[2015-04-09 01:39:19(757)]        Load libmediacore.so success!(V5.1 Build Time:Nov 11 2014 08:34:28)
[2015-04-09 01:39:19(758)]        XT1077(motorola) msm8226  5.0.2
[2015-04-09 01:39:21(097)]        Invoke        BRAC_Connect(10.3.2.172,8906)=0
[2015-04-09 01:39:21(101)]        Invoke        LoginServer(username=1002)
[2015-04-09 01:39:21(166)]        CheckClientSocketLink         Connect(ip=10.3.2.172,port=8906)
[2015-04-09 01:39:24(384)]        Server version: V5.1(Build Time:2014-09-10 02:00:04, Server OS:Windows)
[2015-04-09 01:39:24(426)]        Message        OnConnect(bSuccess:1, errorcode=0)
[2015-04-09 01:39:24(588)]        Message        OnLoginSystem(userid=11,errorcode=0,username=1002), msg deliver worked(0)
[2015-04-09 01:39:24(602)]        Load libmediashow.so failed,video display functions will fail!(dlopen failed: cannot locate symbol "_ZN7android7Surface7isValidEv" referenced by "libmediashow.so"...)
[2015-04-09 01:39:24(623)]        Connection to streaming media server successfully!(udp delay:10ms)
[2015-04-09 01:39:24(623)]        Connection to streaming media server successfully!(udp delay:10ms)
[2015-04-09 01:39:24(624)]        Connection to streaming media server successfully!(udp delay:10ms)
[2015-04-09 01:39:24(624)]        Connection to streaming media server successfully!(udp delay:10ms)
[2015-04-09 01:39:24(633)]        Apply video parameter:320x240, bitrate:150000, quality:3, gop:40, fps:10, preset:3, codec:1
[2015-04-09 01:39:24(633)]        Invoke        BRAC_SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=1)
[2015-04-09 01:39:24(633)]        Invoke        SetSDKOption(BRAC_SO_AUDIO_ECHOCTRL,1)
[2015-04-09 01:39:24(634)]        Invoke        BRAC_SetSDKOption(BRAC_SO_CORESDK_USEHWCODEC=0)
[2015-04-09 01:39:35(533)]        Invoke        EnterRoom(roomid=1)
[2015-04-09 01:39:35(612)]        Message        OnEnterRoom(roomid=1,errorcode=0,siteindex=1)
[2015-04-09 01:39:35(615)]        Audio Playback Device Init(0, 1, 16000, 16), Default Playback Driver
[2015-04-09 01:39:35(615)]        Message        OnReceiveOnlineUser(count=2,roomid=1)
[2015-04-09 01:39:35(940)]        Message        OnP2PConnectState(userid=9, state=1)
[2015-04-09 01:39:36(305)]        Message        OnP2PConnectState(userid=9, state=3)
[2015-04-09 01:39:37(216)]        Apply video parameter:320x240, bitrate:150000, quality:3, gop:40, fps:10, preset:3, codec:1
[2015-04-09 01:39:37(216)]        Invoke        BRAC_SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=1)
[2015-04-09 01:39:37(216)]        Invoke        SetSDKOption(BRAC_SO_AUDIO_ECHOCTRL,1)
[2015-04-09 01:39:37(217)]        Invoke        BRAC_SetSDKOption(BRAC_SO_CORESDK_USEHWCODEC=0)
[2015-04-09 01:39:37(284)]        Invoke        UserCameraControl(userid=9,bOpen=1)
[2015-04-09 01:39:37(285)]        Invoke        UserSpeakControl(userid=9,bOpen=1)
[2015-04-09 01:39:37(288)]        Invoke        UserCameraControl(userid=-1,bOpen=1)
[2015-04-09 01:39:37(288)]        Invoke        UserSpeakControl(userid=-1,bOpen=1)
[2015-04-09 01:39:37(694)]        video init finish:320x240, NV21, fps:30
[2015-04-09 01:39:37(710)]        video init finish:320x240, NV21, fps:30
[2015-04-09 01:39:37(716)]        Audio Init, error:0, device:-1, 1, 16000, 16, capmode:0
[2015-04-09 01:39:37(716)]        Audio codec init, handle:1, 11, 1, 16000, 16, 15850
[2015-04-09 01:39:37(805)]        Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1
[2015-04-09 01:39:37(916)]        video codec init:codec:1, 10fps, 320x240, bitrate:150kbps, quality:3, preset:3, gop:40, handle:2
[2015-04-09 01:39:42(220)]        userid(9) video decode delay:10ms
[2015-04-09 01:40:17(521)]        Invoke        UserCameraControl(userid=9,bOpen=0)
[2015-04-09 01:40:17(523)]        Invoke        UserSpeakControl(userid=9,bOpen=0)
[2015-04-09 01:40:17(538)]        Invoke        UserCameraControl(userid=-1,bOpen=0)
[2015-04-09 01:40:17(538)]        Invoke        UserSpeakControl(userid=-1,bOpen=0)
[2015-04-09 01:40:19(360)]        Invoke        LeaveRoom(roomid=-1)        Elapse:100 ms
[2015-04-09 01:40:20(890)]        Invoke        LogoutServer(userid=11)        Elapse:3 ms
[2015-04-09 01:40:20(912)]        Invoke        BRAC_Release        Elapse:22 ms

作者: admin    时间: 2015-4-9 10:51
Load libanychatcore.so success!(V5.1 Build Time:Nov 11 2014 08:33:16)

请尝试一下V5.2版本,看是否也是一样?
XT1077(motorola) msm8226  5.0.2

上面的日志显示是Motorola的设备,不是台电的?请上传台电设备上的日志文件,谢谢。

作者: gguofei    时间: 2015-4-21 14:09
admin 发表于 2015-4-9 10:51
请尝试一下V5.2版本,看是否也是一样?

上面的日志显示是Motorola的设备,不是台电的?请上传台电设备 ...

台电的log日志:
[2015-04-20 16:20:49(504)]        ---------------------------AnyChat Platform Core SDK Client Log---------------------------
[2015-04-20 16:20:49(507)]        Load libanychatcore.so success!(V5.1 Build Time:Nov 11 2014 08:33:16)
[2015-04-20 16:20:49(508)]        Android OS SDK Version:19, Support ARMv7:2, Support Neon:4
[2015-04-20 16:20:49(527)]        Load libmediautil_v7.so success!(V5.2 Build Time:Nov 11 2014 08:35:05)
[2015-04-20 16:20:49(536)]        Load libmediashow.so failed,video display functions will fail!(dlopen failed: cannot locate symbol "_ZN7android7Surface7isValidEv" referenced by "libmediashow.so"...)
[2015-04-20 16:20:49(545)]        dlopen failed: cannot locate symbol "_ZN7android6Camera17setPreviewDisplayERKNS_2spINS_7SurfaceEEE" referenced by "libmediacore_4.2.so"...
[2015-04-20 16:20:49(546)]        Load libmediacore.so success!(V5.1 Build Time:Nov 11 2014 08:34:28)
[2015-04-20 16:20:49(548)]        P98 3G八核(A4HY)(Teclast)   4.4.2
[2015-04-20 16:20:51(961)]        Invoke        BRAC_Connect(10.3.2.172,8906)=0
[2015-04-20 16:20:51(968)]        Invoke        LoginServer(username=1003)
[2015-04-20 16:20:52(004)]        CheckClientSocketLink         Connect(ip=10.3.2.172,port=8906)
[2015-04-20 16:20:52(036)]        Server version: V5.1(Build Time:2014-09-10 10:00:04, Server OS:Windows)
[2015-04-20 16:20:52(067)]        Message        OnConnect(bSuccess:1, errorcode=0)
[2015-04-20 16:20:52(251)]        Message        OnLoginSystem(userid=33,errorcode=0,username=1003), msg deliver worked(0)
[2015-04-20 16:20:52(285)]        Load libmediashow.so failed,video display functions will fail!(dlopen failed: cannot locate symbol "_ZN7android7Surface7isValidEv" referenced by "libmediashow.so"...)
[2015-04-20 16:20:52(296)]        Connection to streaming media server successfully!(udp delay:5ms)
[2015-04-20 16:20:52(356)]        Apply video parameter:320x240, bitrate:150000, quality:3, gop:40, fps:10, preset:3, codec:1
[2015-04-20 16:20:52(360)]        Invoke        BRAC_SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=1)
[2015-04-20 16:20:52(362)]        Invoke        SetSDKOption(BRAC_SO_AUDIO_ECHOCTRL,1)
[2015-04-20 16:20:52(362)]        Invoke        BRAC_SetSDKOption(BRAC_SO_CORESDK_USEHWCODEC=0)
[2015-04-20 16:21:01(374)]        Invoke        LogoutServer(userid=33)        Elapse:20 ms
[2015-04-20 16:21:14(746)]        Invoke        BRAC_Connect(10.3.2.172,8906)=0
[2015-04-20 16:21:14(749)]        Invoke        LoginServer(username=1003)
[2015-04-20 16:21:14(818)]        CheckClientSocketLink         Connect(ip=10.3.2.172,port=8906)
[2015-04-20 16:21:14(870)]        Server version: V5.1(Build Time:2014-09-10 10:00:04, Server OS:Windows)
[2015-04-20 16:21:14(912)]        Message        OnConnect(bSuccess:1, errorcode=0)
[2015-04-20 16:21:15(156)]        Message        OnLoginSystem(userid=34,errorcode=0,username=1003), msg deliver worked(0)
[2015-04-20 16:21:15(168)]        Load libmediautil_v7.so success!(V5.2 Build Time:Nov 11 2014 08:35:05)
[2015-04-20 16:21:15(177)]        Load libmediashow.so failed,video display functions will fail!(dlopen failed: cannot locate symbol "_ZN7android7Surface7isValidEv" referenced by "libmediashow.so"...)
[2015-04-20 16:21:15(186)]        dlopen failed: cannot locate symbol "_ZN7android6Camera17setPreviewDisplayERKNS_2spINS_7SurfaceEEE" referenced by "libmediacore_4.2.so"...
[2015-04-20 16:21:15(187)]        Load libmediacore.so success!(V5.1 Build Time:Nov 11 2014 08:34:28)
[2015-04-20 16:21:15(198)]        Connection to streaming media server successfully!(udp delay:5ms)
[2015-04-20 16:21:15(505)]        Apply video parameter:320x240, bitrate:150000, quality:3, gop:40, fps:10, preset:3, codec:1
[2015-04-20 16:21:15(506)]        Invoke        BRAC_SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=1)
[2015-04-20 16:21:15(507)]        Invoke        SetSDKOption(BRAC_SO_AUDIO_ECHOCTRL,1)
[2015-04-20 16:21:15(507)]        Invoke        BRAC_SetSDKOption(BRAC_SO_CORESDK_USEHWCODEC=0)
[2015-04-20 16:21:17(462)]        Invoke        EnterRoom(roomid=1)
[2015-04-20 16:21:18(036)]        Message        OnEnterRoom(roomid=1,errorcode=0,siteindex=0)
[2015-04-20 16:21:18(038)]        Audio Playback Device Init(0, 1, 16000, 16), Default Playback Driver
[2015-04-20 16:21:18(039)]        Message        OnReceiveOnlineUser(count=1,roomid=1)
[2015-04-20 16:21:21(483)]        Invoke        LeaveRoom(roomid=-1)        Elapse:99 ms
[2015-04-20 16:21:23(909)]        Invoke        LogoutServer(userid=34)        Elapse:36 ms
[2015-04-20 16:21:30(144)]        Invoke        BRAC_Connect(10.3.2.172,8906)=0
[2015-04-20 16:21:30(147)]        Invoke        LoginServer(username=1001)
[2015-04-20 16:21:30(235)]        CheckClientSocketLink         Connect(ip=10.3.2.172,port=8906)
[2015-04-20 16:21:30(297)]        Server version: V5.1(Build Time:2014-09-10 10:00:04, Server OS:Windows)
[2015-04-20 16:21:30(367)]        Message        OnConnect(bSuccess:1, errorcode=0)
[2015-04-20 16:21:30(623)]        Message        OnLoginSystem(userid=35,errorcode=0,username=1001), msg deliver worked(0)
[2015-04-20 16:21:30(637)]        Load libmediautil_v7.so success!(V5.2 Build Time:Nov 11 2014 08:35:05)
[2015-04-20 16:21:30(648)]        Load libmediashow.so failed,video display functions will fail!(dlopen failed: cannot locate symbol "_ZN7android7Surface7isValidEv" referenced by "libmediashow.so"...)
[2015-04-20 16:21:30(657)]        dlopen failed: cannot locate symbol "_ZN7android6Camera17setPreviewDisplayERKNS_2spINS_7SurfaceEEE" referenced by "libmediacore_4.2.so"...
[2015-04-20 16:21:30(657)]        Load libmediacore.so success!(V5.1 Build Time:Nov 11 2014 08:34:28)
[2015-04-20 16:21:30(668)]        Connection to streaming media server successfully!(udp delay:5ms)
[2015-04-20 16:21:30(717)]        Apply video parameter:320x240, bitrate:150000, quality:3, gop:40, fps:10, preset:3, codec:1
[2015-04-20 16:21:30(718)]        Invoke        BRAC_SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=1)
[2015-04-20 16:21:30(719)]        Invoke        SetSDKOption(BRAC_SO_AUDIO_ECHOCTRL,1)
[2015-04-20 16:21:30(719)]        Invoke        BRAC_SetSDKOption(BRAC_SO_CORESDK_USEHWCODEC=0)
[2015-04-20 16:21:45(730)]        Invoke        LogoutServer(userid=35)        Elapse:4 ms
[2015-04-20 16:21:52(713)]        Invoke        BRAC_Connect(10.3.2.172,8906)=0
[2015-04-20 16:21:52(716)]        Invoke        LoginServer(username=1004)
[2015-04-20 16:21:52(738)]        CheckClientSocketLink         Connect(ip=10.3.2.172,port=8906)
[2015-04-20 16:21:52(780)]        Server version: V5.1(Build Time:2014-09-10 10:00:04, Server OS:Windows)
[2015-04-20 16:21:52(822)]        Message        OnConnect(bSuccess:1, errorcode=0)
[2015-04-20 16:21:53(017)]        Message        OnLoginSystem(userid=36,errorcode=0,username=1004), msg deliver worked(0)
[2015-04-20 16:21:53(046)]        Load libmediautil_v7.so success!(V5.2 Build Time:Nov 11 2014 08:35:05)
[2015-04-20 16:21:53(074)]        Load libmediashow.so failed,video display functions will fail!(dlopen failed: cannot locate symbol "_ZN7android7Surface7isValidEv" referenced by "libmediashow.so"...)
[2015-04-20 16:21:53(085)]        dlopen failed: cannot locate symbol "_ZN7android6Camera17setPreviewDisplayERKNS_2spINS_7SurfaceEEE" referenced by "libmediacore_4.2.so"...
[2015-04-20 16:21:53(086)]        Load libmediacore.so success!(V5.1 Build Time:Nov 11 2014 08:34:28)
[2015-04-20 16:21:53(098)]        Connection to streaming media server successfully!(udp delay:5ms)
[2015-04-20 16:21:53(268)]        Apply video parameter:320x240, bitrate:150000, quality:3, gop:40, fps:10, preset:3, codec:1
[2015-04-20 16:21:53(268)]        Invoke        BRAC_SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=1)
[2015-04-20 16:21:53(269)]        Invoke        SetSDKOption(BRAC_SO_AUDIO_ECHOCTRL,1)
[2015-04-20 16:21:53(270)]        Invoke        BRAC_SetSDKOption(BRAC_SO_CORESDK_USEHWCODEC=0)
[2015-04-20 16:22:04(139)]        socket error, disconnected by peer!, bTcp(1) - userid(-1)
[2015-04-20 16:22:04(144)]        Invoke        LogoutServer(userid=36)        Elapse:8 ms
[2015-04-20 16:22:06(034)]        Invoke        BRAC_Connect(10.3.2.172,8906)=0
[2015-04-20 16:22:06(037)]        Invoke        LoginServer(username=1004)
[2015-04-20 16:22:06(128)]        CheckClientSocketLink         Connect(ip=10.3.2.172,port=8906)
[2015-04-20 16:22:06(160)]        Server version: V5.1(Build Time:2014-09-10 10:00:04, Server OS:Windows)
[2015-04-20 16:22:06(212)]        Message        OnConnect(bSuccess:1, errorcode=0)
[2015-04-20 16:22:06(366)]        Message        OnLoginSystem(userid=37,errorcode=0,username=1004), msg deliver worked(0)
[2015-04-20 16:22:06(390)]        Load libmediautil_v7.so success!(V5.2 Build Time:Nov 11 2014 08:35:05)
[2015-04-20 16:22:06(423)]        Load libmediashow.so failed,video display functions will fail!(dlopen failed: cannot locate symbol "_ZN7android7Surface7isValidEv" referenced by "libmediashow.so"...)
[2015-04-20 16:22:06(436)]        dlopen failed: cannot locate symbol "_ZN7android6Camera17setPreviewDisplayERKNS_2spINS_7SurfaceEEE" referenced by "libmediacore_4.2.so"...
[2015-04-20 16:22:06(437)]        Load libmediacore.so success!(V5.1 Build Time:Nov 11 2014 08:34:28)
[2015-04-20 16:22:06(450)]        Connection to streaming media server successfully!(udp delay:6ms)
[2015-04-20 16:22:06(498)]        Apply video parameter:320x240, bitrate:150000, quality:3, gop:40, fps:10, preset:3, codec:1
[2015-04-20 16:22:06(499)]        Invoke        BRAC_SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=1)
[2015-04-20 16:22:06(499)]        Invoke        SetSDKOption(BRAC_SO_AUDIO_ECHOCTRL,1)
[2015-04-20 16:22:06(500)]        Invoke        BRAC_SetSDKOption(BRAC_SO_CORESDK_USEHWCODEC=0)
[2015-04-20 16:22:09(538)]        Invoke        LogoutServer(userid=37)        Elapse:21 ms
[2015-04-21 14:10:46(088)]        Invoke        BRAC_Connect(10.3.2.172,8906)=0
[2015-04-21 14:10:46(116)]        Invoke        LoginServer(username=1004)
[2015-04-21 14:10:46(164)]        CheckClientSocketLink         Connect(ip=10.3.2.172,port=8906)
[2015-04-21 14:10:46(207)]        Server version: V5.1(Build Time:2014-09-10 10:00:04, Server OS:Windows)
[2015-04-21 14:10:46(239)]        Message        OnConnect(bSuccess:1, errorcode=0)
[2015-04-21 14:10:46(504)]        Message        OnLoginSystem(userid=2,errorcode=0,username=1004), msg deliver worked(0)
[2015-04-21 14:10:46(605)]        Load libmediautil_v7.so success!(V5.2 Build Time:Nov 11 2014 08:35:05)
[2015-04-21 14:10:46(629)]        Load libmediashow.so failed,video display functions will fail!(dlopen failed: cannot locate symbol "_ZN7android7Surface7isValidEv" referenced by "libmediashow.so"...)
[2015-04-21 14:10:46(697)]        dlopen failed: cannot locate symbol "_ZN7android6Camera17setPreviewDisplayERKNS_2spINS_7SurfaceEEE" referenced by "libmediacore_4.2.so"...
[2015-04-21 14:10:46(697)]        Load libmediacore.so success!(V5.1 Build Time:Nov 11 2014 08:34:28)
[2015-04-21 14:10:46(709)]        Connection to streaming media server successfully!(udp delay:5ms)
[2015-04-21 14:10:46(738)]        Apply video parameter:320x240, bitrate:150000, quality:3, gop:40, fps:10, preset:3, codec:1
[2015-04-21 14:10:46(738)]        Invoke        BRAC_SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=1)
[2015-04-21 14:10:46(739)]        Invoke        SetSDKOption(BRAC_SO_AUDIO_ECHOCTRL,1)
[2015-04-21 14:10:46(739)]        Invoke        BRAC_SetSDKOption(BRAC_SO_CORESDK_USEHWCODEC=0)
[2015-04-21 14:10:52(631)]        Invoke        LogoutServer(userid=2)        Elapse:5 ms
[2015-04-21 14:10:58(246)]        Invoke        BRAC_Connect(10.3.2.172,8906)=0
[2015-04-21 14:10:58(248)]        CheckClientSocketLink         Connect(ip=10.3.2.172,port=8906)
[2015-04-21 14:10:58(249)]        Invoke        LoginServer(username=1003)
[2015-04-21 14:10:58(301)]        Server version: V5.1(Build Time:2014-09-10 10:00:04, Server OS:Windows)
[2015-04-21 14:10:58(342)]        Message        OnConnect(bSuccess:1, errorcode=0)
[2015-04-21 14:10:58(599)]        Message        OnLoginSystem(userid=3,errorcode=0,username=1003), msg deliver worked(0)
[2015-04-21 14:10:58(621)]        Load libmediautil_v7.so success!(V5.2 Build Time:Nov 11 2014 08:35:05)
[2015-04-21 14:10:58(638)]        Load libmediashow.so failed,video display functions will fail!(dlopen failed: cannot locate symbol "_ZN7android7Surface7isValidEv" referenced by "libmediashow.so"...)
[2015-04-21 14:10:58(663)]        dlopen failed: cannot locate symbol "_ZN7android6Camera17setPreviewDisplayERKNS_2spINS_7SurfaceEEE" referenced by "libmediacore_4.2.so"...
[2015-04-21 14:10:58(665)]        Load libmediacore.so success!(V5.1 Build Time:Nov 11 2014 08:34:28)
[2015-04-21 14:10:58(677)]        Connection to streaming media server successfully!(udp delay:5ms)
[2015-04-21 14:10:58(751)]        Apply video parameter:320x240, bitrate:150000, quality:3, gop:40, fps:10, preset:3, codec:1
[2015-04-21 14:10:58(752)]        Invoke        BRAC_SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=1)
[2015-04-21 14:10:58(752)]        Invoke        SetSDKOption(BRAC_SO_AUDIO_ECHOCTRL,1)
[2015-04-21 14:10:58(753)]        Invoke        BRAC_SetSDKOption(BRAC_SO_CORESDK_USEHWCODEC=0)
[2015-04-21 14:11:00(346)]        Invoke        EnterRoom(roomid=1)
[2015-04-21 14:11:00(395)]        Message        OnEnterRoom(roomid=1,errorcode=0,siteindex=1)
[2015-04-21 14:11:00(396)]        Audio Playback Device Init(0, 1, 16000, 16), Default Playback Driver
[2015-04-21 14:11:00(397)]        Message        OnReceiveOnlineUser(count=2,roomid=1)
[2015-04-21 14:11:02(034)]        On Remote UserCameraControl(dwUserId:1, bOpen:1)
[2015-04-21 14:11:02(045)]        On Remote UserSpeakControl(dwUserId:1, bOpen:1)
[2015-04-21 14:11:02(633)]        Message        OnP2PConnectState(userid=1, state=2)
[2015-04-21 14:11:03(271)]        Apply video parameter:320x240, bitrate:150000, quality:3, gop:40, fps:10, preset:3, codec:1
[2015-04-21 14:11:03(271)]        Invoke        BRAC_SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=1)
[2015-04-21 14:11:03(272)]        Invoke        SetSDKOption(BRAC_SO_AUDIO_ECHOCTRL,1)
[2015-04-21 14:11:03(272)]        Invoke        BRAC_SetSDKOption(BRAC_SO_CORESDK_USEHWCODEC=0)
[2015-04-21 14:11:03(326)]        Invoke        UserCameraControl(userid=1,bOpen=1)
[2015-04-21 14:11:03(327)]        Invoke        UserSpeakControl(userid=1,bOpen=1)
[2015-04-21 14:11:03(330)]        Invoke        UserCameraControl(userid=-1,bOpen=1)
[2015-04-21 14:11:03(330)]        Invoke        UserSpeakControl(userid=-1,bOpen=1)
[2015-04-21 14:11:03(381)]        Audio Init, error:0, device:-1, 1, 16000, 16, capmode:0
[2015-04-21 14:11:03(382)]        Audio codec init, handle:1, 11, 1, 16000, 16, 15850
[2015-04-21 14:11:03(631)]        Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1
[2015-04-21 14:11:04(717)]        video init finish:320x240, NV21, fps:60
[2015-04-21 14:11:04(954)]        video codec init:codec:1, 10fps, 320x240, bitrate:150kbps, quality:3, preset:3, gop:40, handle:2
[2015-04-21 14:11:05(270)]        userid(1) video decode delay:13ms
[2015-04-21 14:11:19(216)]        Invoke        UserCameraControl(userid=1,bOpen=0)
[2015-04-21 14:11:19(309)]        Invoke        UserSpeakControl(userid=1,bOpen=0)
[2015-04-21 14:11:19(315)]        Invoke        UserCameraControl(userid=-1,bOpen=0)
[2015-04-21 14:11:19(318)]        Invoke        UserSpeakControl(userid=-1,bOpen=0)
[2015-04-21 14:11:21(296)]        Invoke        LeaveRoom(roomid=-1)        Elapse:100 ms
[2015-04-21 14:11:24(241)]        Invoke        LogoutServer(userid=3)        Elapse:5 ms

作者: gguofei    时间: 2015-4-21 14:13
如何视频发送时或者显示时判断视频的方向,然后进行修正  这样的话,可以会对这个问题实现普遍性的解决
作者: 佰锐科技-颜荣芝    时间: 2015-4-21 14:21
gguofei 发表于 2015-4-21 14:13
如何视频发送时或者显示时判断视频的方向,然后进行修正  这样的话,可以会对这个问题实现普遍性的解决

您好,可以先参考一下AnyChat增加视频方向手工修正API接口:http://bbs.anychat.cn/forum.php? ... &extra=page%3D3
作者: gguofei    时间: 2015-4-21 14:31
佰锐科技-颜荣芝 发表于 2015-4-21 14:21
您好,可以先参考一下AnyChat增加视频方向手工修正API接口:http://bbs.anychat.cn/forum.php?mod=viewth ...

那我如何判定何时进行旋转?在哪边判断?如何判断视频是不是需要旋转?因为不是所有的测试机都有这种问题。我想找出一种解决这种问题的办法 谢谢
作者: admin    时间: 2015-4-21 14:45
您好,其中一方是Android设备,那另一方呢,是PC,还是Android?
作者: gguofei    时间: 2015-4-21 14:49
admin 发表于 2015-4-21 14:45
您好,其中一方是Android设备,那另一方呢,是PC,还是Android?

pc android ios 都有
作者: admin    时间: 2015-4-21 15:18
对于非标准设备,只能通过人眼来识别视频方向是否需要调整,然后手工进行调整。

另外AnyChat技术团队也在尽最大能力适配置各种Android设备。
作者: gguofei    时间: 2015-4-21 15:19
admin 发表于 2015-4-21 15:18
对于非标准设备,只能通过人眼来识别视频方向是否需要调整,然后手工进行调整。

另外AnyChat技术团队也 ...

OK 知道了 谢谢
作者: gguofei    时间: 2015-4-22 09:23
使用UserInfoControl接口旋转180度,没有起作用
作者: gguofei    时间: 2015-4-22 09:24
[2015-04-22 09:24:47(368)]        ---------------------------AnyChat Platform Core SDK Client Log---------------------------
[2015-04-22 09:24:47(373)]        Load libanychatcore.so success!(V5.1 Build Time:Nov 11 2014 08:33:16)
[2015-04-22 09:24:47(376)]        Android OS SDK Version:19, Support ARMv7:2, Support Neon:4
[2015-04-22 09:24:47(405)]        Load libmediautil_v7.so success!(V5.2 Build Time:Nov 11 2014 08:35:05)
[2015-04-22 09:24:47(456)]        Load libmediashow.so failed,video display functions will fail!(dlopen failed: cannot locate symbol "_ZN7android7Surface7isValidEv" referenced by "libmediashow.so"...)
[2015-04-22 09:24:47(478)]        dlopen failed: cannot locate symbol "_ZN7android6Camera17setPreviewDisplayERKNS_2spINS_7SurfaceEEE" referenced by "libmediacore_4.2.so"...
[2015-04-22 09:24:47(479)]        Load libmediacore.so success!(V5.1 Build Time:Nov 11 2014 08:34:28)
[2015-04-22 09:24:47(481)]        P98 3G八核(A4HY)(Teclast)   4.4.2
[2015-04-22 09:25:02(344)]        Invoke        BRAC_Connect(10.3.2.172,8906)=0
[2015-04-22 09:25:02(377)]        Invoke        LoginServer(username=1003)
[2015-04-22 09:25:02(402)]        CheckClientSocketLink         Connect(ip=10.3.2.172,port=8906)
[2015-04-22 09:25:02(446)]        Server version: V5.1(Build Time:2014-09-10 10:00:04, Server OS:Windows)
[2015-04-22 09:25:02(489)]        Message        OnConnect(bSuccess:1, errorcode=0)
[2015-04-22 09:25:02(746)]        Message        OnLoginSystem(userid=5,errorcode=0,username=1003), msg deliver worked(0)
[2015-04-22 09:25:02(769)]        Load libmediashow.so failed,video display functions will fail!(dlopen failed: cannot locate symbol "_ZN7android7Surface7isValidEv" referenced by "libmediashow.so"...)
[2015-04-22 09:25:02(781)]        Connection to streaming media server successfully!(udp delay:5ms)
[2015-04-22 09:25:03(049)]        Apply video parameter:320x240, bitrate:150000, quality:3, gop:40, fps:10, preset:3, codec:1
[2015-04-22 09:25:03(049)]        Invoke        BRAC_SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=1)
[2015-04-22 09:25:03(050)]        Invoke        SetSDKOption(BRAC_SO_AUDIO_ECHOCTRL,1)
[2015-04-22 09:25:03(050)]        Invoke        BRAC_SetSDKOption(BRAC_SO_CORESDK_USEHWCODEC=0)
[2015-04-22 09:25:05(055)]        Invoke        EnterRoom(roomid=1)
[2015-04-22 09:25:05(094)]        Message        OnEnterRoom(roomid=1,errorcode=0,siteindex=1)
[2015-04-22 09:25:05(095)]        Audio Playback Device Init(0, 1, 16000, 16), Default Playback Driver
[2015-04-22 09:25:05(097)]        Message        OnReceiveOnlineUser(count=2,roomid=1)
[2015-04-22 09:25:05(356)]        Message        OnP2PConnectState(userid=4, state=2)
[2015-04-22 09:25:06(083)]        Message        OnP2PConnectState(userid=4, state=3)
[2015-04-22 09:25:21(602)]        Apply video parameter:320x240, bitrate:150000, quality:3, gop:40, fps:10, preset:3, codec:1
[2015-04-22 09:25:21(603)]        Invoke        BRAC_SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=1)
[2015-04-22 09:25:21(604)]        Invoke        SetSDKOption(BRAC_SO_AUDIO_ECHOCTRL,1)
[2015-04-22 09:25:21(605)]        Invoke        BRAC_SetSDKOption(BRAC_SO_CORESDK_USEHWCODEC=0)
[2015-04-22 09:25:21(774)]        Invoke        UserCameraControl(userid=4,bOpen=1)
[2015-04-22 09:25:21(774)]        Invoke        UserSpeakControl(userid=4,bOpen=1)
[2015-04-22 09:25:21(788)]        Invoke        UserCameraControl(userid=-1,bOpen=1)
[2015-04-22 09:25:21(789)]        Invoke        UserSpeakControl(userid=-1,bOpen=1)
[2015-04-22 09:25:21(921)]        Audio Init, error:0, device:-1, 1, 16000, 16, capmode:0
[2015-04-22 09:25:21(926)]        Audio codec init, handle:1, 11, 1, 16000, 16, 15850
[2015-04-22 09:25:22(150)]        Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1
[2015-04-22 09:25:23(385)]        video init finish:320x240, NV21, fps:60
[2015-04-22 09:25:23(624)]        video codec init:codec:1, 10fps, 320x240, bitrate:150kbps, quality:3, preset:3, gop:40, handle:2
[2015-04-22 09:25:27(686)]        On Remote UserCameraControl(dwUserId:4, bOpen:1)
[2015-04-22 09:25:28(289)]        On Remote UserSpeakControl(dwUserId:4, bOpen:1)
[2015-04-22 09:25:31(807)]        userid(4) video decode delay:30ms
[2015-04-22 09:25:43(790)]        socket error, disconnected by peer!, bTcp(1) - userid(4)
[2015-04-22 09:25:43(799)]        Message        OnP2PConnectState(userid=4, state=2)
[2015-04-22 09:25:45(902)]        On Remote UserCameraControl(dwUserId:4, bOpen:0)
[2015-04-22 09:25:49(836)]        On Remote UserSpeakControl(dwUserId:4, bOpen:0)
[2015-04-22 09:25:49(838)]        Message        OnUserLeaveRoom(userid=4,siteindex=0)
[2015-04-22 09:25:49(874)]        Invoke        UserCameraControl(userid=4,bOpen=0)
[2015-04-22 09:25:49(875)]        Invoke        UserSpeakControl(userid=4,bOpen=0)
[2015-04-22 09:28:00(135)]        Invoke        UserCameraControl(userid=4,bOpen=0)
[2015-04-22 09:28:00(138)]        Invoke        UserSpeakControl(userid=4,bOpen=0)
[2015-04-22 09:28:00(139)]        Invoke        UserCameraControl(userid=-1,bOpen=0)
[2015-04-22 09:28:00(141)]        Invoke        UserSpeakControl(userid=-1,bOpen=0)
[2015-04-22 09:28:04(095)]        Invoke        LeaveRoom(roomid=-1)        Elapse:102 ms
[2015-04-22 09:28:06(464)]        Invoke        LogoutServer(userid=5)        Elapse:9 ms

作者: 佰锐科技-邵光清    时间: 2015-4-22 09:48
[2015-04-22 09:24:47(456)]        Load libmediashow.so failed,video display functions will fail!(dlopen failed: cannot locate symbol "_ZN7android7Surface7isValidEv" referenced by "libmediashow.so"...)
[2015-04-22 09:24:47(478)]        dlopen failed: cannot locate symbol "_ZN7android6Camera17setPreviewDisplayERKNS_2spINS_7SurfaceEEE" referenced by "libmediacore_4.2.so"...
您好,加载so文件失败。请您参考:AnyChat增加视频方向手工修正API接口




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