Exemple #1
0
        //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);
        }
Exemple #2
0
        public MPlayerPlaybackSegment(VidkaProj proj, long frameStart, long framesLength, bool leaveOpen)
        {
            var projCropped = CropProject(proj, frameStart, framesLength);

            VidkaIO.ExportToAvs(projCropped, TMP_FILENAME);
            RunMPlayer(TMP_FILENAME, proj, leaveOpen);
        }
Exemple #3
0
        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
        }