//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 void whereIsTheLastAVSToolStripMenuItem_Click(object sender, EventArgs e) { var tmpAvs = VidkaIO.GetGeneratedAvsTmpFilename(); if (!File.Exists(tmpAvs)) { MessageBox.Show("File does nota exista", "Fail", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); return; } OpUtils.OpenWinExplorerAndSelectThisFile(tmpAvs); }
private void RenderToAvi(string xmlFilename, VidkaProj proj, string fileOutVideo, string mencoderArgs) { var fileOutAvs = VidkaIO.GetGeneratedAvsTmpFilename(); VidkaIO.ExportToAvs(proj, fileOutAvs); Context.iiii("------ export to " + Settings.Default.ExportVideoExtension + "------"); Context.iiii("Exported to " + fileOutAvs); #if RUN_MENCODER Context.InvokeOpByName("RebuildProject"); Context.iiii("Exporting to " + fileOutVideo); var mencoding = new MEncoderSaveVideoFile(fileOutAvs, fileOutVideo, mencoderArgs); Context.iiii("------ executing: ------"); Context.iiii(mencoding.FullCommand); Context.iiii("------"); mencoding.RunMEncoder(); Context.iiii("Exported to " + fileOutVideo); Context.iiii("Done export."); #endif }