FFmpeg and how all apps (yt,ig,tiktok) all videos rely on FFmpeg for all things related to vidoes

.What is resolution eg. 1080P,720P,480P,144P ? Who made resolution is it camera or is it made when compressing the video ?