Question

okay so i'm working with visual studio 2010.

I need to read out the resolution from a MPEG file. So that would be the video width en height.

I think I need to create a button linked to an openfiledialog.show(), and then get a property from the specified file, by passing it on to a function.

My question: Does vb.net has build-in methods to gather the property of a file? Or does one know a free com component that does it for me?

Was it helpful?

Solution

I don't think MPG files have detailed meta data embedded in them. However, have a look at this post which explains how to get extended data from the tags stored with the file. If you right-click on the video file...Properties...Details, the file may have its Frame Width and Frame Height information filled in. You can extract this information, using the details from the link, to get the relevant information.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top