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

Method for playing videos and video player Download PDF

Info

Publication number
CN101577110A
CN101577110A CNA2009100398643A CN200910039864A CN101577110A CN 101577110 A CN101577110 A CN 101577110A CN A2009100398643 A CNA2009100398643 A CN A2009100398643A CN 200910039864 A CN200910039864 A CN 200910039864A CN 101577110 A CN101577110 A CN 101577110A
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.)
Granted
Application number
CNA2009100398643A
Other languages
Chinese (zh)
Other versions
CN101577110B (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

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 according to 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 a lot of people 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 playing the high definition film will greatly increase the load of 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 PC to respond other user commands and discontinuous, the desultory phenomenon of sound playing of picture demonstration slowly occurs, 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 series and above products thereof.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 finish the part even all in above-mentioned 4 links, so the some or all of decoding work of being born by CPU transfers GPU to and bears, 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, at first enumerate the separation vessel filter of registering in the system when the render video file, the file type on the output terminal (output pin) that generates according to filter is enumerated with recursive mode and is connected suitable decoding filter until being connected to the renderer filter then.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 that the separation vessel of video file can successfully be resolved, enter next step; Otherwise, this separation vessel is rejected from play up chart, continue to attempt next separation vessel, all traveled through once 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 energy is 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 and to be finished.
If video player can search all DirectShow filters of having registered already in system, 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 in 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 the image quality after the hardware-accelerated unlatching that certain loss be arranged, 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 may 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; Obtain hardware system information; Corresponding relation according to described video file information and hardware system information and filter is selected filter.
Preferably, more than one during the described step that reads video file information comprises the steps: the resolution or the code check of resolving video file; Resolve Container Format; Resolve video code model; Read captions existing way, display mode.
Preferably, the described step of obtaining hardware system information comprise the steps: to judge hardware system whether support hardware quicken; If support hardware quickens then obtains hardware-accelerated ability information.
Preferably, describedly select the step of filter to comprise to select and the step of the separation vessel filter that described Container Format is corresponding according to described video file information and hardware system information and the corresponding relation of filter.
Preferably, describedly select the step of filter to comprise with the corresponding relation of filter: to judge whether described coded format is corresponding with hardware-accelerated ability information according to described video file information and hardware system information; If not corresponding, select and coded format corresponding decoder filter; If corresponding, then select demoder filter corresponding with coded format and that support hardware quickens.
Preferably, judge described coded format whether with the step that also comprises whether the resolution of judging described video file or code check reach predetermined resolution or code check before hardware-accelerated ability information is corresponding; If do not reach described predetermined resolution or code check, then directly carry out the step of described selection and described coded format corresponding decoder filter; If reach described predetermined resolution or code check, then carry out the described step of judging that described coded format is whether corresponding with hardware-accelerated ability information.
Preferably, described corresponding relation according to described 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 enabled 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; 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 described fileinfo parsing module, hardware detecting module, filter administration module respectively obtaining the corresponding relation of described video file information, hardware system information, video file information and hardware system information and filter, and select filter according to described corresponding relation.
Preferably, described filter administration module comprises separation vessel filter administrative unit, and described separation vessel filter administrative unit is used for the separation vessel filter priority orders of the Container Format correspondence of store video files.
Preferably, described filter administration module comprises demoder filter administrative unit, the priority orders under the coded format corresponding decoder filter that described demoder filter administrative unit the is used for store video files condition that whether support hardware quickens respectively.
Preferably, described filter connection strategy module is used for judging that according to described 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 enable hardware-accelerated.
Preferably, described 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 described video file information are judged described video file, if the resolution of described video file or code check do not reach predetermined resolution or code check, then do not enable hardware-accelerated.
Preferably, described filter administration module comprises renderer filter administrative unit, described renderer filter administrative unit be used for successively according to operating system type, whether enabled display mode or captions existing way hardware-accelerated, video file and selected the renderer filter.
Preferably, described 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 just can to open high definition in appropriate hardware-accelerated, avoid little resolution video to adopt the hardware-accelerated negative effect that causes.
According to the type of operating system, whether enabled 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 described 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 the following embodiments, 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 unit interval domestic demand data bulk to be processed, 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 by the video coding, and plug-in captions have independent subtitle file, add in the image by the renderer filter behind video decode; Display mode is divided into lines by line scan and staggered scanning.
Step S120 obtains hardware system information.Obtain Graphics Processing Unit (Graphic Processing Unit, DXVA GPU) (DirectX Video Acceleration, hardware video is quickened) ability by 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 described video file information and hardware system information and filter.Need to 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 effective way is to enable 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-accelerated 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 may cause video to play.Therefore, corresponding relation according to described 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, the filter of selecting support hardware to quicken, 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 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 be arranged may 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 as the 1Mbps left and right sides, all decoding processes are also born and can easily be finished by CPU, enable 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 just can to open high definition in appropriate hardware-accelerated.
Step S114 resolves Container Format.Container Format also claims 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 by the separation vessel filter.
Step S116 resolves video code model.Video code model have MPEG2, H.264, VC-1 etc.
Step S118 reads the display mode and the captions existing way of video.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 by 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, add in the image of final demonstration by the renderer filter behind video decode.
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 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 enter 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.Obtain the hardware-accelerated ability information that current system supports by the DXVA addressable port that utilizes the Microsoft definition, 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 as shown in Figure 4.
Step S132 selects the separation vessel filter corresponding with Container Format.Search corresponding separation vessel filter by the Container Format of in step S114, resolving the video file that obtains.In the present 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 separation vessel filter that a certain Container Format can use according to performances such as its compatibility, the preferential separation vessel filter (for example separation vessel filter A1) that adopts priority height (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-2 Demuxer 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 mentioned above, when less or video code rate was low when video pictures resolution, all decoding processes were also born and can easily be finished by CPU, enabled 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 not need to 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 enter 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 the present 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 demoder filter that a certain coded format can be used, 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 height (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-1 Video Decoder for use under the situation of VC-1 hard decoder; Support that at GPU coded format MPEG-2 preferentially selects NVIDIA MPEG-2 Video Decoder for use under the situation of MPEG-2 hard decoder.
Step S137, successively according to the type of operating system, whether enabled 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 at first will with the operating system compatibility; Need then to consider video decode whether enabled hardware-accelerated, if enabled hardware-accelerated, the renderer filter that then needs to select support hardware to quicken; Need to consider the display mode of video file or the existing way of captions at last.Select the renderer filter by 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 enters step S134.
As shown in Figure 7, also provide a kind of video player, comprised 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 by 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 by 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 determine that only filter plays up chart.Experience shows, set up the high definition film play up chart the time, need the matching problem between the consideration 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 automatically or the prompting user go to download by 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 separation vessel filter priority orders of the Container Format correspondence of store video files, for example as shown in Figure 5, gives priority with the separation vessel filter that a certain Container Format can use 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 enabled 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 described 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 enable 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 enable hardware-accelerated, it is also not obvious so can to avoid enabling under the situation of low resolution or code check hardware-accelerated occupancy to minimizing CPU, can cause the situation of negative effect on the contrary.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, so when the video card support hardware quickens, all can open hardware-accelerated to the film of encoding with above-mentioned form arbitrarily.
The above embodiment has only expressed several embodiment 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 without departing from the inventive concept of the premise, 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 claims.

Claims (14)

1, a kind of video broadcasting method is characterized in that, may further comprise the steps:
Read video file information;
Obtain hardware system information;
Corresponding relation according to described video file information and hardware system information and filter is selected filter.
2, video broadcasting method according to claim 1 is characterized in that, more than one during the described step that reads video file information comprises the steps:
Resolve the resolution or the code check of video file;
Resolve Container Format;
Resolve video code model;
Read captions existing way, display mode.
3, video broadcasting method according to claim 2 is characterized in that, the described step of obtaining hardware system information comprises the steps:
Whether support hardware quickens to judge hardware system;
If support hardware quickens then obtains hardware-accelerated ability information.
4, video broadcasting method according to claim 2, it is characterized in that, describedly select the step of filter to comprise to select and the step of the separation vessel filter that described Container Format is corresponding according to described video file information and hardware system information and the corresponding relation of filter.
5, video broadcasting method according to claim 3 is characterized in that, described corresponding relation according to described video file information and hardware system information and filter selects the step of filter to comprise:
Judge whether described coded format is corresponding with hardware-accelerated ability information;
If not corresponding, select and coded format corresponding decoder filter;
If corresponding, then select demoder filter corresponding with coded format and that support hardware quickens.
6, video broadcasting method according to claim 5, it is characterized in that, judge described coded format whether with the step that also comprises whether the resolution of judging described video file or code check reach predetermined resolution or code check before hardware-accelerated ability information is corresponding;
If do not reach described predetermined resolution or code check, then directly carry out the step of described selection and described coded format corresponding decoder filter;
If reach described predetermined resolution or code check, then carry out the described step of judging that described coded format is whether corresponding with hardware-accelerated ability information.
7, video broadcasting method according to claim 5, it is characterized in that described corresponding relation according to described 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 enabled display mode or captions existing way hardware-accelerated, video file and selected the renderer filter.
8, a kind of 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;
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 described fileinfo parsing module, hardware detecting module, filter administration module respectively obtaining the corresponding relation of described video file information, hardware system information, video file information and hardware system information and filter, and select filter according to described corresponding relation.
9, video player according to claim 8 is characterized in that, described filter administration module comprises separation vessel filter administrative unit, and described separation vessel filter administrative unit is used for the separation vessel filter priority orders of the Container Format correspondence of store video files.
10, video player according to claim 8, it is characterized in that, described filter administration module comprises demoder filter administrative unit, the priority orders under the coded format corresponding decoder filter that described demoder filter administrative unit the is used for store video files condition that whether support hardware quickens respectively.
11, video player according to claim 10, it is characterized in that, described filter connection strategy module is used for judging that according to described 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 enable hardware-accelerated.
12, video player according to claim 10, it is characterized in that, described 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 described video file information are judged described video file, if the resolution of described video file or code check do not reach predetermined resolution or code check, then do not enable hardware-accelerated.
13, video player according to claim 8, it is characterized in that, described filter administration module comprises renderer filter administrative unit, described renderer filter administrative unit be used for successively according to operating system type, whether enabled display mode or captions existing way hardware-accelerated, video file and selected the renderer filter.
14, video player according to claim 8 is characterized in that, described 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 true CN101577110A (en) 2009-11-11
CN101577110B 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 (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102347047A (en) * 2010-07-30 2012-02-08 腾讯科技(深圳)有限公司 Media player detection method and apparatus thereof
CN102447950A (en) * 2010-09-30 2012-05-09 突触计算机系统(上海)有限公司 Method and equipment for video play
CN102904857A (en) * 2011-07-25 2013-01-30 风网科技(北京)有限公司 Client video playing system and method thereof
CN102984587A (en) * 2011-09-05 2013-03-20 深圳市快播科技有限公司 An optimization method, an optimization device and an on-demand terminal for video playing
CN103067759A (en) * 2011-10-19 2013-04-24 深圳市快播科技有限公司 Establishment method and devices of playback link and player
CN103117077A (en) * 2013-01-17 2013-05-22 广东欧珀移动通信有限公司 Display system and display method of blu-ray player disc VSFilter
CN103165151A (en) * 2013-03-29 2013-06-19 华为技术有限公司 Method and device for playing multi-media file
CN103260021A (en) * 2012-02-21 2013-08-21 腾讯科技(深圳)有限公司 Method and device for decoding videos
CN103327312A (en) * 2012-03-20 2013-09-25 腾讯科技(深圳)有限公司 Video frame decoding processing method and device
CN103491379A (en) * 2013-09-25 2014-01-01 浙江宇视科技有限公司 Method and device for improving intelligent analysis performance
US20140022382A1 (en) * 2012-07-18 2014-01-23 Vivotek Inc. Video setting method
CN103595898A (en) * 2013-11-12 2014-02-19 厦门美图网科技有限公司 Intelligent filter processing method based on image information
CN103700385A (en) * 2012-09-27 2014-04-02 深圳市快播科技有限公司 Media player, playing method, and video post-processing method in hardware acceleration mode
CN103702180A (en) * 2014-01-14 2014-04-02 北京奇艺世纪科技有限公司 Media file playing method and device
CN103971713A (en) * 2014-05-07 2014-08-06 厦门美图之家科技有限公司 Video file filter processing method
CN104093072A (en) * 2014-06-30 2014-10-08 京东方科技集团股份有限公司 System and method for playing video information
CN104106264A (en) * 2012-02-17 2014-10-15 微软公司 Metadata assisted video decoding
CN104954863A (en) * 2015-06-05 2015-09-30 深圳市九洲电器有限公司 Audio and video decoding component selection method and system
CN104980791A (en) * 2014-04-08 2015-10-14 腾讯科技(北京)有限公司 Method and device for performing filter processing on video
CN105245948A (en) * 2014-06-26 2016-01-13 北京新媒传信科技有限公司 Video processing method and video processing device
CN103618962B (en) * 2013-12-09 2017-01-18 乐视网信息技术(北京)股份有限公司 Control method and device for getting access to specific video application of smart television
CN106851291A (en) * 2011-01-11 2017-06-13 索尼公司 Image processing equipment and method
CN108055579A (en) * 2017-12-14 2018-05-18 广东欧珀移动通信有限公司 Video broadcasting method, device, computer equipment and storage medium
CN109151574A (en) * 2018-10-15 2019-01-04 Oppo广东移动通信有限公司 Method for processing video frequency, device, electronic equipment and storage medium
CN109413337A (en) * 2018-08-30 2019-03-01 北京达佳互联信息技术有限公司 Video Rendering method, apparatus, electronic equipment and storage medium
EP3886444A4 (en) * 2018-11-27 2022-07-13 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Video processing method and apparatus, and electronic device and computer-readable medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100700985B1 (en) * 2005-06-20 2007-03-29 삼성전자주식회사 Video processing apparatus
CN100352270C (en) * 2005-10-21 2007-11-28 西安交通大学 Synchronous broadcast controlling method capable of supporting multi-source stream media
CN101123723B (en) * 2006-08-11 2011-01-12 北京大学 Digital video decoding method based on image processor

Cited By (41)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102347047A (en) * 2010-07-30 2012-02-08 腾讯科技(深圳)有限公司 Media player detection method and apparatus thereof
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
US10979739B2 (en) 2011-01-11 2021-04-13 Velos Media, Llc Image processing apparatus and method
CN106851291B (en) * 2011-01-11 2019-11-19 维洛媒体国际有限公司 Image processing equipment and method
CN106851291A (en) * 2011-01-11 2017-06-13 索尼公司 Image processing equipment and method
US10432976B2 (en) 2011-01-11 2019-10-01 Velos Media, Llc Image processing apparatus and method
CN102904857A (en) * 2011-07-25 2013-01-30 风网科技(北京)有限公司 Client video playing system and method thereof
CN102984587A (en) * 2011-09-05 2013-03-20 深圳市快播科技有限公司 An optimization method, an optimization device and an on-demand terminal for video playing
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
US9807409B2 (en) 2012-02-17 2017-10-31 Microsoft Technology Licensing, Llc Metadata assisted video decoding
CN104106264A (en) * 2012-02-17 2014-10-15 微软公司 Metadata assisted video decoding
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
CN103260021A (en) * 2012-02-21 2013-08-21 腾讯科技(深圳)有限公司 Method and device for decoding videos
CN103327312A (en) * 2012-03-20 2013-09-25 腾讯科技(深圳)有限公司 Video frame decoding processing method and device
CN103327312B (en) * 2012-03-20 2016-04-20 腾讯科技(深圳)有限公司 The decoding processing method of frame of video and device
US20140022382A1 (en) * 2012-07-18 2014-01-23 Vivotek Inc. Video setting method
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
CN103165151A (en) * 2013-03-29 2013-06-19 华为技术有限公司 Method and device for playing multi-media file
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
CN103702180A (en) * 2014-01-14 2014-04-02 北京奇艺世纪科技有限公司 Media file playing method and device
CN104980791A (en) * 2014-04-08 2015-10-14 腾讯科技(北京)有限公司 Method and device for performing filter processing on video
CN103971713A (en) * 2014-05-07 2014-08-06 厦门美图之家科技有限公司 Video file filter processing method
CN105245948A (en) * 2014-06-26 2016-01-13 北京新媒传信科技有限公司 Video processing method and video processing device
US9917876B2 (en) 2014-06-30 2018-03-13 Boe Technology Group Co., Ltd. Video information playing system and method
CN104093072A (en) * 2014-06-30 2014-10-08 京东方科技集团股份有限公司 System and method for playing video information
CN104093072B (en) * 2014-06-30 2017-06-16 京东方科技集团股份有限公司 A kind of video information Play System and method
CN104954863A (en) * 2015-06-05 2015-09-30 深圳市九洲电器有限公司 Audio and video decoding component selection method and system
CN108055579A (en) * 2017-12-14 2018-05-18 广东欧珀移动通信有限公司 Video broadcasting method, device, computer equipment and storage medium
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
CN109151574A (en) * 2018-10-15 2019-01-04 Oppo广东移动通信有限公司 Method for processing video frequency, device, electronic equipment and storage medium
US11562772B2 (en) 2018-10-15 2023-01-24 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Video processing method, electronic device, and storage medium
EP3886444A4 (en) * 2018-11-27 2022-07-13 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Video processing method and apparatus, and electronic device and computer-readable medium
US11418832B2 (en) 2018-11-27 2022-08-16 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Video processing method, electronic device and computer-readable storage medium

Also Published As

Publication number Publication date
CN101577110B (en) 2012-04-25

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
CN102239695B (en) Distributed audio and video processing
US8244114B2 (en) Recording apparatus and recording method, playback apparatus and playback method, recording/playback apparatus and recording/playback method, and program
US20070280646A1 (en) Method and apparatus transmitting audio signals and video signals
US20130298171A1 (en) Device for generating content data, method for generating content data, and recording medium
US7174091B2 (en) Method and apparatus for improving video reproduction quality
WO2008072452A1 (en) Moving picture decoder, semiconductor device, video device, and moving picture decoding method
US8111977B2 (en) Playback device and method
US9230513B2 (en) Apparatus, system and method for cooperatively presenting multiple media signals via multiple media outputs
CN106231225A (en) A kind of network hard disk video recorder data processing method and system
CN100499771C (en) Enhanced display systems with DVC connectivity
US8798133B2 (en) Dual channel encoding and detection
CN102598684A (en) Video signal processing device and video signal processing method
US8155205B2 (en) Dynamic decoder switch
CN105122828A (en) Information processing apparatus, content requesting method, and computer program
CN109691118A (en) Image display system and image display method
US20100246361A1 (en) Method for converting standard dvds into blu-ray format
CN103067759A (en) Establishment method and devices of playback link and player
JP2013135454A (en) Electronic apparatus, and mutual video and voice output method of electronic apparatus
CN106063275A (en) Image encoding device and method and image processing device and method
CN103634549A (en) High-definition player
CN115396621A (en) Network push flow control method, device, equipment and storage medium based on RK628D

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