// Write the video file, return 0:succes, 1:wrong place, 2:no output folder, 3:no movement in file, 4:other reason
 public int writeToVideo()
 {
     if (Status != 2)
     {
         return(1); // wrong place
     }
     else if (resultFolder == null)
     {
         return(2); // no output folder
     }
     else
     {
         WriteToVideo Temp   = new WriteToVideo(inputFile, trackerlist, resultFolder, ffmpegLocation, hideTerminal);
         int          result = Temp.WriteVideo(progressStorage);
         if (result == 0)
         {
             return(0); // succes
         }
         else if (result == 2)
         {
             return(3); // no movement in file
         }
         else
         {
             return(4); // the command failed
         }
     }
 }
 // Write the video file, return 0:succes, 1:wrong place, 2:no output folder, 3:no movement in file, 4:other reason
 public int writeToVideo()
 {
     if (Status != 2)
     {
         return 1; // wrong place
     }
     else if (resultFolder == null)
     {
         return 2; // no output folder
     }
     else
     {
         WriteToVideo Temp = new WriteToVideo(inputFile, trackerlist, resultFolder, ffmpegLocation, hideTerminal);
         int result = Temp.WriteVideo(progressStorage);
         if(result == 0)
         {
             return 0; // succes
         } else if(result == 2)
         {
             return 3; // no movement in file
         } else
         {
             return 4; // the command failed
         }
     }
 }