自采集报错, 请问是什么原因?

代码:
public void agora3(ByteBuffer frameData){
// int len = frameData.capacity();
byte[] yuv = new byte[frameData.capacity()];
frameData.rewind();
frameData.get(yuv);

    AgoraVideoFrame vf = new AgoraVideoFrame();
    vf.format = AgoraVideoFrame.FORMAT_NV21;
    vf.timeStamp = System.currentTimeMillis();
    vf.stride = 640;
    vf.height = 480;
    vf.rotation = 0;
    vf.buf = yuv;
    QLog.e("111111111声网当前版本__: 开始推送" );
    try{
        boolean b = mRtcEngine.pushExternalVideoFrame(vf);
        QLog.e("111111111声网当前版本__: 推送视频是否成功 === " + b);
    }catch(Exception e) {
        QLog.e("111111111声网当前版本__: 推送视频是否成功 === " + e.getLocalizedMessage());
    }
}

你们是要做自采集吗?具体的业务场景是什么呢?从日志来看是发生了崩溃。
麻烦请提供一下你的api调用逻辑?
你跑下这个自采集demo看下,是否可以正常运行:

一下是我API 调用的顺序:
public void agora2(Context a){

    try {
        mRtcEngine = RtcEngine.create(a, "************", mRtcEventHandler);
        QLog.e("111111111声网当前版本__:  " + mRtcEngine.getSdkVersion());
    } catch (Exception e) {
        QLog.e("111111111声网当前版本__:  " + e.getLocalizedMessage());
    }
    mRtcEngine.enableWebSdkInteroperability(true);
    mRtcEngine.enableVideo();
    mRtcEngine.setVideoEncoderConfiguration(new VideoEncoderConfiguration(VideoEncoderConfiguration.VD_480x360, FRAME_RATE_FPS_15, STANDARD_BITRATE, VideoEncoderConfiguration.ORIENTATION_MODE.ORIENTATION_MODE_FIXED_LANDSCAPE));
    mRtcEngine.setExternalVideoSource(true,false , true);
    QLog.e("111111111声网当前版本__: 完成");

    mRtcEngine.joinChannel(null, "1000", "Extra Optional Data", 0);
}

public void agora3(ByteBuffer frameData){

// int len = frameData.capacity();
byte[] yuv = new byte[frameData.capacity()];
frameData.rewind();
frameData.get(yuv);

    AgoraVideoFrame vf = new AgoraVideoFrame();
    vf.format = AgoraVideoFrame.FORMAT_NV21;
    vf.timeStamp = System.currentTimeMillis();
    vf.stride = 640;
    vf.height = 480;
    vf.rotation = 0;
    vf.buf = yuv;
    QLog.e("111111111声网当前版本__: 开始推送" );
    try{
        boolean b = mRtcEngine.pushExternalVideoFrame(vf);
        QLog.e("111111111声网当前版本__: 推送视频是否成功 === " + b);
    }catch(Exception e) {
        QLog.e("111111111声网当前版本__: 推送视频是否成功 === " + e.getLocalizedMessage());
    }
}

pushExternalVideoFrame 方法的返回值是多少?要在joinchannel前调用pushExternalVideoFrame的。你试试看直接改下demo的pushExternalVideoFrame参数,跑下看看?

推送成功了几次, 然后就闪退了, joinchanne 前后调用都试过了, 都一样报错

是连续推送成功了几次?从你提供的业务日志来看,为什么隔了 1s 立刻重新调用 push 来推流呢?为什么要这么操作?

不是这样操作的吗? 视频流回调多少次就会有多少次push呀,
image

这个是我拿视频流的地方, 我写了一个回到到我的项目里面, 然后直接在回调的方法里面push的

嗯嗯,是我前面理解错了你打印的地方。
请确认和提供以下内容:
1、必现还是偶现?如果是偶现,发生概率大约是多少?
2、对端能看到一开始push成功的视频流吗?还是一直看不到?
3、提供 SDK log。
4、提供具体的崩溃堆栈信息。如果是 IOS 端,需要符号化堆栈后再提供给我们。
5、提供这部分的集成代码。

第一个问题: 百分百出现
第二个问题: web端可以看到画面,


第四个问题: 我抓取系统日志;抓取的系统日志.zip (6.4 KB)
第五个问题:
API调用.zip (1.2 KB)

请问,第三个问题, SDK 日志保存的路径在哪里?

