Light淡

导航

Addressables加载VideoClip的异常

 

win7系统下遇到mp4播放异常的问题。

 

问题一:无法播放。错误提示如下:

Context: Setting media type for first video stream
Error details: No suitable transform was found to encode or decode the content.
Track types:
Audio Track, type: %10%16
Video Track [unknown resolution], type: 1cva

  原因是win7的默认解码器仅支持720P的视频。

 

问题二:播放至固定一帧报错。仅在通过Addressables.LoadSceneAsync加载时出现。错误提示如下:

Context: IMFSourceReader::WaitForSample in ReadSample
Error details: <Empty>
Track types:
Unreadable Track

  原因看似是音轨的问题。

  最终通过不断压缩视频码率解决——CRF(固定码率系数)设置为40。

 

补充:

  最近发现新的解决办法。

  设置视频格式为VP8,无需压缩分辨率与码率。

 

 

posted on 2022-05-16 13:20  Light淡  阅读(641)  评论(0)    收藏  举报