Design an object-oriented system for handling video and audio processing cards (4K and HD). The system should support encoding, initialization, and configuration of resolution (for video) or sample rate (for audio). Explain your class hierarchy, key methods, and how you’d ensure flexibility for future card types.