var player = new WindowsMediaPlayer(); var clip = player.newMedia(file.FullName); lblLenght_.Text = (TimeSpan.FromSeconds(clip.duration)).ToString(); ShellFile shellFile = ShellFile.FromFilePath(file.FullName); lblFPS_.Text = (shellFile.Properties.System.Video.FrameRate.Value / 1000).ToString(); lblHeight_.Text = shellFile.Properties.System.Video.FrameHeight.Value.ToString() + " px"; lblWidth_.Text = shellFile.Properties.System.Video.FrameWidth.Value.ToString() + " px"; lblResolution_.Text = shellFile.Properties.System.Video.FrameWidth.Value.ToString() + "x" + shellFile.Properties.System.Video.FrameHeight.Value.ToString() + " px"; blBitrate_.Text = (shellFile.Properties.System.Video.TotalBitrate.Value / 1000).ToString() + " kb/s";
StandardOutput
StandardError
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)