Here are the four main ways to get video files from your PC to an Xbox One or Xbox Series X|S, ordered by convenience.
Tip: If a file won't play, re-encode with HandBrake (H.264/HEVC, MP4 container).
Limited by upload speed and cloud quota (5 GB free on OneDrive).
Jellyfin is a free, open-source alternative with no account required.