AnyChat技术支持论坛

标题: iOS抓拍函数偶尔没有回调 [打印本页]

作者: huquan1991    时间: 2016-5-10 17:29
标题: iOS抓拍函数偶尔没有回调
[NULL @ 0x149ec10] Unable to find a suitable output format for '(null)'
或者是[NULL @ 0x149ec10] Unable to find a suitable output format for '/var/mobile/application/..../'

这是什么问题啊?


作者: 佰锐科技-苏晴    时间: 2016-5-10 17:54
您好,建议您用录制接口 BRAC_StreamRecordCtrl(或者录制扩展接口 BRAC_StreamRecordCtrlEx),不要用抓拍接口。
作者: admin    时间: 2016-5-10 18:13
您好,请将完整的log输出发上来,我们帮您分析一下, 谢谢。
作者: huquan1991    时间: 2016-5-10 18:29
admin 发表于 2016-5-10 18:13
您好,请将完整的log输出发上来,我们帮您分析一下, 谢谢。

好的  等我复现了我就发过来您分析一下
作者: admin    时间: 2016-5-11 09:36
用的是最新的V6.0的AnyChat SDK吗?
作者: huquan1991    时间: 2016-5-11 14:23
admin 发表于 2016-5-11 09:36
用的是最新的V6.0的AnyChat SDK吗?

对       OpenAccount[2215:b003] user(10243) record audio stream parameter: codec:11, 1 channel, 16000Hz
2016-05-11 14:18:15.861 OpenAccount[2215:8d53] Message        OnP2PConnectState(userid=10241, state=2)
2016-05-11 14:18:15.918 OpenAccount[2215:60b] -----------10241
2016-05-11 14:18:15.924 OpenAccount[2215:60b] Invoke        UserSpeakControl(userid=10241,bOpen=1)
2016-05-11 14:18:15.929 OpenAccount[2215:60b] Invoke        UserCameraControl(userid=10241, bOpen=1, stream=0)
2016-05-11 14:18:15.933 OpenAccount[2215:60b] Invoke        SetVideoPos(dwUserId:10241, hWnd:0xe845d70, l:0, t:0, r:0, b:0)
2016-05-11 14:18:16.167 OpenAccount[2215:c203] userid(10241) audio decode, codec:11, 1 channel, 16000Hz
2016-05-11 14:18:16.473 OpenAccount[2215:8d53] Message        OnP2PConnectState(userid=10241, state=3)
2016-05-11 14:18:16.641 OpenAccount[2215:8b0b] video init finish: 480x360, 25fps, fmt:100, ret:0
2016-05-11 14:18:16.650 OpenAccount[2215:8b0b] video init finish:480x360, YUV420, fps:25, codecid:1
[libx264 @ 0x142a610] using cpu capabilities: ARMv6 NEON
[libx264 @ 0x142a610] profile High, level 2.1
2016-05-11 14:18:16.832 OpenAccount[2215:4c1b] video codec init:codec:1, 25fps, 480x360, bitrate:0kbps, quality:5, preset:3, gop:30, handle:3
2016-05-11 14:18:16.870 OpenAccount[2215:4c1b] User(10243) record video stream parameter: codec:1, 360x480, 25fps
[libx264 @ 0x1c4de10] using cpu capabilities: ARMv6 NEON
[libx264 @ 0x1c4de10] profile High, level 2.1
[aac @ 0x1beda10] Provided packet is too small, needs to be 1410
[aac @ 0x1beda10] Provided packet is too small, needs to be 1132
2016-05-11 14:18:17.731 OpenAccount[2215:c303] userid(10241) video decode, codec:1, 320x240, delay:103ms
[aac @ 0x1beda10] Provided packet is too small, needs to be 1151
[aac @ 0x1beda10] Provided packet is too small, needs to be 1067
[aac @ 0x1beda10] Provided packet is too small, needs to be 1417
[aac @ 0x1beda10] Provided packet is too small, needs to be 1310
[aac @ 0x1beda10] Provided packet is too small, needs to be 1414
[aac @ 0x1beda10] Provided packet is too small, needs to be 1402
[aac @ 0x1beda10] Provided packet is too small, needs to be 1223
[aac @ 0x1beda10] Provided packet is too small, needs to be 1208
[aac @ 0x1beda10] Provided packet is too small, needs to be 1303
[aac @ 0x1beda10] Provided packet is too small, needs to be 1316
[aac @ 0x1beda10] Provided packet is too small, needs to be 1136
[aac @ 0x1beda10] Provided packet is too small, needs to be 1460
[aac @ 0x1beda10] Provided packet is too small, needs to be 1323
[aac @ 0x1beda10] Provided packet is too small, needs to be 1277
[aac @ 0x1beda10] Provided packet is too small, needs to be 1338
[aac @ 0x1beda10] Provided packet is too small, needs to be 1169
[aac @ 0x1beda10] Provided packet is too small, needs to be 1053
[aac @ 0x1beda10] Provided packet is too small, needs to be 1402
[aac @ 0x1beda10] Provided packet is too small, needs to be 1307
[aac @ 0x1beda10] Provided packet is too small, needs to be 1265
[aac @ 0x1beda10] Provided packet is too small, needs to be 1034
2016-05-11 14:18:33.026 OpenAccount[2215:60b] Invoke        SnapShot(-1, 0x400, 0)=0
2016-05-11 14:18:33.028 OpenAccount[2215:60b] --------------------(
    343,
    3,
    2343
)--------
2016-05-11 14:18:33.030 OpenAccount[2215:60b] -----10241   ggg    ----343$3$2343
[aac @ 0x1beda10] Provided packet is too small, needs to be 1425
[aac @ 0x1beda10] Provided packet is too small, needs to be 1331
[aac @ 0x1beda10] Provided packet is too small, needs to be 1347
[NULL @ 0x1ec2010] Unable to find a suitable output format for '/var/mobile/Applications/A77E390F-1636-43D8-86CA-DD0BA86587A6/Documents{background:#3381E3}.open-status-main .status-sidebar{margin-left:4.6rem}.open-status-main .status-sidebar .shzl{margin-bottom:2rem}.open-status-main .status-sidebar .shzl dt{font-fami'

