Pain and effort-how to capture a snapshot from a video file in Asp.net and generate an image file

Source: Internet
Author: User

I attended the tech-ed conference a few days ago. In fact, I met some like-minded friends. The Ms course is often a little bit of water, so I didn't mean much to start the course. However, I am very pleased to have the honor to meet some friends in the garden. It is really easy for technicians to get in touch with. We can quickly get into the topic and discuss it. This may be the only side of the technical staff. In the past two days, I changed my new unit and felt that I had no intention of changing it. I remember when I first started my work, my boss told me not to trade it in exchange. At that time, I told others that I did not expect myself to fall into this step. I always wanted to find a good team and a good club, but I never expected it. I don't know what will happen now, but it doesn't seem optimistic at the moment. My expected team is a team that provides mutual assistance, unity, passion, flexibility, mutual respect, and complementing each other. It may be very abstract, however, all my visions are derived from agile software development. I am not willing to see the team being stiff, traditional, and dead. I also don't like a team of individuals very much. "Software development is a game of people." That's right. What I want is a people-oriented team with low requirements, but it is difficult to implement. At least I am confused...
No nonsense. We often generate thumbnails for images. In Windows, videos are displayed when you view thumbnails. If you are using a video system, you can upload videos, how to generate a thumbnail for it? To operate a video file, we usually use driectshow in DirectX to capture screens, images, and videos, I was surprised by the 3D effect of the app under Vista demonstrated by Ms.
To use DirectShow in. net, the first thing you need to do is Program Set, this Assembly can help you complete. Net call to DirectShow, and you do not need to use Com, save the registration process, the Assembly name is: InterOP. dexterlib. dll, It is like other DLL, just add reference.
This dll encapsulates a class, which allows you to easily generate video thumbnails, and applies to winform and Asp.net. Cool! The effect is as follows:
Winform:

Asp.net:

The source code is here. If you are interested, let's take a look.
Linklink/files/jillzhang/extractframe_source.rar
References:
Http://www.yafla.com/dennisforbes/Extracting-Video-Frames-with-NET/Extracting-Video-Frames-with-NET.html

Another method is:
Http://yao.cnblogs.com/archive/2006/05/31/414151.aspx

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.