classdef H264CBRVideoCoderItem < FFMPEGVideoCoderItem
    
    properties
        videocodername='H264-CBR';
    end
    
    methods
        function obj=H264CBRVideoCoderItem(inputparams)
            obj=obj@FFMPEGVideoCoderItem(inputparams);
        end
        
        function commandstring=getcommandstring(obj,inputfilename,outputfilename,inputparams)
            commandstring=sprintf('ffmpeg -y -i %s -c:v libx264 -pix_fmt yuv420p -b:v %dK -minrate %dK -maxrate %dK %s',...
                inputfilename,round(inputparams.bitrate),round(inputparams.bitrate),round(inputparams.bitrate),outputfilename);
            
        end
        
        
        
    end

end