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:
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.
If any staff are here, please take a look at this. As I discovered in IN-56488, the bug report system is apparently broken, and the QA staff need to manually do something to approve new reports.
Yeah, the issue is that MediaFoundation only reads the metadata in the SPS Nalu and not the colr box in the mp4 header. Meaning it needs to be set by the encoder when encoding. In your case, your command is only setting it in the header. What you should do is:
Interesting, okay. Thanks for the explanation. Someday I might try to figure out why Premiere Pro can’t set it itself, but for now I guess transcoding is fine.
(I can’t see/reply to the bug report itself because of the Jira bug, but I get email notifs from it, so I can see your comment there)