Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows VistaWindows XPWindows MeWindows 98Windows 95Virtual PCInternet ExplorerOutlook ExpressWindows MediaSecurity
Related Topics
MS Server ProductsMS OfficePC HardwareMore Topics ...

Windows Forum / Windows Media / General Topics / April 2007

Tip: Looking for answers? Try searching our database.

Thumbnails / Images / Snapshots of .wmv files

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
janefield2002@yahoo.com - 30 Apr 2007 04:58 GMT
Hi,

I am programmatically running Windows Media encoder to create
various .wmv files, that I then publish on a publishing point and link
to from an HTML page. However, my links are purely text based. I would
like to have thumbnails (like they have on online video websites) that
link to the videos. So, I would also like to be able to
prgrammatically extract an "image" from the .wmv that I can use as a
thumbnail / image on the HTML page that links to the video. How can I
do this?

Thanks a lot!
vegethalia - 30 Apr 2007 07:57 GMT
Hi janefield.

You can use the WMSDK to recover the first frame of every file. Simply
do (in pseudocode:)

CComPtr<IIWMReader> pReader;
CComPtr<INSSBuffer> pINSBuff;

pReader->Open(file);
pReader->GetNextSample(videoStreamNumber, pInsBuff, times....);

Then in pInsBuff you will have the bits of the image. You can
configure the OutputProps of the reader to configure the color space
(RGB24, YUV, etc) and the size of the bitmap. Default is RGB24 and
original image size.
You also have to discover the videoStreamNumber (obtaining a profile
from the reader and examining every stream in it).

Vegethalia.

--------------------------------------------------
http://www.pleyhades.com
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.