Ejemplo n.º 1
0
        public static char ToArg(this FfmpegStreamType value)
        {
            switch (value)
            {
            case FfmpegStreamType.Video:
                return('V');

            case FfmpegStreamType.AllVideo:
                return('v');

            case FfmpegStreamType.Audio:
                return('a');

            case FfmpegStreamType.Subtitle:
                return('s');

            case FfmpegStreamType.Data:
                return('d');

            case FfmpegStreamType.Attachments:
            default:
                return('t');
            }
        }
Ejemplo n.º 2
0
 public StreamSpecifier(FfmpegStreamType type)
 {
     _Index = 0;
     Type   = type;
 }
Ejemplo n.º 3
0
 public StreamSpecifier(FfmpegStreamType type, byte?index)
 {
     _Index = index == null ? (byte)0 : (byte)(index.Value + 1);
     Type   = type;
 }