classdef MPEG2VBRVideoCoderItem < FFMPEGVideoCoderItem
    
    properties
        videocodername='MPEG2-VBR';
    end
    
    methods
        function obj=MPEG2VBRVideoCoderItem(inputparams)
            obj=obj@FFMPEGVideoCoderItem(inputparams);
        end
        
        function commandstring=getcommandstring(obj,inputfilename,outputfilename,inputparams)
            commandstring=sprintf('ffmpeg -y -i %s -c:v mpeg2video -pix_fmt yuv420p -b:v %dK %s',...
                inputfilename,round(inputparams.bitrate),outputfilename);
        end
     end
end