예제 #1
0
        public void OutputVideoFileConfiguration_VideoWriter_IsCreated()
        {
            var parameters = new StackProgressiveOptions
            {
                OutputVideoFile = "a.mp4"
            };

            var basicEnvironment = new StackingEnvironment();

            basicEnvironment.ConfigureOuptutMode(parameters);

            basicEnvironment.ThrowMe.Should().BeFalse();
            basicEnvironment.OutputMode.Should().NotBeNull();
            basicEnvironment.OutputMode.Should().BeOfType <ffmpeg.FfmpegVideoWriter>();
        }
예제 #2
0
        public void OutputVideoFileConfiguration_VideoWriter_UsesCustomArguments()
        {
            var parameters = new StackProgressiveOptions
            {
                OutputVideoFile    = "a.mp4",
                OutputVideoOptions = "-crf 24 -vf scale=-1:1080"
            };

            var basicEnvironment = new StackingEnvironment();

            basicEnvironment.ConfigureOuptutMode(parameters);

            basicEnvironment.ThrowMe.Should().BeFalse();
            basicEnvironment.OutputMode.Should().NotBeNull();
            basicEnvironment.OutputMode.Should().BeOfType <ffmpeg.FfmpegVideoWriter>();
        }