AnyChat技术支持论坛

标题: android开发板视频问题 [打印本页]

作者: 平淡    时间: 2015-3-27 11:38
标题: android开发板视频问题
登录测试服务器,点击用户准备进行视频对话,弹出 “hellowAnyChat”已停止运行。

[2015-03-27 03:30:23(765)]        ---------------------------AnyChat Platform Core SDK Client Log---------------------------
[2015-03-27 03:30:23(772)]        Load libanychatcore.so success!(V5.2 Build Time:Feb 10 2015 08:21:23)
[2015-03-27 03:30:23(773)]        Android OS SDK Version:19, Support ARMv7:2, Support Neon:4
[2015-03-27 03:30:23(787)]        Load libmediautil_v7.so success!(V5.2 Build Time:Feb 10 2015 08:22:47)
[2015-03-27 03:30:23(793)]        Load libmediashow.so success!(V5.2 Build Time:Feb 10 2015 08:22:28)
[2015-03-27 03:30:23(798)]        Load libmediacore.so success!(V5.2 Build Time:Feb 10 2015 08:22:33)
[2015-03-27 03:30:23(799)]        smdk4x12-rp4412(RPDZKJ Co., Ltd.) exynos4  4.4.4
[2015-03-27 03:30:23(816)]        Apply video parameter:320x240, bitrate:150000, quality:0, gop:40, fps:10, preset:3, codec:0
[2015-03-27 03:30:23(816)]        Invoke        BRAC_SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=1)
[2015-03-27 03:30:23(817)]        Invoke        SetSDKOption(BRAC_SO_AUDIO_ECHOCTRL,1)
[2015-03-27 03:30:23(817)]        Invoke        BRAC_SetSDKOption(BRAC_SO_CORESDK_USEHWCODEC=0)
[2015-03-27 03:30:25(001)]        Invoke        BRAC_Connect(demo.anychat.cn,8906)=0
[2015-03-27 03:30:25(002)]        Invoke        LoginServer(username=name)
[2015-03-27 03:30:25(158)]        CheckClientSocketLink         Connect(ip=121.199.51.198,port=8906)
[2015-03-27 03:30:25(403)]        Server version: V5.2(Build Time:2015-02-24 15:44:05, Server OS:Windows)
[2015-03-27 03:30:25(515)]        Message        OnConnect(bSuccess:1, errorcode=0)
[2015-03-27 03:30:26(110)]        Message        OnLoginSystem(userid=-8827,errorcode=0,username=name), msg deliver worked(0)
[2015-03-27 03:30:26(111)]        Server running time: 3 days, 1 hours, 15 minutes, license mode:1
[2015-03-27 03:30:26(118)]        Invoke        EnterRoom(roomid=1)
[2015-03-27 03:30:26(274)]        Connection to streaming media server successfully!(udp delay:81ms)
[2015-03-27 03:30:26(407)]        Message        OnEnterRoom(roomid=1,errorcode=0,siteindex=2)
[2015-03-27 03:30:26(407)]        Audio Playback Device Init(0, 1, 16000, 16), Default Playback Driver
[2015-03-27 03:30:26(408)]        Message        OnReceiveOnlineUser(count=5,roomid=1)
[2015-03-27 03:30:28(387)]        Invoke        UserCameraControl(userid=4519,bOpen=1)
[2015-03-27 03:30:28(388)]        Invoke        UserSpeakControl(userid=4519,bOpen=1)
[2015-03-27 03:30:28(390)]        Invoke        UserCameraControl(userid=-1,bOpen=1)
[2015-03-27 03:30:28(390)]        Invoke        UserSpeakControl(userid=-1,bOpen=1)
[2015-03-27 03:30:28(997)]        video init finish:320x240, NV21, fps:30
[2015-03-27 03:30:29(002)]        video init finish:320x240, NV21, fps:30
[2015-03-27 03:30:29(012)]        Audio Init, error:0, device:-1, 1, 16000, 16, capmode:0
[2015-03-27 03:30:29(013)]        Audio codec init, handle:1, 11, 1, 16000, 16, 15850
[2015-03-27 03:30:29(142)]        Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1




作者: 平淡    时间: 2015-3-27 11:39
测试自带的相机程序无问题
作者: admin    时间: 2015-3-27 12:03
您好,程序异常结束时,logcat中应该有对应的调试信息输出,请将相关信息贴上来,我们帮您分析一下。

另外您是使用什么设备进行测试的呢,品牌、型号是?有尝试更换其它设备进行测试吗?
作者: 平淡    时间: 2015-3-27 12:20
三星4412开发板,深圳荣品出, 用三星S4手机和华为手机测试都正常,但公司要求用定制的手持设备。

