Sign in to follow this  
Skute

DirectShow: Get height and width of a movie

Recommended Posts

Hi, does anyone know how i can get the height and width of a movie without loading it into a window? I know you can query the graph for the video window, and then call ->get_Width() and ->get_Height(), but that is very cumbersome. I just want to create a preview bitmap of a movie after the user selects it. I can get the length and type etc of the movie using the Media Detector, just from the filename, so i presume there has to be a similar way for finding width and height?! thanks ----------- [EDIT] Its ok thanks, ive found the solution, you need to use get_StreamMediaType() on the media detector. From there you can get the VIDEOINFOHEADER which contains a BITMAPHEADER. [Edited by - Skute on November 25, 2004 6:19:57 AM]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this