vb.net read dimensions (video height & width) from specific file
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 vid开发者_Python百科eo 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?
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.
精彩评论