SDK 日志默认路径为: /sdcard/{App 的包名}/agorasdk.log。
对端看到的画面不对啊,这都花屏了呀?而且正确的调用逻辑应该是先 push 再 join。你的 API 调用时序好几处都和 demo 不一样啊。你先把 demo 给跑通吧,如果 demo 也能复现你的问题,那我们这边再排查一下。

运行官方demo, agora-video-source-android 这个项目, web有声没画面是怎么回事?

安卓端在加入频道前请调用一下 enableWebSdkInteroperability 方法打开互通哈:

rtcEngine.enableWebSdkInteroperability(true);

此外,可以将 pushExternalVideoFrame 方法的参数设为你们需要的。


官方demo跑通了, 是正常运行, 没有出现我之前出现的问题,

之前我将 joinChannel 放在了 pushExternalVideoFrame后面也测试过, 也是出现同样的问题

好的。你对照着demo的VideoChatViewActivity.java文件,检查下自己的集成逻辑哈。

对比了, mRtcEngine 的初始化都一样, 不一样的是在获取视频流进行推流的地方.
我现在测试, 注释掉 joinChannel 方法后, 推流一直成功不会报错, 只要执行了joinChannel, 回调onJoinChannelSuccess后就报之前的错,

我使用定时器 定时10后 才执行 joinChannel,

