Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.When explained below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the present invention.On the contrary, they only with describe in detail in appended claims, the present invention some in terms of the example of consistent apparatus and method.
In order to solve terminal cannot the problem of normal play combined system video, the embodiment of the present invention provide firstly a kind of video broadcasting method, is applied to terminal, as it is shown in figure 1, the method may include steps of:
In step s 110, when getting video to be played, detect the video type of video to be played.
In the embodiment of the present invention, this video type includes: I standard video, P standard video or combined system video.And the embodiment of the present invention illustrates as a example by terminal is as television set;It can in addition contain processed video by TV box, and controlling television set standard output mode, the embodiment of the present invention is not limited to this.
For some old fashioned video, generally interleaved I standard video, also interleaved I standard pattern can be used when video frequency output for old-fashioned television set, but typically require when I standard video is play by filtering to avoid the other defects such as image flicker, the horizontal resolution causing video substantially can reduce half, and then cause user when watching the I standard video of television for play, and can feel unintelligible, i.e. user cannot watch high definition or the I standard video of the super type such as clear.Therefore, the P standard video type of current video type many employings surface sweeping line by line, television set is also provided simultaneously with I standard output mode and P standard output mode, in order to plays the video of different systems type, but is typically defaulted as P standard output mode.
For combined system video, due to reasons such as some error coded, cause and the video of this type can include I system types frame of video and P standard video frame simultaneously.No matter use I standard output mode or P standard output mode when playing combined system video at television set, broadcasting all can be caused abnormal.Exemplary, a kind of common combined system video is beginning and the middle frame of video with a small amount of I system types, remaining is the frame of video of P system types, when television set uses P standard output mode to play this combined system video, Caton phenomenon is there will be when being played to I standard video frame, cause television set cannot normal play the type video, in turn result in user and cannot normally watch the video of the type by television set.
In the step s 120, when the video type of video to be played is combined system, by the target video that video conversion to be played is single system types.
Therefore, in order to avoid television set cause when playing combined system video can not normal play, such as phenomenons such as cards, TV box get will by the video to be played of television for play time, TV box can detect the video type of this video to be played, if the video type of this video to be played is combined system type video, then TV box can be by target video that this video conversion to be played is single system types.Owing to current television set can play I system types video or P system types video, it is therefore desirable to by the target video that combined system video conversion is single system types, it is simple to television set can be with this target video of normal play.
In step s 130, the video output mode controlling to preset terminal is corresponding with the system types of target video, and plays target video in default terminal.
TV box is after by video to be played by the target video that video conversion is single system types of combined system type, in addition it is also necessary to control television set video output mode is corresponding with the system types of target video.Exemplary, if the system types of target video is I system types video, the most now TV box checks the video output mode of television set, if being now I standard output mode, the most constant, if now television set is P standard output mode, then the P standard output mode of television set is adjusted to I standard output mode.
The video broadcasting method provided in the embodiment of the present invention, when getting terminal and needing the video to be played play, detects the video type of this video to be played, and this video type includes: I standard video, P standard video or combined system video;When the video type of this video to be played is combined system, by the target video that this video conversion to be played is single system types, and then the video output mode controlling terminal is corresponding with the system types of target video, and by this target video of this terminal plays.So by the process to video to be played, the video after terminal normal play can be made to process, also make the user can video that normally viewing terminal is play, it is to avoid terminal card of appearance when playing untreated video to be played such as pauses at the phenomenon.
In order to elaborate on how that by combined system video conversion be single standard video, as the refinement of Fig. 1 method, in another embodiment of the invention, as in figure 2 it is shown, step S120 can also comprise the steps:
In step S121, that detects I standard video frame in video to be played occupies ratio.
Owing to video is formed by multiple videos, therefore the frame of video in video can be divided into I standard video frame and P standard video frame.When detecting the occupation proportion of I standard video frame in video to be played, can be by obtaining the totalframes in this video to be played, then calculate the frame number of I standard video frame ratio in totalframes in video to be played, be detect I standard video frame in video to be played occupy ratio.
In step S122, when when occupying ratio less than preset ratio of I standard video frame in video to be played, the I standard video frame in video to be played is converted to P standard video frame.
In step S123, when when occupying ratio not less than preset ratio of I standard video frame in video to be played, the P standard video frame in video to be played is converted to I standard video frame.
In step S124, using the video to be played after conversion as target video.
Exemplary, for time in P system types video containing a small amount of I standard video frame, in video the most to be played I standard video frame occupy ratio less than 30% time, in order to ensure television set this video of normal play under P standard output mode, TV box needs the target video by being converted to P system types frame of video in P system types video containing a small amount of I standard video frame, it is simple to television set can be with this target video of normal play.
It should be noted that this preset ratio can be set according to the needs of user, the embodiment of the present invention is not limited to this.
It addition, the I standard video frame in video to be played is being converted to P standard video frame, existing algorithm can be used, such as linear interpolation method etc., at present these algorithms comparative maturity, not repeat.
As the refinement of Fig. 1 method, in another embodiment of the invention, as it is shown on figure 3, step S130 can also comprise the steps:
In step S131, when target video is I standard video, the video output mode of default terminal is adjusted to I output mode.
In step S132, when target video is P standard video, the video output mode of default terminal is adjusted to P output mode.
After TV box is by Video processing to be played, in addition it is also necessary to adjust the standard output mode of television set, be allowed to process after the system types of video corresponding, in order to television set can process with normal play after video.Exemplary, if the target video after Chu Liing is I standard video, then the video output mode of television set to be adjusted to I standard output mode.If the target video after Chu Liing is P standard video, then the video output mode of television set to be adjusted to P standard output mode.
The video broadcasting method provided in the embodiment of the present invention, when getting terminal and needing the video to be played play, detects the video type of this video to be played, and this video type includes: I standard video, P standard video or combined system video;When the video type of this video to be played is combined system, by the target video that this video conversion to be played is single system types, and then the video output mode controlling terminal is corresponding with the system types of target video, and by this target video of this terminal plays.So by the process to video to be played, the video after terminal normal play can be made to process, also make the user can video that normally viewing terminal is play, it is to avoid terminal card of appearance when playing untreated video to be played such as pauses at the phenomenon.
Description by above embodiment of the method, those skilled in the art is it can be understood that can add the mode of required general hardware platform by software to the present invention and realize, can certainly pass through hardware, but a lot of in the case of the former is more preferably embodiment.Based on such understanding, the part that prior art is contributed by technical scheme the most in other words can embody with the form of software product, this computer software product is stored in a storage medium, including some instructions with so that a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium includes: the various media that can store program code such as read only memory (ROM), random access memory (RAM), magnetic disc or CDs.
Additionally, as the realization to the various embodiments described above, the embodiment of the present invention additionally provides a kind of video play device, this device is positioned in terminal, as shown in Figure 4, this device includes: video type detector unit 10, video type converting unit 20, video output mode control unit 30 and video playback unit 40, wherein
Video type detector unit 10, for when getting video to be played, detects the video type of described video to be played, and described video type includes: I standard video, P standard video or combined system video;
Video type converting unit 20, for when the video type of described video to be played is combined system, by the target video that described video conversion to be played is single system types;
Video output mode control unit 30, corresponding with the system types of described target video for controlling to preset the video output mode of terminal;
Video playback unit 40, for playing described target video in described default terminal.
In still another embodiment of the process, based on Fig. 4, as it is shown in figure 5, described video type converting unit 20, including:
Ratio detection module 21, occupies ratio for detect I standard video frame in described video to be played;
First frame of video system conversion module 22, is used for when occupying ratio less than preset ratio of I standard video frame in described video to be played, the I standard video frame in described video to be played is converted to P standard video frame;
Target video determines module 23, and the video described to be played after changing is as described target video.
In still another embodiment of the process, based on Fig. 5, as shown in Figure 6, described video type converting unit 20, also include:
Second frame of video system conversion module 24, is used for when occupying ratio not less than preset ratio of I standard video frame in described video to be played, the P standard video frame in described video to be played is converted to I standard video frame.
In still another embodiment of the process, based on Fig. 5, as it is shown in fig. 7, described first frame of video system conversion module 22, including:
Frame of video system conversion submodule 221, for being converted to P standard video frame by linear interpolation method by the I standard video frame in described video to be played.
In still another embodiment of the process, based on Fig. 4, as shown in Figure 8, described video output mode control unit 30, including:
I standard output module 31, for when described target video is I standard video, is adjusted to I output mode by the video output mode of described default terminal;
P standard output module 32, for when described target video is P standard video, is adjusted to P output mode by the video output mode of described default terminal.
About the device in above-described embodiment, the concrete mode that wherein modules performs to operate has been described in detail in about the embodiment of the method, and explanation will be not set forth in detail herein.
The video play device provided in the embodiment of the present invention, when getting terminal and needing the video to be played play, detects the video type of this video to be played, and this video type includes: I standard video, P standard video or combined system video;When the video type of this video to be played is combined system, by the target video that this video conversion to be played is single system types, and then the video output mode controlling terminal is corresponding with the system types of target video, and by this target video of this terminal plays.So by the process to video to be played, the video after terminal normal play can be made to process, also make the user can video that normally viewing terminal is play, it is to avoid terminal card of appearance when playing untreated video to be played such as pauses at the phenomenon.
It addition, the embodiment of the present invention additionally provides a kind of terminal, its hardware architecture diagram is as shown in Figure 9.
This terminal includes processor 510, transceiver 520 and bus 530.Wherein, processor 510, transceiver 520 are communicated by bus 530.
Transceiver 520 is used for getting video to be played.
Processor 510, for when getting video to be played, detects the video type of described video to be played, and described video type includes: I standard video, P standard video or combined system video;When the video type of described video to be played is described combined system, by the target video that described video conversion to be played is single system types;The video output mode controlling to preset terminal is corresponding with the system types of described target video, and plays described target video in described default terminal.
In the optional embodiment of one, processor 510 occupies ratio for detect I standard video frame in described video to be played;When occupying ratio less than preset ratio of I standard video frame in described video to be played, the I standard video frame in described video to be played is converted to P standard video frame;Using the video described to be played after conversion as described target video.
In the optional embodiment of one, processor 510 is used for when occupying ratio not less than preset ratio of I standard video frame in described video to be played, P standard video frame in described video to be played is converted to I standard video frame, and perform described by the video described to be played after conversion as the step of described target video.
In the optional embodiment of one, processor 510 is for being converted to P standard video frame by linear interpolation method by the I standard video frame in described video to be played.
In the optional embodiment of one, the video output mode of described default terminal, for when described target video is I standard video, is adjusted to I output mode by processor 510;When described target video is P standard video, the video output mode of described default terminal is adjusted to P output mode.
It is understood that the present invention can be used in numerous general or special purpose computing system environment or configuration.Such as: personal computer, server computer, handheld device or portable set, laptop device, multicomputer system, system based on microprocessor, set top box, programmable consumer-elcetronics devices, network PC, minicomputer, mainframe computer, the distributed computing environment including any of the above system or equipment etc..
The present invention can be described in the general context of computer executable instructions, such as program module.Usually, program module includes performing particular task or realizing the routine of particular abstract data type, program, object, assembly, data structure etc..The present invention can also be put into practice in a distributed computing environment, in these distributed computing environment, the remote processing devices connected by communication network perform task.In a distributed computing environment, during program module may be located at the local and remote computer-readable storage medium including storage device.
It should be noted that, in this article, the such as relational terms of " first " and " second " or the like is used merely to separate an entity or operation with another entity or operating space, and not necessarily requires or imply relation or the order that there is any this reality between these entities or operation.And, term " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, so that include that the process of a series of key element, method, article or equipment not only include those key elements, but also include other key elements being not expressly set out, or also include the key element intrinsic for this process, method, article or equipment.In the case of there is no more restriction, statement " including ... " key element limited, it is not excluded that there is also other identical element in including the process of described key element, method, article or equipment.
Those skilled in the art, after considering description and putting into practice invention disclosed herein, will readily occur to other embodiments of the present invention.The application is intended to any modification, purposes or the adaptations of the present invention, and these modification, purposes or adaptations are followed the general principle of the present invention and include the undocumented common knowledge in the art of the present invention or conventional techniques means.Description and embodiments is considered only as exemplary, and true scope and spirit of the invention are pointed out by claim below.
It should be appreciated that the invention is not limited in precision architecture described above and illustrated in the accompanying drawings, and various modifications and changes can carried out without departing from the scope.The scope of the present invention is only limited by appended claim.