AnyChat技术支持论坛
标题:
视频质量显示
[打印本页]
作者:
jycainiao
时间:
2016-6-2 10:02
标题:
视频质量显示
anychat能不能设置远程的显示效果呢? 比如 远程上传的是1920*1208 25fps 码率1M的 我这边网速不好 需要调低一点 怎么搞啊? 我看只有设置上传的参数 也就是给远程发送的视频的参数啊
作者:
佰锐科技-白玉冰
时间:
2016-6-2 10:32
你好,接收方是无法处理的,你可以让发送方 进行调节。
作者:
jycainiao
时间:
2016-6-2 10:47
手机端怎么设置发送的视频的参数? 还有就是关于Java视频采集的问题 我如果进行判断后 视频不能显示 不进行判断 然后直接设置videoIndex = anychatSDK.mVideoHelper.bindVideo(mSurfaceRemote
.getHolder());
anychatSDK.mVideoHelper.SetVideoUser(videoIndex,
anyChatServicekfUserID);
这样子可以正常显示视频 是什么原因呢? 方法我也在oncreate里面调用了
作者:
佰锐科技-白玉冰
时间:
2016-6-2 11:40
首先,关于 设置本地视频采集分辨率:
AnyChatCoreSDK.SetSDKOptionInt(AnyChatDefine.BRAC_SO_LOCALVIDEO_WIDTHCTRL, configEntity.resolution_width);
AnyChatCoreSDK.SetSDKOptionInt(AnyChatDefine.BRAC_SO_LOCALVIDEO_HEIGHTCTRL, configEntity.resolution_height);
然后,关于java视频采集异常问题,麻烦贴下对应的日志。
作者:
jycainiao
时间:
2016-6-2 13:39
这个是在哪里设置呢?
作者:
佰锐科技-白玉冰
时间:
2016-6-2 13:50
本地视频参数可以自定义设置,可以在程序中SDK初始化完成之后调用。
作者:
jycainiao
时间:
2016-6-2 14:43
日志找不到了 内存卡里面没有了 郁闷 什么情况啊
作者:
jycainiao
时间:
2016-6-2 14:58
日志如下
[2016-06-02 14:50:19(541)] ---------------------------AnyChat Platform Core SDK Client Log---------------------------
[2016-06-02 14:50:19(542)] Load libanychatcore.so success!(V6.0 Build Time:Mar 22 2016 10:51:35)
[2016-06-02 14:50:19(543)] Android OS SDK Version:19, Support ARMv7:2, Support Neon:4
[2016-06-02 14:50:19(567)] Load libmediautil_v7.so success!(V6.0 Build Time:Mar 22 2016 10:54:01)
[2016-06-02 14:50:19(578)] Load libmediashow.so success!(V6.0 Build Time:Mar 22 2016 10:53:38)
[2016-06-02 14:50:19(589)] Load libmediacore.so success!(V6.0 Build Time:Mar 22 2016 10:53:43)
[2016-06-02 14:50:19(591)] HM 2A(Xiaomi) lc1860 4.4.4
[2016-06-02 14:50:32(521)] Invoke Connect(192.168.1.188,8021)=0
[2016-06-02 14:50:33(588)] Create anychatdnsserver connect:192.168.1.188(8021)
[2016-06-02 14:50:34(205)] On pre-connection result, errorcode:0, anychatcoreserver, 192.168.1.188(8021, tcp:1)
[2016-06-02 14:50:34(207)] CheckClientSocketLink Connect(ip=192.168.1.188,port=8021)
[2016-06-02 14:50:34(262)] Server version: V6.0(Build Time:2016-05-16 17:03:39, Server OS:Windows)
[2016-06-02 14:50:34(316)] Message OnConnect(bSuccess:1, errorcode=0)
[2016-06-02 14:50:34(338)] Invoke Login(username:yourname)=0
[2016-06-02 14:50:34(411)] Message OnLoginSystem(userid=-11,errorcode=0,username=yourname), msg deliver worked(0)
[2016-06-02 14:50:34(413)] Server running time: 0 days, 0 hours, 27 minutes, license mode:0
[2016-06-02 14:50:34(421)] Invoke EnterRoom(roomid=1)
[2016-06-02 14:50:34(426)] Connection to streaming media server successfully!(udp delay:5ms)
[2016-06-02 14:50:34(501)] Message OnEnterRoom(roomid=1,errorcode=0,siteindex=1)
[2016-06-02 14:50:34(503)] Audio Playback Device Init(0, 1, 16000, 16), Default Playback Driver
[2016-06-02 14:50:34(506)] Message OnReceiveOnlineUser(count=2,roomid=1)
[2016-06-02 14:50:34(554)] Invoke UserSpeakControl(userid=-1,bOpen=1)
[2016-06-02 14:50:34(555)] Invoke UserSpeakControl(userid=-10,bOpen=1)
[2016-06-02 14:50:34(682)] Invoke SetInputAudioFormat(1, 16000, 16, flags:0)
[2016-06-02 14:50:34(684)] Audio Init, error:0, device:-1, 1, 16000, 16, capmode:0
[2016-06-02 14:50:34(685)] Audio codec init, handle:1, 11, 1, 16000, 16, 15850
[2016-06-02 14:50:34(796)] Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1
[2016-06-02 14:50:34(832)] Message OnP2PConnectState(userid=-10, state=1)
[2016-06-02 14:50:36(142)] Message OnP2PConnectState(userid=-10, state=3)
[2016-06-02 14:50:42(782)] On Remote UserCameraControl(dwUserId:-10, bOpen:1)
[2016-06-02 14:50:42(844)] On Remote UserSpeakControl(dwUserId:-10, bOpen:1)
[2016-06-02 14:51:13(902)] Invoke UserCameraControl(userid=-1, bOpen=1, stream=0)
[2016-06-02 14:51:13(903)] Invoke UserCameraControl(userid=-10, bOpen=1, stream=0)
[2016-06-02 14:51:14(007)] userid(-10) video decode, codec:1, 352x288, delay:20ms
[2016-06-02 14:51:14(314)] APPLOG Camera Preview size: 1280 x 960
[2016-06-02 14:51:14(320)] APPLOG Camera Preview size: 1280 x 720
[2016-06-02 14:51:14(323)] APPLOG Camera Preview size: 768 x 432
[2016-06-02 14:51:14(325)] APPLOG Camera Preview size: 720 x 480
[2016-06-02 14:51:14(326)] APPLOG Camera Preview size: 640 x 480
[2016-06-02 14:51:14(328)] APPLOG Camera Preview size: 640 x 352
[2016-06-02 14:51:14(329)] APPLOG Camera Preview size: 352 x 288
[2016-06-02 14:51:14(331)] APPLOG Camera Preview size: 320 x 240
[2016-06-02 14:51:14(332)] APPLOG Camera FrameRate: 4000 , 30000
[2016-06-02 14:51:14(422)] Invoke SetSDKOption(BRAC_SO_CORESDK_EXTVIDEOINPUT=1)
[2016-06-02 14:51:14(423)] Invoke SetInputVideoFormat(pixfmt:8, 320x240, 30fps, flags:0)
[2016-06-02 14:51:14(482)] video init finish:320x240, NV21, fps:30, codecid:1
[2016-06-02 14:51:14(508)] Invoke SetSDKOption(BRAC_SO_CORESDK_EXTVIDEOINPUT=1)
[2016-06-02 14:51:14(515)] Invoke SetInputVideoFormat(pixfmt:8, 320x240, 30fps, flags:0)
[2016-06-02 14:51:14(571)] video init finish:320x240, NV21, fps:30, codecid:1
[2016-06-02 14:51:14(644)] video codec init:codec:1, 15fps, 320x240, bitrate:90kbps, quality:3, preset:3, gop:30, handle:5
[2016-06-02 14:51:44(477)] Invoke UserCameraControl(userid=-1, bOpen=0, stream=0)
[2016-06-02 14:51:44(485)] Invoke UserCameraControl(userid=-10, bOpen=0, stream=0)
[2016-06-02 14:51:44(496)] Invoke UserSpeakControl(userid=-1,bOpen=0)
[2016-06-02 14:51:44(502)] Invoke UserSpeakControl(userid=-10,bOpen=0)
[2016-06-02 14:51:44(616)] Invoke LeaveRoom(roomid=-1) Elapse:111 ms
[2016-06-02 14:51:44(658)] Invoke LogoutServer(userid=-11) Elapse:40 ms
[2016-06-02 14:51:44(710)] Invoke BRAC_Release Elapse:51 ms
作者:
jycainiao
时间:
2016-6-2 14:59
我现在看不到远程的视频 什么情况 是不是远程也要设置什么东西啊? 远程是PC端的 用的网页
作者:
佰锐科技-白玉冰
时间:
2016-6-2 15:13
日志是没有问题的。另外,你可以看下这里是否设置:
// 如果是采用Java视频采集,则设置Surface的CallBack
if (AnyChatCoreSDK.GetSDKOptionInt(AnyChatDefine.BRAC_SO_LOCALVIDEO_CAPDRIVER) == AnyChatDefine.VIDEOCAP_DRIVER_JAVA) {
mSurfaceSelf.getHolder().addCallback(AnyChatCoreSDK.mCameraHelper);
Log.i("ANYCHAT", "VIDEOCAPTRUE---" + "JAVA");
}
// 如果是采用Java视频显示,则设置Surface的CallBack
if (AnyChatCoreSDK.GetSDKOptionInt(AnyChatDefine.BRAC_SO_VIDEOSHOW_DRIVERCTRL) == AnyChatDefine.VIDEOSHOW_DRIVER_JAVA) {
videoIndex = anychat.mVideoHelper.bindVideo(mSurfaceRemote.getHolder());
anychat.mVideoHelper.SetVideoUser(videoIndex, dwTargetUserId);
Log.i("ANYCHAT", "VIDEOSHOW---" + "JAVA");
}
复制代码
作者:
jycainiao
时间:
2016-6-2 18:43
这个只有if 如果if不成立怎么办 虽然我不懂if里面是什么
欢迎光临 AnyChat技术支持论坛 (http://bbs.anychat.cn/)
Powered by Discuz! X3