CN104093069A - Video playing method and player device - Google Patents

Video playing method and player device Download PDF

Info

Publication number
CN104093069A
CN104093069A CN201410265368.0A CN201410265368A CN104093069A CN 104093069 A CN104093069 A CN 104093069A CN 201410265368 A CN201410265368 A CN 201410265368A CN 104093069 A CN104093069 A CN 104093069A
Authority
CN
China
Prior art keywords
curve
video data
color
sampling interval
data
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
CN201410265368.0A
Other languages
Chinese (zh)
Other versions
CN104093069B (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 CN201410265368.0A priority Critical patent/CN104093069B/en
Publication of CN104093069A publication Critical patent/CN104093069A/en
Application granted granted Critical
Publication of CN104093069B publication Critical patent/CN104093069B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Facsimile Image Signal Circuits (AREA)
  • Processing Of Color Television Signals (AREA)

Abstract

The embodiment of the invention provides a video playing method and a player device. The video playing method and the player device solve the problem that due to video data, playing quality is poor. The method includes the steps of sampling the video data played in a mobile terminal according to the preset sampling interval, determining grey information of the video data, determining a color adjustment curve of the video data in the sampling interval according to the grey information, and adjusting the video data and playing the video data in real time in the sampling interval according to the color adjustment curve. By means of the method and the device, the color of the video played in real time can be adjusted, the video data in each sampling interval are sampled and adjusted in the playing process so that color adjustment can be more accurate, and playing quality of the video is improved.

Description

A kind of video broadcasting method and player device
Technical field
The present invention relates to multimedia technology field, particularly relate to a kind of video broadcasting method and a kind of player device.
Background technology
Video resource in network is very abundant, and therefore increasing user adopts the mobile terminals such as panel computer, mobile phone to watch video.As the video in network is downloaded to mobile terminal or directly networking watch online.
While carrying out video playback due to employing mobile terminal, the source of video resource is very extensive, therefore the quality of video is uneven, and video itself is second-rate, play content is unclear, also cause in mobile terminal the effect of video-frequency playing content poor, such as video-frequency playing content is crossed dark or excessively bright etc.
Summary of the invention
Embodiment of the present invention technical problem to be solved is to provide a kind of video broadcasting method, to solve because video data causes the poor problem of play quality.
Accordingly, the embodiment of the present invention also provides a kind of player device, in order to guarantee the implementation and application of said method.
In order to address the above problem, the invention discloses a kind of video broadcasting method, comprising: the video data of playing in mobile terminal is sampled according to the preset sampling interval, determine the half-tone information of described video data; According to described half-tone information, determine the color adjustment curve of video data in the described sampling interval; Within the described sampling interval, according to described color, adjust curve and described video data is adjusted and play in real time.
Optionally, describedly the video data of playing in mobile terminal is sampled according to the preset sampling interval, determine the half-tone information of described video data, comprise: when described mobile terminal playing video data, current while playing the sampling interval that reaches preset constantly when detecting, from the video data of playing, gather the view data of present frame; The view data gathering is sampled and set up grey level histogram according to sampled result.
Optionally, described the view data gathering is sampled and set up grey level histogram according to sampled result, comprising: the view data of described collection being carried out to down-sampling, obtain the gray value of each sampled point in the view data of described collection; According to the gray value of described each sampled point, set up the grey level histogram of the view data of described collection.
Optionally, the described half-tone information of described foundation is determined the color adjustment curve of video data in the described sampling interval, comprising: the color curve of setting up the view data of described collection according to described grey level histogram; Determine the curve type of described color curve, and determine that according to described curve type color adjusts curve, wherein, described curve type comprise following at least one: brightness overflow type, dark portion overflow type, partially dark type, partially bright type, general type.
Optionally, within the described sampling interval, according to described color, adjust curve and described video data is adjusted and play in real time, comprising: according to described color, adjust curve, successively every frame image data of described video data in the described sampling interval is adjusted; View data after every framing control is played up successively and play.
Optionally, according to described color, adjust curve, successively every frame image data of described video data in the described sampling interval is adjusted, comprising: the image frames numbers of determining the view data that in the described sampling interval, described video data comprises; According to described image frames numbers and described color, adjust curve, determine the curve adjustment degree of every frame image data; According to described curve adjustment degree, every frame image data is adjusted respectively.
Accordingly, the invention also discloses a kind of player device, comprising: half-tone information determination module, for the video data of mobile terminal being play according to the preset sampling interval, sample, determine the half-tone information of described video data; Adjust curve determination module, for determine the color adjustment curve of video data in the described sampling interval according to described half-tone information; Adjusting module, within the described sampling interval, adjusts curve according to described color described video data is adjusted; Playing module, for playing in real time the video data after adjusting.
Optionally, described half-tone information determination module, comprising: gather submodule, and for when the described mobile terminal playing video data, current while playing the sampling interval that reaches preset constantly when detecting, from the video data of playing, gather the view data of present frame; Half-tone information is set up submodule, for the view data gathering is sampled and set up grey level histogram according to sampled result.
Optionally, described half-tone information is set up submodule, comprising: sampling unit, for the view data of described collection is carried out to down-sampling, obtains the gray value of each sampled point in the view data of described collection; Grey level histogram is set up unit, for set up the grey level histogram of the view data of described collection according to the gray value of described each sampled point.
Optionally, described adjustment curve determination module, comprising: color curve is determined submodule, for set up the color curve of the view data of described collection according to described grey level histogram; Type and adjustment curve are determined submodule, for determining the curve type of described color curve, and determine color adjustment curve according to described curve type, wherein, described curve type comprise following at least one: brightness overflow type, dark portion overflow type, partially dark type, partially bright type, general type.
Optionally, described adjusting module, for adjusting curve according to described color, adjusts every frame image data of described video data in the described sampling interval successively; Described playing module, plays up successively and plays for the view data to after every framing control.
Optionally, described adjusting module, comprising: number of frames is determined submodule, for determining the image frames numbers of the view data that in the described sampling interval, described video data comprises; Adjustment degree is determined submodule, for adjusting curve according to described image frames numbers and described color, determines the curve adjustment degree of every frame image data; Adjust submodule, for every frame image data being adjusted respectively according to described curve adjustment degree.
Compared with prior art, the embodiment of the present invention comprises following advantage:
The video data of playing in real time in mobile terminal is sampled according to the preset sampling interval, determine the half-tone information of the video data of sampling, half-tone information can reflect the color informations such as brightness of image, thereby can determine according to half-tone information the color adjustment curve of video data in the described sampling interval, and then within this sampling interval, according to described color, adjust curve described video data is adjusted, and play the video data after adjusting in real time.Can adjust the color of the video of real-time broadcasting, and at playing process, the video data in each sampling interval be sampled respectively and adjust and make the adjustment of color more accurate, improve the play quality of video.
Accompanying drawing explanation
Fig. 1 is the flow chart of steps of a kind of video broadcasting method embodiment of the present invention;
Fig. 2 is the flow chart of steps of the optional embodiment of a kind of video broadcasting method of the present invention;
Fig. 3 A is the view data of a kind of brightness overflow type of providing of the embodiment of the present invention;
Fig. 3 B is grey level histogram and the color curve of a kind of brightness overflow type of providing of the embodiment of the present invention;
Fig. 4 A is the view data of a kind of dark portion overflow type that provides of the embodiment of the present invention;
Fig. 4 B is grey level histogram and the color curve of a kind of dark portion overflow type that provides of the embodiment of the present invention;
Fig. 5 A is the view data of a kind of partially bright type of providing of the embodiment of the present invention;
Fig. 5 B is grey level histogram and the color curve of a kind of partially bright type of providing of the embodiment of the present invention;
Fig. 6 A is a kind of partially secretly view data of type that the embodiment of the present invention provides;
Fig. 6 B is a kind of partially secretly grey level histogram and the color curve of type that the embodiment of the present invention provides;
Fig. 7 is the structured flowchart of a kind of player device embodiment of the present invention;
Fig. 8 is the structured flowchart of the optional embodiment of a kind of player device of the present invention;
Fig. 9 is the structured flowchart that the player device half-tone information of the embodiment of the present invention is set up submodule.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
One of core idea of the embodiment of the present invention is, a kind of video broadcasting method is provided, to solve because video data causes the poor problem of play quality.Can to the video data of playing in real time in mobile terminal, sample according to the preset sampling interval, determine the half-tone information of the video data of sampling, half-tone information can reflect the color informations such as brightness of image, thereby can determine according to half-tone information the color adjustment curve of video data in the described sampling interval, and then within this sampling interval, according to described color, adjust curve described video data is adjusted, and play the video data after adjusting in real time.Can adjust the color of the video of real-time broadcasting, and at playing process, the video data in each sampling interval be sampled respectively and adjust and make the adjustment of color more accurate, improve the play quality of video.
Embodiment mono-
With reference to Fig. 1, show the flow chart of steps of a kind of video broadcasting method embodiment of the present invention, specifically can comprise the steps:
Step 102, sampled to the video data of playing in mobile terminal according to the preset sampling interval, determined the half-tone information of described video data.
The embodiment of the present invention is sampled to video in displaying video and is adjusted in player, thereby adjustment is in real time just at the color data of displaying video, improves play quality and the effect of video.
Set in advance the sampling interval of video, as the sampling interval is set is 1 minute, from player, video data is play after starting and sample also detection time, samples respectively afterwards when reaching the time interval at every turn.For example, when video playback starts the 3rd second, sample, after this every 1 minute, carry out once sampling and follow-up adjusting operation.
After the sampling that completes video data, according to the video data of this sampling, obtain the half-tone information of current displaying video.
Step 104, determines that according to described half-tone information the color of video data in the described sampling interval is adjusted curve.
Half-tone information can reflect the color informations such as brightness of current playing video data,, according to current color information, can determine within the current sampling interval how video is adjusted, determine that the color of video data in the current sampling interval is adjusted curve.
Wherein, color is adjusted some standard color curves that curve is default view data, for the every frame image data to video, adjusts, and to adjust the color of the video data of broadcasting, improves the result of broadcast of video.
Step 106, within the described sampling interval, adjusts curve according to described color and described video data is adjusted and play in real time.
In the embodiment of the present invention, when reaching the sampling interval, all video data is sampled, using the color motif of color information video data within this sampling interval of the video data of sampling, thereby according to the video data of sampling, determine color adjustment curve, according to this color, adjust curve the data in this sampling interval are adjusted.
Obtain the video data in this sampling interval, from this sampling interval arrival starts to start to sampling interval next time, obtain video data during this period of time, then according to color, adjusting curve adjusts the video data of this period, make the video of this period meet the requirement that this color is adjusted curve, and the video data of adjusting is play in real time, realize the play quality of adjusting in real time video in video display process.
In sum, can to the video data of playing in real time in mobile terminal, sample according to the preset sampling interval, determine the half-tone information of the video data of sampling, half-tone information can reflect the color informations such as brightness of image, thereby can determine according to half-tone information the color adjustment curve of video data in the described sampling interval, and then within this sampling interval, according to described color, adjust curve described video data is adjusted, and play the video data after adjusting in real time.Can adjust the color of the video of real-time broadcasting, and at playing process, the video data in each sampling interval be sampled respectively and adjust and make the adjustment of color more accurate, improve the play quality of video.
Embodiment bis-
On the basis of above-described embodiment, the present embodiment is further discussed the video broadcasting method of in good time adjusting video quality in broadcasting.
With reference to Fig. 2, show the flow chart of steps of the optional embodiment of a kind of video broadcasting method of the present invention, specifically can comprise the steps:
Step 202, when described mobile terminal playing video data, detects current broadcasting and whether reaches the preset sampling interval constantly.
When mobile terminal adopts player plays video, because the video data itself of wherein playing may be second-rate, cause result of broadcast not good, so the embodiment of the present invention is adjusted to the video of real-time broadcasting.
In video display process, reproduction time is detected, determine whether current broadcasting reaches the preset sampling interval constantly.Wherein, can when playing video data, first to video data, sample, and start to determine whether detection time to reach sampling interval next time, the time that timer detects as started or directly obtain video playback is detected, also can when displaying video, whether reach the sampling interval first detection time, then sample.
If so, detect current broadcasting and reach the preset sampling interval constantly, execution step 204; If not, detect current broadcasting and constantly do not reach the preset sampling interval, return to step 202, continue to detect.
Step 204 gathers the view data of present frame from the video data of playing.
Step 206, samples and sets up grey level histogram according to sampled result the view data gathering.
Current while playing the sampling interval that reaches preset constantly when detecting, determine and the picture frame of the video data of current broadcasting in player then gather view data corresponding to current image frame.The view data gathering is sampled, from view data, extract sampled point, obtain corresponding sampled result and set up grey level histogram.
Wherein, grey level histogram is the function of gray scale, has the number of the pixel of certain gray scale in its presentation video, has reflected the frequency that in image, certain gray scale occurs.
In optional embodiment of the present invention, described the view data gathering is sampled and set up grey level histogram according to sampled result, comprising: the view data of described collection being carried out to down-sampling, obtain the gray value of each sampled point in the view data of described collection; According to the gray value of described each sampled point, set up the grey level histogram of the view data of described collection.
When sampling, there is the multiple method of sampling, as the view data gathering is carried out to down-sampling, wherein, down-sampling refers to for the several sample value samplings in sample value sequence interval once, obtains like this down-sampling that new sequence is exactly former sequence, if the pixel of the view data gathering is 1280 * 720, down-sampling is 4 times, obtaining pixel is 320 * 180, can effectively reduce processed pixels quantity, raises the efficiency.
Then obtain the gray value of each sampled point in the view data of described collection.Then according to the gray value of each sampled point, found the grey level histogram of the view data of described collection, by grey level histogram, analyze the brightness of the view data of described collection.
Step 208, the described grey level histogram of foundation is set up the color curve of the view data of described collection.
Step 210, determines the curve type of described color curve, and determines color adjustment curve according to described curve type.
Grey level histogram itself is exactly a statistical model, and it has described the half-tone information of current picture, therefore according to this grey level histogram, sets up the color curve of the view data of described collection.Wherein, the abscissa of color curve is original brightness, and ordinate is the brightness after adjusting.When not adjusting, color curve is rectilinear, and is 45 °, and in illustrative graph, the abscissa of any point and ordinate all equate, this means that the brightness before adjustment is the same with the brightness after adjustment, does not certainly namely adjust.
Then determine the curve type of color curve, in the embodiment of the present invention, described curve type comprise following at least one: brightness overflow type, dark portion overflow type, partially dark type, partially bright type, general type.For every kind of curve type, pre-configured corresponding calibration curve is that color is adjusted curve, in order to the color curve to its corresponding curve type, adjusts, and improves the quality of view data, and then improves play quality and effect.
Wherein, brightness overflow type shows and is generally right side in grey level histogram, wherein highlight regions accounts for significant proportion as more than 30%, gray-scale map in the rightmost side is still continuing very high ratio as more than 50% simultaneously, as shown in Figure 3A, corresponding grey level histogram and color curve are as shown in Figure 3 B for its view data.
Dark portion overflow type is contrary with brightness overflow type, it shows and is generally left side in grey level histogram, dark area accounts for significant proportion as more than 30%, gray-scale map in the leftmost side is still continuing very high ratio as more than 50% simultaneously, as shown in Figure 4 A, corresponding grey level histogram and color curve are as shown in Figure 4 B for its view data.
Partially bright type shows and is generally right side in grey level histogram, wherein highlight regions accounts for significant proportion as more than 30%, but the gray-scale map in the rightmost side falls after rise lower than 50%, as shown in Figure 5A, corresponding grey level histogram and color curve are as shown in Figure 5 B for its view data.
Partially dark type and partially bright type opposite, it shows and is generally left side in grey level histogram, and dark area accounts for significant proportion as more than 30%, and the gray-scale map in the leftmost side falls after rise lower than 50% simultaneously, as shown in Figure 6A, corresponding grey level histogram and color curve are as shown in Figure 6B for its view data.
General pattern is often referred to take centre as separation, and the image that the weighted average of the block diagram of the left and right sides is more or less the same, as the left and right tea language of grey level histogram is no more than the weighting of government 30%.
Step 212, adjusts curve according to described color, successively every frame image data of described video data in the described sampling interval is adjusted.
Obtain successively every frame image data of described video data in the sampling interval, then the color of establishing criteria adjustment curve is adjusted respectively every frame image data, make it to meet the requirement that color is adjusted curve, wherein the color curve of every frame image data all can be adjusted to color and adjust curve, also can be for fear of picture style acute variation, within the sampling interval, every frame image data is finely tuned, make corresponding color curve successively according to process is consistent with color adjustment curve slowly.
In optional embodiment of the present invention, according to described color, adjust curve, successively every frame image data of described video data in the described sampling interval is adjusted, being comprised: the image frames numbers of determining the view data that in the described sampling interval, described video data comprises; According to described image frames numbers and described color, adjust curve, determine the curve adjustment degree of every frame image data; According to described curve adjustment degree, every frame image data is adjusted respectively.
For fear of picture style acute variation, can be to every frame image data being finely tuned in the sampling interval.Can pre-configuredly make the color curve of view data adjust the consistent time of curve with color, as 30 seconds or 1 minute etc., then determine in the described sampling interval, the image frames numbers of the view data that the corresponding described video data of this preset time comprises, for example video data per second is 24 frames, and sampling interval and preset time are 1 minute, and within a sampling interval, image frames numbers is 24*60=1440, if preset time is 30 seconds, in the sampling interval, image frames numbers is 24*30=720.
Then according to image frames numbers and described color, adjust curve, determine the curve adjustment degree of every frame image data, wherein curve adjustment degree, for determining at preset time or in the sampling interval how the color curve of every frame image data is adjusted, is then adjusted respectively every frame image data according to curve adjustment degree.
Step 214, plays up successively and plays the view data after every framing control.
Because the embodiment of the present invention is that the video in playing is carried out real-time sampling and adjusts and process, therefore then the view data after every framing control also to be played up and be shown.For example in android platform, adopt OpenGL ES to play up, wherein the environment of playing up of an OpenGL ES can built in mobile terminal, then based on OpenGL ES and basic C language, realize and be transplanted in Android system, the interaction technique based on player is play by screen.
Within a sampling interval, complete sampling, analyze, adjust, play up and the step such as broadcasting after, continue next sampling interval to carry out the flow process shown in above-mentioned Fig. 2, until video playback finishes in player.
In sum, can carry out down-sampling to the view data in video data, thereby effectively reduce data volume, improve treatment effeciency.And then according to down-sampling, obtain in the gray value of each sampled point set up grey level histogram, by the monochrome information of this grey level histogram reflection view data, determine color curve that it is corresponding and the curve type of color curve, curve type has multiple, the every kind of curve type all color of corresponding standard is adjusted curve, improves the quality of follow-up adjustment.
Secondly, according to color, adjust curve to the sampling interval in every frame image data of described video data while adjusting, can determine the curve adjustment degree of every frame image data, thereby according to curve adjustment degree, every frame image data is finely tuned respectively, avoid picture style acute variation, further improve play quality and the effect of video.
It should be noted that, for embodiment of the method, for simple description, therefore it is all expressed as to a series of combination of actions, but those skilled in the art should know, the embodiment of the present invention is not subject to the restriction of described sequence of movement, because according to the embodiment of the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and related action might not be that the embodiment of the present invention is necessary.
Embodiment tri-
On the basis of above-described embodiment, the present embodiment also provides a kind of player device.
With reference to Fig. 7, show the structured flowchart of a kind of player device embodiment of the present invention, specifically can comprise as lower module:
Half-tone information determination module 702, samples for the video data of mobile terminal being play according to the preset sampling interval, determines the half-tone information of described video data.
Adjust curve determination module 704, for determine the color adjustment curve of video data in the described sampling interval according to described half-tone information.
Adjusting module 706, within the described sampling interval, adjusts curve according to described color described video data is adjusted.
Playing module 708, for playing in real time the video data after adjusting.
In sum, can to the video data of playing in real time in mobile terminal, sample according to the preset sampling interval, determine the half-tone information of the video data of sampling, half-tone information can reflect the color informations such as brightness of image, thereby can determine according to half-tone information the color adjustment curve of video data in the described sampling interval, and then within this sampling interval, according to described color, adjust curve described video data is adjusted, and play the video data after adjusting in real time.Can adjust the color of the video of real-time broadcasting, and at playing process, the video data in each sampling interval be sampled respectively and adjust and make the adjustment of color more accurate, improve the play quality of video.
With reference to Fig. 8, show the structured flowchart of the optional embodiment of a kind of player device of the present invention.
With reference to Fig. 9, the player device half-tone information that shows the embodiment of the present invention is set up the structured flowchart of submodule, specifically can comprise as lower module:
Optionally, described half-tone information determination module 702, comprising: gather submodule 7022, for when the described mobile terminal playing video data, current while playing the sampling interval that reaches preset constantly when detecting, from the video data of playing, gather the view data of present frame; Half-tone information is set up submodule 7024, for the view data gathering is sampled and set up grey level histogram according to sampled result.
Optionally, described half-tone information is set up submodule 7024, comprising: sampling unit 70242, for the view data of described collection is carried out to down-sampling, obtains the gray value of each sampled point in the view data of described collection; Grey level histogram is set up unit 70244, for set up the grey level histogram of the view data of described collection according to the gray value of described each sampled point.
Described adjustment curve determination module 704, comprising: color curve is determined submodule 7042, for set up the color curve of the view data of described collection according to described grey level histogram; Adjust curve and determine submodule 7044, for determining the curve type of described color curve, and determine color adjustment curve according to described curve type, wherein, described curve type comprise following at least one: brightness overflow type, dark portion overflow type, partially dark type, partially bright type, general type.
Described adjusting module 706, for adjusting curve according to described color, adjusts every frame image data of described video data in the described sampling interval successively.
Described playing module 708, plays up successively and plays for the view data to after every framing control.
Optionally, described adjusting module 706, comprising: number of frames is determined submodule 7062, for determining the image frames numbers of the view data that in the described sampling interval, described video data comprises; Adjustment degree is determined submodule 7064, for adjusting curve according to described image frames numbers and described color, determines the curve adjustment degree of every frame image data; Adjust submodule 7066, for every frame image data being adjusted respectively according to described curve adjustment degree.
In sum, can carry out down-sampling to the view data in video data, thereby effectively reduce data volume, improve treatment effeciency.And then according to down-sampling, obtain in the gray value of each sampled point set up grey level histogram, by the monochrome information of this grey level histogram reflection view data, determine color curve that it is corresponding and the curve type of color curve, curve type has multiple, the every kind of curve type all color of corresponding standard is adjusted curve, improves the quality of follow-up adjustment.
Secondly, according to color, adjust curve to the sampling interval in every frame image data of described video data while adjusting, can determine the curve adjustment degree of every frame image data, thereby according to curve adjustment degree, every frame image data is finely tuned respectively, avoid picture style acute variation, further improve play quality and the effect of video.
Above-mentioned is only a kind of player device embodiment providing in the embodiment of the present invention, in fact this player device also can be divided into as lower module: interactive interface module, video data module, business logic modules, picture analysis module, OPENGLES rendering module etc.
Wherein, interactive interface module is responsible for user's interactive operation to pass to business logic modules.Business logic modules drives video data module playing video data, and concurrent video data module is analyzed to activate this picture analysis module by present frame being passed to picture analysis module.Picture analysis module show that analysis result notice video data module and opengles rendering module carry out data according to analysis result and play up, and picture analysis module can also be selectively pushes away to video data module and shows playing up data.
Wherein, video data module can comprise the collection submodule of carries out image acquisition function in above-mentioned half-tone information determination module, and picture analysis module can comprise that half-tone information in above-mentioned half-tone information determination module sets up submodule, adjusts the function of curve determination module and adjusting module.
Wherein, video data module can adopt android mediaplayer hard decoder scheme to carry out decoding and the broadcasting of video data, and OPENGLES rendering module adopts OpenGL ES to play up.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, and each embodiment stresses is the difference with other embodiment, between each embodiment identical similar part mutually referring to.
Those skilled in the art should understand, the embodiment of the embodiment of the present invention can be provided as method, device or computer program.Therefore, the embodiment of the present invention can adopt complete hardware implementation example, implement software example or in conjunction with the form of the embodiment of software and hardware aspect completely.And the embodiment of the present invention can adopt the form that wherein includes the upper computer program of implementing of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code one or more.
The embodiment of the present invention is with reference to describing according to flow chart and/or the block diagram of the method for the embodiment of the present invention, terminal equipment (system) and computer program.Should understand can be in computer program instructions realization flow figure and/or block diagram each flow process and/or the flow process in square frame and flow chart and/or block diagram and/or the combination of square frame.Can provide these computer program instructions to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing terminal equipment to produce a machine, the instruction of carrying out by the processor of computer or other programmable data processing terminal equipment is produced for realizing the device in the function of flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame appointments.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing terminal equipment with ad hoc fashion work, the instruction that makes to be stored in this computer-readable memory produces the manufacture that comprises command device, and this command device is realized the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame.
These computer program instructions also can be loaded on computer or other programmable data processing terminal equipment, make to carry out sequence of operations step to produce computer implemented processing on computer or other programmable terminal equipment, thereby the instruction of carrying out is provided for realizing the step of the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame on computer or other programmable terminal equipment.
Although described the preferred embodiment of the embodiment of the present invention, once those skilled in the art obtain the basic creative concept of cicada, can make other change and modification to these embodiment.So claims are intended to all changes and the modification that are interpreted as comprising preferred embodiment and fall into embodiment of the present invention scope.
Finally, also it should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the terminal equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or terminal equipment.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, article or the terminal equipment that comprises described key element and also have other identical element.
Above to a kind of video broadcasting method provided by the present invention and a kind of player device, be described in detail, applied specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; , for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention meanwhile.

Claims (12)

1. a video broadcasting method, is characterized in that, comprising:
The video data of playing in mobile terminal is sampled according to the preset sampling interval, determine the half-tone information of described video data;
According to described half-tone information, determine the color adjustment curve of video data in the described sampling interval;
Within the described sampling interval, according to described color, adjust curve and described video data is adjusted and play in real time.
2. method according to claim 1, is characterized in that, describedly the video data of playing in mobile terminal is sampled according to the preset sampling interval, determines the half-tone information of described video data, comprising:
When described mobile terminal playing video data, current while playing the sampling interval that reaches preset constantly when detecting, from the video data of playing, gather the view data of present frame;
The view data gathering is sampled and set up grey level histogram according to sampled result.
3. method according to claim 2, is characterized in that, the described view data to collection is sampled and sets up grey level histogram according to sampled result, comprising:
The view data of described collection is carried out to down-sampling, obtain the gray value of each sampled point in the view data of described collection;
According to the gray value of described each sampled point, set up the grey level histogram of the view data of described collection.
4. method according to claim 2, is characterized in that, the described half-tone information of described foundation is determined the color adjustment curve of video data in the described sampling interval, comprising:
According to described grey level histogram, set up the color curve of the view data of described collection;
Determine the curve type of described color curve, and determine that according to described curve type color adjusts curve, wherein, described curve type comprise following at least one: brightness overflow type, dark portion overflow type, partially dark type, partially bright type, general type.
5. according to the method described in claim 1 or 4, it is characterized in that, within the described sampling interval, according to described color, adjust curve and described video data is adjusted and play in real time, comprising:
According to described color, adjust curve, successively every frame image data of described video data in the described sampling interval is adjusted;
View data after every framing control is played up successively and play.
6. method according to claim 5, is characterized in that, according to described color, adjusts curve, successively every frame image data of described video data in the described sampling interval is adjusted, and comprising:
Determine the image frames numbers of the view data that in the described sampling interval, described video data comprises;
According to described image frames numbers and described color, adjust curve, determine the curve adjustment degree of every frame image data;
According to described curve adjustment degree, every frame image data is adjusted respectively.
7. a player device, is characterized in that, comprising:
Half-tone information determination module, samples for the video data of mobile terminal being play according to the preset sampling interval, determines the half-tone information of described video data;
Adjust curve determination module, for determine the color adjustment curve of video data in the described sampling interval according to described half-tone information;
Adjusting module, within the described sampling interval, adjusts curve according to described color described video data is adjusted;
Playing module, for playing in real time the video data after adjusting.
8. device according to claim 7, is characterized in that, described half-tone information determination module, comprising:
Gather submodule, for when the described mobile terminal playing video data, current while playing the sampling interval that reaches preset constantly when detecting, from the video data of playing, gather the view data of present frame;
Half-tone information is set up submodule, for the view data gathering is sampled and set up grey level histogram according to sampled result.
9. device according to claim 8, is characterized in that, described half-tone information is set up submodule, comprising:
Sampling unit, for the view data of described collection is carried out to down-sampling, obtains the gray value of each sampled point in the view data of described collection;
Grey level histogram is set up unit, for set up the grey level histogram of the view data of described collection according to the gray value of described each sampled point.
10. device according to claim 8, is characterized in that, described adjustment curve determination module, comprising:
Color curve is determined submodule, for set up the color curve of the view data of described collection according to described grey level histogram;
Type and adjustment curve are determined submodule, for determining the curve type of described color curve, and determine color adjustment curve according to described curve type, wherein, described curve type comprise following at least one: brightness overflow type, dark portion overflow type, partially dark type, partially bright type, general type.
11. according to the device described in claim 7 or 10, it is characterized in that:
Described adjusting module, for adjusting curve according to described color, adjusts every frame image data of described video data in the described sampling interval successively;
Described playing module, plays up successively and plays for the view data to after every framing control.
12. devices according to claim 11, is characterized in that, described adjusting module, comprising:
Number of frames is determined submodule, for determining the image frames numbers of the view data that in the described sampling interval, described video data comprises;
Adjustment degree is determined submodule, for adjusting curve according to described image frames numbers and described color, determines the curve adjustment degree of every frame image data;
Adjust submodule, for every frame image data being adjusted respectively according to described curve adjustment degree.
CN201410265368.0A 2014-06-13 2014-06-13 A kind of video broadcasting method and player device Active CN104093069B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410265368.0A CN104093069B (en) 2014-06-13 2014-06-13 A kind of video broadcasting method and player device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410265368.0A CN104093069B (en) 2014-06-13 2014-06-13 A kind of video broadcasting method and player device

Publications (2)

Publication Number Publication Date
CN104093069A true CN104093069A (en) 2014-10-08
CN104093069B CN104093069B (en) 2018-11-06

Family

ID=51640742

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410265368.0A Active CN104093069B (en) 2014-06-13 2014-06-13 A kind of video broadcasting method and player device

Country Status (1)

Country Link
CN (1) CN104093069B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016086493A1 (en) * 2014-12-05 2016-06-09 钱晓炯 Immersive video presentation method for intelligent mobile terminal
CN108234914A (en) * 2016-12-22 2018-06-29 中科创达软件股份有限公司 A kind of video document generating method and device
CN112752146A (en) * 2020-05-25 2021-05-04 腾讯科技(深圳)有限公司 Video quality evaluation method and device, computer equipment and storage medium
WO2021243680A1 (en) 2020-06-05 2021-12-09 Qualcomm Incorporated Video data processing based on sampling rate

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100329523A1 (en) * 2009-06-30 2010-12-30 Martin Ostermeier Method for computing a color-coded analysis image
CN102223546A (en) * 2011-06-07 2011-10-19 中兴通讯股份有限公司 Method and device for regulating brightness of video image
CN102752608A (en) * 2011-11-21 2012-10-24 新奥特(北京)视频技术有限公司 Method and device for realizing fast color correction
CN102811353A (en) * 2012-06-14 2012-12-05 北京暴风科技股份有限公司 Method and system for improving video image definition
CN103208270A (en) * 2012-01-11 2013-07-17 索尼公司 Display Device, Electronic Apparatus, Displaying Method, And Program
CN103327219A (en) * 2012-03-21 2013-09-25 浙江大华技术股份有限公司 Video image contrast adjustment method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100329523A1 (en) * 2009-06-30 2010-12-30 Martin Ostermeier Method for computing a color-coded analysis image
CN102223546A (en) * 2011-06-07 2011-10-19 中兴通讯股份有限公司 Method and device for regulating brightness of video image
CN102752608A (en) * 2011-11-21 2012-10-24 新奥特(北京)视频技术有限公司 Method and device for realizing fast color correction
CN103208270A (en) * 2012-01-11 2013-07-17 索尼公司 Display Device, Electronic Apparatus, Displaying Method, And Program
CN103327219A (en) * 2012-03-21 2013-09-25 浙江大华技术股份有限公司 Video image contrast adjustment method and device
CN102811353A (en) * 2012-06-14 2012-12-05 北京暴风科技股份有限公司 Method and system for improving video image definition

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016086493A1 (en) * 2014-12-05 2016-06-09 钱晓炯 Immersive video presentation method for intelligent mobile terminal
CN108234914A (en) * 2016-12-22 2018-06-29 中科创达软件股份有限公司 A kind of video document generating method and device
CN112752146A (en) * 2020-05-25 2021-05-04 腾讯科技(深圳)有限公司 Video quality evaluation method and device, computer equipment and storage medium
WO2021243680A1 (en) 2020-06-05 2021-12-09 Qualcomm Incorporated Video data processing based on sampling rate
US11847995B2 (en) 2020-06-05 2023-12-19 Qualcomm Incorporated Video data processing based on sampling rate

Also Published As

Publication number Publication date
CN104093069B (en) 2018-11-06

Similar Documents

Publication Publication Date Title
US11706484B2 (en) Video processing method, electronic device and computer-readable medium
US11601630B2 (en) Video processing method, electronic device, and non-transitory computer-readable medium
US20220413661A1 (en) List flow implementation method, electronic device, and storage medium
CN110300316B (en) Method and device for implanting push information into video, electronic equipment and storage medium
CN109379628B (en) Video processing method and device, electronic equipment and computer readable medium
CN110996153B (en) Scene recognition-based sound and picture quality enhancement method and system and display
US20130176486A1 (en) Pillarboxing Correction
CN104091607B (en) Video editing method and device based on IOS equipment
CN109168026A (en) Instant video display methods, device, terminal device and storage medium
CN104837051B (en) Video broadcasting method and client
CN111355977B (en) Optimized storage method and device for live webcast video
CN104394422A (en) Video segmentation point acquisition method and device
CN105872717A (en) Video processing method and system, video player and cloud server
CN104080006B (en) A kind of video process apparatus and method
CN112637670B (en) Video generation method and device
CN104093069A (en) Video playing method and player device
CN110996157A (en) Video playing method and device, electronic equipment and machine-readable storage medium
CN113784171A (en) Video data processing method, device, computer system and readable storage medium
CN111107434A (en) Information recommendation method and device
CN104091608B (en) A kind of video editing method and device based on ios device
CN117255211A (en) Live broadcast room display method, server side and live broadcast client side
CN115396705A (en) Screen projection operation verification method, platform and system
CN112906553B (en) Image processing method, apparatus, device and medium
CN112102422B (en) Image processing method and device
CN115690664A (en) Image processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant