Exemple #1
0
        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);
        }
Exemple #2
0
 public static int ToValue(VideoFPS fps)
 {
     return(_videoFPSs.ToValue(fps));
 }
Exemple #3
0
 public static void ToElement(String value, out VideoFPS fps)
 {
     fps = _videoFPSs.ToElement(value);
 }
Exemple #4
0
 public static String ToString(VideoFPS fps)
 {
     return(_videoFPSs.ToString(fps));
 }