How to grab a frame from a video file and generate an image file in asp.net

Source: Internet
Author: User
Tags net

We often generate thumbnails for pictures, in Windows Video in the view of the thumbnail also shows the picture, if a video system, then the user uploaded video, how to generate thumbnails for it? To operate the video file, the usual method is DirectX inside the driectshow, use it can achieve grab screen, grab map, capture the function of video, think of this, but also surprised at Ms Demo Vista app that gorgeous 3d effect.

The first thing you do when you want to use DirectShow in. NET is to need an assembly that can help you with the call to DirectShow, and you don't need to use COM to dispense with the registration process, which is the assembly name: Interop. DexterLib.dll, it's like any other DLL, just add a reference.

Using this DLL, you encapsulate a class that allows you to easily generate a video thumbnail, and applies to WinForm and asp.net.

The effect is as follows:

WinForm:



asp.net:




Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.