How to optimize videos in Unity?

Hello everyone,

I have lots of short loop videos in my game. They are WEBM file and compressed with FFMpeg, it’s around 300-500 KB each.

But when I look at the Unity build editor log, I really surprised. The video sizes are insane!! They are 3 mb average, even some of hemthem 13 mb and 17 mb. Build size is really big now (177 mb) for such a small game. And %78 of the build size are videos.

I only ticked the “Transcode” in the Unity. But I don’t know if it’s related to this. How can I optimize this video sizes in the Unity? It’s already very low size on Windows, they are not even 1mb.

I changed transcode settings and the file size is better now
183936-image-2021-07-24-190316.png