You can set them on the camera's web GUI directly or on the NVR... here are the setting on the camera directly:
Also, if this issue is bandwidth/Wi-Fi speed, H.265 is better because it will compress the stream more... If the issue is the Fire tablets struggling to keep up/decode, then H.264...