作者: huquan1991    时间: 2016-5-11 14:24
huquan1991 发表于 2016-5-11 14:23
对       OpenAccount[2215:b003] user(10243) record audio stream parameter: codec:11, 1 channel, 16 ...

这是不全的日志   最后一段代码会一直循环打印  
作者: huquan1991    时间: 2016-5-11 14:59
huquan1991 发表于 2016-5-11 14:24
这是不全的日志   最后一段代码会一直循环打印

而且这是偶然事件  我查了下   是不是anychat内部用的ffmpeg的技术啊, 我在网上搜的时候全出现这个相关的内容
作者: admin    时间: 2016-5-11 15:35
完整的日志信息有吗,包括前面库加载的记录,SDK初始化的记录等。
另外看日志,是在录像的过程中,同时使用API进行抓拍对吧?这种应用场景本身AnyChat是支持的,不会有冲突。

作者: huquan1991    时间: 2016-5-11 16:06
本帖最后由 huquan1991 于 2016-5-11 16:09 编辑
admin 发表于 2016-5-11 15:35
完整的日志信息有吗,包括前面库加载的记录,SDK初始化的记录等。
另外看日志,是在录像的过程中,同时使 ...

对啊   就是双向视频过程中   服务器那边发个消息给我  我就截屏  

---------------------------AnyChat Platform Core SDK Client Log---------------------------
2016-05-11 15:55:01.370 OpenAccount[2327:60b] Load libanychatcore.so success!(V5.3 Build Time:Aug 10 2015 12:28:15)
2016-05-11 15:55:01.397 OpenAccount[2327:60b] Load libmediautil.so success!(V5.3 Build Time:Aug 10 2015 12:28:30)
2016-05-11 15:55:01.412 OpenAccount[2327:60b] Load libmediashow.so success!(V5.3 Build Time:Aug 10 2015 12:28:27)
2016-05-11 15:55:01.429 OpenAccount[2327:60b] Load libmediacore.so success!(V5.3 Build Time:Aug 10 2015 12:28:25)
2016-05-11 15:55:01.882 OpenAccount[2327:60b] Invoke        Connect(10.10.81.169,8906)=0
2016-05-11 15:55:01.887 OpenAccount[2327:60b] Invoke        LoginServer(username=HKKH_1000507903)
2016-05-11 15:55:01.912 OpenAccount[2327:6b33] CheckClientSocketLink         Connect(ip=10.10.81.169,port=8906)
2016-05-11 15:55:01.964 OpenAccount[2327:6b33] Server version: V5.3(Build Time:2015-08-10 12:21:30, Server OS:Windows)
2016-05-11 15:55:01.969 OpenAccount[2327:6b33] Message        OnConnect(bSuccess:1, errorcode=0)
2016-05-11 15:55:02.349 OpenAccount[2327:6b33] Message        OnLoginSystem(userid=10261,errorcode=0,username=HKKH_1000507903), msg deliver worked(0)
2016-05-11 15:55:02.354 OpenAccount[2327:6b33] Load libmediautil.so success!(V5.3 Build Time:Aug 10 2015 12:28:30)
2016-05-11 15:55:02.357 OpenAccount[2327:6b33] Load libmediashow.so success!(V5.3 Build Time:Aug 10 2015 12:28:27)
2016-05-11 15:55:02.361 OpenAccount[2327:6b33] Load libmediacore.so success!(V5.3 Build Time:Aug 10 2015 12:28:25)
2016-05-11 15:55:02.365 OpenAccount[2327:6b33] Server running time: 5 days, 22 hours, 44 minutes, license mode:0
2016-05-11 15:55:02.369 OpenAccount[2327:60b] Object InitFlags:0x0
2016-05-11 15:55:02.381 OpenAccount[2327:6b33] Connection to streaming media server successfully!(udp delay:7ms)
2016-05-11 15:55:03.124 OpenAccount[2327:6b33] Area(10001) Object Event, unknow event:2, dwParam1:10261
2016-05-11 15:55:03.128 OpenAccount[2327:60b] 对象数据更新事件
2016-05-11 15:55:03.132 OpenAccount[2327:60b] 服务区域
2016-05-11 15:55:03.134 OpenAccount[2327:60b] 对象数据同步结束
2016-05-11 15:55:03.139 OpenAccount[2327:60b] 服务区域
2016-05-11 15:55:03.483 OpenAccount[2327:60b] 对象数据更新事件
2016-05-11 15:55:03.486 OpenAccount[2327:60b] 队列
2016-05-11 15:55:03.488 OpenAccount[2327:60b] 对象数据更新事件
2016-05-11 15:55:03.489 OpenAccount[2327:60b] 队列
2016-05-11 15:55:03.490 OpenAccount[2327:60b] 对象数据同步结束
2016-05-11 15:55:03.493 OpenAccount[2327:6b33] Area(10001) Object Event, Enter Result:0
2016-05-11 15:55:03.495 OpenAccount[2327:60b] 对象数据更新事件
2016-05-11 15:55:03.496 OpenAccount[2327:60b] 服务区域
2016-05-11 15:55:03.496 OpenAccount[2327:6b33] Area(10001) Object Event, unknow event:401, dwParam1:0
2016-05-11 15:55:03.497 OpenAccount[2327:60b] 进入服务区域成功
2016-05-11 15:55:03.508 OpenAccount[2327:60b] 服务区域状态变化
2016-05-11 15:55:03.564 OpenAccount[2327:60b] 队列状态变化
2016-05-11 15:55:03.573 OpenAccount[2327:60b] 用户进入队列成功
2016-05-11 15:55:03.596 OpenAccount[2327:60b] 队列状态变化
2016-05-11 15:55:05.576 OpenAccount[2327:6b33] Area(10001) Object Event, unknow event:401, dwParam1:0
2016-05-11 15:55:05.581 OpenAccount[2327:60b] 服务区域状态变化
2016-05-11 15:55:20.732 OpenAccount[2327:6b33] Area(10001) Object Event, unknow event:401, dwParam1:0
2016-05-11 15:55:20.741 OpenAccount[2327:60b] 坐席状态变化
2016-05-11 15:55:20.744 OpenAccount[2327:60b] 对象数据更新事件
2016-05-11 15:55:20.745 OpenAccount[2327:60b] 服务区域状态变化
2016-05-11 15:55:22.060 OpenAccount[2327:60b] 对象数据更新事件
2016-05-11 15:55:22.062 OpenAccount[2327:60b] 坐席服务通知
2016-05-11 15:55:22.064 OpenAccount[2327:60b] 坐席状态变化
2016-05-11 15:55:22.065 OpenAccount[2327:60b] 队列状态变化
2016-05-11 15:55:22.264 OpenAccount[2327:6b33] Message        OnVideoCallEvent(EventType:1, UserId:10262, ErrorCode:0, dwFlags:0x0, dwParam:0
2016-05-11 15:55:22.780 OpenAccount[2327:6b33] Area(10001) Object Event, unknow event:401, dwParam1:0
2016-05-11 15:55:22.889 OpenAccount[2327:60b] 服务区域状态变化
2016-05-11 15:55:28.266 OpenAccount[2327:60b] Invoke        VideoCallControl(EventType:2, UserId:10262, ErrorCode:0, dwFlags:0, dwParam:0, UserStrnull))=0
2016-05-11 15:55:28.309 OpenAccount[2327:6b33] Message        OnVideoCallEvent(EventType:3, UserId:10262, ErrorCode:0, dwFlags:0x0, dwParam:1
2016-05-11 15:55:28.320 OpenAccount[2327:60b] Invoke        EnterRoom(roomid=1)
2016-05-11 15:55:28.642 OpenAccount[2327:6b33] Message        OnEnterRoom(roomid=1,errorcode=0,siteindex=1)
2016-05-11 15:55:29.006 OpenAccount[2327:6b33] Audio Playback Device Init(0, 1, 16000, 16), ios Playback Driver
2016-05-11 15:55:29.013 OpenAccount[2327:6b33] Message        OnReceiveOnlineUser(count=2,roomid=1)
2016-05-11 15:55:29.027 OpenAccount[2327:6b33] On Remote UserCameraControl(dwUserId:10262, bOpen:1)
2016-05-11 15:55:29.029 OpenAccount[2327:60b] 10262
2016-05-11 15:55:29.033 OpenAccount[2327:6b33] On Remote UserSpeakControl(dwUserId:10262, bOpen:1)
2016-05-11 15:55:29.041 OpenAccount[2327:60b] Invoke        UserSpeakControl(userid=-1,bOpen=1)
2016-05-11 15:55:29.044 OpenAccount[2327:60b] Audio record control:1, result:-1
2016-05-11 15:55:29.047 OpenAccount[2327:60b] Invoke        UserCameraControl(userid=-1, bOpen=1, stream=0)
2016-05-11 15:55:29.050 OpenAccount[2327:60b] Invoke        SetVideoPos(dwUserId:-1, hWnd:0xe4877c0, l:0, t:0, r:0, b:0)
2016-05-11 15:55:29.089 OpenAccount[2327:60b] Invoke        StreamRecordCtrlEx(-1, 1, 0xa37, 0, StarServerMaxRecord)=0
2016-05-11 15:55:29.106 OpenAccount[2327:360f] Default Audio Capture Driver()
2016-05-11 15:55:29.110 OpenAccount[2327:360f] Audio Init, error:0, device:0, 1, 16000, 16, capmode:0
2016-05-11 15:55:29.138 OpenAccount[2327:360f] Audio codec init, handle:1, 11, 1, 16000, 16, 15850
2016-05-11 15:55:29.381 OpenAccount[2327:360f] WARNING: -[<AVCaptureConnection: 0xd69f50> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges
2016-05-11 15:55:29.385 OpenAccount[2327:360f] WARNING: -[<AVCaptureConnection: 0xd69f50> setVideoMinFrameDuration:] is deprecated.  Please use AVCaptureDevice setActiveVideoMinFrameDuration
2016-05-11 15:55:29.392 OpenAccount[2327:ac03] Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1
2016-05-11 15:55:29.539 OpenAccount[2327:6b33] Message        OnP2PConnectState(userid=10262, state=2)
2016-05-11 15:55:29.553 OpenAccount[2327:60b] -----------10262
2016-05-11 15:55:29.557 OpenAccount[2327:60b] Invoke        UserSpeakControl(userid=10262,bOpen=1)
2016-05-11 15:55:29.561 OpenAccount[2327:60b] Invoke        UserCameraControl(userid=10262, bOpen=1, stream=0)
2016-05-11 15:55:29.563 OpenAccount[2327:60b] Invoke        SetVideoPos(dwUserId:10262, hWnd:0xa9c0100, l:0, t:0, r:0, b:0)
2016-05-11 15:55:29.666 OpenAccount[2327:a50f] userid(10262) audio decode, codec:11, 1 channel, 16000Hz
2016-05-11 15:55:30.050 OpenAccount[2327:6b33] Message        OnP2PConnectState(userid=10262, state=3)
2016-05-11 15:55:30.271 OpenAccount[2327:360f] video init finish: 480x360, 25fps, fmt:100, ret:0
2016-05-11 15:55:30.294 OpenAccount[2327:360f] video init finish:480x360, YUV420, fps:25, codecid:1
[libx264 @ 0x19f6c10] using cpu capabilities: ARMv6 NEON
[libx264 @ 0x19f6c10] profile High, level 2.1
2016-05-11 15:55:30.497 OpenAccount[2327:4213] video codec init:codec:1, 25fps, 480x360, bitrate:0kbps, quality:5, preset:3, gop:30, handle:3
2016-05-11 15:55:30.925 OpenAccount[2327:bb4f] userid(10262) video decode, codec:1, 320x240, delay:140ms
2016-05-11 15:55:41.443 OpenAccount[2327:60b] Invoke        StreamRecordCtrlEx(-1, 0, 0x400, 0, SnapShot)=0
2016-05-11 15:55:41.444 OpenAccount[2327:60b] --------------------(
    4343,
    3,
    434
)--------
2016-05-11 15:55:41.445 OpenAccount[2327:60b] -----10262   ggg    ----4343$3$434
[NULL @ 0x1bba610] Unable to find a suitable output format for '/var/mobile/Applications/A567F844-B56B-46CD-A76A-F8E6278231DE/Documentsp:-1==n.indexOf("Safari"),winphone:!!n.match(/windows (ce|phone|nt)/i)}}(),languagenavigator.browserLanguage||navigator.language).toLowerCase()},!function(){function n(){var n='{"cal'
作者: huquan1991    时间: 2016-5-11 16:16
huquan1991 发表于 2016-5-11 16:06
对啊   就是双向视频过程中   服务器那边发个消息给我  我就截屏  

---------------------------AnyCh ...

后面只要不退  会一直打印最后一段代码
作者: admin    时间: 2016-5-12 09:29
Load libanychatcore.so success!(V5.3 Build Time:Aug 10 2015 12:28:15)
更新SDK到最新的6.0,看问题是否依然存在?
作者: wx_anychat    时间: 2016-5-30 10:37
admin 发表于 2016-5-12 09:29
更新SDK到最新的6.0,看问题是否依然存在?

我目前用的6.0的也出现了这种情况
---------------------------AnyChat Platform Core SDK Client Log---------------------------
2016-05-30 10:30:58.397 KQHTApp[2966:2813624] Load libanychatcore.so success!(V6.0 Build Time:May 22 2016 13:44:58)
2016-05-30 10:30:58.403 KQHTApp[2966:2813624] Load libmediautil.so success!(V6.0 Build Time:May 22 2016 13:45:13)
2016-05-30 10:30:58.404 KQHTApp[2966:2813624] Load libmediashow.so success!(V6.0 Build Time:May 22 2016 13:45:08)
2016-05-30 10:30:58.406 KQHTApp[2966:2813624] Load libmediacore.so success!(V6.0 Build Time:May 22 2016 13:45:05)
2016-05-30 10:30:58.437 KQHTApp[2966:2813624] Invoke        Connect(218.17.71.90,8906)=0
2016-05-30 10:30:58.439 KQHTApp[2966:2813624] Invoke        Login(username:AnyChat)=0
2016-05-30 10:30:58.439 KQHTApp[2966:2813624] 登录
2016-05-30 10:30:58.517 KQHTApp[2966:2813743] Create anychatdnsserver connect:218.17.71.90(8906)
2016-05-30 10:30:58.554 KQHTApp[2966:2813743] On pre-connection result, errorcode:0, anychatcoreserver, 218.17.71.90(8906, tcp:1)
2016-05-30 10:30:58.620 KQHTApp[2966:2813743] CheckClientSocketLink         Connect(ip=218.17.71.90,port=8906)
2016-05-30 10:30:58.655 KQHTApp[2966:2813743] Server version: V5.3(Build Time:2015-08-10 12:21:30, Server OS:Windows)
2016-05-30 10:30:58.655 KQHTApp[2966:2813743] Message        OnConnect(bSuccess:1, errorcode=0)
2016-05-30 10:30:58.942 KQHTApp[2966:2813743] Message        OnLoginSystem(userid=-1149,errorcode=0,username=AnyChat), msg deliver worked(0)
2016-05-30 10:30:58.945 KQHTApp[2966:2813743] Load libmediautil.so success!(V6.0 Build Time:May 22 2016 13:45:13)
2016-05-30 10:30:58.948 KQHTApp[2966:2813743] Load libmediashow.so success!(V6.0 Build Time:May 22 2016 13:45:08)
2016-05-30 10:30:58.951 KQHTApp[2966:2813743] Load libmediacore.so success!(V6.0 Build Time:May 22 2016 13:45:05)
2016-05-30 10:30:58.954 KQHTApp[2966:2813743] Server running time: 41 days, 20 hours, 20 minutes, license mode:0
2016-05-30 10:30:58.966 KQHTApp[2966:2813624] Invoke        SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=1)
2016-05-30 10:30:58.967 KQHTApp[2966:2813624] Apply video parameter:352x288, bitrate:180kbps, quality:3, gop:30, fps:12, preset:2, codec:1
2016-05-30 10:30:58.978 KQHTApp[2966:2813624] Invoke        EnterRoom(roomid=1)
2016-05-30 10:30:59.297 KQHTApp[2966:2813743] Message        OnEnterRoom(roomid=1,errorcode=0,siteindex=0)
2016-05-30 10:30:59.607 KQHTApp[2966:2813743] Init iOS audio finish, capture size:640
2016-05-30 10:30:59.609 KQHTApp[2966:2813743] Audio Playback Device Init(0, 1, 16000, 16), ios Playback Driver
2016-05-30 10:30:59.614 KQHTApp[2966:2813743] Message        OnReceiveOnlineUser(count=1,roomid=1)
2016-05-30 10:30:59.623 KQHTApp[2966:2813624] Invoke        SelectVideoCapture(2-Front Facing Camera)
2016-05-30 10:30:59.624 KQHTApp[2966:2813624] Invoke        UserSpeakControl(userid=-1,bOpen=1)
2016-05-30 10:30:59.626 KQHTApp[2966:2813624] Invoke        SetVideoPos(dwUserId:-1, hWnd:0x5d15ce00, l:0, t:0, r:0, b:0, dwStreamIndex:0)
2016-05-30 10:30:59.629 KQHTApp[2966:2813749] Default Audio Capture Driver()
2016-05-30 10:30:59.632 KQHTApp[2966:2813624] Invoke        UserCameraControl(userid=-1, bOpen=1, stream=0)
2016-05-30 10:30:59.635 KQHTApp[2966:2813749] Audio Init, error:0, device:0, 1, 16000, 16, capmode:0
2016-05-30 10:30:59.638 KQHTApp[2966:2813868] Audio FX Status: VAD:1, NS:1, AGC:0, AEC:0
2016-05-30 10:30:59.640 KQHTApp[2966:2813749] Audio codec init, handle:1, 11, 1, 16000, 16, 15850
2016-05-30 10:30:59.741 KQHTApp[2966:2813749] WARNING: -[<AVCaptureConnection: 0x5e37dce0> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges
2016-05-30 10:30:59.742 KQHTApp[2966:2813749] WARNING: -[<AVCaptureConnection: 0x5e37dce0> setVideoMinFrameDuration:] is deprecated.  Please use AVCaptureDevice setActiveVideoMinFrameDuration
2016-05-30 10:30:59.907 KQHTApp[2966:2813749] video init finish: 480x360, 25fps, fmt:106, ret:0
[libx264 @ 0x15d1ae610] using cpu capabilities: none!
[libx264 @ 0x15d1ae610] profile High, level 2.1
2016-05-30 10:30:59.921 KQHTApp[2966:2813749] video init finish:480x360, NV12, fps:25, codecid:1
2016-05-30 10:31:01.008 KQHTApp[2966:2813743] Connection to streaming media server successfully!(udp delay:8ms)
2016-05-30 10:31:01.688 KQHTApp[2966:2813624] Invoke        StreamRecordCtrlEx(-1, 1, 0x803, 0, )=0
2016-05-30 10:31:01.701 KQHTApp[2966:2813868] user(-1149) record audio stream parameter: codec:11, 1 channel, 16000Hz
[libx264 @ 0x15da79e10] using cpu capabilities: none!
[libx264 @ 0x15da79e10] profile High, level 2.1
2016-05-30 10:31:01.735 KQHTApp[2966:2813708] video codec init:codec:1, 12fps, 480x360, bitrate:180kbps, quality:3, preset:2, gop:30, handle:3
2016-05-30 10:31:01.738 KQHTApp[2966:2813708] User(-1149) record video stream parameter: codec:1, 360x480, 12fps
[NULL @ 0x15d1cba10] Unable to find a suitable output format for '(null)'
2016-05-30 10:31:01.753 KQHTApp[2966:2813743] User(-1149) record init failed! bAudioPrepare:1, bVideoPrepare:1, dwFlags:0x803, dwFileType:0
2016-05-30 10:31:01.754 KQHTApp[2966:2813743]         record audio parameter: codecid:11, 2 channel, 16.0kHz, 0kbps
2016-05-30 10:31:01.756 KQHTApp[2966:2813743]         record video parameter: codecid:1, 360x480, 0kbps
[NULL @ 0x15d1b6210] Unable to find a suitable output format for '(null)'
[NULL @ 0x15d1b6210] Unable to find a suitable output format for '(null)'
[NULL @ 0x15d1b6210] Unable to find a suitable output format for '(null)'
[NULL @ 0x15d1b6210] Unable to find a suitable output format for '(null)'
[NULL @ 0x15d1b6210] Unable to find a suitable output format for '(null)'
[NULL @ 0x15d1b6210] Unable to find a suitable output format for '(null)'
[NULL @ 0x15d1cae10] Unable to find a suitable output format for '(null)'
[NULL @ 0x15d834e10] Unable to find a suitable output format for '(
作者: admin    时间: 2016-5-30 12:22
[NULL @ 0x15d1cba10] Unable to find a suitable output format for '(null)'
2016-05-30 10:31:01.753 KQHTApp[2966:2813743] User(-1149) record init failed! bAudioPrepare:1, bVideoPrepare:1, dwFlags:0x803, dwFileType:0
2016-05-30 10:31:01.754 KQHTApp[2966:2813743]         record audio parameter: codecid:11, 2 channel, 16.0kHz, 0kbps
2016-05-30 10:31:01.756 KQHTApp[2966:2813743]         record video parameter: codecid:1, 360x480, 0kbps


您这边是录像?因为:dwFlags:0x803,是每次都不正常,还是偶尔不正常,有什么规律吗?
作者: wx_anychat    时间: 2016-5-30 13:38
admin 发表于 2016-5-30 12:22
您这边是录像?因为:dwFlags:0x803,是每次都不正常,还是偶尔不正常,有什么规律吗?

没有固定规律,出现概率有点高
作者: wx_anychat    时间: 2016-5-30 13:40
admin 发表于 2016-5-30 12:22
您这边是录像?因为:dwFlags:0x803,是每次都不正常,还是偶尔不正常,有什么规律吗?

int theRecordId = -1;
    theLocalRecordFlags = ANYCHAT_RECORD_FLAGS_AUDIO + ANYCHAT_RECORD_FLAGS_VIDEO + ANYCHAT_RECORD_FLAGS_LOCALCB;

[AnyChatPlatform StreamRecordCtrlEx: theRecordId
                                           : YES
                                           : theLocalRecordFlags
                                           : 0
                                           : @"StarLocolSelfRecord"];


我是这样调用录制的
作者: wx_anychat    时间: 2016-5-30 13:47
admin 发表于 2016-5-30 12:22
您这边是录像?因为:dwFlags:0x803,是每次都不正常,还是偶尔不正常,有什么规律吗?


一旦出现这种问题,如果我点击停止录制,如下:
[AnyChatPlatform StreamRecordCtrlEx: theRecordId
                                               : NO
                                               : theLocalRecordFlags
                                               : 0
                                               : @"StopLocolRecord"];
程序并不会进入录制结束的回调方法里面
- (void) OnAnyChatRecordCallBack:(int) dwUserid : (int) dwErrorCode : (NSString*) lpFileName : (int) dwElapse : (int) dwFlags : (int) dwParam : (NSString*) lpUserStr,也就是这个方法不走了
作者: admin    时间: 2016-5-30 14:15
您可以试一下我们SDK包里面内置的一个示例工程,单向视频解决方案:AnyChatSelfRecord,看录像、拍照是否正常?
作者: wx_anychat    时间: 2016-5-30 14:24
admin 发表于 2016-5-30 14:15
您可以试一下我们SDK包里面内置的一个示例工程,单向视频解决方案:AnyChatSelfRecord,看录像、拍照是否正 ...

我是根据这个Demo来改的




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