コード例 #1
0
        public override string BuildArguments()
        {
            string framerate = Framerate.ToString("F2", CultureInfo.InvariantCulture);

            return
                ("-y " +                      //Yes to override existing files
                 $"-framerate {framerate} " + // Frmaerate in
                 $"-i \"{InputFile}\" " +     // Input File
                 $"-r {framerate} " +         // Framerate out
                 "-vcodec libx264 -crf 0 " +
                 $"\"{OutputFile}\"");
        }
コード例 #2
0
        public override string BuildArguments()
        {
            string framerate = Framerate.ToString("F2", CultureInfo.InvariantCulture);

            return
                ("-y " +                                     //Yes to override existing files
                 $"-ss {StartTimeSpan:hh\\:mm\\:ss\\.ff} " + // Starting Position
                 $"-i \"{InputFile}\" " +                    // Input File
                 $"-t {Duration:hh\\:mm\\:ss\\.ff} " +       // Duration
                 $"-r {framerate} " +
                 "-vf " +                                    // video filter parameters" +
                 $"\"setpts=PTS-STARTPTS, hqdn3d=10, scale = {Width}:{Height}\" " +
                 "-vcodec libx264 -crf 0 " +
                 $"\"{OutputFile}\"");
        }
コード例 #3
0
        public override string BuildArguments()
        {
            string framerate = Framerate.ToString("F2", CultureInfo.InvariantCulture);

            return
                ("-y " +                                     //Yes to override existing files
                 $"-ss {StartTimeSpan:hh\\:mm\\:ss\\.ff} " + // Starting Position
                 $"-i \"{InputFile}\" " +                    // Input File
                 $"-t {Duration:hh\\:mm\\:ss\\.ff} " +       // Duration
                 $"-r {framerate} " +
                 "-vf " +                                    // video filter parameters" +
                 $"\"" +
                 $"setpts=PTS-STARTPTS, hqdn3d=10" +
                 (ClipLeft ? $", stereo3d=sbsl:ml" : "") + // de-3D
                 // (DeLense ? $", lenscorrection=k1=0:k2=-0.33" : "") +
                 (ClipLeft ? $", scale = {Width / 2}:{Height}" : $", scale = {Width}:{Height}") +
                 "\" " +
                 (ClipLeft ? "-metadata:s:v:0 stereo_mode=\"mono\" " : "") + //de-3D
                 "-vcodec libx264 -crf 0 " +
                 $"\"{OutputFile}\"");
        }
コード例 #4
0
        public override string BuildArguments()
        {
            string framerate = Framerate.ToString("F2", CultureInfo.InvariantCulture);

            return($"-stats -y -r {framerate} -i \"{InputFile}\" -i \"{PaletteFile}\" -filter_complex paletteuse -plays 0 \"{OutputFile}\"");
        }