Qml使用videooutput送入yuv数据无法显示视频

表现

送入 yuv 数据进入 videooutput,无视频渲染

原因

系统环境变量存在 QMLSCENE_DEVICE=softwarecontext
VideoOutput 不能使用 qt 的软渲染即 Qt Quick Software Adaptation

Switch Scene Graph Adaptations

Switching to a different adaptation can be achieved in two ways:

  • Use an environment variable - Set the QT_QUICK_BACKEND or the legacy QMLSCENE_DEVICE environment variable before launching applications.
  • Use a C++ API - Call QQuickWindow::setSceneGraphBackend() early on in the application’s main() function.

Scene Graph Adaptations

Qt Quick Software Adaptation

文档中提到,qt提供的软件渲染方案不支持渲染videooutput

Qt Multimedia VideoOutput
The Qt Multimedia module’s VideoOutput item is not supported with the Software adaptation. This is because VideoOutput uses the QVideoRendererControl item which requires custom QSGGeometryNode behavior, which is only present in the default OpenGL adaptation.

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值