private static void MainProcess()
 {
     try
     {
         VideoFile nextfile = _repository.GetNextVideoToEncode();
         if (IsFileReady(nextfile))
         {
             _timer.Stop();
             log.Info($"Starting encode of file: {nextfile.FullPath}");
             StartHandbrake(nextfile);
             log.Info($"Finished encoding filename: {nextfile.FullPath}");
             _timer.Start();
         }
     }
     catch (Exception ex)
     {
         log.Error(ex.Message);
     }
 }