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)); }