private void WriteFilterchainOut(Filterchain filterchain) { var filterchainOutputs = filterchain.GetStreamIdentifiers(); filterchainOutputs.ForEach(streamId => { BuilderBase.Append(" "); BuilderBase.Append(FormattingUtility.Map(streamId.Map)); }); }
private void WriteFilterchainIn(FFmpegCommand command, Filterchain filterchain) { filterchain.ReceiptList.ForEach(streamId => { BuilderBase.Append(" "); var indexOfResource = command.Objects.Inputs.FindIndex(inputs => inputs.GetStreamIdentifiers().Any(s => s.Map == streamId.Map)); if (indexOfResource >= 0) { var commandResource = command.Objects.Inputs[indexOfResource]; var commandStream = commandResource.Resource.Streams.First(s => s.Map == streamId.Map); BuilderBase.Append(FormattingUtility.Map(commandStream, indexOfResource)); } else { BuilderBase.Append(FormattingUtility.Map(streamId.Map)); } }); }
public string Format(object value) { return(FormattingUtility.Map(value.ToString(), true)); }
public CodecAudio(AudioCodecType codec) : base(FormattingUtility.Library(codec.ToString())) { }
public string Format(object value) { return(FormattingUtility.Duration((TimeSpan)value)); }
public string Format(object value) { return(FormattingUtility.EnumValue(value, true)); }
public ProfileVideo(VideoProfileType profile) : base(FormattingUtility.Library(profile.ToString())) { }
public CodecVideo(VideoCodecType codec) : base(FormattingUtility.Library(codec.ToString())) { }
public PixelFormat(PixelFormatType library) : this(FormattingUtility.Library(library.ToString())) { }
public string Format(object value) { return(FormattingUtility.EnumDefaultValue(value)); }
protected BaseFormat(FormatType format) : this(FormattingUtility.Library(format.ToString())) { }