我打印的日志
2019-09-17 15:51:42.884 10943-11267/com.gdvictor.ivhelmet E/AbsUVCCameraHandler: mIFrameCallback
2019-09-17 15:51:42.885 10943-11267/com.gdvictor.ivhelmet E/DWQ_LOG: agora3(AgoraManifest.java:276)111111111声网当前版本__: 推送视频是否成功 === true
2019-09-17 15:51:42.906 10943-11260/com.gdvictor.ivhelmet E/GLDrawer2D1: draw:texIds[1]==else:2
2019-09-17 15:51:42.961 10943-11267/com.gdvictor.ivhelmet E/AbsUVCCameraHandler: mIFrameCallback
2019-09-17 15:51:42.964 10943-11267/com.gdvictor.ivhelmet E/DWQ_LOG: agora3(AgoraManifest.java:276)111111111声网当前版本__: 推送视频是否成功 === true
2019-09-17 15:51:42.968 10943-11260/com.gdvictor.ivhelmet E/GLDrawer2D1: draw:texIds[1]==else:2
2019-09-17 15:51:43.041 10943-11267/com.gdvictor.ivhelmet E/AbsUVCCameraHandler: mIFrameCallback
2019-09-17 15:51:43.043 10943-11267/com.gdvictor.ivhelmet E/DWQ_LOG: agora3(AgoraManifest.java:276)111111111声网当前版本__: 推送视频是否成功 === true
2019-09-17 15:51:43.048 10943-11260/com.gdvictor.ivhelmet E/GLDrawer2D1: draw:texIds[1]==else:2
2019-09-17 15:51:43.121 10943-11267/com.gdvictor.ivhelmet E/AbsUVCCameraHandler: mIFrameCallback
2019-09-17 15:51:43.123 10943-11267/com.gdvictor.ivhelmet E/DWQ_LOG: agora3(AgoraManifest.java:276)111111111声网当前版本__: 推送视频是否成功 === true
2019-09-17 15:51:43.128 10943-11260/com.gdvictor.ivhelmet E/GLDrawer2D1: draw:texIds[1]==else:2
2019-09-17 15:51:43.205 10943-11267/com.gdvictor.ivhelmet E/AbsUVCCameraHandler: mIFrameCallback
2019-09-17 15:51:43.206 10943-11267/com.gdvictor.ivhelmet E/DWQ_LOG: agora3(AgoraManifest.java:276)111111111声网当前版本__: 推送视频是否成功 === true
2019-09-17 15:51:43.211 10943-11260/com.gdvictor.ivhelmet E/GLDrawer2D1: draw:texIds[1]==else:2
2019-09-17 15:51:43.283 10943-11267/com.gdvictor.ivhelmet E/AbsUVCCameraHandler: mIFrameCallback
2019-09-17 15:51:43.286 10943-11267/com.gdvictor.ivhelmet E/DWQ_LOG: agora3(AgoraManifest.java:276)111111111声网当前版本__: 推送视频是否成功 === true
2019-09-17 15:51:43.291 10943-11260/com.gdvictor.ivhelmet E/GLDrawer2D1: draw:texIds[1]==else:2
2019-09-17 15:51:43.361 10943-11267/com.gdvictor.ivhelmet E/AbsUVCCameraHandler: mIFrameCallback
2019-09-17 15:51:43.363 10943-11267/com.gdvictor.ivhelmet E/DWQ_LOG: agora3(AgoraManifest.java:276)111111111声网当前版本__: 推送视频是否成功 === true
2019-09-17 15:51:43.370 10943-11260/com.gdvictor.ivhelmet E/GLDrawer2D1: draw:texIds[1]==else:2
2019-09-17 15:51:43.442 10943-11267/com.gdvictor.ivhelmet E/AbsUVCCameraHandler: mIFrameCallback
2019-09-17 15:51:43.444 10943-11267/com.gdvictor.ivhelmet E/DWQ_LOG: agora3(AgoraManifest.java:276)111111111声网当前版本__: 推送视频是否成功 === true
2019-09-17 15:51:43.450 10943-11260/com.gdvictor.ivhelmet E/GLDrawer2D1: draw:texIds[1]==else:2
2019-09-17 15:51:43.604 10943-11267/com.gdvictor.ivhelmet E/AbsUVCCameraHandler: mIFrameCallback
2019-09-17 15:51:43.605 10943-11267/com.gdvictor.ivhelmet E/DWQ_LOG: agora3(AgoraManifest.java:276)111111111声网当前版本__: 推送视频是否成功 === true
2019-09-17 15:51:43.611 10943-11260/com.gdvictor.ivhelmet E/GLDrawer2D1: draw:texIds[1]==else:2
2019-09-17 15:51:43.679 10943-11267/com.gdvictor.ivhelmet E/AbsUVCCameraHandler: mIFrameCallback
2019-09-17 15:51:43.680 10943-11267/com.gdvictor.ivhelmet E/DWQ_LOG: agora3(AgoraManifest.java:276)111111111声网当前版本__: 推送视频是否成功 === true
2019-09-17 15:51:43.686 10943-11260/com.gdvictor.ivhelmet E/GLDrawer2D1: draw:texIds[1]==else:2
2019-09-17 15:51:43.764 10943-11267/com.gdvictor.ivhelmet E/AbsUVCCameraHandler: mIFrameCallback
2019-09-17 15:51:43.766 10943-11267/com.gdvictor.ivhelmet E/DWQ_LOG: agora3(AgoraManifest.java:276)111111111声网当前版本__: 推送视频是否成功 === true
2019-09-17 15:51:43.768 10943-11260/com.gdvictor.ivhelmet E/GLDrawer2D1: draw:texIds[1]==else:2
2019-09-17 15:51:43.841 10943-11267/com.gdvictor.ivhelmet E/AbsUVCCameraHandler: mIFrameCallback
2019-09-17 15:51:43.843 10943-11267/com.gdvictor.ivhelmet E/DWQ_LOG: agora3(AgoraManifest.java:276)111111111声网当前版本__: 推送视频是否成功 === true
2019-09-17 15:51:43.848 10943-11260/com.gdvictor.ivhelmet E/GLDrawer2D1: draw:texIds[1]==else:2
2019-09-17 15:51:43.920 10943-11267/com.gdvictor.ivhelmet E/AbsUVCCameraHandler: mIFrameCallback
2019-09-17 15:51:43.922 10943-11267/com.gdvictor.ivhelmet E/DWQ_LOG: agora3(AgoraManifest.java:276)111111111声网当前版本__: 推送视频是否成功 === true
2019-09-17 15:51:43.927 10943-11260/com.gdvictor.ivhelmet E/GLDrawer2D1: draw:texIds[1]==else:2
2019-09-17 15:51:43.999 10943-11267/com.gdvictor.ivhelmet E/AbsUVCCameraHandler: mIFrameCallback
2019-09-17 15:51:44.001 10943-11267/com.gdvictor.ivhelmet E/DWQ_LOG: agora3(AgoraManifest.java:276)111111111声网当前版本__: 推送视频是否成功 === true
2019-09-17 15:51:44.009 10943-11260/com.gdvictor.ivhelmet E/GLDrawer2D1: draw:texIds[1]==else:2
2019-09-17 15:51:44.080 10943-11267/com.gdvictor.ivhelmet E/AbsUVCCameraHandler: mIFrameCallback
2019-09-17 15:51:44.082 10943-11267/com.gdvictor.ivhelmet E/DWQ_LOG: agora3(AgoraManifest.java:276)111111111声网当前版本__: 推送视频是否成功 === true
2019-09-17 15:51:44.088 10943-11260/com.gdvictor.ivhelmet E/GLDrawer2D1: draw:texIds[1]==else:2
2019-09-17 15:51:44.161 10943-11267/com.gdvictor.ivhelmet E/AbsUVCCameraHandler: mIFrameCallback
2019-09-17 15:51:44.163 10943-11267/com.gdvictor.ivhelmet E/DWQ_LOG: agora3(AgoraManifest.java:276)111111111声网当前版本__: 推送视频是否成功 === true
2019-09-17 15:51:44.167 10943-11260/com.gdvictor.ivhelmet E/GLDrawer2D1: draw:texIds[1]==else:2
2019-09-17 15:51:44.244 10943-11267/com.gdvictor.ivhelmet E/AbsUVCCameraHandler: mIFrameCallback
2019-09-17 15:51:44.245 10943-11267/com.gdvictor.ivhelmet E/DWQ_LOG: agora3(AgoraManifest.java:276)111111111声网当前版本__: 推送视频是否成功 === true
2019-09-17 15:51:44.251 10943-11260/com.gdvictor.ivhelmet E/GLDrawer2D1: draw:texIds[1]==else:2
2019-09-17 15:51:44.321 10943-11267/com.gdvictor.ivhelmet E/AbsUVCCameraHandler: mIFrameCallback
2019-09-17 15:51:44.323 10943-11267/com.gdvictor.ivhelmet E/DWQ_LOG: agora3(AgoraManifest.java:276)111111111声网当前版本__: 推送视频是否成功 === true
2019-09-17 15:51:44.329 10943-11260/com.gdvictor.ivhelmet E/GLDrawer2D1: draw:texIds[1]==else:2
2019-09-17 15:51:44.401 10943-11267/com.gdvictor.ivhelmet E/AbsUVCCameraHandler: mIFrameCallback
2019-09-17 15:51:44.403 10943-11267/com.gdvictor.ivhelmet E/DWQ_LOG: agora3(AgoraManifest.java:276)111111111声网当前版本__: 推送视频是否成功 === true
2019-09-17 15:51:44.405 10943-11260/com.gdvictor.ivhelmet E/GLDrawer2D1: draw:texIds[1]==else:2
2019-09-17 15:51:44.480 10943-11267/com.gdvictor.ivhelmet E/AbsUVCCameraHandler: mIFrameCallback
2019-09-17 15:51:44.481 10943-11267/com.gdvictor.ivhelmet E/DWQ_LOG: agora3(AgoraManifest.java:276)111111111声网当前版本__: 推送视频是否成功 === true
2019-09-17 15:51:44.489 10943-11260/com.gdvictor.ivhelmet E/GLDrawer2D1: draw:texIds[1]==else:2
2019-09-17 15:51:44.562 10943-11267/com.gdvictor.ivhelmet E/AbsUVCCameraHandler: mIFrameCallback
2019-09-17 15:51:44.563 10943-11267/com.gdvictor.ivhelmet E/DWQ_LOG: agora3(AgoraManifest.java:276)111111111声网当前版本__: 推送视频是否成功 === true
2019-09-17 15:51:44.570 10943-11260/com.gdvictor.ivhelmet E/GLDrawer2D1: draw:texIds[1]==else:2
2019-09-17 15:51:44.641 10943-11267/com.gdvictor.ivhelmet E/AbsUVCCameraHandler: mIFrameCallback
2019-09-17 15:51:44.643 10943-11267/com.gdvictor.ivhelmet E/DWQ_LOG: agora3(AgoraManifest.java:276)111111111声网当前版本__: 推送视频是否成功 === true
2019-09-17 15:51:44.647 10943-11260/com.gdvictor.ivhelmet E/GLDrawer2D1: draw:texIds[1]==else:2
2019-09-17 15:51:44.700 10943-10943/com.gdvictor.ivhelmet E/DWQ_LOG: run(AgoraManifest.java:252)开始加入房间*******************************
2019-09-17 15:51:44.726 10943-11267/com.gdvictor.ivhelmet E/AbsUVCCameraHandler: mIFrameCallback
2019-09-17 15:51:44.729 10943-11267/com.gdvictor.ivhelmet E/DWQ_LOG: agora3(AgoraManifest.java:276)111111111声网当前版本__: 推送视频是否成功 === true
2019-09-17 15:51:44.732 10943-11260/com.gdvictor.ivhelmet E/GLDrawer2D1: draw:texIds[1]==else:2
2019-09-17 15:51:44.808 10943-11267/com.gdvictor.ivhelmet E/AbsUVCCameraHandler: mIFrameCallback
2019-09-17 15:51:44.810 10943-11267/com.gdvictor.ivhelmet E/DWQ_LOG: agora3(AgoraManifest.java:276)111111111声网当前版本__: 推送视频是否成功 === true
2019-09-17 15:51:44.810 10943-11260/com.gdvictor.ivhelmet E/GLDrawer2D1: draw:texIds[1]==else:2
2019-09-17 15:51:44.882 10943-11267/com.gdvictor.ivhelmet E/AbsUVCCameraHandler: mIFrameCallback
2019-09-17 15:51:44.883 10943-11267/com.gdvictor.ivhelmet E/DWQ_LOG: agora3(AgoraManifest.java:276)111111111声网当前版本__: 推送视频是否成功 === true
2019-09-17 15:51:44.886 10943-11260/com.gdvictor.ivhelmet E/GLDrawer2D1: draw:texIds[1]==else:2
2019-09-17 15:51:44.960 10943-11267/com.gdvictor.ivhelmet E/AbsUVCCameraHandler: mIFrameCallback
2019-09-17 15:51:44.962 10943-11267/com.gdvictor.ivhelmet E/DWQ_LOG: agora3(AgoraManifest.java:276)111111111声网当前版本__: 推送视频是否成功 === true
2019-09-17 15:51:44.967 10943-11260/com.gdvictor.ivhelmet E/GLDrawer2D1: draw:texIds[1]==else:2
2019-09-17 15:51:45.040 10943-11267/com.gdvictor.ivhelmet E/AbsUVCCameraHandler: mIFrameCallback
2019-09-17 15:51:45.043 10943-11267/com.gdvictor.ivhelmet E/DWQ_LOG: agora3(AgoraManifest.java:276)111111111声网当前版本__: 推送视频是否成功 === true
2019-09-17 15:51:45.047 10943-11260/com.gdvictor.ivhelmet E/GLDrawer2D1: draw:texIds[1]==else:2
2019-09-17 15:51:45.122 10943-11267/com.gdvictor.ivhelmet E/AbsUVCCameraHandler: mIFrameCallback
2019-09-17 15:51:45.124 10943-11267/com.gdvictor.ivhelmet E/DWQ_LOG: agora3(AgoraManifest.java:276)111111111声网当前版本__: 推送视频是否成功 === true
2019-09-17 15:51:45.128 10943-11260/com.gdvictor.ivhelmet E/GLDrawer2D1: draw:texIds[1]==else:2
2019-09-17 15:51:45.200 10943-11267/com.gdvictor.ivhelmet E/AbsUVCCameraHandler: mIFrameCallback
2019-09-17 15:51:45.202 10943-11267/com.gdvictor.ivhelmet E/DWQ_LOG: agora3(AgoraManifest.java:276)111111111声网当前版本__: 推送视频是否成功 === true
2019-09-17 15:51:45.208 10943-11260/com.gdvictor.ivhelmet E/GLDrawer2D1: draw:texIds[1]==else:2
2019-09-17 15:51:45.232 621-1085/? E/AudioFlinger: open /proc/10943/cmdline error
2019-09-17 15:51:45.234 621-1039/? E/msm8916_platform: platform_check_backends_match: Invalid snd_device =
2019-09-17 15:51:45.234 621-1039/? E/msm8916_platform: platform_check_backends_match: Invalid snd_device =
2019-09-17 15:51:45.258 10943-11248/com.gdvictor.ivhelmet E/DWQ_LOG: onJoinChannelSuccess(AgoraManifest.java:367)111111111声网当前版本__: 加入房间成功 === 1000____-612558031___523
2019-09-17 15:51:45.264 621-1039/? E/audio_hw_dolby: audio_extn_dolby_ds2_set_endpoint: Dolby set endpint :0x2
2019-09-17 15:51:45.279 10943-11267/com.gdvictor.ivhelmet E/AbsUVCCameraHandler: mIFrameCallback
2019-09-17 15:51:45.282 10943-11267/com.gdvictor.ivhelmet E/DWQ_LOG: agora3(AgoraManifest.java:276)111111111声网当前版本__: 推送视频是否成功 === true
2019-09-17 15:51:45.286 10943-11260/com.gdvictor.ivhelmet E/GLDrawer2D1: draw:texIds[1]==else:2
2019-09-17 15:51:45.360 10943-11267/com.gdvictor.ivhelmet E/AbsUVCCameraHandler: mIFrameCallback
2019-09-17 15:51:45.368 10943-11260/com.gdvictor.ivhelmet E/GLDrawer2D1: draw:texIds[1]==else:2

