H.264 encoding settings for High Quality HD (1080p) and High Quality UHD (4K) Producing animations/video is quite new for me. I want to create Quicktime/H.264 videos and I have difficulties to find out what H.264 encoding settings to use for 1080p (25 fps) and 4K (25 fps). By the way is 25 fps the best choice for 1080p and 4K?



When I want to create a high quality H.264 video, what settings are relevant?


I guess high quality means "lossless output"?
I have seen this post about bitrate but what values to set in Blender for Bitrate and Minimum and Maximum rate? It is my understanding that the recommended bitrate is 8 Mbps for 1080p and 35-45 Mbps for 4K. But what does this mean for Blender? What values to set for Bitrate and Minimum and Maximum rate? What values to use for Buffer Size? How to determine Buffer Size?
Should I change the values for GOP size? How to determine GOP size?
What "Mux" settings? 


Could you maybe explain those concepts a bit? 

I really appreciate the discussion but my question is: what values should I enter in the encoding panel? Can someone maybe upload a screenshot of the panel with the recommended values for 1080p and 4k?

Based on the answer I got below it is my understanding that for High Quality HD these would be the Quicktime / H.264 settings:
Unfortunately H264 is never going to give you brilliant quality video. It was designed to be efficient on storage and network bandwidth. Take a look at mjpeg or similar for higher quality video.

GOP stands for Group of pictures. And basically means how many frames between I frames. Generally you would have 1 I frame to 24 p frames so the GOP would be 25. The more I frames you have the higher quality picture but the higher storage and network cost too. 

I frame is an interframe and is a complete picture. P frames are predicted frames and made up of the predicted changes between the last I frame and the next frame.

Limiting the max bitrate will cause Blender to over compress the image and movement or dark areas will look worse.  I can't see any benefit in setting the minimum bitrate