Example #1
0
        }                                                                   // default to stdin input

        public Converter(FfmpegLogLevel logLevel, string inputPath) : base("ffmpeg", "-hide_banner -h")
        {
            _argBuilder = new FfmpegArgBuilder()
                          .Input(inputPath)
                          .LogLevel(logLevel);

            _info = new ProcessStartInfo
            {
                FileName               = Command,
                CreateNoWindow         = true,
                RedirectStandardInput  = true,
                RedirectStandardOutput = true,
                RedirectStandardError  = true,
            };
        }
Example #2
0
 public Converter(FfmpegLogLevel logLevel) : this(logLevel, "-")
 {
 }                                                                   // default to stdin input
Example #3
0
 public FfmpegArgBuilder LogLevel(FfmpegLogLevel level)
 {
     _sb.AppendFormat("-loglevel {0} ", level.GetHashCode());
     return(this);
 }