The Video Player component uses the native audio and video decoding libraries of your Unity Editor platform to play video files in the Editor. You need to check that the files meet the system requirements for the target build platform.
Follow the vendor recommendations for your platform for codec support:
Note: On older mobile platforms, codec choices are limited. You might need to inspect and convert or re-encode videos that you intend to include in an application running on multiple devices.