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));
         }
     });
 }
Exemple #3
0
 public string Format(object value)
 {
     return(FormattingUtility.Map(value.ToString(), true));
 }
Exemple #4
0
 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));
 }
Exemple #7
0
 public ProfileVideo(VideoProfileType profile)
     : base(FormattingUtility.Library(profile.ToString()))
 {
 }
Exemple #8
0
 public CodecVideo(VideoCodecType codec)
     : base(FormattingUtility.Library(codec.ToString()))
 {
 }
Exemple #9
0
 public PixelFormat(PixelFormatType library)
     : this(FormattingUtility.Library(library.ToString()))
 {
 }
Exemple #10
0
 public string Format(object value)
 {
     return(FormattingUtility.EnumDefaultValue(value));
 }
Exemple #11
0
 protected BaseFormat(FormatType format)
     : this(FormattingUtility.Library(format.ToString()))
 {
 }