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