I'm offering video tutorials for one of my sites. The player is embedded in a web page. In order to get the right aspect ratio for the player I need to know the width and height of each video at run-time. I was hoping there was some way to pull this from the .wmv or .avi file directly. There is a SDK for WMS, but I can't find a way to interact with it on a web page. I'm hoping to avoid adding width and height columns to the database for each video, but if that turns out to be the only way then I'll do it.
Typically this is something I'd store in the DB, but you can use FFMpeg to get the width and height. There's also some commercial .NET wrappers you can buy that make it really easy to load a video as an object and get all sorts of data about it.
We use it to encode uploaded video and embed parameters, but it reads info too.