--------- beginning of crash

2019-09-17 15:51:45.373 10943-11267/com.gdvictor.ivhelmet A/libc: Fatal signal 11 (SIGSEGV), code 2, fault addr 0xc5c9d000 in tid 11267 (Thread-35)
2019-09-17 15:51:45.652 11284-11284/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2019-09-17 15:51:45.653 11284-11284/? A/DEBUG: Build fingerprint: ‘xiaomi/ugglite/ugglite:7.1.2/N2G47H/V9.6.3.0.NDFCNFD:user/release-keys’
2019-09-17 15:51:45.653 11284-11284/? A/DEBUG: Revision: ‘0’
2019-09-17 15:51:45.653 11284-11284/? A/DEBUG: ABI: ‘arm’
2019-09-17 15:51:45.653 11284-11284/? A/DEBUG: pid: 10943, tid: 11267, name: Thread-35 >>> com.gdvictor.ivhelmet <<<
2019-09-17 15:51:45.653 11284-11284/? A/DEBUG: signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0xc5c9d000
2019-09-17 15:51:45.653 11284-11284/? A/DEBUG: r0 c5c9cfec r1 cccf52f0 r2 ccc755b0 r3 00001c10
2019-09-17 15:51:45.653 11284-11284/? A/DEBUG: r4 ca570ae5 r5 ccce4300 r6 c5c7b00c r7 cdb261a8
2019-09-17 15:51:45.653 11284-11284/? A/DEBUG: r8 00000000 r9 00000000 sl ccc645c0 fp 00000000
2019-09-17 15:51:45.653 11284-11284/? A/DEBUG: ip 00000280 sp cdb26138 lr ca515f9f pc ca570ae4 cpsr 200f0030
2019-09-17 15:51:45.658 11284-11284/? A/DEBUG: backtrace:
2019-09-17 15:51:45.659 11284-11284/? A/DEBUG: #00 pc 0024aae4 /data/app/com.gdvictor.ivhelmet-1/lib/arm/libagora-rtc-sdk-jni.so
2019-09-17 15:51:45.659 11284-11284/? A/DEBUG: #01 pc 001eff9d /data/app/com.gdvictor.ivhelmet-1/lib/arm/libagora-rtc-sdk-jni.so
2019-09-17 15:51:45.660 11284-11284/? A/DEBUG: #02 pc 001efd6b /data/app/com.gdvictor.ivhelmet-1/lib/arm/libagora-rtc-sdk-jni.so
2019-09-17 15:51:45.660 11284-11284/? A/DEBUG: #03 pc 0024d45d /data/app/com.gdvictor.ivhelmet-1/lib/arm/libagora-rtc-sdk-jni.so
2019-09-17 15:51:45.660 11284-11284/? A/DEBUG: #04 pc 001ee715 /data/app/com.gdvictor.ivhelmet-1/lib/arm/libagora-rtc-sdk-jni.so
2019-09-17 15:51:45.660 11284-11284/? A/DEBUG: #05 pc 001e8caf /data/app/com.gdvictor.ivhelmet-1/lib/arm/libagora-rtc-sdk-jni.so
2019-09-17 15:51:45.660 11284-11284/? A/DEBUG: #06 pc 001c20b5 /data/app/com.gdvictor.ivhelmet-1/lib/arm/libagora-rtc-sdk-jni.so
2019-09-17 15:51:45.660 11284-11284/? A/DEBUG: #07 pc 000b7e87 /data/app/com.gdvictor.ivhelmet-1/lib/arm/libagora-rtc-sdk-jni.so
2019-09-17 15:51:45.660 11284-11284/? A/DEBUG: #08 pc 000b9755 /data/app/com.gdvictor.ivhelmet-1/lib/arm/libagora-rtc-sdk-jni.so (deliverFrame+68)
2019-09-17 15:51:45.660 11284-11284/? A/DEBUG: #09 pc 01c9bcfd /data/app/com.gdvictor.ivhelmet-1/oat/arm/base.odex (offset 0x1c05000)
2019-09-17 15:51:48.399 1447-1632/? E/NativeCrashListener: Unable to read from debuggerd
2019-09-17 15:51:48.804 11294-11294/com.gdvictor.ivhelmet E/DWQ_LOG: getRequst(RetrofitRequst.java:61)------requstApi-------
2019-09-17 15:51:48.946 1447-1922/? E/DatabaseUtils: Writing exception to parcel
java.lang.SecurityException: com.gdvictor.ivhelmet was not granted this permission: android.permission.WRITE_SETTINGS.
at android.provider.Settings.isCallingPackageAllowedToPerformAppOpsProtectedOperation(Settings.java:9885)
at android.provider.Settings.checkAndNoteWriteSettingsOperation(Settings.java:9767)
at com.android.providers.settings.SettingsProvider.mutateSystemSetting(SettingsProvider.java:1117)
at com.android.providers.settings.SettingsProvider.insertSystemSetting(SettingsProvider.java:1092)
at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:309)
at android.content.ContentProvider$Transport.call(ContentProvider.java:400)
at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:283)
at android.os.Binder.execTransact(Binder.java:567)
2019-09-17 15:51:49.144 11294-11294/com.gdvictor.ivhelmet E/ExtMediaPlayer-JNI: env->IsInstanceOf fails
2019-09-17 15:51:49.144 11294-11294/com.gdvictor.ivhelmet E/MediaPlayer-JNI: JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0
2019-09-17 15:51:49.144 11294-11294/com.gdvictor.ivhelmet E/ExtMediaPlayer-JNI: env->IsInstanceOf fails
2019-09-17 15:51:49.144 11294-11294/com.gdvictor.ivhelmet E/MediaPlayer-JNI: JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0
2019-09-17 15:51:49.173 11294-11294/com.gdvictor.ivhelmet E/DWQ_LOG: onStart(BaseActivityOne.java:69)---------------ui.activity.MianFnterfaceActivity
2019-09-17 15:51:49.182 627-20336/? E/OMXNodeInstance: setConfig(27300dd:google.mp3.decoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001)
2019-09-17 15:51:49.184 627-20336/? E/OMXNodeInstance: setConfig(27300dd:google.mp3.decoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001)
2019-09-17 15:51:49.186 11294-11294/com.gdvictor.ivhelmet E/DWQ_LOG: onResume(BaseActivityTwo.java:63) ---- BaseActivityTwo — onResume --------------ui.activity.MianFnterfaceActivity
2019-09-17 15:51:49.199 621-1590/? E/AudioFlinger: open /proc/635/cmdline error
2019-09-17 15:51:49.200 621-1035/? E/msm8916_platform: platform_check_backends_match: Invalid snd_device =
2019-09-17 15:51:49.215 11294-11294/com.gdvictor.ivhelmet E/DWQ_LOG: onCreate(HelmetService.java:73)IvHelmet 服务已经开启
2019-09-17 15:51:49.229 11294-11294/com.gdvictor.ivhelmet E/DWQ_LOG: onBind(HelmetService.java:46)开始绑定~~~~~~~~~~~~~~~~~service

我API 调用代码

那说明你自采集传入sdk的视频数据有问题额,不是 joinchannel 的问题额,因为没有闪退时对端看到的画面都是花屏的,说明数据肯定是有问题的。你们在 demo 上进行改动集成吧。

我们视频流的来源也是第三方SDK, 他们提供了视频流的回调.
官方demo是自定义一个SurfaceView, 将camera的预览画面渲染到SurfaceView上面, 然后回调视频流进行的, 我们的项目没法这样做.

我们传入的是热成像的视频流画面, 热成像刚打开时就是这种彩色噪点的画面,然后会自动聚焦进行调整,所有 应该不是花屏,

你说可能是视频数据有问题, 请问是否有什么方式来判断一下视频数据哪里出现错误,如视频格式不对的?

你首先需要和第三方 SDK 那边确认,拿到的视频帧格式是什么?确定是你代码里写的 NV21 吗?
此外,我看到你传了 buf 参数?内容是什么?