CN103841389B - A kind of video broadcasting method and player - Google Patents

A kind of video broadcasting method and player Download PDF

Info

Publication number
CN103841389B
CN103841389B CN201410131609.2A CN201410131609A CN103841389B CN 103841389 B CN103841389 B CN 103841389B CN 201410131609 A CN201410131609 A CN 201410131609A CN 103841389 B CN103841389 B CN 103841389B
Authority
CN
China
Prior art keywords
video
terminal equipment
data
gpu
video stream
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
CN201410131609.2A
Other languages
Chinese (zh)
Other versions
CN103841389A (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201410131609.2A priority Critical patent/CN103841389B/en
Publication of CN103841389A publication Critical patent/CN103841389A/en
Application granted granted Critical
Publication of CN103841389B publication Critical patent/CN103841389B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the invention discloses a kind of video broadcasting method and player, a kind of video broadcasting method, comprising: receiver, video flow data; By received video stream data, send to the CPU of described terminal equipment, and the CPU controlling described terminal equipment decodes to described video stream data, obtains the video data of yuv format; Control the CPU of described terminal equipment by the video data of the yuv format obtained of decoding, send to the GPU of described terminal equipment, and the GPU controlling described terminal equipment carries out color space convert to the video data of described yuv format, obtains the video data of rgb format; The video data of GPU to obtained rgb format controlling described terminal equipment shows.Application such scheme, the embodiment of the present invention utilizes GPU to share the task of CPU color space convert and broadcasting, can reduce CPU usage, thus reduce the power consumption of terminal equipment, extend the useful life of terminal equipment.

Description

A kind of video broadcasting method and player
Technical field
The present invention relates to multimedia information technique field, particularly a kind of video broadcasting method and player.
Background technology
Along with the development of Internet technology and multimedia technology, the habits and customs of a lot of people are become by multiple terminal equipment viewing video.At present, user can open the page of video website by the browser in terminal equipment, and the corresponding video player of this page invocation is the online displaying video of user; The client software that user also can directly open a terminal in equipment, this client software calls corresponding video player and broadcasts as the online displaying video of user.
In prior art, the process of the online displaying video of video player is generally: the video stream data that reception server transmits, the video stream data received is decoded, decoded data format is yuv format, then carry out chrominance space conversion to the data of yuv format, the data format after conversion is rgb format, then shows the data of rgb format, thus realize the online broadcasting of video, wherein YUV and RGB is two kinds of different colour coding methods.
But in prior art, all at CPU(Central Processing Unit to the decoding of video stream data and chrominance space conversion process, central processing unit) on to carry out, wherein, be that the data of rgb format can make the occupancy of CPU too high by the data transformations of yuv format, the too high meeting of CPU usage brings the problem that terminal equipment power consumption is large, and terminal equipment can be caused overheated, shortens the useful life of terminal equipment.
Summary of the invention
In order to solve the problem, the embodiment of the invention discloses a kind of video broadcasting method and player, concrete technical scheme is as follows:
A kind of video broadcasting method, comprising:
Receiver, video flow data;
By received video stream data, send to the CPU of described terminal equipment, and the CPU controlling described terminal equipment decodes to described video stream data, obtains the video data of yuv format;
Control the CPU of described terminal equipment by the video data of the yuv format obtained of decoding, send to the GPU of described terminal equipment, and the GPU controlling described terminal equipment carries out color space convert to the video data of described yuv format, obtains the video data of rgb format;
The video data of GPU to obtained rgb format controlling described terminal equipment shows.
Preferably, the CPU of the described terminal equipment of described control, by the video data of the yuv format obtained of decoding, sends to the GPU of described terminal equipment, comprising:
After obtaining the video data of yuv format, the CPU directly controlling described terminal equipment, by the video data of the yuv format obtained of decoding, sends to the GPU of described terminal equipment.
Preferably, the CPU of the described terminal equipment of described control, by the video data of the yuv format obtained of decoding, sends to the GPU of described terminal equipment, comprising:
After obtaining the video data of yuv format, judge whether to meet pre-conditioned, if so, then the CPU controlling described terminal equipment, by the video data of the yuv format obtained of decoding, sends to the GPU of described terminal equipment.
Preferably, described in judge whether to meet pre-conditioned, specifically comprise:
Detect the CPU usage of described terminal equipment, judge whether described CPU usage is greater than preset value, if so, then determine to meet pre-conditioned.
Preferably, described in judge whether to meet pre-conditioned, specifically comprise:
Obtain the frame per second of video stream data;
Detect the video decode frame number of described video stream data in the unit interval;
Judge whether the video decode frame number of described video stream data in the unit interval is less than the frame per second of described video stream data, if so, then determine to meet pre-conditioned.
Preferably, the frame per second of described acquisition video stream data, comprising:
Before video stream data not being decoded, obtain the frame per second of video stream data;
Or,
After starting to decode to video stream data, and before judgement operation, obtain the frame per second of video stream data, described judgement is operating as: judge whether the video decode frame number of described video stream data in the unit interval is less than the frame per second of described video stream data.
Preferably, the video data of GPU to obtained rgb format of the described terminal equipment of described control shows, and specifically comprises:
The GPU controlling described terminal equipment shows according to the video data of broadcasting speed to obtained rgb format preset.
A kind of player, this player comprises:
Receiver module, for receiver, video flow data;
Decoder module, for by received video stream data, sends to the CPU of described terminal equipment, and the CPU controlling described terminal equipment decodes to described video stream data, obtains the video data of yuv format;
Color space convert module, for controlling the CPU of described terminal equipment by the video data of the yuv format obtained of decoding, send to the GPU of described terminal equipment, and the GPU controlling described terminal equipment carries out color space convert to the video data of described yuv format, obtains the video data of rgb format;
Display module, shows for the video data of GPU to obtained rgb format controlling described terminal equipment.
Preferably, described color space convert module, comprising:
First sends submodule, and after obtaining the video data of yuv format at described decoding module decodes, the CPU directly controlling described terminal equipment, by the video data of the yuv format obtained of decoding, sends to the GPU of described terminal equipment;
First transform subblock, carries out color space convert for the GPU controlling described terminal equipment to the video data that described first sends the yuv format that submodule sends, obtains the video data of rgb format.
Preferably, described color space convert module, comprising:
Judge submodule, after obtaining the video data of yuv format at described decoding module decodes, judge whether to meet pre-conditioned;
Second sends submodule, for when described judge the judged result of submodule as being time, the video data of the yuv format that decoding obtains by the CPU controlling described terminal equipment, sends to the GPU of described terminal equipment;
Second transform subblock, carries out color space convert for the GPU controlling described terminal equipment to the video data that described second sends the yuv format that submodule sends, obtains the video data of rgb format.
Preferably, described judgement submodule specifically comprises:
First detection sub-unit, for detecting the CPU usage of described terminal equipment;
First judgment sub-unit, for judging whether described CPU usage is greater than preset value, if so, then determines to meet pre-conditioned.
Preferably, described judgement submodule specifically comprises:
Obtain subelement, for obtaining the frame per second of video stream data;
Second detection sub-unit, for detecting the video decode frame number of described video stream data in the unit interval;
Second judgment sub-unit, for judging whether the video decode frame number of described video stream data in the unit interval is less than the frame per second of described video stream data, if so, then determines to meet pre-conditioned.
Preferably, described acquisition subelement, specifically for:
Before described decoder module is not decoded to video stream data, obtain the frame per second of video stream data;
Or,
After described decoder module is decoded to video stream data, and before described second judgment sub-unit starts judgement operation, obtain the frame per second of video stream data.
Preferably, described display module, specifically for:
The GPU controlling described terminal equipment shows according to the video data of broadcasting speed to obtained rgb format preset.
Application technique scheme, after the CPU of terminal equipment completes the decoding to video stream data, the embodiment of the present invention can meet pre-conditioned after, or the CPU of direct control terminal is by the video data of the yuv format obtained of decoding, send to the GPU of terminal equipment, and the GPU of control terminal carries out color space convert to the video data of yuv format, GUP directly shows the video data of obtained rgb format; Compared with prior art, due to GPU, to have dominant frequency low, the advantage that amount of calculation is large, the embodiment of the present invention utilizes GPU to share the task of CPU color space convert and broadcasting, can CPU usage be reduced, thus reduce the power consumption of terminal equipment, extend the useful life of terminal equipment.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The first flow chart of a kind of video broadcasting method that Fig. 1 provides for the embodiment of the present invention;
The second flow chart of a kind of video broadcasting method that Fig. 2 provides for the embodiment of the present invention;
The third flow chart of a kind of video broadcasting method that Fig. 3 provides for the embodiment of the present invention;
Fig. 4 is the first flow chart of S303 as shown in Figure 3;
Fig. 5 is the second flow chart of S303 as shown in Figure 3;
The structural representation of a kind of player that Fig. 6 provides for the embodiment of the present invention;
Fig. 7 is the first structural representation of module 603 as shown in Figure 6;
Fig. 8 is the second structural representation of module 603 as shown in Figure 6;
Fig. 9 is the first structural representation of module 603c as shown in Figure 8;
Figure 10 is the second structural representation of module 603c as shown in Figure 8.
Embodiment
First be described a kind of video broadcasting method that the embodiment of the present invention provides, the method is applied in the terminal equipment comprising central processor CPU, graphic process unit GPU, can comprise:
Receiver, video flow data;
By received video stream data, send to the CPU of described terminal equipment, and the CPU controlling described terminal equipment decodes to described video stream data, obtains the video data of yuv format;
Control the CPU of described terminal equipment by the video data of the yuv format obtained of decoding, send to the GPU of described terminal equipment, and the GPU controlling described terminal equipment carries out color space convert to the video data of described yuv format, obtains the video data of rgb format;
The video data of GPU to obtained rgb format controlling described terminal equipment shows.
Apply technical scheme provided by the invention, after the CPU of terminal equipment completes the decoding to video stream data, the embodiment of the present invention can meet pre-conditioned after, or the CPU of direct control terminal is by the video data of the yuv format obtained of decoding, send to the GPU of terminal equipment, and the GPU of control terminal carries out color space convert to the video data of yuv format, GUP directly shows the video data of obtained rgb format; Compared with prior art, due to GPU, to have dominant frequency low, the advantage that amount of calculation is large, the embodiment of the present invention utilizes GPU to share the task of CPU color space convert and broadcasting, can CPU usage be reduced, thus reduce the power consumption of terminal equipment, extend the useful life of terminal equipment.
Technical scheme in the present invention is understood better in order to make those skilled in the art, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In order in video display process, reduce the CPU usage of this terminal equipment, thus reduce the power consumption of terminal equipment, extend the useful life of terminal equipment, embodiments provide a kind of video broadcasting method and player.
First a kind of video broadcasting method that the embodiment of the present invention provides is introduced below.
It should be noted that, a kind of video broadcasting method that the embodiment of the present invention provides is applicable in terminal equipment, and in actual applications, this terminal equipment can be: vehicle-mounted computer, mobile phone, Set Top Box, notebook computer or desktop computer etc.
As shown in Figure 1, a kind of video broadcasting method, is applied in the terminal equipment comprising central processor CPU, graphic process unit GPU, can comprises:
S101, receiver, video flow data.
Player in terminal equipment can receive the video stream data from server side, and " video stream data " described in the embodiment of the present invention can be through the stream medium data of coded treatment, and the embodiment of the present invention is not restricted this.
S102, by received video stream data, sends to the CPU of described terminal equipment, and the CPU controlling described terminal equipment decodes to described video stream data, obtains the video data of yuv format.
" YUV " described in the embodiment of the present invention is a kind of colour coding method that eurovision system adopts, and be mainly used in the transmission optimizing colour-video signal, wherein, Y represents brightness, and U, V represent aberration, and brightness and aberration are two components forming color.
It should be noted that, color picture signal, after color separation, respectively amplification correction, obtains RGB image, then obtains brightness signal Y and two color difference signal U and V through matrixer, brightness and aberration 3 signals are encoded by last transmitting terminal respectively, send with unified channel.
The video data of the yuv format of coded treatment is through due to the video stream data received, the player of this terminal equipment can by received video stream data, send to the CPU of this terminal equipment, and the CPU controlling this terminal equipment decodes to received video stream data, obtains the video data of yuv format.
When such as user watches TV play online by mobile phone, the player in mobile phone obtains video data endlessly from network video server side, and the CPU that player controls mobile phone decodes to the video data got, and obtains the video data of yuv format.
S103, control the CPU of described terminal equipment by the video data of the yuv format obtained of decoding, send to the GPU of described terminal equipment, and the GPU controlling described terminal equipment carries out color space convert to the video data of described yuv format, obtains the video data of rgb format.
" RGB " described in the embodiment of the present invention is a kind of method of encoding to color, be by the change of red (R), green (G), blue (B) three Color Channels and they mutually between superposition obtain color miscellaneous.
It should be noted that, represent that color is really very directly perceived by RGB three primary colors, if but this method is used as image transmitting, there is following shortcoming: first shortcoming takies too many bandwidth, with RGB trichromatic specification image, the bandwidth of R, G, B tri-components is impartial, all approximate the bandwidth of brightness Y, so each component needs larger bandwidth to describe; Second shortcoming is poor anti jamming capability, because G component occupies 59% of brightness value, so when G is interfered time, pixel brightness value can be greatly affected, and the change of human eye to brightness value is very responsive, so image subjective quality can obviously decline.For these reasons, in video signal transmission, usually adopt the method for YUV synthesis.
" color space convert " described in the embodiment of the present invention is exactly the video data video data of yuv format being converted to rgb format in essence, and wherein, the conversion formula of YUV and RGB can be:
Y=0.299R+0.587G+0.114B
U=-0.147R+0.289G+0.436B
V=0.615R-0.515G-0.100B。
Be understandable that, current display mostly adopts RGB color standard, color display on such as display, be by electron gun beat screen red, green, blue three-colour light-emitting extremely on produce the image of color.
Based on the above-mentioned fact, at the CPU of this terminal equipment, received video stream data is decoded, after obtaining the video data of yuv format, the video data of the yuv format obtained of decoding sends to the GPU of this terminal equipment to carry out chrominance space conversion by the CPU of the player control terminal of this terminal equipment, and obtaining can at the video data of the rgb format of the display screen display of display.
When such as user watches TV play online by mobile phone, player in mobile phone obtains video data endlessly from network video server side, the CPU that first player controls mobile phone decodes to the video data got, obtain the video data of yuv format, the video data of the yuv format obtained of decoding is sent to the GPU of mobile phone by the CPU then controlling mobile phone, to carry out color space convert, obtain the video data of rgb format, the GPU controlling mobile phone afterwards by the video data of the rgb format be converted on a display of the handset for user shows.
In prior art, color space convert is complete on the CPU of this terminal equipment completely, be that the data of rgb format can make the occupancy of CPU too high by the data transformations of yuv format, the too high meeting of CPU usage brings the problem that terminal equipment power consumption is large, and terminal equipment can be caused overheated, shorten the useful life of terminal equipment.
The advantage of the embodiment of the present invention is, due to GPU, to have dominant frequency low, the advantage that amount of calculation is large, utilize GPU to share the task of CPU color space convert and broadcasting, can CPU usage be reduced, thus reduce the power consumption of terminal equipment, extend the useful life of terminal equipment; In addition, the computing function that GPU is powerful, player decoding capability is improved relatively, thus the player of this terminal equipment is more smooth to the broadcasting of video data.
S104, the video data of GPU to obtained rgb format controlling described terminal equipment shows.
" video data of rgb format " described in the embodiment of the present invention can be understood as multiple frame of video, and each frame of video is exactly a rest image, and the broadcasting of video file can be understood as the Continuous Play of multiple still pictures.
After obtaining the video data of rgb format, the video data of GPU to obtained rgb format that the player of this terminal equipment controls this terminal equipment shows on a display screen.
In an embodiment of the embodiment of the present invention, in order to meet the personalized broadcast request of user, the video data of GPU to obtained rgb format controlling described terminal equipment shows, and can comprise: the GPU controlling described terminal equipment shows according to the video data of broadcasting speed to obtained rgb format preset.
" broadcasting speed " described in the embodiment of the present invention can be understood as per second in the frame number of frame of video that comprises, i.e. frame per second.According to the vision physiological feature of people, when the refresh rate of image reaches 5 frames/second, people starts to feel that image is movable, when the refresh rate of image reaches 24 frames/second, people feels that image is completely continuous and smooth, and the frame per second that such as film uses is exactly 24 frames/second.
In embodiments of the present invention, the broadcasting speed preset can be at the uniform velocity, and certainly can also arrange the broadcasting speed that this is preset according to actual needs, to meet individual requirements, the embodiment of the present invention is not restricted this.
In one embodiment of the invention, as shown in Figure 2, a kind of video broadcasting method, can comprise:
S201, receiver, video flow data.
S202, by received video stream data, sends to the CPU of described terminal equipment, and the CPU controlling described terminal equipment decodes to described video stream data, obtains the video data of yuv format.
S203, the CPU of the described terminal equipment of direct control is by the video data of the yuv format obtained of decoding, send to the GPU of described terminal equipment, and the GPU controlling described terminal equipment carries out space chromacity space transforming to the video data of described yuv format, obtains the video data of rgb format.
S204, the video data of GPU to obtained rgb format controlling described terminal equipment shows.
In embodiments of the present invention, S201, S202, S204 are identical with S101, S102, S104 in previous embodiment respectively, and the embodiment of the present invention repeats no more this.In S203, the player of this terminal equipment, by the video data of the yuv format obtained of decoding, transfers to the GPU process of this terminal equipment completely.
Now, the GPU of this terminal equipment assume responsibility for the task of the video data video data of yuv format being converted to rgb format completely, and the CPU of this terminal equipment is only responsible for decoding to received video stream data.The cpu performance that the embodiment of the present invention goes for terminal equipment is very low, in displaying video process, and a card serious situation; Now born the task of the video data video data of yuv format being converted to rgb format by GPU completely, thus the occupancy of CPU in video display process can be reduced greatly, fundamentally solve a card serious problem in video display process.
In another embodiment of the present invention, as shown in Figure 3, a kind of video broadcasting method, can comprise:
S301, receiver, video flow data.
S302, by received video stream data, sends to the CPU of described terminal equipment, and the CPU controlling described terminal equipment decodes to described video stream data, obtains the video data of yuv format.
S303, judges whether to meet pre-conditioned, if so, then forwards S304 to, otherwise forward S305 to.
After obtaining the video data of yuv format, this terminal equipment can judge whether to meet pre-conditioned, and performs different operations according to different judged results.Wherein, when judging to meet pre-conditioned, step S304 can be performed; When judging not meet pre-conditioned, step S305 can be performed.
In an embodiment of the embodiment of the present invention, S303 can comprise:
S303a, detects the CPU usage of described terminal equipment.
S303b, judges whether described CPU usage is greater than preset value, if so, then forwards S303c to, otherwise forward S303d to.
After the current occupancy of CPU detecting this terminal equipment, can judge whether the current occupancy of CPU is greater than preset value by terminal equipment, when the current occupancy of the CPU of this terminal equipment is greater than preset value, perform step S303c; When the current occupancy of the CPU of this terminal equipment is less than preset value, perform step S303d.
It should be noted that, " preset value " described in the embodiment of the present invention can be 20%, 25% or 30% etc., and certain user also can be arranged according to actual needs voluntarily, and the embodiment of the present invention is not restricted this.The CPU of this terminal equipment is in the process of decoding to video stream data, and player detects the occupancy of CPU, when the occupancy of CPU is greater than preset value, then thinks that the load of CPU is too high, is born the task of color space convert by GPU.
Be understandable that, player is to the detection of CPU usage in CPU decode procedure, and can carry out according to the time cycle of presetting, also can be by receiving corresponding user instruction to trigger, the embodiment of the present invention be restricted this.
S303c, determines to meet pre-conditioned.
S303d, determines not meet pre-conditioned.
In another embodiment of the embodiment of the present invention, S303 can comprise:
S303e, obtains the frame per second of video stream data.
The embodiment of the present invention before not decoding to video stream data, can obtain the frame per second of video stream data; Also can after starting to decode to video stream data, and before judgement operation, obtain the frame per second of video stream data, described judgement is operating as: judge whether the video decode frame number of described video stream data in the unit interval is less than the frame per second of described video stream data, and the embodiment of the present invention is not restricted this.
S303f, detects the video decode frame number of described video stream data in the unit interval.
S303g, judges whether the video decode frame number of described video stream data in the unit interval is less than the frame per second of described video stream data, if so, then forwards S303h to, otherwise forward S303i to.
After the video decode frame number detecting described video stream data in the unit interval, terminal equipment can judge whether the video decode frame number of described video stream data in the unit interval is less than the frame per second of described video stream data, when the video decode frame number of video stream data described in the unit interval is less than the frame per second of described video stream data, perform step S303h; When the video decode frame number of video stream data described in the unit interval is greater than the frame per second of described video stream data, perform step S303i.
CPU is in the process of decoding to video stream data, player detects the video decode frame number in the CPU unit interval, when detecting that the video decode frame number in the CPU unit interval is less than the frame per second of described video stream data, then think that the decoding speed of CPU can not meet the requirement of video playback, there will be video Caton phenomenon, now the task of color space convert is given GPU to process, the load of CPU can be reduced greatly, enable CPU distribute more resource to decode to video stream data, thus solve because the video card that causes of decoding speed deficiency pauses problem.
Be understandable that, player is to the detection of video decode frame number in the CPU unit interval in CPU decode procedure, and can carry out according to the time cycle of presetting, also can be by accepting corresponding user instruction to trigger, the embodiment of the present invention be restricted this.
S303h, determines to meet pre-conditioned.
S303i, determines not meet pre-conditioned.
S304, control the CPU of described terminal equipment by the video data of the yuv format obtained of decoding, send to the GPU of described terminal equipment, and the GPU controlling described terminal equipment carries out space chromacity space transforming to the video data of described yuv format, obtains the video data of rgb format.
S305, the CPU controlling described terminal equipment carries out space chromacity space transforming to the video data of described yuv format, obtains the video data of rgb format.
S306, the video data of GPU to obtained rgb format controlling described terminal equipment shows.
In embodiments of the present invention, S301, S302, S306 are identical with S101, S102, S104 in previous embodiment respectively, and the embodiment of the present invention repeats no more this.
The cpu performance that the embodiment of the present invention is applicable to terminal equipment is relatively low, and when playing HD video, the decoding speed of CPU is less than HD video frame per second, or the situation that the occupancy of CPU is too high; The embodiment of the present invention can share the color space convert task of the CPU of this terminal equipment by the GPU of control terminal, thus the load of CPU can be reduced, enable CPU distribute more resource to decode to video stream data, thus solve because the video card that causes of decoding speed deficiency pauses problem, improve the fluency of terminal equipment video playback.
Corresponding to embodiment of the method above, the present invention also provides a kind of player, is applied in the terminal equipment comprising central processor CPU, graphic process unit GPU, and shown in Figure 6, this player can comprise:
Receiver module 601, for receiver, video flow data;
Decoder module 602, for by received video stream data, sends to the CPU of described terminal equipment, and the CPU controlling described terminal equipment decodes to described video stream data, obtains the video data of yuv format;
Color space convert module 603, for controlling the CPU of described terminal equipment by the video data of the yuv format obtained of decoding, send to the GPU of described terminal equipment, and the GPU controlling described terminal equipment carries out color space convert to the video data of described yuv format, obtains the video data of rgb format;
Display module 604, shows for the video data of GPU to obtained rgb format controlling described terminal equipment.
In a specific embodiment of the present invention, described display module 604, shows according to the video data of broadcasting speed to obtained rgb format preset specifically for the GPU controlling described terminal equipment.
In an embodiment of the present invention, described color space convert module 603, can comprise:
First sends submodule 603a, and after obtaining the video data of yuv format at described decoding module decodes, the CPU directly controlling described terminal equipment, by the video data of the yuv format obtained of decoding, sends to the GPU of described terminal equipment;
First transform subblock 603b, carries out color space convert for the GPU controlling described terminal equipment to the video data that described first sends the yuv format that submodule sends, obtains the video data of rgb format.
In another embodiment of the invention, color space convert module 603, can comprise:
Judge submodule 603c, after obtaining the video data of yuv format at described decoding module decodes, judge whether to meet pre-conditioned;
In an embodiment of the embodiment of the present invention, judge submodule 603c, can comprise:
First detection sub-unit 603c1, for detecting the CPU usage of described terminal equipment;
First judgment sub-unit 603c2, for judging whether described CPU usage is greater than preset value, if so, then determines to meet pre-conditioned.
In an embodiment of the embodiment of the present invention, judge submodule 603c, can comprise:
Obtain subelement 603c3, for obtaining the frame per second of video stream data;
Further, described acquisition subelement 603c3, specifically for:
Before described decoder module is not decoded to video stream data, obtain the frame per second of video stream data;
Or,
After described decoder module is decoded to video stream data, and before described second judgment sub-unit starts judgement operation, obtain the frame per second of video stream data;
Second detection sub-unit 603c4, for detecting the video decode frame number of described video stream data in the unit interval;
Second judgment sub-unit 603c5, for judging whether the video decode frame number of described video stream data in the unit interval is less than the frame per second of described video stream data, if so, then determines to meet pre-conditioned.
Second sends submodule 603d, for when described judge the judged result of submodule as being time, the video data of the yuv format that decoding obtains by the CPU controlling described terminal equipment, sends to the GPU of described terminal equipment;
Second transform subblock 603e, carries out color space convert for the GPU controlling described terminal equipment to the video data that described second sends the yuv format that submodule sends, obtains the video data of rgb format.
For player embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
For convenience of description, various module is divided into describe respectively with function when describing above player.Certainly, the function of each module can be realized in same or multiple software and/or hardware when implementing of the present invention.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
Each embodiment in this specification all adopts relevant mode to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
One of ordinary skill in the art will appreciate that all or part of step realized in said method execution mode is that the hardware that can carry out instruction relevant by program has come, described program can be stored in computer read/write memory medium, here the alleged storage medium obtained, as: ROM/RAM, magnetic disc, CD etc.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.

Claims (6)

1. a video broadcasting method, be applied in the terminal equipment comprising central processor CPU, graphic process unit GPU, it is characterized in that, the method comprises:
Receiver, video flow data;
By received video stream data, send to the CPU of described terminal equipment, and the CPU controlling described terminal equipment decodes to described video stream data, obtains the video data of yuv format;
Control the CPU of described terminal equipment by the video data of the yuv format obtained of decoding, send to the GPU of described terminal equipment, and the GPU controlling described terminal equipment carries out color space convert to the video data of described yuv format, obtains the video data of rgb format;
The video data of GPU to obtained rgb format controlling described terminal equipment shows;
Wherein, the CPU of the described terminal equipment of described control, by the video data of the yuv format obtained of decoding, sends to the GPU of described terminal equipment, comprising:
Obtain the frame per second of video stream data;
Detect the video decode frame number of described video stream data in the unit interval;
Judge whether the video decode frame number of described video stream data in the unit interval is less than the frame per second of described video stream data, if so, then the CPU controlling described terminal equipment, by the video data of the yuv format obtained of decoding, sends to the GPU of described terminal equipment.
2. method according to claim 1, is characterized in that, the frame per second of described acquisition video stream data, comprising:
Before video stream data not being decoded, obtain the frame per second of video stream data;
Or,
After starting to decode to video stream data, and before judgement operation, obtain the frame per second of video stream data, described judgement is operating as: judge whether the video decode frame number of described video stream data in the unit interval is less than the frame per second of described video stream data.
3. method according to claim 1, is characterized in that, the video data of GPU to obtained rgb format of the described terminal equipment of described control shows, and specifically comprises:
The GPU controlling described terminal equipment shows according to the video data of broadcasting speed to obtained rgb format preset.
4. a player, is applied in the terminal equipment comprising central processor CPU, graphic process unit GPU, it is characterized in that, this player comprises:
Receiver module, for receiver, video flow data;
Decoder module, for by received video stream data, sends to the CPU of described terminal equipment, and the CPU controlling described terminal equipment decodes to described video stream data, obtains the video data of yuv format;
Color space convert module, for controlling the CPU of described terminal equipment by the video data of the yuv format obtained of decoding, send to the GPU of described terminal equipment, and the GPU controlling described terminal equipment carries out color space convert to the video data of described yuv format, obtains the video data of rgb format;
Display module, shows for the video data of GPU to obtained rgb format controlling described terminal equipment;
Wherein, described color space convert module, comprising:
Obtain subelement, for obtaining the frame per second of video stream data;
Detection sub-unit, for detecting the video decode frame number of described video stream data in the unit interval;
Judgment sub-unit, for judging whether the video decode frame number of described video stream data in the unit interval is less than the frame per second of described video stream data, if, then control the CPU of described terminal equipment by the video data of the yuv format obtained of decoding, send to the GPU of described terminal equipment, and the GPU controlling described terminal equipment carries out color space convert to the video data of described yuv format, obtains the video data of rgb format.
5. player according to claim 4, is characterized in that, described acquisition subelement, specifically for:
Before described decoder module is not decoded to video stream data, obtain the frame per second of video stream data;
Or,
After described decoder module is decoded to video stream data, and before described second judgment sub-unit starts judgement operation, obtain the frame per second of video stream data.
6. player according to claim 4, is characterized in that, described display module, specifically for:
The GPU controlling described terminal equipment shows according to the video data of broadcasting speed to obtained rgb format preset.
CN201410131609.2A 2014-04-02 2014-04-02 A kind of video broadcasting method and player Active CN103841389B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410131609.2A CN103841389B (en) 2014-04-02 2014-04-02 A kind of video broadcasting method and player

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410131609.2A CN103841389B (en) 2014-04-02 2014-04-02 A kind of video broadcasting method and player

Publications (2)

Publication Number Publication Date
CN103841389A CN103841389A (en) 2014-06-04
CN103841389B true CN103841389B (en) 2015-10-21

Family

ID=50804478

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410131609.2A Active CN103841389B (en) 2014-04-02 2014-04-02 A kind of video broadcasting method and player

Country Status (1)

Country Link
CN (1) CN103841389B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105791890A (en) * 2014-12-23 2016-07-20 Tcl集团股份有限公司 Soft decoding method and device for player
CN104410904A (en) * 2014-12-25 2015-03-11 安科智慧城市技术(中国)有限公司 Video playing method and video playing device
CN104735485A (en) * 2015-03-05 2015-06-24 上海小蚁科技有限公司 Method and device for playing video
CN106293638B (en) * 2015-06-11 2019-08-06 吉林师范大学 Heterogeneous formats storage method based on CPU Yu GPU heterogeneous platform
CN106303361A (en) * 2015-06-11 2017-01-04 阿里巴巴集团控股有限公司 Image processing method, device, system and graphic process unit in video calling
CN109196865B (en) * 2017-03-27 2021-03-30 华为技术有限公司 Data processing method, terminal and storage medium
CN106899861B (en) * 2017-04-08 2018-09-04 腾讯科技(深圳)有限公司 A kind of photograph document handling method and its equipment, system
CN109391847B (en) * 2017-08-08 2021-10-12 中国电信股份有限公司 Monitoring method and monitoring device for blocking of streaming media
CN107920253B (en) * 2017-10-31 2020-08-18 北京赛思信安技术股份有限公司 Video processing method based on GPU
CN107993185A (en) * 2017-11-28 2018-05-04 北京潘达互娱科技有限公司 Data processing method and device
CN110377534B (en) * 2018-04-13 2023-11-17 华为技术有限公司 Data processing method and device
CN109587546B (en) * 2018-11-27 2020-09-22 Oppo广东移动通信有限公司 Video processing method, video processing device, electronic equipment and computer readable medium
CN111741343B (en) * 2020-06-17 2022-11-15 咪咕视讯科技有限公司 Video processing method and device and electronic equipment
CN116193201A (en) * 2023-02-27 2023-05-30 深圳数拓科技有限公司 Video data processing method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477674A (en) * 2008-01-04 2009-07-08 华硕电脑股份有限公司 Method for data computation assistance by display card
CN101930719A (en) * 2009-06-18 2010-12-29 辉达公司 Method and system for automatically switching scene mode of display
CN102164284A (en) * 2010-02-24 2011-08-24 富士通株式会社 Video decoding method and system
CN102625090A (en) * 2011-01-26 2012-08-01 鸿富锦精密工业(深圳)有限公司 Image decoding method and pattern processing device using same
CN103402100A (en) * 2013-08-23 2013-11-20 北京奇艺世纪科技有限公司 Video processing method and mobile terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101123723B (en) * 2006-08-11 2011-01-12 北京大学 Digital video decoding method based on image processor
KR101467558B1 (en) * 2007-07-26 2014-12-01 엘지전자 주식회사 A apparatus and a method of graphic data processing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477674A (en) * 2008-01-04 2009-07-08 华硕电脑股份有限公司 Method for data computation assistance by display card
CN101930719A (en) * 2009-06-18 2010-12-29 辉达公司 Method and system for automatically switching scene mode of display
CN102164284A (en) * 2010-02-24 2011-08-24 富士通株式会社 Video decoding method and system
CN102625090A (en) * 2011-01-26 2012-08-01 鸿富锦精密工业(深圳)有限公司 Image decoding method and pattern processing device using same
CN103402100A (en) * 2013-08-23 2013-11-20 北京奇艺世纪科技有限公司 Video processing method and mobile terminal

Also Published As

Publication number Publication date
CN103841389A (en) 2014-06-04

Similar Documents

Publication Publication Date Title
CN103841389B (en) A kind of video broadcasting method and player
WO2021175049A1 (en) Video frame interpolation method and related apparatus
CN106134172B (en) Display system, display methods and display device
CN112822537B (en) Method, apparatus and medium for adapting video content to display characteristics
CN100531291C (en) Method and system for mastering and distributing enhanced color space content
US10511803B2 (en) Video signal transmission method and device
US20170272687A1 (en) Converting method and converting apparatus for converting luminance value of an input video into a second luminance value
US9894314B2 (en) Encoding, distributing and displaying video data containing customized video content versions
US20080101455A1 (en) Apparatus and method for multiple format encoding
KR102617258B1 (en) Image processing method and apparatus
CN110213459A (en) Display methods and display device
CN105892976A (en) Method and device for achieving multi-screen interaction
CN103281539A (en) Method, device and terminal for image encoding and decoding processing
US11122245B2 (en) Display apparatus, method for controlling the same and image providing apparatus
CN103283250A (en) Method, device and system of video redirection, and computer readable medium
CN102497388A (en) Mobile network terminal and method for wireless screen content transmission between such terminal and TV
CN109587581A (en) Video breviary generation method and video breviary generating means
US10805680B2 (en) Method and device for configuring image mode
CN104717509A (en) Method and device for decoding video
CN110012336A (en) Picture configuration method, terminal and the device at interface is broadcast live
US8798133B2 (en) Dual channel encoding and detection
US11094286B2 (en) Image processing apparatus and image processing method
US11659223B2 (en) System, device and method for displaying display-dependent media files
CN114782250A (en) Video image processing method and device, electronic equipment and storage medium
CN111953986A (en) Image processing method and 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