Unity “WindowsVideoMedia error unhandled Color Standard“ warning when importing various video form

Reproduction steps:
1. Open attached "VideoURP.zip" project
2. In Project window, navigate to and select "Assets/Video/mov.mov"
3. Right-Click -> Reimport the video Asset
4. Observe Console window

Expected result: No warnings
Actual result: "WindowsVideoMedia error unhandled Color Standard: 0 falling back to default this may result in rendering issues" warnings

Reproducible with: 2021.2.0a1, 2021.2.0b17, 2022.1.0a13
Not reproducible with: 2019.4.32f1, 2020.3.21f1, 2021.1.27f1

Reproduces with formats: .m4v, .avi, .mov, .mp4, .wmv
Does not reproduce with formats: .webm

  1. Resolution Note (fix version 2022.1):

    Fixed in 2022.2.0a1

    Every file had an unknown color standard. To remove the warning, you should check how to add the color standard in the file while editing or recording. You can use FFmpeg to add it, but you have to reencode your file, lowering the quality. Use and customize this command for your need.

    ffmpeg -i input.mp4 -color_primaries bt709 -color_trc bt709 -colorspace bt709 -color_range pc -vcodec libx264 output.mp4

    We reduced redundant warnings, so you should see only one per file.


    1. Open Unity, click the Video Clip and open its Import Settings.
    2. While in the Import Settings, you go change its Codec format from Auto into VP8.
    3. The "WindowsVideoMedia error unhandled Color Standard: 0 falling back to default this may result in rendering issues" warning is gone after that. Hope it works for everyone.

  • 4
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 4
    评论
Unity 是一款跨平台的游戏开发引擎,WindowsVideoMediaUnity 中用于处理视频文件的插件。当出现 "Error while reading archive" 错误时,通常是由于无法正确读取视频文件引起的。 首先,我们需要确定视频文件是否正确导入到 Unity 项目中。可以检查一下视频文件的路径和文件名是否正确,在 Unity 的 Project 视图中确认文件是否存在,并确保已正确导入到项目中。 其次,该错误还可能与视频文件的编码格式有关。Unity 在处理视频文件时,对于某些编码格式可能会出现兼容性问题。可以尝试将视频文件转换为 Unity 支持的常见编码格式,例如 H.264 或 VP8。 另外,该错误也可能是由于视频文件本身损坏或格式错误所致。可以尝试使用其他视频播放器打开并播放该视频文件,以确定是否存在格式问题或文件损坏的情况。如果视频文件无法在其他播放器中正常播放,则可能需要重新获取或重新导出正确的视频文件。 最后,我们还可以尝试更新 Unity 引擎和 WindowsVideoMedia 插件,以确保使用的是最新版本。有时,更新软件版本可以修复已知的兼容性问题或错误。 总结而言,"Error while reading archive" 错误可能是由于视频文件的路径、编码格式、文件损坏或 Unity 和插件版本等原因引起的。通过仔细检查和解决这些可能的问题,我们可以尝试解决这个错误并成功读取视频文件。

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值