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 } }
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); }