classdef DCPVideoCoderItem < FFMPEGVideoCoderItem
    
    properties
        videocodername='DCP-JPEG2000-Intra';
    end
    
    methods
        function obj=DCPVideoCoderItem(inputparams)
            obj=obj@FFMPEGVideoCoderItem(inputparams);
        end
        
        function commandstring=getcommandstring(obj,inputfilename,outputfilename,inputparams)
            commandstring=sprintf('ffmpeg -y -i %s -vcodec libopenjpeg -compression_level %d %s',...
                inputfilename,round(inputparams.bitrate),outputfilename);
        end
     end
end