Audio Video file lessons

I’ve done quite a lot of encoding recently, and thoughts that repeatedly pop-up in my mind are “I have no idea what that is, wouldn’t it be useful to know what it means”, or “I wanna know how these files work”. so, basically, does anyone know where I can learn what goes-on inside a graphic/audio/video file, etc.?