Im kinda confused on which type of file i should put my vids on like:
. Idk if the file type matter because for some odd reason when i put it on mp4 i get horrible blocky results and was thinking that it was the file type.
I'm not sure and im kind of new to this so any help is greatly appreciated.
you are listing containers (mp4, webm, mkv, etc). containers contain streams. video streams are encoded with video codecs (like AVC/x264, xvid). the codec and codec settings (most importantly bitrate) determine the quality, not the container.
selecting a container shouldn't matter too terribly much. you can pretty much freely switch between most containers without re-encoding any streams (thus preserving exactly the same quality and wasting no time). personally i love mkv because it is free, open and incredibly versatile.
What is the diference between each codec? Which codecs are the most 'efficient'? Some days ago i downloaded a tv show on 1080p and i was surprised that the file had 3x less disc space, but the same quality.
"efficient" in what way? there's always a trade-off. with a next-gen codec like x265 or VP9 you can really cut down on file size, but in turn encoding take *a lot* more processing power.
very simple clips are easy to encode: no camera movement, lots of similar colours, no busy frames, no fast movements, low frame rate, low resolution. you can really cut down on bitrate on those. on the flipside, clips with fast movements, lots of camera pans, hard contrasts, high frame rates and high resolution take a shitton of bitrate (and therefore file size) to make them look crisp. but in practice clips are rarely uniform. you have calm moments and fast action. on set clips you can encode appropirately. with 2pass encoding you can allocate high bitrate where it is needed and otherwise save on bitrate. but you are encoding as the images you record come streaming in. and the codec can't really predict whether the next second will be fast action or just you staring at a menu.
so properly encoded films will always be smaller than a live footage dump from recording if you go for the same quality.
you really have to set your own priorities. do you care about disk space? do you care about time (re-encoding footage before further use)? do you care about processing power (older codecs are easier on the CPU, but produce larger files). do you care for fluid motion (60fps looks better but takes more of everything else). there's no gold standard to achieve perfect results.