public FFMpegCommand() { AACOptions = new AACOptions(); X264Options = new X264Options(); OverwriteFile = true; OutputFormat = FFMpegOutputFormats.MP4; CommandPath = DEFAULT_COMMAND_PATH; }
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; }
private void AdjustSizeWithOriginalRatio(X264Options options, float ratio) { options.VWidth = (int)((float)options.VWidth * ratio); options.VHeight = (int)((float)options.VHeight * ratio); }
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); }