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'); } }
public StreamSpecifier(FfmpegStreamType type) { _Index = 0; Type = type; }
public StreamSpecifier(FfmpegStreamType type, byte?index) { _Index = index == null ? (byte)0 : (byte)(index.Value + 1); Type = type; }