What are teh recommended settings/codec when creating media for playback on Xbox one?

Hi there;

I’m new to plex and so far I’m loving it.

I will be creating my video collection from scratch, using something like Leawo Blu-ray Ripper to backup my Blu-Rays and DVD disks.

Also I will backup my audio CD collection.

I wonder which formats I should use for audio and video that will be recognized by Xbox one preventing Plex for encoding it in real time, which would be a problem since I’m running Plex on a WD MyCloud EX2 NAS which as expected, doesn’t have the horse power for such task.

My target is the Xbox one so at this point I don’t care that much about any other device but cross compatibility with Xbox one and iOS would be a plus.

Thanks in advance;