Asp. NET how to grab a frame from a video file and generate an image file

Source: Internet
Author: User
Tags reference
asp.net

A few days ago to attend the Tech-ed Congress, in fact, more is to know some like-minded friends, MS Curriculum is often a superficial, so listen to the lesson to also have no meaning. However, it is gratifying to know some friends in the garden. Technicians are really very easy to contact, we can quickly cut into the topic, and then to explore. This is perhaps the simple side of the technical staff. These two days, and changed the new units, feeling for a change, it is really no meaning. I remember when I first began to work, the boss told me not to change, then I and others said this, I did not think I was reduced to this step. Always wanted to find a good team, a good club, but has not been the wish. I don't know what's going to happen now, but at present it seems not optimistic, I hope the team is a mutual aid, unity, passion, flexibility, mutual respect, complementary team, may be very abstract, but all my vision from the Agile software Development, I do not want to see the team rigid, traditional, weighty. Also do not like the individualistic team, "software development is the game of man and Man", yes, I want is such a people-oriented team, the requirements are not high, but difficult to achieve. At least now in the confusion ...

No nonsense, we often generate thumbnails for the picture, in Windows video in the view of the thumbnail also show the picture, if a video system, then users upload 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, asp.net, cool!

Source code in this, with interest, down the past to see it
Link/files/jillzhang/extractframe_source.rar
Reference articles:
Http://www.yafla.com/dennisforbes/Extracting-Video-Frames-with-NET/Extracting-Video-Frames-with-NET.html



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.