基于chromium框架的hevc视频帧数据硬解码
基于chromium框架的hevc视频帧数据硬解码
利用webcodes原生底层接口对h265视频帧数据进行硬解码,是一个非常不错的选择,再利用webgpu渲染,
充分利用gpu性能优势。
demo实例:https://intelligenttransportation.gitee.io/webcodes/rosbagPlayerWeb.html
rosBag本地视频播放(测试): ’ 硬解码条件: 设置Chrome Canary或者edge 浏览器版: https://www.google.cn/intl/en_uk/chrome/canary/ 设置 --enable-features=“PlatformHEVCDecoderSupport”
设置 webgpu条件:然后chrome://flags/#enable-unsafe-webgpu开启WebGPU’ 或者开启edge Canary版的WebGPU
效果图:
[demo]: https://intelligenttransportation.gitee.io/webcodes/rosbagPlayerWeb.html