public override string ToString() { string text = string.Format("Filename: {0}, Duration: {1}, Bitrate: {2} kb/s", Path.GetFileName(FilePath), Duration.ToString(@"hh\:mm\:s"), Bitrate); if (!string.IsNullOrEmpty(VideoCodec)) { text += string.Format(", Video codec: {0}, Resolution: {1}x{2}, FPS: {3}", VideoCodec, VideoResolution.Width, VideoResolution.Height, VideoFPS.ToString("0.##", CultureInfo.InvariantCulture)); } if (!string.IsNullOrEmpty(AudioCodec)) { text += string.Format(", Audio codec: {0}", AudioCodec); } return(text); }
public static int ToValue(VideoFPS fps) { return(_videoFPSs.ToValue(fps)); }
public static void ToElement(String value, out VideoFPS fps) { fps = _videoFPSs.ToElement(value); }
public static String ToString(VideoFPS fps) { return(_videoFPSs.ToString(fps)); }