//public void WhileYoureAtIt_setTmpAvs(string tmpCustomFilename) //{ // this.tmpCustomFilename = tmpCustomFilename; //} public void run() { var projCropped = proj; if (doCrop) { projCropped = proj.Crop( frameStart, framesLength, null, //proj.Width / 4, null, //proj.Height / 4, onlyLockedClips); } if (projCropped.ClipsVideo.Count == 0) { ResultCode = OpResultCode.OtherError; ErrorMessage = "There are no locked clips from this point on!"; return; } //var tmpAvsPath = VidkaIO.GetFileFromThisAppDirectory(tmpCustomFilename ?? TMP_FILENAME); var tmpAvsPath = VidkaIO.GetGeneratedAvsTmpFilename(); VidkaIO.ExportToAvs(projCropped, tmpAvsPath); RunMPlayer(tmpAvsPath, proj); }
private VidkaProj CropProject(VidkaProj proj, long frameStart, long framesLength) { if (frameStart == 0) { return(proj); } return(proj.Crop(frameStart, framesLength, proj.Width / 4, proj.Height / 4)); }