Determine the video clip size
1 answer
I don't know if this is the right fit for this, but with DirectX you can use the video class in the AudioVideoPlayback namespace to get the default video size. After creating the Video object, you can get the DefaultSize property from which you can get the height and width.
Simple example:
Video video = new Video(videoPath, false);
Size size = video.DefaultSize;
Console.WriteLine("Width: " + size.Width);
Console.WriteLine("Height: " + size.Height);
+2
source to share