use a common base class for Encoding and Video models