예제 #1
0
        public void MakeLowQualitySmallVideo_CreatesFile()
        {
            using (var file = TempFile.FromResource(Resources.tiny, ".wmv"))
            {
                var outputPath = file.Path.Replace("wmv", "low.wmv");
                FFmpegRunner.MakeLowQualitySmallVideo(file.Path, outputPath, 0, new ConsoleProgress());
                Assert.IsTrue(File.Exists(outputPath));
#if !MONO
                System.Diagnostics.Process.Start(outputPath);
#endif
            }
        }
예제 #2
0
        private string ShrinkVideo(string original, string newPathRoot)
        {
            Debug.WriteLine("ShrinkVIdeo " + original);

            var newPath = newPathRoot + ".mp4";

            if (File.Exists(newPath))
            {
                File.Delete(newPath);
            }
            var result = FFmpegRunner.MakeLowQualitySmallVideo(original, newPath, 0,
                                                               _progress);

            CheckForError(result);
            return(newPath);
        }