C # using DirectShow to implement the core of a Media Player (1) DirectShow Introduction

Source: Internet
Author: User

Using. Net for multimedia development does not seem to be much, so there are fewer online resources and fewer people. However, there are still some new ones on my blog.ArticleA little unexpected. At present, I no longer engage in multimedia-related work. I have been busy with vomiting blood since I joined a new company. In addition, I have never updated this series because of my lack of fear. However, we have promised to update the Code if it is empty. Now we are a little bit empty, and there is no reason to continue this pitfall.

DirectShow is a platform for Microsoft to process multimedia-related transactions. It is based on the COM technology framework, so it can work very well with. net. In this framework, multimedia related transactions are divided into subtasks, each of which is placed in some COM components named filter. If you just do some simple work, the filters that Microsoft comes with are enough. But if you still have more advanced tasks to complete, it is inevitable to write filter estimates. Before getting stuck in the details, let's take a snapshot of DirectShow to give a general impression.

Start

After the Martian stabbed the Earth's detector with a bamboo, a CD was found in it, and the computer level of the Martian was extremely high, it only takes three minutes for them to use a knife to engrave an operating system on the hard disk (believe me, or crack the version). They really want to see the content on the CD, because the Martian is so earthy, so far, I don't know any news about the death of I love, and I am still waiting for her no-code film.

Now they have an operating system, and they also have an optical drive. They have everything, but they do not have a player. There was a TV station on the Martian who was not in a hurry and was always ready to clean up those who did not watch TV without knowing the truth. The Martian only watches TV.

However, in the face of Rice island love, radio and television are not in a rush to defeat, the Martian intends to use their wisdom to develop a player to watch wonderful rice island love with no code, they are not afraid to die. Soon they drew a sketch:

 

 

Later

 

The Martian found it difficult to put all the functions in a box. Although no boss detects themCodeThey are forced to work overtime to rewrite and deduct their wages, but they are very high computer-level creatures, they even know 27 design patterns, they can not bear such ugly code. The top elites of Mars have come to the truth in the theory of "bringing three tables" of the Martian leaders. They believe that it is perfect to divide the box into three parts, so they drew a sketch like this:

 

The visionary Martian thought that the playing source would change, and a thing named capture filter must be abstracted from the source. They also specifically abstracted a render filter for sound card and other hardware, because the sculptor on Mars could have carved a new sound card or video card in three minutes, and they also assured the people of all Mars, it is definitely not compatible with earlier versions of hardware. All the other logics are inserted in the small black box named transfer filter.

Later

The Martian has been divided on the principle that the eyes are more important or the ears are more important. Later, the divergence grew bigger and bigger, so that it reached an irreconcilable level. They finally split into eye and ears. Unfortunately, the two stars who initially developed the player belong to different factions. They look down upon each other and think that their transfer filter is actually attended by pagans, it's just an insult to myself, so on a dark night, they split the transfer filter:

 

In a cell named Demux, Multimedia Streams are divided into two channels: video streams and audio streams. From then on, Multimedia Streams are separated, but every day when news are not broadcast together, the two of them will cut out their watches and proofread their time, as if some people have arranged their fate (Demux is behind ).

 

 

Last

This player is so popular that all Martians have one. In order to enable more Martian players to listen to the teachings of the eldest brother, the five econnoisseurs on Mars have developed a capture filter to receive signals from terrestrial television. Soon after, the Martian also invented the network. A hacker who once complained three times on an online game developed the capture filter to receive network signals. And so on. With the loss of time, there was an increasing number of multimedia stream branches at first, and more filters were hanging online. The earth detector logged on to the one hundred anniversary of Mars. The Martian took the last photo of the player, which looked like this:

They call this framework DirectShow.

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.