public override string GetExt() { if (!String.IsNullOrWhiteSpace(fileExtension)) { return(fileExtension); } return(ExtProvider.GetExtForVideo(RecodeFormat)); }
public override string GetExt() { if (IsAudio) { return(ExtProvider.GetExtForAudio(AudioConversionFormat)); } else if (VideoRecodeFormat == VideoRecodeFormat.None) { if (AudioFormat != null) { throw new InvalidOperationException("Must specify a VideoRecodeFormat when merging formats."); } return(VideoFormat?.Extension); } else { return(ExtProvider.GetExtForVideo(VideoRecodeFormat)); } }
public override string GetExt() => ExtProvider.GetExtForAudio(ConversionFormat);