Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

腾讯实时音视频SDK升级到9.9版本,音视频通话美颜崩溃 #17

Open
Zhudongli opened this issue May 31, 2022 · 1 comment

Comments

@Zhudongli
Copy link

  • (uint32_t)onProcessVideoFrame:(TRTCVideoFrame *)srcFrame dstFrame:(TRTCVideoFrame *)dstFrame {
    _mContext = [EAGLContext currentContext];
    if ([FUGLContext shareGLContext].currentGLContext != _mContext) {
    [[FUGLContext shareGLContext] setCustomGLContext: _mContext];
    }

    if ([FUManager shareManager].isRender) {
    [[FUTestRecorder shareRecorder] processFrameWithLog];
    [[FUManager shareManager] updateBeautyBlurEffect]; //更新美颜磨皮效果
    FURenderInput *input = [[FURenderInput alloc] init];

      // 根据输入纹理调整参数设置
      input.renderConfig.imageOrientation = FUImageOrientationDown;
      input.renderConfig.isFromFrontCamera = self.isFrontCamera;
      input.renderConfig.isFromMirroredCamera = YES;
      // stickerFlipH和stickerFlipV尽量不要使用,后续将不再维护,这里使用是为了适配老道具
      input.renderConfig.stickerFlipH = !self.isFrontCamera;
      input.renderConfig.stickerFlipV = NO;
      
      FUTexture tex = {srcFrame.textureId, CGSizeMake(srcFrame.width, srcFrame.height)};
      input.texture = tex;
      // 开启重力感应,内部会自动计算正确方向,设置fuSetDefaultRotationMode,无须外面设置
      input.renderConfig.gravityEnable = YES;
      input.renderConfig.textureTransform = CCROT0_FLIPVERTICAL;
      FURenderOutput *output = [[FURenderKit shareRenderKit] renderWithInput:input];
      dstFrame.textureId = output.texture.ID;
      if (output.texture.ID != 0) {
          return output.texture.ID;
      }
    

    }
    return 0;
    }

崩溃在: FURenderOutput *output = [[FURenderKit shareRenderKit] renderWithInput:input];
崩溃原因显示: glGetError:GL_INVALID_VALUE 和 glGetError:GL_INVALID_FRAMEBUFFER_OPERATION

@kimving
Copy link

kimving commented Feb 27, 2024

同样的,官方没解决吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants