clear all;
clear classes;
clc;


% referencevideos=ReferenceVideoCollection('*.mkv');
% coders=VideoCoderCollection;
% 
% params.bitrate=[10000 20000 50000];
% 
% coders.add('H264IntraVBR',params);
% coders.add('H265IntraVBR',params);
% 
% videometrics=VideoMetricsCollection;
% videometrics.add('AVG-PSNR');
% videometrics.add('AVG-SSIM');
% 
% CompressedVideos=coders.proc(referencevideos);
% CompressedVideos.addmetrics(videometrics);
% CompressedVideos.calcmetrics;

load session2.mat

CompressedVideos.fcc;

 [refdata,matdata]=CompressedVideos.makestatistics;
 save(sprintf('refdata_matdata_video_session2_%d.mat',...
     round(10000*rand)),'refdata','matdata');
 
 makeplots(0,'refdata_matdata_video_session2*.mat');
