コード例 #1
0
 public FFMpegCommand()
 {
     AACOptions = new AACOptions();
     X264Options = new X264Options();
     OverwriteFile = true;
     OutputFormat = FFMpegOutputFormats.MP4;
     CommandPath = DEFAULT_COMMAND_PATH;
 }
コード例 #2
0
        public FFMpegCommand( AACOptions aacOptions, X264Options x264Options,
			bool overwriteFile, String inputFilename, FFMpegOutputFormats outputFormat)
        {
            AACOptions = aacOptions;
            X264Options = x264Options;
            OverwriteFile = overwriteFile;
            InputFileName = inputFilename;
            OutputFormat = outputFormat;
            CommandPath = DEFAULT_COMMAND_PATH;
        }
コード例 #3
0
 private void AdjustSizeWithOriginalRatio(X264Options options, float ratio)
 {
     options.VWidth = (int)((float)options.VWidth * ratio);
     options.VHeight = (int)((float)options.VHeight * ratio);
 }
コード例 #4
0
 public X264Converter(String inputFilename)
 {
     InputFilename = inputFilename;
     X264Options = new X264Options();
     AACOptions = new AACOptions();
     m_SourceInfo = new SourceInfo(InputFilename);
     m_SourceInfo.parse();
     m_LastCommandOutputs = new Queue<String>(LAST_COMMAND_QUEUE_SIZE);
 }