When I import an h.264-encoded video into Unity, I’m running into a similar problem as described in this thread: WindowsVideoMedia error unhandled Color Standard: 0 falling back to default this may result in rend
According to the explanation given by Unity staff, the warning should go away if you pick a color space for the video instead of leaving it undefined.
For whatever reason, the color space option in my Premiere Pro is greyed out, even though it defaults to Rec 709. I exported the video anyway, and then figured out how to make a copy of the original video but with the BT.709 tags applied to the metadata. I’m using the following ffmpeg command:
ffmpeg -i "input.mp4" -c copy -colorspace 1 -color_primaries 1 -color_trc 1 -color_range 1 "output.mp4"
Here’s the resulting metadata of output.mp4 in MediaInfo - note that you can see the BT.709 tags at the bottom.
However, when I try to import this file into Unity, it’s still giving that warning about unknown color primaries! The only way I’ve been able to get rid of the warning is to re-encode the file with ffmpeg with these tags, but that’s obviously not ideal. I just want to apply the metadata tags so that Unity will stop giving the warning, without re-encoding the original video.
I guess my question is: what is Unity looking at to determine that the color space is unspecified?
P.S. I know I can avoid the warning by transcoding the video to VP8 in the import settings, but the transcode process is slow, and it seems like the wrong solution to the problem.