Exemplo n.º 1
0
        private void WriteFilterchainOut(Filterchain filterchain)
        {
            var filterchainOutputs = filterchain.GetStreamIdentifiers();

            filterchainOutputs.ForEach(streamId =>
            {
                BuilderBase.Append(" ");
                BuilderBase.Append(FormattingUtility.Map(streamId.Map));
            });
        }
Exemplo n.º 2
0
 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));
         }
     });
 }
Exemplo n.º 3
0
 public string Format(object value)
 {
     return(FormattingUtility.Map(value.ToString(), true));
 }
Exemplo n.º 4
0
 public CodecAudio(AudioCodecType codec)
     : base(FormattingUtility.Library(codec.ToString()))
 {
 }
Exemplo n.º 5
0
 public string Format(object value)
 {
     return(FormattingUtility.Duration((TimeSpan)value));
 }
 public string Format(object value)
 {
     return(FormattingUtility.EnumValue(value, true));
 }
Exemplo n.º 7
0
 public ProfileVideo(VideoProfileType profile)
     : base(FormattingUtility.Library(profile.ToString()))
 {
 }
Exemplo n.º 8
0
 public CodecVideo(VideoCodecType codec)
     : base(FormattingUtility.Library(codec.ToString()))
 {
 }
Exemplo n.º 9
0
 public PixelFormat(PixelFormatType library)
     : this(FormattingUtility.Library(library.ToString()))
 {
 }
Exemplo n.º 10
0
 public string Format(object value)
 {
     return(FormattingUtility.EnumDefaultValue(value));
 }
Exemplo n.º 11
0
 protected BaseFormat(FormatType format)
     : this(FormattingUtility.Library(format.ToString()))
 {
 }