예제 #1
0
        public void 正常系_0秒から10秒分だけトリミングして保存()
        {
            FfmpegWrapper.Ffmpeg ffmpeg = new Ffmpeg();

            string appdir = AppDomain.CurrentDomain.BaseDirectory;

            string InputFilePath  = Path.Combine(appdir, "test.wmv");
            string OutputFilePath = Path.Combine(appdir, Ffmpeg.SubFileName(InputFilePath, 2));

            int start    = 0;
            int duration = 5;

            ffmpeg.Triming(InputFilePath, OutputFilePath, start, duration);

            Assert.IsTrue(File.Exists(InputFilePath));
            Assert.IsTrue(File.Exists(OutputFilePath));
        }