微信版本为8.0.40,基础库版本为3.0.1。
华为p40手机用live-player拉rtmp流时,刚开始会出现闪绿屏问题,log显示 每隔1s会打印Enables H264 software decoding,一直在启动软解,所以一直闪绿;具体表现为闪一下绿屏,闪一下画面。直到出现Enables H264 hardware decoding开启硬解,才不会显示绿屏,但此时画面会出现马赛克,画面不流畅。
备注:此rtmp在小米10设备上用小程序live-player拉流不会出现此问题,均能正常播放。此rtmp流在ffplay 中正常播放,h264编码,aac
Fri Sep 01 2023 15:07:31 GMT+0800 (CST)[INFO]: client update player state, uid:1104 code:2008 message:Enables H264 software decoding
2mini-app-sdk2.6.1.js:2 Fri Sep 01 2023 15:07:32 GMT+0800 (CST)[INFO]: client update player state, uid:1104 code:2008 message:Enables H264 software decoding
mini-app-sdk2.6.1.js:2 Fri Sep 01 2023 15:07:33 GMT+0800 (CST)[INFO]: client update player state, uid:1104 code:2008 message:Enables H264 software decoding
mini-app-sdk2.6.1.js:2 Fri Sep 01 2023 15:07:34 GMT+0800 (CST)[INFO]: client update player state, uid:1104 code:2008 message:Enables H264 software decoding
你好,麻烦提供能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
此问题,在苹果11 pro上如下:在微信版本8.0.40版本上,黑屏,解码得到的videoFPS:0。 升级微信版本到8.0.41版本后,会先闪绿屏再花屏,player log是先启动264硬解,再启动265软解。
Mon Sep 04 2023 17:54:29 GMT+0800 (中国标准时间)[INFO]: client update player state, uid:1014 code:2008 message:Enables H264 hardware decoding
mini-app-sdk2.6.1.js? [sm]:2 Mon Sep 04 2023 17:54:29 GMT+0800 (中国标准时间)[INFO]: client update player state, uid:1014 code:2008 message:Enables H265 software decoding