CN101577110B - Method for playing videos and video player - Google Patents

Method for playing videos and video player Download PDF

Info

Publication number
CN101577110B
CN101577110B CN2009100398643A CN200910039864A CN101577110B CN 101577110 B CN101577110 B CN 101577110B CN 2009100398643 A CN2009100398643 A CN 2009100398643A CN 200910039864 A CN200910039864 A CN 200910039864A CN 101577110 B CN101577110 B CN 101577110B
Authority
CN
China
Prior art keywords
filter
hardware
video
video file
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN2009100398643A
Other languages
Chinese (zh)
Other versions
CN101577110A (en
Inventor
李大龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN2009100398643A priority Critical patent/CN101577110B/en
Publication of CN101577110A publication Critical patent/CN101577110A/en
Application granted granted Critical
Publication of CN101577110B publication Critical patent/CN101577110B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The invention relates to a method for playing videos, which comprises the following steps: reading information of a video file; acquiring information of a hardware system; selecting a filter accordingto the corresponding relation between the information of the video file and the hardware system and the filter; selecting the filter according to the corresponding relation between the information of the video file and the hardware system and the filter; and when the hardware system can achieve hardware acceleration to the playing of the video file, selecting a filter which supports the hardware acceleration so that the CPU occupancy factor can be effectively reduced. Besides, the invention also provides a video player.

Description

Video broadcasting method and video player
[technical field]
The present invention relates to field of computer technology, especially video broadcasting method in the computer technology and video player.
[background technology]
When the product when mpeg standard before 10 years--VCD does not withdraw from the consumption market as yet fully; When much human also when gasp in admiratioing the high quality image image quality that DVD brings; Be accompanied by the maturation of video encoding standards such as MPEG-4 Part10, AVC/H.264 and Windows Media VC-1 and the formation of industrial chain thereof, the high definition film has begun to be pursued by the people that pursue quality of the life.
The high definition film requires resolution to reach 1280 * 720 or 1920 * 1080, and correspondingly, the code check of common high definition film is up to 30Mbps.Obviously, (StandardDefinition, SD), the high definition film all is significantly increased in resolution and bit rate connection the defined single-definition film of contrast DVD.The image/sound data of magnanimity have been brought fine and smooth, the image quality true to nature and the clearly demarcated tonequality of rising and falling to the user, make the film audience on the spot in person, vision and the sense of hearing impulsive force fully experiencing film and brought.
Yet, play the load that the high definition film will greatly increase CPU.This is because the conventional video player is placed on all videos decoding work among the CPU and carries out.For the high definition film, it has adopted the video coding algorithm of high computation complexity on the one hand; On the other hand, with respect to the film of low resolution, the image pixel quantity that broadcast high definition film need be handled sharply increases.So; The CPU of common configuration tends to operate at full capacity when the decoding HD video; Cause other user commands of PC response picture slowly to occur and show discontinuous, the desultory phenomenon of sound playing, What is more the situation that operating system does not have response (system in case of system halt) occurs.
Working load when decoding HD video in order to reduce CPU; In recent years; Each big GPU production firm has researched and developed the GPU product of supporting the decoding of HD video hardware one after another, as: NVIDIAGeForce 8/9 series of products that NVIDIA produces and the ATI HD of ATI product 2000 serial and above products.Usually; Video decode comprises entropy decoding, anti-integer transform, motion compensation and post processing of image 4 links such as (perhaps " loop filterings "); Support the GPU of HD video hardware decoding promptly can accomplish the part even all in above-mentioned 4 links; Bear so the some or all of decoding work of being born by CPU transfers GPU to, thereby the cpu resource occupancy when having reduced the system plays HD video makes it can in time respond other user command.Corresponding to the degree of participation of GPU in video decoding process, Microsoft has defined DXVA standard (DirectX Video Acceleration), to show the vision hardware decoding capability class of GPU.
Conventional video player based on the DirectShow framework; When the render video file, at first enumerate the separation vessel filter of registering in the system, the file type on the output terminal (output pin) that generates according to filter is then enumerated with recursive mode and is connected suitable decoding filter until being connected to the renderer filter.More specifically, can be divided into following several steps to playing up of video file:
At first,, enumerate all suitable separation vessels in the system, and, attempt successively according to Merit value order from high to low according to video file condition code or suffix name.When finding certain successfully to be resolved the separation vessel of video file, get into next step; Otherwise, this separation vessel is rejected from play up chart, continue to attempt next separation vessel, all once by traversal until all separation vessels.
Then, on the output terminal of upper level (Upstream) filter, enumerate all suitable decoding filters in the system, and, attempt successively according to priority (Merit) value order from high to low according to video information (Media Type).If when higher level's filter output terminal can be connected (Connect) with the input end of being attempted filter, then continue to connect the next stage filter; Be connected to renderer until recurrence, the whole chart of playing up is set up completion.
If video player can search all DirectShow filters of in system, having registered already, so this video player just can be supported high definition film function of hardware acceleration.Yet video player is preferentially to attempt the higher DirectShow filter of Merit value with the mode of recursive search, and does not consider and utilize the characteristics of high definition film self, so cause rendering efficiency low in the render process of video file; If the filter Merit value that support hardware quickens is lower, even can occur realizing hardware-accelerated situation.On the other hand; Because after opening video card video decode acceleration function; Make common processes such as video decode aftertreatment to implement, make that the image quality after the hardware-accelerated unlatching has certain loss, so if little resolution video is also opened acceleration without exception; Then can bring visual effect to weaken and the system load of failing obviously to improve, original just very little because CPU handles shared resource to little resolution video.
Said process does not have the DXVA ability of digging system video card owing to do not consider high definition file self yet, so can't utilize video card DXVA ability substantially, causes the waste of GPU resource, and then possibly have influence on the broadcast experience of high definition film.
[summary of the invention]
In view of this, be necessary to provide a kind of video broadcasting method of playing according to the characteristics and the system hardware ability of video file self.
In addition, also be necessary to provide a kind of video player of playing according to the characteristics and the system hardware ability of video file self.
A kind of video broadcasting method may further comprise the steps: read video file information, resolve video code model; Obtain hardware system information; Obtain the hardware video acceleration capacity of GPU through reading Hardware configuration, whether support hardware quickens to judge hardware system, if support hardware does not quicken; Then flow process finishes, if support hardware quickens then obtains hardware-accelerated ability information; Corresponding relation according to said video file information and hardware system information and filter is selected filter; Comprise the steps: to judge whether said coded format is corresponding with hardware-accelerated ability information; If it is not corresponding; Select and coded format corresponding decoder filter,, then select demoder filter corresponding with coded format and that support hardware quickens if corresponding.
Preferably, more than one during the said step that reads video file information comprises the steps: the resolution or the code check of resolving video file; Resolve Container Format; Read captions existing way, display mode.
Preferably, saidly select the step of filter to comprise to select and the step of the separation vessel filter that said Container Format is corresponding according to said video file information and hardware system information and the corresponding relation of filter.
Preferably, judging that whether corresponding with hardware-accelerated ability information said coded format also comprise the step whether resolution of judging said video file or code check reach predetermined resolution or code check before; If do not reach said predetermined resolution or code check, then directly carry out the step of said selection and said coded format corresponding decoder filter; If reach said predetermined resolution or code check, then carry out the said step of judging that said coded format is whether corresponding with hardware-accelerated ability information.
Preferably, said corresponding relation according to said video file information and hardware system information and filter selects the step of filter also to comprise: successively according to the type of operating system, whether launched display mode or captions existing way hardware-accelerated, video file and selected the renderer filter.
A kind of video player comprises: the fileinfo parsing module is used to read video file information; Hardware detecting module is used to obtain hardware system information, obtains the hardware video acceleration capacity of GPU through reading Hardware configuration; The filter administration module is used for the corresponding relation of store video files information and hardware system information and filter; Filter connection strategy module; Link to each other with said fileinfo parsing module, hardware detecting module, filter administration module respectively obtaining the corresponding relation of said video file information, hardware system information, video file information and hardware system information and filter, and select filter according to said corresponding relation.
Preferably, said filter administration module comprises separation vessel filter administrative unit, and said separation vessel filter administrative unit is used for the corresponding separation vessel filter priority orders of Container Format of store video files.
Preferably, said filter administration module comprises demoder filter administrative unit, the priority orders under the coded format corresponding decoder filter that said demoder filter administrative unit the is used for store video files condition that whether support hardware quickens respectively.
Preferably; Said filter connection strategy module is used for judging that according to said hardware system information can hardware system hardware-accelerated to the broadcast execution of video file; If can carry out hardware-acceleratedly, then select the high demoder filter of priority under the condition that support hardware quickens and launch hardware-accelerated.
Preferably; Said filter connection strategy module also is used for whether reaching predetermined resolution or code check according to resolution or code check that the resolution or the code check of said video file information are judged said video file; If the resolution of said video file or code check do not reach predetermined resolution or code check, then do not launch hardware-accelerated.
Preferably; Said filter administration module comprises renderer filter administrative unit, said renderer filter administrative unit be used for successively according to operating system type, whether launched display mode or captions existing way hardware-accelerated, video file and selected the renderer filter.
Preferably, said filter administration module is based on open xml file.
In above-mentioned video broadcasting method and the Play System; Corresponding relation according to video file information and hardware system information and filter is selected filter; Can realize when hardware-accelerated that at hardware system the filter of selecting support hardware to quicken can effectively reduce the occupancy of CPU to the broadcast of video file.
Utilize video resolution and code rate information to discern the high definition film, make that in appropriate, just can to open high definition hardware-accelerated, avoid little resolution video to adopt the hardware-accelerated negative effect that causes.
According to the type of operating system, whether launched display mode or captions existing way hardware-accelerated, video file and selected the renderer filter, can avoid occurring compatibility issue.
With respect to based on the system registry mode need be by the filter administration module of operating system management filter, can not rely on operating system based on the filter administration module of open xml file.
[description of drawings]
Fig. 1 is the process flow diagram of video broadcasting method;
Fig. 2 is the detail flowchart that reads video file information;
Fig. 3 is the detail flowchart that obtains hardware system information;
Fig. 4 is a detail flowchart of selecting filter according to the corresponding relation of said video file information and hardware system information and filter;
Fig. 5 is Container Format and separation vessel filter corresponding relation synoptic diagram;
Fig. 6 is coded format and demoder filter corresponding relation synoptic diagram;
Fig. 7 is the module map of video player;
Fig. 8 is the module map of filter administration module.
[embodiment]
In following embodiment, make full use of the characteristics of high definition film self, and excavate and utilize the system hardware function, the efficient when the raising player is played up the high definition film, and improve the hardware-accelerated success ratio of high definition greatly, improve user's high definition movie and experience.
As shown in Figure 1, it is the process flow diagram of video broadcasting method.At first, step S110 reads video file information.When the user opens video file and plays, at first read the information of video file, these information can be file container format, audio coding form, video code model, resolution, code check, captions existing way, display mode etc.Wherein, Container Format is meant that the different video file format of setting is placed on video and audio frequency in the file; With convenient playback simultaneously, the Container Format that the high definition film uses has MPEG (comprising: Mpeg-TS, Mpeg-PS etc.), AVI (Audio Video Interleave), MKV (Matroska) and MP4 etc.; The audio coding form has AC3, DTS, LPCM and EAC3 (AC3-Plus) etc.; Video code model have MPEG2, H.264, VC-1 etc., wherein, be the defined HD video form of blue light video disc and HD DVD video disc H.264 with VC-1, occupied the overwhelming majority of high definition film; The resolution of high definition film is generally 1280 * 720 or 1920 * 1080; Code check is meant the data bulk that needs processing in the unit interval, calculates with bits per second, and for example the code check of high definition film is usually more than 20Mbps; The captions existing way has embedded captions and plug-in captions, and embedded captions directly are embedded in the image through the video coding, and plug-in captions have independent subtitle file, behind video decode, add in the image through the renderer filter; Display mode is divided into lines by line scan and staggered scanning.
Step S120 obtains hardware system information.Obtain GPU (Graphic Processing Unit, DXVA GPU) (DirectX Video Acceleration, hardware video is quickened) ability through reading Hardware configuration.Wherein, GPU can be arranged in independent video card, also can be incorporated in north bridge chips or the central processing unit chip.DXVA is a hardware interface standard of being united definition by Microsoft and graphic chips manufacturer.If a kind of GPU supports the DXVA standard on hardware, do not represent it just to realize all functions of DXVA the inside definition, that is to say that different GPU has different DXVA abilities.Obtain hardware system information and can understand the DXVA ability of GPU; If the DXVA ability of GPU is corresponding with the video code model of video file; Be that GPU can realize the hardware decoding to this coded format, then can carry out hardware-accelerated the playing process of this video file.
Step S130 selects filter according to the corresponding relation of said video file information and hardware system information and filter.Need use multiple filter in the process of video playback, for example separation vessel filter, demoder filter and renderer filter etc., each filter have the different product of how tame manufacturer exploitation again.Have only these filters and video file to can be good at coupling, just can obtain video playback effect preferably.Simultaneously, in order to reduce the occupancy of CPU in the video display process, the most effectively way is to launch the function of hardware acceleration of GPU.Yet; Traditional video playback all is to select filter according to preferential (Merit) value of filter; If the demoder filter Merit value that support hardware quickens is lower, then can't realize hardware-acceleratedly automatically, need the user that the demoder filter manually is set; For the user who is unfamiliar with video technique, manually be provided with even possibly cause video to play.Therefore; Corresponding relation according to said video file information and hardware system information and filter is selected filter; Can realize the broadcast of video file when hardware-accelerated at hardware system; Select the filter of support hardware acceleration, can effectively reduce the occupancy of CPU, remove the trouble that the user manually is provided with simultaneously from.
More specifically, the detailed process of step S110 is as shown in Figure 2.
Step S112, the resolution or the code check of parsing video file.Can't carry out video last handling process (as: processings of picture histogram equalization, blurred picture sharpening processing etc.) owing to open after hardware-accelerated, certain decline arranged maybe be than the pure software decoding process time so open hardware-accelerated picture effect afterwards.In addition, video card model is more, the upgrading period of product is very fast, and video drive that a lot of users use or decoder version are upgraded untimely, cause to open the system exception situation to occur after hardware-accelerated, as: blue screen mistake etc.Less or video code rate is lower when video pictures resolution, during like the 1Mbps left and right sides, all decoding processes are also born and can easily be accomplished by CPU, launch hardware-acceleratedly to the occupancy that reduces CPU and not obvious, can cause negative influence on the contrary.So, utilize video resolution and code rate information to discern the high definition film, make that in appropriate, just can to open high definition hardware-accelerated.
Step S114 resolves Container Format.Container Format is also claimed encapsulation format, exactly video track and the audio track that encoding compression is good is put in the file according to certain form.After the Container Format that obtains video file, can separate video that is packaged together and audio frequency for decoder decode through the separation vessel filter.
Step S116 resolves video code model.Video code model have MPEG2, H.264, VC-1 etc.
Step S118 reads video displaying mode and captions existing way.Display mode is divided into lines by line scan and staggered scanning.The captions existing way has plug-in captions and embedded captions, and embedded captions directly are embedded in the image as the part of image through video coding, therefore, for the renderer filter, can think that embedded captions are equivalent to not have captions; And plug-in captions have independent subtitle file, behind video decode, add in the final images displayed through the renderer filter.
Step among the step S112 to S118 is transposing order or omission part steps wherein as required, for example omits step S112 and S118.
More specifically, the detailed process of step S120 is as shown in Figure 3.
Step S122, whether support hardware quickens to judge hardware system.Judge just whether GPU satisfies the DXVA standard.If do not satisfy, then expression can't be carried out hardware-acceleratedly, and flow process finishes; If satisfy, then get into step S124.
Step S124 obtains hardware-accelerated ability information.Corresponding to the multiple technologies that method for video coding adopted, GPU will realize hardware-accelerated in video decoding process, needs the relevant hardware technical support.And different GPU is because reasons such as Time To Markets, market orientation, and the hardware technology that is adopted is also different.DXVA addressable port through utilizing the Microsoft definition obtains the hardware-accelerated ability information that current system supports; Its to the effect that current video card supports the video decode of which type to quicken function, such as support MPEG-2, H.264, video decode such as VC-1 quickens in the function one or more.
More specifically, the detailed process of step S130 is as shown in Figure 4.
Step S132 selects the separation vessel filter corresponding with Container Format.Container Format through in step S114, resolving the video file that obtains is searched corresponding separation vessel filter.In this embodiment; The selection of separation vessel filter does not rely on the defined Merit value of each separation vessel filter oneself; But give priority (as shown in Figure 5) with the employable separation vessel filter of a certain Container Format according to performances such as its compatibility, the preferential separation vessel filter (for example separation vessel filter A1) that adopts priority high (for example priority is 1) in the process of the video file that separates this Container Format (for example Container Format is A).For Container Format and separation vessel filter commonly used at present, be exemplified below: Container Format AVI preferentially selects Gabest AVI Splitter for use; Container Format MEPG-TS/PS preferentially selects CyberLink MPEG-2Demuxer for use; Container Format MKV preferentially selects HaaliMedia Splitter for use.
Step S133 judges whether the resolution of video file or code check reach predetermined resolution or code check.As stated, when less or video code rate was low when video pictures resolution, all decoding processes were also born and can easily be accomplished by CPU, launched hardware-acceleratedly to the occupancy that reduces CPU and not obvious, can cause negative influence on the contrary.Therefore; If the resolution of video file or code check do not reach predetermined resolution or code check; Then directly select and coded format corresponding decoder filter (step S135), whether support hardware quickens need not consider this demoder filter, and the principle of selection is similar to the selection of separation vessel filter; If reach predetermined resolution or code check, then get into step S135.For example, to video resolution reach more than 1280 * 720, video code rate reaches the above film of 20Mbps, can consider to open hardware-accelerated.The ratio that above-mentioned resolution and code check can be looked the shared cpu resource of number of tasks of the processing power of CPU, the operation of current system carries out automatic or manual adjusting setting.
Step S134 judges whether coded format is corresponding with hardware-accelerated ability information.Promptly judge that according to hardware-accelerated ability information can hardware system carry out hardware-accelerated to the broadcast of the video file of present encoding form.If not corresponding, select and coded format corresponding decoder filter (step S135).
If hardware system information shows the hardware-accelerated ability of GPU and can carry out hard decoder to the video file of current video coded format, then select demoder filter (step S136) corresponding with coded format and that support hardware quickens.In this embodiment; The selection of demoder filter does not rely on the defined Merit value of each demoder filter oneself; But give priority (as shown in Figure 6) according to performances such as its compatibility with the employable demoder filter of a certain coded format, preferentially in the process of video file of this coded format of decoding (for example coded format is D) adopt support hardware to quicken and the demoder filter (for example demoder filter D1) of priority high (for example priority is 1).Coded format and demoder filter at present commonly used are exemplified below: support that at GPU H.264 coded format preferentially selects H.264 VideoDecoder of CyberLink for use under the situation of hard decoder H.264; Support that at GPU coded format VC-1 preferentially selects CyberLinkVC-1Video Decoder for use under the situation of VC-1 hard decoder; Support that at GPU coded format MPEG-2 preferentially selects NVIDIA MPEG-2Video Decoder for use under the situation of MPEG-2 hard decoder.
Step S137, successively according to the type of operating system, whether launched display mode or captions existing way hardware-accelerated, video file and selected the renderer filter.Because renderer as the output device of image, has determined the actual effect of video playback to a great extent.The selection of renderer is at first compatible with operating system; Need consider then video decode whether launched hardware-accelerated, if launched hardware-accelerated, the renderer filter that then need select support hardware to quicken; Need consider the display mode of video file or the existing way of captions at last.Select the renderer filter through top order, define the use order, can realize favorable compatibility and reach preferable video playback effect with respect to only relying on renderer filter priority.For example under the operating system of Windows Vista, adopted hardware-acceleratedly, display mode is for lining by line scan, and captions are can select Enhanced Video Renderer (C/A) renderer filter for use under the situation of plug-in captions.
Above-mentioned steps S132 is in S137, and step S133 can omit, and promptly can not consider the resolution or the code check of video, directly gets into step S134.
As shown in Figure 7, a kind of video player also is provided, comprise memory module 710, fileinfo parsing module 720, hardware detecting module 730, filter administration module 740 and filter connection strategy module 750.
Memory module 710 is used for store video files, and memory module 710 can be disk, flash memory etc.Memory module 710 also can be substituted by the module of input video files such as mixed-media network modules mixed-media.
Fileinfo parsing module 720 links to each other with memory module 710, is used to read video file information.Fileinfo parsing module 720 is through resolving the attribute of video file, the Container Format of acquisition video file, video code model, resolution, code check, captions existing way, display mode etc.
Hardware detecting module 730 is used to obtain hardware system information.Hardware detecting module 730 is obtained the DXVA ability of GPU through reading Hardware configuration.
Filter administration module 740 is used for the corresponding relation of store video files information and hardware system information and filter.According to this corresponding relation, after definite video file information and hardware system information, just can confirm that only filter plays up chart.Experience shows; Set up the high definition film play up chart the time; Need to consider the matching problem between the filter; Though play up chart, yet because audio frequency and video asynchrony phenomenon or the hardware-accelerated failure of the compatibility issue between each producer's demoder can cause the high definition movie time otherwise can successfully set up.Adopt filter administration module 740 to manage filter, can effectively eliminate this this do not match or compatible not good enough problem.In addition, filter administration module 740 all right this corresponding relations of auto-update in time obtain the only filter type of video file.When in computer system, not having this filter, can also download or point out the user to go to download automatically through the backstage.Preferred embodiment; Filter administration module 740 is based on open xml file; With respect to based on the system registry mode need be by the filter administration module of operating system (for example windows) management filter, can not rely on operating system based on the filter administration module 740 of open xml file.
More specifically, filter administration module 740 comprises separation vessel filter administrative unit 742, demoder filter administrative unit 744 and renderer filter administrative unit 746.Separation vessel filter administrative unit 742 is used for the corresponding separation vessel filter priority orders of Container Format of store video files, and is for example as shown in Figure 5, gives priority with the employable separation vessel filter of a certain Container Format according to performances such as its compatibility.Priority orders under the coded format corresponding decoder filter that demoder filter administrative unit 744 the is used for store video files condition that whether support hardware quickens respectively, for example as shown in Figure 6.Renderer filter administrative unit 746 successively according to the type of operating system, whether launched display mode or captions existing way hardware-accelerated, video file and selected the renderer filter.
Filter connection strategy module 750 links to each other with said fileinfo parsing module 720, hardware detecting module 730, filter administration module 740 respectively obtaining the corresponding relation of video file information, hardware system information, video file information and hardware system information and filter, and selects filter according to this corresponding relation.Filter connection strategy module 750 is used for judging that according to hardware system information can hardware system hardware-accelerated to the broadcast execution of video file; If can carry out hardware-acceleratedly, then select the high demoder filter of priority under the condition that support hardware quickens and launch hardware-accelerated.
Further; Filter connection strategy module 750 also is used for whether reaching predetermined resolution or code check according to resolution or code check that the resolution of video file information or code check are judged video file; If the resolution of video file or code check do not reach predetermined resolution or code check; Then do not launch hardware-acceleratedly, so can avoid under the situation of low resolution or code check, launching hardware-accelerated, can cause the situation of negative effect on the contrary the occupancy that reduces CPU and not obvious.Utilize These characteristics, can classify to the media file that current player is opened, and identify the high definition film, thereby improve its render process, raise the efficiency.Because MPEG-2/H.264/VC-1 has been widely used video coding algorithm, thus when the video card support hardware quickens to all opening hardware-accelerated with the film of above-mentioned format encoded arbitrarily.
The above embodiment has only expressed several kinds of embodiments of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to claim of the present invention.Should be pointed out that for the person of ordinary skill of the art under the prerequisite that does not break away from the present invention's design, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with accompanying claims.

Claims (12)

1. a video broadcasting method is characterized in that, may further comprise the steps:
Read video file information, resolve video code model;
Obtain hardware system information; Obtain the hardware video acceleration capacity of GPU through reading Hardware configuration, whether support hardware quickens to judge hardware system, if support hardware does not quicken; Then flow process finishes, if support hardware quickens then obtains hardware-accelerated ability information;
Corresponding relation according to said video file information and hardware system information and filter is selected filter; Comprise the steps: to judge whether said coded format is corresponding with hardware-accelerated ability information; If it is not corresponding; Select and coded format corresponding decoder filter,, then select demoder filter corresponding with coded format and that support hardware quickens if corresponding.
2. video broadcasting method according to claim 1 is characterized in that, more than one during the said step that reads video file information comprises the steps:
Resolve the resolution or the code check of video file;
Resolve Container Format;
Read captions existing way, display mode.
3. video broadcasting method according to claim 2 is characterized in that, saidly selects the step of filter to comprise to select and the step of the separation vessel filter that said Container Format is corresponding according to said video file information and hardware system information and the corresponding relation of filter.
4. video broadcasting method according to claim 2; It is characterized in that, judging that whether corresponding with hardware-accelerated ability information said coded format also comprise the step whether resolution of judging said video file or code check reach predetermined resolution or code check before;
If do not reach said predetermined resolution or code check, then directly carry out the step of said selection and said coded format corresponding decoder filter;
If reach said predetermined resolution or code check, then carry out the said step of judging that said coded format is whether corresponding with hardware-accelerated ability information.
5. video broadcasting method according to claim 2; It is characterized in that said corresponding relation according to said video file information and hardware system information and filter selects the step of filter also to comprise: successively according to the type of operating system, whether launched display mode or captions existing way hardware-accelerated, video file and selected the renderer filter.
6. a video player is characterized in that, comprising:
The fileinfo parsing module is used to read video file information;
Hardware detecting module is used to obtain hardware system information, obtains the hardware video acceleration capacity of GPU through reading Hardware configuration;
The filter administration module is used for the corresponding relation of store video files information and hardware system information and filter;
Filter connection strategy module; Link to each other with said fileinfo parsing module, hardware detecting module, filter administration module respectively obtaining the corresponding relation of said video file information, hardware system information, video file information and hardware system information and filter, and select filter according to said corresponding relation.
7. video player according to claim 6 is characterized in that, said filter administration module comprises separation vessel filter administrative unit, and said separation vessel filter administrative unit is used for the corresponding separation vessel filter priority orders of Container Format of store video files.
8. video player according to claim 6; It is characterized in that; Said filter administration module comprises demoder filter administrative unit, the priority orders under the coded format corresponding decoder filter that said demoder filter administrative unit the is used for store video files condition that whether support hardware quickens respectively.
9. video player according to claim 8; It is characterized in that; Said filter connection strategy module is used for judging that according to said hardware system information can hardware system hardware-accelerated to the broadcast execution of video file; If can carry out hardware-acceleratedly, then select the high demoder filter of priority under the condition that support hardware quickens and launch hardware-accelerated.
10. video player according to claim 8; It is characterized in that; Said filter connection strategy module also is used for whether reaching predetermined resolution or code check according to resolution or code check that the resolution or the code check of said video file information are judged said video file; If the resolution of said video file or code check do not reach predetermined resolution or code check, then do not launch hardware-accelerated.
11. video player according to claim 6; It is characterized in that; Said filter administration module comprises renderer filter administrative unit, said renderer filter administrative unit be used for successively according to operating system type, whether launched display mode or captions existing way hardware-accelerated, video file and selected the renderer filter.
12. video player according to claim 6 is characterized in that, said filter administration module is based on open xml file.
CN2009100398643A 2009-05-31 2009-05-31 Method for playing videos and video player Active CN101577110B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100398643A CN101577110B (en) 2009-05-31 2009-05-31 Method for playing videos and video player

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100398643A CN101577110B (en) 2009-05-31 2009-05-31 Method for playing videos and video player

Publications (2)

Publication Number Publication Date
CN101577110A CN101577110A (en) 2009-11-11
CN101577110B true CN101577110B (en) 2012-04-25

Family

ID=41272033

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100398643A Active CN101577110B (en) 2009-05-31 2009-05-31 Method for playing videos and video player

Country Status (1)

Country Link
CN (1) CN101577110B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140022382A1 (en) * 2012-07-18 2014-01-23 Vivotek Inc. Video setting method

Families Citing this family (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102347047B (en) * 2010-07-30 2016-01-20 腾讯科技(深圳)有限公司 A kind of media player detection method and device
CN102447950A (en) * 2010-09-30 2012-05-09 突触计算机系统(上海)有限公司 Method and equipment for video play
JP5850214B2 (en) 2011-01-11 2016-02-03 ソニー株式会社 Image processing apparatus and method, program, and recording medium
CN102904857A (en) * 2011-07-25 2013-01-30 风网科技(北京)有限公司 Client video playing system and method thereof
CN102984587B (en) * 2011-09-05 2016-05-25 深圳市快播科技有限公司 A kind of optimization method, device and terminal of video playback
CN103067759A (en) * 2011-10-19 2013-04-24 深圳市快播科技有限公司 Establishment method and devices of playback link and player
US9241167B2 (en) 2012-02-17 2016-01-19 Microsoft Technology Licensing, Llc Metadata assisted video decoding
CN103260021B (en) * 2012-02-21 2016-08-03 腾讯科技(深圳)有限公司 A kind of video encoding/decoding method and device
CN103327312B (en) * 2012-03-20 2016-04-20 腾讯科技(深圳)有限公司 The decoding processing method of frame of video and device
CN103700385A (en) * 2012-09-27 2014-04-02 深圳市快播科技有限公司 Media player, playing method, and video post-processing method in hardware acceleration mode
CN103117077A (en) * 2013-01-17 2013-05-22 广东欧珀移动通信有限公司 Display system and display method of blu-ray player disc VSFilter
CN103165151B (en) * 2013-03-29 2016-03-30 华为技术有限公司 Method for broadcasting multimedia file and device
CN103491379A (en) * 2013-09-25 2014-01-01 浙江宇视科技有限公司 Method and device for improving intelligent analysis performance
CN103595898A (en) * 2013-11-12 2014-02-19 厦门美图网科技有限公司 Intelligent filter processing method based on image information
CN103618962B (en) * 2013-12-09 2017-01-18 乐视网信息技术(北京)股份有限公司 Control method and device for getting access to specific video application of smart television
CN103702180B (en) * 2014-01-14 2017-06-20 北京奇艺世纪科技有限公司 media file playing method and device
CN104980791A (en) * 2014-04-08 2015-10-14 腾讯科技(北京)有限公司 Method and device for performing filter processing on video
CN103971713B (en) * 2014-05-07 2018-02-16 厦门美图之家科技有限公司 A kind of filter processing method of video file
CN105245948B (en) * 2014-06-26 2019-02-05 北京新媒传信科技有限公司 Method for processing video frequency and device
CN104093072B (en) * 2014-06-30 2017-06-16 京东方科技集团股份有限公司 A kind of video information Play System and method
CN104954863B (en) * 2015-06-05 2020-02-28 深圳市九洲电器有限公司 Audio and video decoding component selection method and system
CN108055579B (en) * 2017-12-14 2020-05-08 Oppo广东移动通信有限公司 Video playing method and device, computer equipment and storage medium
CN109413337A (en) * 2018-08-30 2019-03-01 北京达佳互联信息技术有限公司 Video Rendering method, apparatus, electronic equipment and storage medium
CN109151574B (en) 2018-10-15 2020-03-24 Oppo广东移动通信有限公司 Video processing method, video processing device, electronic equipment and storage medium
CN109379628B (en) * 2018-11-27 2021-02-02 Oppo广东移动通信有限公司 Video processing method and device, electronic equipment and computer readable medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1767601A (en) * 2005-10-21 2006-05-03 西安交通大学 Synchronous broadcast controlling method capable of supporting multi-source stream media
CN1885907A (en) * 2005-06-20 2006-12-27 三星电子株式会社 Video processing apparatus
CN101123723A (en) * 2006-08-11 2008-02-13 北京大学 Digital video decoding method based on image processor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1885907A (en) * 2005-06-20 2006-12-27 三星电子株式会社 Video processing apparatus
CN1767601A (en) * 2005-10-21 2006-05-03 西安交通大学 Synchronous broadcast controlling method capable of supporting multi-source stream media
CN101123723A (en) * 2006-08-11 2008-02-13 北京大学 Digital video decoding method based on image processor

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
JP特开2006-318388A 2006.11.24
房波.基于通用可编程GPU的视频编解码器-架构、算法与实现.《中国优秀硕士学位论文全文数据库》.2005, *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140022382A1 (en) * 2012-07-18 2014-01-23 Vivotek Inc. Video setting method

Also Published As

Publication number Publication date
CN101577110A (en) 2009-11-11

Similar Documents

Publication Publication Date Title
CN101577110B (en) Method for playing videos and video player
CN106105177B (en) Transform method and converting means
CN100477770C (en) Encoding or decoding device and recording/reproduction terminal
JP2022051787A (en) Signal processing device and method
US20070280646A1 (en) Method and apparatus transmitting audio signals and video signals
US8244114B2 (en) Recording apparatus and recording method, playback apparatus and playback method, recording/playback apparatus and recording/playback method, and program
JP7117626B2 (en) Video display device and video display method
CN109691114B (en) Image display device and image display method
US20130298171A1 (en) Device for generating content data, method for generating content data, and recording medium
CN109891902A (en) Image display system and image display method
US20140294100A1 (en) Dual channel encoding and detection
US10873684B2 (en) Video display apparatus and video display method
CN106060628A (en) DirectShow-based method and system supporting variable coding
US20080204445A1 (en) Dynamic Decoder Switch
US20090310942A1 (en) Information processing apparatus and method for reproducing video image
JP2013135454A (en) Electronic apparatus, and mutual video and voice output method of electronic apparatus
CN115396621A (en) Network push flow control method, device, equipment and storage medium based on RK628D
CN201887893U (en) DVR (digital video recorder) with high-definition display output function
JP4170993B2 (en) Multiple subtitle display system and method for digital video disc player
JP2008029028A (en) Method and apparatus for managing animation data of interactive optical disc
CN100433803C (en) Digital media player
KR100577052B1 (en) Potable apparatus for moving pictures and its service method
US20150043889A1 (en) Image reproducing apparatus, sever and image reproducing methods thereof
US7450831B2 (en) Method for DVD-subpicture compositing in 420 chroma format
JP4897589B2 (en) Recording / playback device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant