|
-
May 25th, 2024, 03:49 PM
#36
Re: How can I display the thumbnail of a video file in a Picturebox?
With -Franky-'s permission, I've posted a normal-interface using, 64bit compatible, WinDevLib-based twinBASIC version of the VBC_MF_GDI+_VideoThumbnail project to grab a thumbnail of any point in time of a video, if anyone is interested:
https://github.com/fafalone/VideoThumbnails
I've also made the thumbnail size settable on the form, displayed the video Form-sized instead of thumbnail-sized, and greatly simplified all the time/duration stuff by using LongLong instead of Currency. If you don't like typelibs, tB is the best of both worlds as you can define the interfaces using BASIC-style syntax right in the project, as WinDevLib does (it's an internal dependency like adding some .bas files).
Would be pretty simple to convert further and backport to VB6/oleexp; all the MF interfaces are there. Just be careful, the oleexp enum has the wrong value for MFMEDIASOURCE_CAN_SEEK.
(PS- I'm confused on the point of using a UDT for PROPVARIANT? You know they're identical to VARIANT in every way besides the list of C/C++ types allowed, and you can use VB's Variant to hold a PROPVARIANT, right? I simplified that too.)
Great work on the original project and thanks for letting me post a modified version!
Last edited by fafalone; May 25th, 2024 at 03:57 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|