03-27 04:16:14.525  15230-15230/com.example.helloanychat W/OrientationEventListener﹕ Cannot detect sensors. Not enabled
03-27 04:16:14.525  15230-15230/com.example.helloanychat E/SensorManager﹕ sensor or listener is null
03-27 04:16:14.570  15230-15230/com.example.helloanychat D/dalvikvm﹕ GC_FOR_ALLOC freed 678K, 16% free 4165K/4932K, paused 12ms, total 12ms
03-27 04:16:14.600  15230-15230/com.example.helloanychat I/ANYCHAT﹕ 04:16:14(603)        Invoke        UserCameraControl(userid=4519,bOpen=1)
03-27 04:16:14.600  15230-15230/com.example.helloanychat I/ANYCHAT﹕ 04:16:14(604)        Invoke        UserSpeakControl(userid=4519,bOpen=1)
03-27 04:16:14.605  15230-15230/com.example.helloanychat I/ANYCHAT﹕ 04:16:14(606)        Invoke        UserCameraControl(userid=-1,bOpen=1)
03-27 04:16:14.605  15230-15230/com.example.helloanychat I/ANYCHAT﹕ 04:16:14(606)        Invoke        UserSpeakControl(userid=-1,bOpen=1)
03-27 04:16:15.120  15230-15230/com.example.helloanychat I/ANYCHAT﹕ allocate: device orientation=270, camera orientation=0, facing=1
03-27 04:16:15.205  15230-15230/com.example.helloanychat I/ANYCHAT﹕ 04:16:15(209)        video init finish:320x240, NV21, fps:30
03-27 04:16:15.215  15230-15230/com.example.helloanychat I/ANYCHAT﹕ 04:16:15(215)        video init finish:320x240, NV21, fps:30
03-27 04:16:15.215  15230-15230/com.example.helloanychat D/ANYCHAT﹕ InitAudioRecorder, profile: 1
03-27 04:16:15.225  15230-15230/com.example.helloanychat I/ANYCHAT﹕ 04:16:15(226)        Audio Init, error:0, device:-1, 1, 16000, 16, capmode:0
03-27 04:16:15.225  15230-15230/com.example.helloanychat I/ANYCHAT﹕ 04:16:15(227)        Audio codec init, handle:1, 11, 1, 16000, 16, 15850
03-27 04:16:15.225  15230-15230/com.example.helloanychat D/ANYCHAT﹕ mMinRecordBufSize = 4096
03-27 04:16:15.225  15230-15230/com.example.helloanychat I/Choreographer﹕ Skipped 36 frames!  The application may be doing too much work on its main thread.
03-27 04:16:15.275  15230-15242/com.example.helloanychat E/Camera-JNI﹕ Callback buffer was too small! Expected 115216 bytes, but got 115200 bytes!
03-27 04:16:15.275  15230-15242/com.example.helloanychat E/Camera-JNI﹕ Couldn't allocate byte array for JPEG data
03-27 04:16:15.290  15230-15241/com.example.helloanychat E/Camera-JNI﹕ Callback buffer was too small! Expected 115216 bytes, but got 115200 bytes!
03-27 04:16:15.290  15230-15241/com.example.helloanychat E/Camera-JNI﹕ Couldn't allocate byte array for JPEG data
03-27 04:16:15.310  15230-15242/com.example.helloanychat E/Camera-JNI﹕ Callback buffer was too small! Expected 115216 bytes, but got 115200 bytes!
03-27 04:16:15.310  15230-15230/com.example.helloanychat D/AndroidRuntime﹕ Shutting down VM
03-27 04:16:15.310  15230-15230/com.example.helloanychat W/dalvikvm﹕ threadid=1: thread exiting with uncaught exception (group=0x41874ba8)
03-27 04:16:15.315  15230-15230/com.example.helloanychat E/AndroidRuntime﹕ FATAL EXCEPTION: main

作者: 平淡    时间: 2015-3-27 12:22
设备上没有重力传感器、陀螺仪、没有前置摄像头。
作者: 平淡    时间: 2015-3-27 12:24
不好意思,对android设备开发不是很熟悉。
作者: admin    时间: 2015-3-27 13:29
Callback buffer was too small! Expected 115216 bytes, but got 115200 bytes!

您好,可能是摄像头的参数与开发板的驱动不匹配造成的,通常是开发板的驱动存在缺陷,不支持某些视频分辩率的采集(AnyChat默认是320x240),建议您修改视频分辩率(如:640x480等)再进行测试。
作者: 平淡    时间: 2015-3-27 13:38
所有的分辨率都测试过了,还是不行,自带测拍照和摄像是没有问题的。
作者: admin    时间: 2015-3-27 13:42
建议您咨询一下硬件厂家,看该设备的摄像头支持哪些分辩率?是否有Camera的示例工程可以提供?
作者: 平淡    时间: 2015-3-29 11:27
int bufSize = captureSize.width * captureSize.height * ImageFormat.getBitsPerPixel(ImageFormat.NV21) / 8;
bufSize += 16;   增加16字节后正常了, 问题到底出在哪里呀?
作者: admin    时间: 2015-3-29 16:58
应该是该开发板的底层驱动有些特定的要求,通常咨硬件厂商可以清楚这些细节!
作者: 平淡    时间: 2015-3-30 10:56
好的,谢谢。




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