using System.Collections.Generic; using System.Windows.Forms;
{
{
//Info of video file
//Info Video of video
//Info audio of video
{
if (System.IO.File.Exists(MovieFile
)) {
F
= Sh
.NameSpace(System.IO.Path.GetDirectoryName(MovieFile
)); FI = F.ParseName(System.IO.Path.GetFileName(MovieFile));
////Info of video file
FileSize = F.GetDetailsOf(FI,1);
////Info Video of video
Runtime = F.GetDetailsOf(FI,27);
Resolution = F.GetDetailsOf(FI, 265) + " X " + F.GetDetailsOf(FI, 263); //???
DataRate = F.GetDetailsOf(FI,262); //???
TotalBirate = F.GetDetailsOf(FI,266);//???
FrameRate = F.GetDetailsOf(FI,264);//???
////Info audio of video
BitRate = F.GetDetailsOf(FI,28);//???
Channels = F.GetDetailsOf(FI,?);//???
AudioSampleRate = F.GetDetailsOf(FI,33);//???
}
const string MSG
= "Could not get movie file information. "; // MSG += "Please make sure the right codecs are installed";
MessageBox.Show(MSG, Application.ProductName,
MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
}
{
MessageBox.Show("The file does not exist.", Application.ProductName,
MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
}
}
}