Movatterモバイル変換


[0]ホーム

URL:


CN109587561A - Method for processing video frequency, device, electronic equipment and storage medium - Google Patents

Method for processing video frequency, device, electronic equipment and storage medium
Download PDF

Info

Publication number
CN109587561A
CN109587561ACN201811438276.2ACN201811438276ACN109587561ACN 109587561 ACN109587561 ACN 109587561ACN 201811438276 ACN201811438276 ACN 201811438276ACN 109587561 ACN109587561 ACN 109587561A
Authority
CN
China
Prior art keywords
video
source
playing
optimal parameters
local file
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
CN201811438276.2A
Other languages
Chinese (zh)
Other versions
CN109587561B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp LtdfiledCriticalGuangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811438276.2ApriorityCriticalpatent/CN109587561B/en
Publication of CN109587561ApublicationCriticalpatent/CN109587561A/en
Application grantedgrantedCritical
Publication of CN109587561BpublicationCriticalpatent/CN109587561B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

This application discloses a kind of method for processing video frequency, device, electronic equipment and storage medium, which includes: when carrying out video playing, and detection plays the source of video;Judge whether the source for playing video is local file;When source is local file, display enhancing processing is carried out to the broadcasting video, the display enhancing processing handles the image in the broadcasting video by Optimal Parameters and improves the image quality for playing video.This method can promote the fluency of video playing.

Description

Method for processing video frequency, device, electronic equipment and storage medium
Technical field
This application involves technical field of electronic equipment, set more particularly, to a kind of method for processing video frequency, device, electronicsStandby and storage medium.
Background technique
Electronic equipment, such as computer, mobile phone etc. have become most common consumer electronic product in people's daily lifeOne of.With the development of electronic equipment, more and more users carry out the broadcasting of video using electronic equipment, but are utilizing electronicsWhen equipment carries out video playing, it is possible that display Caton.
Summary of the invention
In view of the above problems, present applicant proposes a kind of method for processing video frequency, device, electronic equipments and computer-readableStorage medium, to reduce Caton when video playing.
In a first aspect, the embodiment of the present application provides a kind of method for processing video frequency, which comprises broadcast carrying out videoWhen putting, detection plays the source of video;Judge whether the source for playing video is local file;When source is local fileWhen, display enhancing processing is carried out to the broadcasting video, the display enhancing processing handles the broadcasting by Optimal Parameters and regardsImage in frequency improves the image quality for playing video.
Second aspect, the embodiment of the present application provide a kind of video process apparatus, and described device includes: video source detection mouldBlock, video source judgment module and display enhancing module, wherein the video source detection module is used to carry out video playingWhen, detection plays the source of video;The video source judgment module is used to judge whether the source for playing video to be localFile;The display enhancing module is used for when source is local file, and the display enhancing processing is handled by Optimal ParametersImage in the broadcasting video improves the image quality for playing video.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, comprising: one or more processors;Memory;One or more application program, wherein one or more of application programs be stored in the memory and be configured as byOne or more of processors execute, and one or more of programs are configured to carry out the video that above-mentioned first aspect providesProcessing method.
Fourth aspect, the embodiment of the present application provides a kind of computer-readable storage medium, described computer-readableProgram code is stored in storage medium, said program code can be called the video for executing above-mentioned first aspect and providing by processorProcessing method.
Scheme provided by the present application judges to play video by the way that when carrying out video playing, detection plays the source of videoSource whether be local file, when source be local file when, to play video carry out display enhancing processing.Due to when broadcastingWhen the source of video is local file, display enhancing processing just is carried out to the video of broadcasting, it can be to avoid the view to all sourcesFrequency carry out display enhancing processing, caused by video playing Caton, promote the fluency of video playing.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodimentAttached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, forFor those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attachedFigure.
Fig. 1 shows the block diagram according to video playing framework provided by the embodiments of the present application.
Fig. 2 shows the method for processing video frequency flow charts according to the application one embodiment.
Fig. 3 shows the method for processing video frequency flow chart according to another embodiment of the application.
Fig. 4 shows the method for processing video frequency flow chart according to another embodiment of the application.
Fig. 5 shows a kind of block diagram of the video process apparatus according to the application one embodiment.
Fig. 6 shows another block diagram of the video process apparatus according to the application one embodiment.
Fig. 7 shows another block diagram of the video process apparatus according to the application one embodiment.
Fig. 8 is the embodiment of the present application for executing the electronic equipment of the method for processing video frequency according to the embodiment of the present applicationBlock diagram.
Fig. 9 is the embodiment of the present application for saving or carrying the method for processing video frequency realized according to the embodiment of the present applicationProgram code storage unit.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present applicationAttached drawing, the technical scheme in the embodiment of the application is clearly and completely described.
Currently, most electronic equipment, such as computer, mobile phone, tablet computer etc. are, it can be achieved that broadcasting to video.In electronicsWhen equipment carries out the broadcasting of video, the operating system of electronic equipment can parse sound after getting video data to be playedVideo data.Usual video file is made of video flowing and audio stream two parts, the encapsulation lattice of different video format audio-videosFormula will be different.The process of audio stream and video flowing composite document is known as muxer (merging file).The corresponding inverse mistake of muxerJourney is then that the process of separating audio stream and video flowing is known as demuxer (separate file) from media file.Playing video fileWhen, it needs to isolate audio stream and video flowing from file stream, it is decoded respectively, decoded video frame can be directRendering, the buffer area that audio frame can be sent to audio output apparatus play out, certainly, the time of Video Rendering and audio broadcastingStamp is had to control and is synchronized.
Wherein, video decoding may include hard decoder and soft decoding, and hardware decoding is that original whole is transferred to central processingDevice (Central Processing Unit, CPU) transfers to image processor come a part of the video data handled(Graphics Processing Unit, GPU) is done, and the concurrent operation ability of GPU will be significantly larger than CPU, in this way can be withIt greatly reduces the load to CPU, some other programs can be run simultaneously after the occupancy of CPU is lower.WhenSo, for the processor of better performances, software decoding also can be used, i.e., solved by the decoding software program in CPUCode.
Referring to Fig. 1, showing the block diagram of the video playing framework of electronic equipment.When player is broadcasting using hard decoderWhen putting device, Media Framework (multimedia framework) obtains client by the api interface of the client with player and waits broadcastingThe video file put, and Video Decode (Video Decoder) is transferred to be decoded, to obtain decoded video data, i.e.,Image data to be rendered.Wherein, Media Framework is multimedia framework in Android (Android) system, MediaFramework may include MediaPlayer (media player), MediaPlayerService (media player service) andTri- parts Stagefrightplayer.Specifically, multimedia framework part uses the structure of C/S, MediaPlayer conductThe Client (client) of C/S structure is held, and MediaPlayerService and Stagefrightplayer are as C/S structureThe end Server (service), carries the responsibility for playing multimedia file, and by Stagefrightplayer, the end Server is completedThe request at the end Client simultaneously makes a response.Video Decode be can with decoding audio data and the decoder of video data,For by video data decoding.After Video Decode is decoded above-mentioned video file, then it can be driven by videoDecoded video data transmission to SurfaceFlinger (figure layer transfer module) render and in screen by dynamic programIn display.SurfaceFlinger is an independent Service (service), it receives all Window (window)Surface (surface layer), according to parameters such as ZOrder (node sequencing), transparency, size, positions, is calculated each as inputThen HWComposer or OpenGL (Open Graphics is transferred in position of the Surface in final composographLibrary, open graphic library) final display Buffer (buffering) is generated, it is then shown in specific display equipment.
When player is using soft decoded player, i.e., processing is decoded to video by CPU by software, solvedIt recalls after code after GPU merges Video Rendering and shows on the screen.And hard decoder, refer to without the help of CPU, and by specialSubcard equipment carrys out complete independently video decoding task.
In the embodiment of the present application, electronic equipment can carry out at the display enhancing of video playing in video display processReason.Specifically, after obtaining decoded video data by hard decoder or soft decoding, decoded video data conductImage data to be rendered can be by HQV when image data to be rendered is sent to SurfaceFlinger(Hollywood Quality Video, Hollywood quality image) algoritic module is intercepted and is then forwarded to after optimizingSurfaceFlinger does rendering and subsequent display operation on the screen.HQV algoritic module is used for will be above-mentioned to be renderedImage data is stored to off screen Render Buffer, to the image of the multiple image data in off screen Render Buffer, is passed throughExposure enhancing, denoising, edge sharpening, contrast increases and the Optimal Parameters such as saturation degree increases, and carries out display enhancing processingAnd then it is transmitted to SurfaceFlinger and carries out rendering and subsequent optimization operation on the screen.Wherein, above-mentioned display increasesThe image quality for playing video can be improved in strength reason, and image quality includes clarity, acutance, lens distortion, color, resolution, colour gamut modelIt encloses, purity etc., can there is different display reinforcing effects by its different combination.Reach group different in above-mentioned image qualityConjunction mode can be realized by controlling above-mentioned Optimal Parameters.Wherein, it should be noted that the display enhancing for playing video is handledIt is also understood that for the sequence of operations done before formally handle to broadcasting video, including image enhancement and image are answeredOriginal etc., image enhancement are to add some information or transformation data to original image by certain means, selectively protrude imageIn interested feature or inhibit image in certain unwanted features, so that image is matched with Optimal Parameters, so as to improvePicture quality reinforces visual effect, so that the video image of display achievees the effect that super clear visual effect.Specifically,Rendering result is put into frame after the above-mentioned image data of GPU realization can be called to be rendered and synthesized and buffered by SurfaceFlingerArea, subsequent Video Controller read the data of frame buffer zone, pass to display by digital-to-analogue conversion and show, so as to realizeThe display enhancing that video is shown.
But inventor has found that when carrying out display enhancing, part system can be occupied in video display processUnite resource, be easy to appear Caton when playing video, and electronic equipment play network video needed for system resource, compared to broadcastingSystem resource needed for putting non-network video is more.Therefore, for the technical problem, inventor is by studying and proposing for a long timeMethod for processing video frequency, device, electronic equipment and computer-readable storage medium provided by the embodiments of the present application, by working asWhen the source for playing video is not network, display enhancing processing just is carried out to the video of broadcasting, it can be to avoid to all sourcesVideo carry out display enhancing processing, caused by video playing Caton, promote the fluency of video playing.
It describes in detail below to the method for processing video frequency of the embodiment of the present application.
Referring to Fig. 2, the embodiment of the present application provides a kind of method for processing video frequency, electronic equipment can be applied to, the videoProcessing method may include:
Step S110: when carrying out video playing, detection plays the source of video.
When electronic equipment carries out video display process, generally for the display effect for guaranteeing video, it will do it display and increaseStrength reason.And when carrying out display enhancing processing, part system resource can be occupied, the burden of processor is increased, is easy to cause viewThere is Caton when playing in frequency.Wherein, display enhancing processing is improved by the image in Optimal Parameters processing broadcasting video and plays viewThe image quality of frequency, it is specific to show that enhancing processing be refering to the above-mentioned description to display enhancing processing.
In addition, the source of video can impact the fluency of video playing when playing video.The source meeting of videoThe reason of impacting to the fluency of video playing is when broadcasting is not derived from the video of local file, to occupy moreSystem resource so that the burden of processor is larger.Therefore, when broadcasting is not derived from the video of local file, if thisWhen carry out display enhancing processing to playing video, be easy to cause the burden of processor excessive, and the broadcasting of video is made Caton occur.And when play video source be local file when, then occupy relatively small number of system resource, if at this time to play video intoRow display enhancing processing, is not easy to make the burden of processor excessive, broadcasting video that can be more smooth.
Therefore, in the embodiment of the present application, can the video broadcasting condition current to electronic equipment detect, in electricityWhen sub- device plays video, the source for playing video is determined, convenient for being shown to video is played according to the source for playing videoEnhancing processing.
In some embodiments, video broadcasting condition can be detected, can be the video of detection electronic equipmentIt plays and whether works in framework, to determine electronic equipment currently whether in video broadcasting condition, when video playing framework worksWhen, determine that electronic equipment is in video broadcasting condition, i.e. electronic equipment is carrying out video playing.Alternatively, it is also possible to detect videoWhether used correlation module works when broadcasting, to determine that electronic equipment is carrying out video playing, for example, when detecting videoWhen decoder, figure layer transfer module and video player etc. are in running order, detect carrying out video playing.Certainly, haveBody detects whether to be not intended as limiting in the embodiment of the present application in the mode for carrying out video playing.
Further, when determining that electronic equipment carries out video playing, the source for playing video is detected.AsA kind of optional mode, when can be used to obtain the interface acquisition video file of video file by obtaining video player,The path for obtaining video determines the source for playing video.Specifically, when obtaining the interface of video file from specified file pathWhen reading video file, then it can determine that the source for playing video is local file.In addition, since the video obtained from network is bigTherefore relevant information mostly with mark video network address can detecte and play video with whether having mark video networkThe relevant information of location, when playing relevant information of the video with mark video network address, then playing video is in real time from networkThe video file of acquisition is certain, and the mode in the source that specific detection plays video in the embodiment of the present application can be not as limitIt is fixed.
Step S120: judge whether the source for playing video is local file.
In the embodiment of the present application, after detecting to play the source of video, then it may determine that the source for playing video isNo is local file, so as to subsequent when playing the source of video is not network, carries out display enhancing processing to video is played.It canWith understanding, when the source for judging to play video is local file, the system resource of the task occupancy due to playing videoIt is less, therefore display enhancing processing can be carried out to video is played, cause to play video card without keeping processor burden excessive?.
Step S130: when source is local file, display enhancing processing is carried out to the broadcasting video, the display increasesStrength reason handles the image in the broadcasting video by Optimal Parameters and improves the image quality for playing video.
When the source for judging to play video in step S120 is local file, then it can play video and carry out display increasingStrength reason.The video played, by decoded video data as image data to be rendered, by above-mentioned HQV algoritic moduleIt intercepts, HQV algoritic module stores above-mentioned image data to be rendered to off screen Render Buffer, renders and buffers to off screenAfter the image of multiple image data in area carries out the display enhancing processing of the corresponding optimization operation of at least one Optimal Parameters,It is transmitted to SurfaceFlinger again and carries out rendering and subsequent optimization operation on the screen, improves the image quality for playing video,Image quality includes clarity, acutance, lens distortion, color, resolution, gamut range, purity etc..Wherein, above-mentioned Optimal Parameters canTo include the Optimal Parameters such as exposure enhancing, denoising, edge sharpening, contrast increase and saturation degree increase.Certainly, specificallyOptimal Parameters in the embodiment of the present application can be not as restriction.
Since electronic equipment is when playing the video for not deriving from local file, needs third party's player just to can be carried out and broadcastIt puts, therefore the system resource occupied is more, the burden of processor is larger.Therefore work as and judge to play coming for video in step S120When source is not local file, display enhancing processing can not be carried out to video is played, or carry out all optimizations to video is playedThe display enhancings of part Optimal Parameters in parameter is handled, so that the burden of processor is not too big, and when causing to play videoThere is Caton.
Method for processing video frequency provided by the embodiments of the present application, by the way that when playing out video, detection plays coming for videoSource just carries out display enhancing processing to broadcasting video when the source of broadcasting video is local file, can be to avoid to all nextThe video in source carry out display enhancing processing, caused by video playing Caton, promote the fluency of video playing.
Referring to Fig. 3, the application can be applied to electronic equipment another embodiment provides for a kind of method for processing video frequency,The method for processing video frequency may include:
Step S210: when carrying out video playing, detection plays the source of video.
In the embodiment of the present application, in electronic equipment when playing out video, the source for playing video can be carried outDetection carries out display enhancing processing to video is played so as to subsequent when determining that playing source video sequence is local file.
In some embodiments, it when playing out video, can determine at the display enhancing of current electronic deviceWhen reason is in available mode, that is, when showing that the function of enhancing processing is opened, the source for playing video is detected.As one kindThe switch button of the function for carrying out display enhancing processing, user can be set in the system interface of electronic equipment for modeThe function of the display enhancing processing of video playing can be turned on or off by the switch button.It is above-mentioned for switching by detectingWhether button is opened, and when the switch button is opened, then shows that the function of enhancing processing is opened;When the switch button is closed,Then show that the function of enhancing processing is closed.Certainly, specifically determine the display enhancing processing of current electronic device whether in canIt is not intended as limiting in the embodiment of the present application with the mode of state.
It is thus possible to electronic equipment display enhancing processing under the available mode, can be with when carrying out the broadcasting of videoDetection obtains playing the source of video.Wherein, detection play video source mode can refering to the content of above-described embodiment,Details are not described herein.
Step S220: judge whether the source for playing video is local file.
In the embodiment of the present application, step S220 can be refering to the content of above-described embodiment, and this is no longer going to repeat them.
Step S230: when source is local file, display enhancing processing is carried out to the broadcasting video, the display increasesStrength reason handles the image in the broadcasting video by Optimal Parameters and improves the image quality for playing video.
In the embodiment of the present application, when judging when deriving from local file of broadcasting video, due to playing appointing for videoThe system resource occupied of being engaged in is less, therefore can carry out display enhancing processing to video is played, without keeping processor burden excessiveAnd cause to play video cardton.
Further, it when the source for determining to play video is local file, is carried out at display enhancing to video is playedWhen reason, due to there are many Optimal Parameters for showing enhancing processing pre-set in electronic equipment, can be to broadcastingVideo carries out the display enhancing processing of the optimization operation of all Optimal Parameters, or carry out the optimization operation of part Optimal ParametersShow enhancing processing.
As an implementation, when the source for playing video is local file, display enhancing is carried out to video is playedIt handles, may include:
When source is local file, all Optimal Parameters are chosen, as carrying out display increasing to the broadcasting videoThe objective optimization parameter of strength reason;According to the objective optimization parameter, display enhancing processing is carried out to the broadcasting video.
It is understood that above-mentioned HQV algorithm can be chosen when the source for determining to play video is local fileAll Optimal Parameters in module, as objective optimization parameter, which is used to carry out display increasing to broadcasting videoStrength reason.Then, according to the objective optimization parameter, display enhancing processing is carried out to video is played, that is, the video played is decodedVideo data afterwards is intercepted, HQV algoritic module is by above-mentioned to wash with watercolours as image data to be rendered by above-mentioned HQV algoritic moduleThe image data of dye is stored to off screen Render Buffer, to the images of the multiple image data in off screen Render Buffer intoThe display enhancing of the corresponding optimization operation of all Optimal Parameters of row, which handles and then is transmitted to SurfaceFlinger, to be renderedAnd subsequent optimization operation on the screen, so that the video image of display achievees the effect that super clear visual effect.For example, working as HQV mouldAll Optimal Parameters in block include exposure enhancing, denoising, edge sharpening, contrast increases and the increased optimization of saturation degreeParameter then increases image data degree of being exposed enhancing to be rendered, denoising, edge sharpening, contrast and saturation degree increasesThe optimization operation added, then carries out follow-up play.
By being shown to the whole Optimal Parameters of video progress are played when the source for determining to play video is local fileTo show that enhancing is handled, does not carry out source network due to playing video, the resource occupied excessively will not keep processor burden excessive,While making to play video with super clear visual effect, guarantee the fluency of video playing.
As another embodiment, when the source for playing video is local file, display increasing is carried out to video is playedStrength is managed, and may include:
When source is local file, the selected part Optimal Parameters from all Optimal Parameters, as being broadcast to describedPut the objective optimization parameter that video carries out display enhancing processing;According to the objective optimization parameter, the broadcasting video is carried outShow enhancing processing.
It is understood that being carried out to video excellent when the Optimal Parameters using HQV module carry out display enhancing processingWhen change, the corresponding optimization processing of every kind of Optimal Parameters can occupy the resource of processor, and every kind of Optimal Parameters occupancy processingThe resource of device may be different.Therefore, part Optimal Parameters therein can be suitably chosen, carry out display enhancing to video is played,The resource for avoiding display enhancing processing from occupying processor is excessively high, and leads to the Caton of video playing.
It is understood that when the source for determining to play video is local file, it can be from above-mentioned HQV algorithm mouldIn all Optimal Parameters of block, selected part Optimal Parameters, as objective optimization parameter, which is used for broadcastingVideo carries out display enhancing processing.Pair then, according to the objective optimization parameter, display enhancing processing is carried out to video is played, i.e.,It plays video and carries out the corresponding display enhancing processing of the operation of optimization corresponding to above-mentioned part Optimal Parameters.That is, playingVideo intercepted by above-mentioned HQV algoritic module, HQV algorithm mould by decoded video data as image data to be renderedBlock stores above-mentioned image data to be rendered to off screen Render Buffer, to the multiple image in off screen Render BufferThe image of data carries out the display enhancing processing of the corresponding optimization operation of above-mentioned objective optimization parameter (i.e. part Optimal Parameters)Afterwards, then be transmitted to SurfaceFlinger carry out rendering and it is subsequent on the screen optimization operation so that display video figureAs achieving the effect that high visual effect.For example, all Optimal Parameters in the HQV module include that exposure enhancing, denoising, edge are sharpChange, contrast increase and the increased Optimal Parameters of saturation degree, the part Optimal Parameters of selection include exposure enhancing and it is rightIncrease than degree, then the enhancing of image data degree of being exposed and the increased optimization of contrast to be rendered is operated, then carried outFollow-up play.It is understood that choosing above-mentioned different part Optimal Parameters, the effect of different promotion image quality can achieveFruit.
Further, it from all Optimal Parameters, when selected part Optimal Parameters are as objective optimization parameter, can be pre-The part Optimal Parameters first set, as the objective optimization parameter for carrying out display enhancing processing, the preset part optimizationParameter is the part Optimal Parameters in above-mentioned all Optimal Parameters.That is, excellent to video progress part is played when needingWhen changing the display of parameter enhances processing, then the part Optimal Parameters of above-mentioned setting can be directly utilized, are shown to video is playedShow that enhancing is handled.
Certainly, from all Optimal Parameters, when selected part Optimal Parameters are as objective optimization parameter, it is also possible to pass throughThe rule of setting, chooses Optimal Parameters, such as the rule of setting can be the present load rate according to processor, obtainsIts corresponding Optimal Parameters is also possible to the optimization priority according to setting, chooses the Optimal Parameters of setting quantity.Certainly, haveThe rule of body setting in the embodiment of the present application can be not as restriction.
By being shown to video progress part Optimal Parameters are played when the source for determining to play video is local fileShow that enhancing is handled, is local file due to playing video, and carry out display increasing to video is played according only to part Optimal ParametersStrength reason, therefore the resource occupied excessively will not keep processor burden excessive, so as to so that playing video has higher viewWhile effect, guarantee the fluency of video playing.
Step S240: when source is not local file, judge whether the broadcasting video obtains in real time from networkVideo file.
It is understood that when judging that playing the source of video is not local file in step S220, then it represents that broadcastNetwork may be derived from real time by putting video.And when playing video and deriving from network in real time, third party's player is needed just to can be carried outIt plays, therefore the system resource occupied is more, the burden of processor is larger.If carried out at display enhancing to broadcasting video at this timeReason, then may cause processor, over-burden, and occurs Caton in video playing.Therefore, coming for video can playedWhen source is not local file, it can be determined that play whether video is the video file obtained in real time from network, that is, determine and play viewWhether frequency derives from network in real time, to determine whether to carry out display enhancing processing to broadcasting video.
Step S250: when the broadcasting video is the video file obtained in real time from network, forbid regarding the broadcastingFrequency carries out display enhancing processing.
In the embodiment of the present application, it may be produced due to when playing source video sequence is network, carrying out display enhancing processingRaw Caton, therefore can forbid carrying out display enhancing to broadcasting video when the source for judging to play video is networkProcessing, that is to say, that display enhancing processing is not carried out to broadcasting video, will directly play video and play out, to reduce videoThe resource for occupying processor is played, processor is avoided to bear excessive and when generating video playing Caton.
Certainly, in the embodiment of the present application, when judge to play video be the video file that is obtained in real time from network constantly,It is also possible to according to the part Optimal Parameters in above-mentioned all Optimal Parameters, carries out display enhancing processing to video is played.AlsoIt is to say, as the concomitant regimen of above-mentioned steps S250, is also possible to when broadcasting video derives from network in real time, according to allPart Optimal Parameters in Optimal Parameters carry out display enhancing processing to video is played.
It is understood that video playing is occupied when electronic equipment is when playing the video for deriving from network in real timeSystem resource is more, and for opposite broadcasting local video, processor burden is larger.And the configuration in electronic equipment is higher, placeWhen managing the better performances of device, when playing network video, display enhancing processing can also be carried out to video is played.But it is broadcastingWhen putting the video for deriving from network in real time, display enhancing processing is carried out to video is played, then is from above-mentioned all Optimal ParametersSelected part Optimal Parameters, for carrying out display enhancing processing to broadcasting video, it is possible to prevente effectively from the money that video playing occupiesSource is excessive and keeps processor burden excessive, while so as to so that the display effect for playing video is promoted, guarantees video playingFluency.It, then can be according to above-mentioned all Optimal Parameters to broadcasting when playing video is not to derive from the video of network in real timeIt puts video and carries out display enhancing processing, or carried out according to the part Optimal Parameters in above-mentioned all Optimal Parameters to video is playedEnhancing processing is shown, to promote the image quality for playing video.
Method for processing video frequency provided by the embodiments of the present application, by the way that when carrying out video playing, detection plays coming for videoSource carries out display enhancing processing to video is played according to all Optimal Parameters when the source for playing video is local file, orPerson carries out display enhancing processing to video is played according to part Optimal Parameters, while reaching the visual effect for promoting broadcasting video, keeps awayExempt from Caton when video playing.In addition, when play video be the video file that is obtained in real time from network constantly, not to broadcasting videoDisplay enhancing processing is carried out, or carries out display enhancing processing to video is played according to part Optimal Parameters, avoids playing videoWhen there is Caton.
Referring to Fig. 4, another embodiment of the application provides a kind of method for processing video frequency, electronic equipment can be applied to,The method for processing video frequency may include:
Step S310: when carrying out video playing, detection plays the source of video.
Step S320: judge whether the source for playing video is local file.
In the embodiment of the present application, step S310 and step S320 can be refering to the content of above-described embodiment, herein notIt repeats again.
Step S330: when source is local file, the video parameter values for playing video, the video parameter are obtainedValue includes at least one of code rate, resolution ratio and frame per second.
In the embodiment of the present application, when the source for judging to play video is local file, that is, the source of video is playedWhen local file, the system resource that the task due to playing video occupies is less, can carry out display increasing to video is playedStrength reason causes to play video cardton without keeping processor burden excessive.
Further, when determining that playing the source of video is not network, display enhancing processing is carried out to video is playedWhen, the display enhancing for playing the optimization operation that video carries out all Optimal Parameters can be handled, or carry out part optimization ginsengThe display enhancing processing of several optimization operations.Wherein, all Optimal Parameters refer to all optimizations ginseng being arranged in above-mentioned HQV moduleNumber.
Specifically, the parameter value for playing video can be obtained when the source for playing video is local file, withAccording to the parameter value for playing video, determines and the display enhancing for playing the optimization operation that video carries out all Optimal Parameters is handled,Or carry out the display enhancing processing of the optimization operation of part Optimal Parameters.Wherein, the parameter value for playing video includes code rate, dividesAt least one of resolution and frame per second.The data bits of unit time transmission when the code rate of video refers to data transmission, videoThe quality of code rate and video is directly proportional, but file size is also directly proportional with code rate.Resolution ratio is for measuring data in imageAmount number a parameter, resolution ratio determines the fine degree of bitmap images details, it is generally the case that the resolution ratio of imageHigher, the pixel for being included is more, and image is more clear, meanwhile, it also will increase the memory space of file occupancy.Frame per second isFor measuring the measurement of display frame number, i.e., frame number per second, when frame per second is higher, the corresponding picture of video is more, therefore video textPart is bigger.When obtaining video parameter values, the Video attribute information entrained by video file can be identified and be obtained, it is specific to obtainThe mode of video parameter values can be not as restriction.
It should be understood that above-mentioned video parameter values are bigger, corresponding video quality is better, and the visual effect played out is better,But since corresponding file is larger, occupied resource is also more when video playing.It therefore, can be to the video for playing videoParameter is detected, to carry out display enhancing processing to video is played according to video parameter.
Step S340: judge whether the video parameter values are lower than given threshold.
In the embodiment of the present application, after getting the video parameter values for playing video, then it may determine that video parameterValue whether given threshold.It should be understood that when video parameter values include many kinds of parameters value, then it can be by every kind of parameter value and itsCorresponding given threshold is compared, to judge whether given threshold is lower than given threshold.For example, video parameter values include code rateAnd when resolution ratio, then judge whether the code rate got is lower than code rate threshold value, and judges whether the resolution ratio got is lowIn resolution threshold.Wherein, the value that the size of resource is occupied when above-mentioned given threshold can be set as distinguishing its broadcasting, whenVideo parameter values be lower than given threshold, then its play when occupy resource it is smaller, when video parameter values be higher than given threshold when, then itsIt is more to occupy resource.Specific given threshold in the embodiment of the present application can be not as restriction, can be according to video parameterType determines.
Step S350: if shown according to all Optimal Parameters to the broadcasting video lower than the given thresholdEnhancing processing.
In the embodiment of the present application, when judge in step S350 the video parameter values for playing video lower than given threshold,It is less then to play video occupied resource when playing, it at this time then can be according to above-mentioned all Optimal Parameters, to broadcasting videoCarry out display enhancing processing.When video parameter values include a variety of, can be when to be below its corresponding for every kind of video parameter valuesWhen given threshold, according to all Optimal Parameters, display enhancing processing is carried out to video is played.
That is, can be chosen when being lower than given threshold from the video parameter values of the broadcasting video of local fileAll Optimal Parameters in above-mentioned HQV algoritic module are joined as the optimization for carrying out display enhancing processing to broadcasting videoNumber.Then, according to all Optimal Parameters, display enhancing processing, that is, the video played, by decoded view are carried out to video is playedFrequency is intercepted according to as image data to be rendered by above-mentioned HQV algoritic module, and HQV algoritic module is by above-mentioned figure to be renderedAs data are stored to off screen Render Buffer, own to the image of the multiple image data in off screen Render BufferOptimal Parameters it is corresponding optimization operation display enhancing processing and then be transmitted to SurfaceFlinger carry out rendering and afterContinuous optimization operation on the screen, so that the video image of display achievees the effect that super clear visual effect.For example, when in HQV moduleAll Optimal Parameters include exposure enhancing, denoising, edge sharpening, contrast increases and the increased Optimal Parameters of saturation degree,Then image data degree of being exposed enhancing to be rendered, denoising, edge sharpening, contrast are increased and saturation degree is increased excellentChange operation, then carries out follow-up play.
By determining that the source for playing video is not network and plays the video parameter values of video lower than given thresholdWhen, the display enhancing for playing the whole Optimal Parameters of video progress is handled, does not come source network, and video due to playing videoParameter value is lower, therefore the resource occupied excessively will not keep processor burden excessive, makes to play video with super clear visual effectMeanwhile guaranteeing the fluency of video playing.
Step S360: if being not less than the given threshold, according to the part Optimal Parameters in all Optimal Parameters, to instituteIt states broadcasting video and carries out display enhancing processing.
In the embodiment of the present application, when the video parameter values for judging broadcasting video in step S350 are not less than setting thresholdValue, then playing video, occupied resource may be more when playing, at this time then can be according to above-mentioned all Optimal Parameters middle partsDivide Optimal Parameters, carries out display enhancing processing to video is played.When video parameter values include a variety of, can be ought be wherein anyWhen a kind of video parameter values are not less than its corresponding given threshold, according to part Optimal Parameters in all Optimal Parameters, to broadcastingVideo carries out display enhancing processing.
That is, when being not less than given threshold from the video parameter values of the broadcasting video of local file, it is to be renderedImage data, can carry out part Optimal Parameters it is corresponding optimization operation display enhancing processing and then be transmitted toSurfaceFlinger carries out rendering and subsequent optimization operation on the screen, so that the video image of display reaches high visual effectEffect.For example, when the part Optimal Parameters of selection include contrast increase and saturation degree increase, then to figure to be renderedAs the increase of data degree of comparing and the increased optimization operation of saturation degree, follow-up play is then carried out.
In the embodiment of the present application, from all Optimal Parameters, when selected part Optimal Parameters are as objective optimization parameter,It can be preset part Optimal Parameters, as the objective optimization parameter for carrying out display enhancing processing, this is presetPart Optimal Parameters are the part Optimal Parameters in above-mentioned all Optimal Parameters.That is, when need to play video intoWhen the display of row part Optimal Parameters enhances processing, then the part Optimal Parameters of above-mentioned setting can be directly utilized, are regarded to playingFrequency carries out display enhancing processing.Certainly, from all Optimal Parameters, when selected part Optimal Parameters are as objective optimization parameter,It is also possible to the rule by setting, Optimal Parameters is chosen, such as the rule of setting can be working as according to processorPreceding load factor obtains its corresponding Optimal Parameters, is also possible to the optimization priority according to setting, chooses the optimization of setting quantityParameter.Certainly, the rule specifically set in the embodiment of the present application can be not as restriction.
By determine that the source for playing video is not network but when video parameter is higher, to playing video carry out portionThe display enhancing processing of point Optimal Parameters does not carry out source network due to playing video, and according only to part Optimal Parameters to broadcastingIt puts video and carries out display enhancing processing, therefore the resource occupied excessively will not keep processor burden excessive, so as to so as to broadcastWhile video is put with higher visual effect, guarantee the fluency of video playing.
Step S370: when source is not local file, judge whether the broadcasting video obtains in real time from networkVideo file.
In the present embodiment, step S370 can be refering to the content of above-described embodiment, and details are not described herein.
Step S380: when the broadcasting video is the video file obtained in real time from network, according to all optimizationsPart Optimal Parameters in parameter carry out display enhancing processing to the broadcasting video.
In the embodiment of the present application, when judge in step S380 play video whether be the video obtained in real time from networkWhen file, i.e. broadcasting video is when deriving from network in real time, then can according to the part Optimal Parameters in above-mentioned all Optimal Parameters,Display enhancing processing is carried out to video is played.It should be understood that when electronic equipment is when playing the video for deriving from network in real time,The occupied system resource of video playing is more, and for opposite broadcasting local video, processor burden is larger, therefore only to broadcastingVideo carries out the display enhancing processing of optimization operation corresponding to part display enhancing parameter, it is possible to prevente effectively from processor is negativeCarry on a shoulder pole Caton that is excessive, and generating video playing.
Certainly, in the embodiment of the present application, when judging that playing video is the video file obtained in real time from network,Display enhancing processing can not be carried out to video is played, that is to say, that as the concomitant regimen of above-mentioned steps S380, regard when playingVideo file of the frequency to obtain in real time from network constantly, is forbidden carrying out broadcasting video display enhancing processing, i.e., directly will broadcastingVideo plays out, and to reduce the resource that video playing occupies processor, avoids processor burden excessive and generates video playingWhen Caton.
In the embodiment of the present application, it according to the part Optimal Parameters in all Optimal Parameters, is shown to video is playedEnhancing is handled, and may include:
Obtain current network state;Judge whether the network state is setting state, and the setting state includes netNetwork signal strength is higher than target strength or network speed is higher than target velocity;When the network state is setting state, rootAccording to the part Optimal Parameters in all Optimal Parameters, display enhancing processing is carried out to the broadcasting video.
It is understood that when playing video be the video file obtained in real time from network, video playing it is easy byThe influence of the network state of electronic equipment, when network state is poor, video playing is likely to occur Caton, and at this time also to broadcastingVideo carries out display enhancing processing, the probability easy to increase for playing Caton.Therefore, in the embodiment of the present application, available electricityThe current network state of sub- equipment, according to network state, it is determined whether carry out display enhancing processing to video is played.
Wherein, network state may include the status informations such as the network signal intensity of electronic equipment, network speed.In electronicsIt, can be by obtaining ConnectivityManager object when equipment is the equipment based on android (Android) operating systemAfterwards, then NetworkInfo object corresponding to ConnectivityManager object is obtained, then from NetworkInfo objectTake out the information about network connection.Wherein, ConnectivityManager object is for checking network state and management networkRelevant operation is connected, NetworkInfo object includes all information of network connection.
Setting state can be the good state of network condition of electronic equipment, may include: the network letter of electronic equipmentNumber intensity is higher than target strength, and the network speed of electronic equipment is higher than target velocity etc..It, then can root under above-mentioned setting stateAccording to the part Optimal Parameters in above-mentioned all Optimal Parameters, display enhancing processing is carried out to video is played.When judging not to setDetermine state, then can forbid carrying out broadcasting video display enhancing processing, i.e., display enhancing not carried out to broadcasting video and handled.
As a kind of mode, Optimal Parameters can be chosen according to the optimization priority of Optimal Parameters.Wherein, it selectsThe optimization priority of the part Optimal Parameters of taking-up, greater than the optimization priority of other Optimal Parameters, other Optimal Parameters are instituteThere are the Optimal Parameters in Optimal Parameters in addition to above-mentioned part Optimal Parameters.
It in the embodiment of the present application, then can be according to each after getting the optimization priority of each Optimal ParametersThe optimization priority of Optimal Parameters, chooses Optimal Parameters.It as an implementation, can be according to each Optimal ParametersOptimization priority, choose target number Optimal Parameters, for example, the row according to the optimization priority of Optimal Parameters from high to lowSequence from ranking results as a result, choose preceding target number Optimal Parameters, that is to say, that the Optimal Parameters of the target number selectedPriority, be all larger than the priority of other Optimal Parameters.Wherein, the setting of target number needs to meet the excellent of target numberWhen change parameter is any Optimal Parameters, processor energy smooth execution shows enhancing processing.It is thus possible to the video of broadcasting after makingWhen carrying out display enhancing processing, it can be handled according to the high Optimal Parameters of priority.As a kind of mode, optimize priorityCan for it is above-mentioned optimize according to the corresponding picture of Optimal Parameters the priority that the sequence of quality from high to low is established when, then above-mentioned portionDivide the corresponding picture optimization quality of Optimal Parameters to be higher than the corresponding picture of other Optimal Parameters and optimize quality, and processor can be madeThe operation of enhancing processing can be shown with smooth execution when carrying out display enhancing processing according to objective optimization parameter.It is thus possible toWhen making to carry out display enhancing processing according to video of the part Optimal Parameters to broadcasting, the quality of video pictures can be made higher.
When playing video is not to derive from the video of network in real time, broadcasting can be regarded according to above-mentioned all Optimal ParametersFrequency carries out display enhancing processing, or is shown according to the part Optimal Parameters in above-mentioned all Optimal Parameters to video is playedEnhancing processing, to promote the image quality for playing video.
Method for processing video frequency provided by the embodiments of the present application, when carrying out video playing, detection plays the source of video, whenWhen the source for playing video is local file, according to the video parameter for playing video, all Optimal Parameters are carried out to video is playedCorresponding display enhancing processing, or the corresponding display enhancing processing of part Optimal Parameters is carried out to video is played, promote videoImage quality, and Caton when effectively avoiding video playing.In addition, being the video text obtained in real time from network when playing videoPart constantly, to video is played carries out the corresponding display enhancing processing of part Optimal Parameters, or does not show to broadcasting videoEnhancing processing avoids Caton occur when playing video.
Referring to Fig. 5, it illustrates a kind of block diagrams of video process apparatus provided by the embodiments of the present application.Video processingDevice 400 may include: video source detection module 410, video source judgment module 420 and display enhancing module 430.Wherein,The video source detection module 410 is used for when carrying out video playing, and detection plays the source of video;The video source judges mouldBlock 420 is used to judge whether the source for playing video to be local file;The display enhancing module 430 is used for when source isWhen local file, display enhancing processing is carried out to the broadcasting video, the display enhancing processing handles institute by Optimal ParametersIt states and plays the image quality that the image in video improves the broadcasting video.
As an implementation, display enhancing module 430 can be specifically used for: when source is local file, chooseAll Optimal Parameters, as the objective optimization parameter for carrying out display enhancing processing to the broadcasting video;According to the meshOptimal Parameters are marked, display enhancing processing is carried out to the broadcasting video.
As another embodiment, display enhancing module 430 can be specifically used for: when source is local file, fromSelected part Optimal Parameters in all Optimal Parameters, it is excellent as the target for carrying out display enhancing processing to the broadcasting videoChange parameter;According to the objective optimization parameter, display enhancing processing is carried out to the broadcasting video.
As another embodiment, display enhancing module 430 can be specifically used for: when source is local file, obtainThe video parameter values for playing video are taken, the video parameter values include at least one of code rate, resolution ratio and frame per second;Judge whether the video parameter values are lower than given threshold;If being lower than the given threshold, according to all Optimal Parameters, to instituteIt states broadcasting video and carries out display enhancing processing;It is excellent according to the part in all Optimal Parameters if being not less than the given thresholdChange parameter, display enhancing processing is carried out to the broadcasting video.
In the embodiment of the present application, Fig. 6 is referred to, which can also include: file judgment module440 and enhancing execution module 450.File judgment module 440 is used for when source is not local file, judges the broadcasting viewWhether frequency is the video file obtained in real time from network;Enhance execution module 450 to be used to when the broadcasting video be from network realityWhen obtain video file when, according to the part Optimal Parameters in all Optimal Parameters, display increasing is carried out to the broadcasting videoStrength reason.
Enhancing execution module 450 can be specifically used for: obtain current network state;Judge the network state whether beSetting state, the setting state include that network signal intensity is higher than target strength or network speed higher than target velocity;WhenWhen the network state is setting state, according to the part Optimal Parameters in all Optimal Parameters, the broadcasting video is carried outShow enhancing processing.
In the embodiment of the present application, Fig. 7 is referred to, which can also include: file judgment module440 and enhancing disabled module 460.File judgment module 440 is used for when source is not local file, judges the broadcasting viewWhether frequency is the video file obtained in real time from network;Enhance disabled module 460 to be used to when the broadcasting video be from network realityWhen obtain video file when, forbid carrying out the broadcasting video display enhancing processing.
It is apparent to those skilled in the art that for convenience and simplicity of description, foregoing description device andThe specific work process of module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, the mutual coupling of module can be electrical property, mechanical or otherThe coupling of form.
It, can also be in addition, can integrate in a processing module in each functional module in each embodiment of the applicationIt is that modules physically exist alone, can also be integrated in two or more modules in a module.Above-mentioned integrated mouldBlock both can take the form of hardware realization, can also be realized in the form of software function module.
In conclusion scheme provided by the present application is sentenced by the way that when carrying out video playing, detection plays the source of videoWhether the disconnected source for playing video is network, when source is not network, carries out display enhancing processing to video is played.Due to working asWhen the source for playing video is not network, display enhancing processing just is carried out to the video of broadcasting, it can be to avoid to all sourcesVideo carry out display enhancing processing, caused by video playing Caton, promote the fluency of video playing.
Referring to FIG. 8, it illustrates the structural block diagrams of a kind of electronic equipment provided by the embodiments of the present application.The electronic equipment100, which can be smart phone, tablet computer, e-book etc., can run the electronic equipment of application program.Electronics in the applicationEquipment 100 may include one or more such as lower component: processor 110, memory 120, screen 130 and one or more are answeredWith program, wherein one or more application programs can be stored in memory 120 and be configured as by one or moreIt manages device 110 to execute, one or more programs are configured to carry out the method as described in preceding method embodiment.
Processor 110 may include one or more processing core.Processor 110 is whole using various interfaces and connectionVarious pieces in a electronic equipment 100, by run or execute the instruction being stored in memory 120, program, code set orInstruction set, and the data being stored in memory 120 are called, execute the various functions and processing data of electronic equipment 100.It canSelection of land, processor 110 can use Digital Signal Processing (Digital Signal Processing, DSP), field-programmableGate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable LogicArray, PLA) at least one of example, in hardware realize.
Processor 110 can integrating central processor 111 (Central Processing Unit, CPU), image processorThe combination of one or more of 112 (Graphics Processing Unit, GPU) and modem etc..Wherein, CPUMain processing operation system, user interface and application program etc.;GPU is for being responsible for the rendering and drafting of display content;ModulatedemodulateAdjust device for handling wireless communication.It is understood that above-mentioned modem can not also be integrated into processor 110, it is singleSolely realized by one piece of communication chip.
Memory 120 may include random access memory (Random Access Memory, RAM), also may include read-onlyMemory (Read-Only Memory).Memory 120 can be used for store instruction, program, code, code set or instruction set.It depositsReservoir 120 may include storing program area and storage data area, wherein the finger that storing program area can store for realizing operating systemEnable, for realizing at least one function instruction (such as touch function, sound-playing function, image player function etc.), be used forRealize the instruction etc. of following each embodiments of the method.Storage data area can also store the number that terminal 100 is created in useAccording to (such as phone directory, audio, video data, chat record data) etc..
Screen 130 is used to show the various figures of information input by user, the information and electronic equipment that are supplied to userShape user interface, these graphical user interface can be made of figure, text, icon, number, video and any combination thereof,In an example, touch screen may be disposed on the display panel to constitute an entirety with the display panel.
Referring to FIG. 9, it illustrates a kind of structural block diagrams of computer readable storage medium provided by the embodiments of the present application.Program code is stored in the computer-readable medium 800, said program code can be called by processor and execute above method realityApply method described in example.
Computer readable storage medium 800 can be such as flash memory, EEPROM (electrically erasable programmable read-only memory),The electronic memory of EPROM, hard disk or ROM etc.Optionally, computer readable storage medium 800 includes non-volatile meterCalculation machine readable medium (non-transitory computer-readable storage medium).Computer-readable storageMedium 800 has the memory space for the program code 810 for executing any method and step in the above method.These program codes canWith from reading or be written in one or more computer program product in this one or more computer program product.Program code 810 can for example be compressed in a suitable form.
Finally, it should be noted that above embodiments are only to illustrate the technical solution of the application, rather than its limitations;AlthoughThe application is described in detail with reference to the foregoing embodiments, those skilled in the art are when understanding: it still can be withIt modifies the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;AndThese are modified or replaceed, do not drive corresponding technical solution essence be detached from each embodiment technical solution of the application spirit andRange.

Claims (10)

Translated fromChinese
1.一种视频处理方法,其特征在于,所述方法包括:1. a video processing method, is characterized in that, described method comprises:在进行视频播放时,检测播放视频的来源;When the video is playing, detect the source of the playing video;判断所述播放视频的来源是否为本地文件;Determine whether the source of the playback video is a local file;当来源为本地文件时,对所述播放视频进行显示增强处理,所述显示增强处理通过优化参数处理所述播放视频中的图像提高所述播放视频的画质。When the source is a local file, a display enhancement process is performed on the playback video, and the display enhancement process processes images in the playback video by optimizing parameters to improve the picture quality of the playback video.2.根据权利要求1所述的方法,其特征在于,所述当来源为本地文件时,对所述播放视频进行显示增强处理,包括:2. The method according to claim 1, wherein when the source is a local file, performing display enhancement processing on the playback video, comprising:当来源为本地文件时,选取所有优化参数,作为用于对所述播放视频进行显示增强处理的目标优化参数;When the source is a local file, all optimization parameters are selected as target optimization parameters for performing display enhancement processing on the playback video;根据所述目标优化参数,对所述播放视频进行显示增强处理。According to the target optimization parameter, display enhancement processing is performed on the playback video.3.根据权利要求1所述的方法,其特征在于,所述当来源为本地文件时,对所述播放视频进行显示增强处理,包括:3. The method according to claim 1, wherein when the source is a local file, performing display enhancement processing on the playback video, comprising:当来源不为网络时,从所有优化参数中选取部分优化参数,作为用于对所述播放视频进行显示增强处理的目标优化参数;When the source is not the network, select some optimization parameters from all the optimization parameters, as the target optimization parameters for performing display enhancement processing on the playback video;根据所述目标优化参数,对所述播放视频进行显示增强处理。According to the target optimization parameter, display enhancement processing is performed on the playback video.4.根据权利要求1所述的方法,其特征在于,所述当来源为本地文件时,对所述播放视频进行显示增强处理,包括:4. The method according to claim 1, wherein when the source is a local file, performing display enhancement processing on the playback video, comprising:当来源为本地文件时,获取所述播放视频的视频参数值,所述视频参数值包括码率、分辨率以及帧率中的至少一种;When the source is a local file, obtain a video parameter value of the played video, where the video parameter value includes at least one of a bit rate, a resolution, and a frame rate;判断所述视频参数值是否低于设定阈值;Determine whether the video parameter value is lower than the set threshold;如果低于所述设定阈值,根据所有优化参数,对所述播放视频进行显示增强处理;If it is lower than the set threshold, perform display enhancement processing on the playback video according to all optimization parameters;如果不低于所述设定阈值,根据所有优化参数中的部分优化参数,对所述播放视频进行显示增强处理。If it is not lower than the set threshold, display enhancement processing is performed on the playing video according to some of the optimization parameters among all the optimization parameters.5.根据权利要求1-4任一项所述的方法,其特征在于,在所述判断所述播放视频的来源是否为本地文件之后,所述方法还包括:5. The method according to any one of claims 1-4, wherein, after judging whether the source of the played video is a local file, the method further comprises:当来源不为本地文件时,判断所述播放视频是否为从网络实时获取的视频文件;When the source is not a local file, determine whether the playback video is a video file obtained in real time from the network;当所述播放视频为从网络实时获取的视频文件时,根据所有所述优化参数中的部分优化参数,对所述播放视频进行显示增强处理。When the playing video is a video file obtained in real time from the network, display enhancement processing is performed on the playing video according to some optimization parameters among all the optimization parameters.6.根据权利要求5所述的方法,其特征在于,所述根据所有所述优化参数中的部分优化参数,对所述播放视频进行显示增强处理,包括:6. The method according to claim 5, wherein, performing display enhancement processing on the playback video according to some of the optimization parameters in all the optimization parameters, comprising:获取当前的网络状态;Get the current network status;判断所述网络状态是否为设定状态,所述设定状态包括网络信号强度高于目标强度、或者网络速度高于目标速度;Determine whether the network state is a set state, and the set state includes that the network signal strength is higher than the target strength, or the network speed is higher than the target speed;当所述网络状态为所述设定状态时,根据所有所述优化参数中的部分优化参数,对所述播放视频进行显示增强处理。When the network state is the set state, display enhancement processing is performed on the playing video according to some of the optimization parameters among all the optimization parameters.7.根据权利要求1-4任一项所述的方法,其特征在于,在所述判断所述播放视频的来源是否为本地文件之后,所述方法还包括:7. The method according to any one of claims 1-4, wherein after the judging whether the source of the played video is a local file, the method further comprises:当来源不为本地文件时,判断所述播放视频是否为从网络实时获取的视频文件;When the source is not a local file, determine whether the playback video is a video file obtained in real time from the network;当所述播放视频为从网络实时获取的视频文件时,禁止对所述播放视频进行显示增强处理。When the playing video is a video file obtained from the network in real time, it is prohibited to perform display enhancement processing on the playing video.8.一种视频处理装置,其特征在于,所述装置包括:视频源检测模块、视频源判断模块以及显示增强模块,其中,8. A video processing device, characterized in that the device comprises: a video source detection module, a video source judgment module, and a display enhancement module, wherein,所述视频源检测模块用于在进行视频播放时,检测播放视频的来源;The video source detection module is used to detect the source of the played video when the video is played;所述视频源判断模块用于判断所述播放视频的来源是否为本地文件;The video source judgment module is used for judging whether the source of the playing video is a local file;所述显示增强模块用于当来源为本地文件时,对所述播放视频进行显示增强处理,所述显示增强处理通过优化参数处理所述播放视频中的图像提高所述播放视频的画质。The display enhancement module is configured to perform display enhancement processing on the playback video when the source is a local file, and the display enhancement processing improves the picture quality of the playback video by processing images in the playback video by optimizing parameters.9.一种电子设备,其特征在于,包括:9. An electronic device, characterized in that, comprising:一个或多个处理器;one or more processors;存储器;memory;一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行如权利要求1-7任一项所述的方法。One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs are configured to perform such as The method of any one of claims 1-7.10.一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-7任一项所述的方法。10. A computer-readable storage medium, wherein a program code is stored in the computer-readable storage medium, and the program code can be invoked by a processor to execute any one of claims 1-7 Methods.
CN201811438276.2A2018-11-272018-11-27Video processing method and device, electronic equipment and storage mediumActiveCN109587561B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201811438276.2ACN109587561B (en)2018-11-272018-11-27Video processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201811438276.2ACN109587561B (en)2018-11-272018-11-27Video processing method and device, electronic equipment and storage medium

Publications (2)

Publication NumberPublication Date
CN109587561Atrue CN109587561A (en)2019-04-05
CN109587561B CN109587561B (en)2020-12-22

Family

ID=65924987

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201811438276.2AActiveCN109587561B (en)2018-11-272018-11-27Video processing method and device, electronic equipment and storage medium

Country Status (1)

CountryLink
CN (1)CN109587561B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114827723A (en)*2022-04-252022-07-29阿里巴巴(中国)有限公司Video processing method and device, electronic equipment and storage medium
CN115134661A (en)*2022-06-282022-09-30龙芯中科(合肥)技术有限公司Video processing method and video processing application
CN116668773A (en)*2022-11-222023-08-29荣耀终端有限公司Method for enhancing video image quality and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20150181085A1 (en)*2013-12-232015-06-25Hisense Hiview Tech Co., Ltd.Method of providing information configuration function in video play device and video play device
CN105872843A (en)*2016-04-182016-08-17青岛海信电器股份有限公司Method and device for video playing
CN107948733A (en)*2017-12-042018-04-20腾讯科技(深圳)有限公司Method of video image processing and device, electronic equipment
CN108712674A (en)*2018-05-172018-10-26深圳创维-Rgb电子有限公司Video playing control method, playback equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20150181085A1 (en)*2013-12-232015-06-25Hisense Hiview Tech Co., Ltd.Method of providing information configuration function in video play device and video play device
CN105872843A (en)*2016-04-182016-08-17青岛海信电器股份有限公司Method and device for video playing
CN107948733A (en)*2017-12-042018-04-20腾讯科技(深圳)有限公司Method of video image processing and device, electronic equipment
CN108712674A (en)*2018-05-172018-10-26深圳创维-Rgb电子有限公司Video playing control method, playback equipment and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114827723A (en)*2022-04-252022-07-29阿里巴巴(中国)有限公司Video processing method and device, electronic equipment and storage medium
CN114827723B (en)*2022-04-252024-04-09阿里巴巴(中国)有限公司Video processing method, device, electronic equipment and storage medium
CN115134661A (en)*2022-06-282022-09-30龙芯中科(合肥)技术有限公司Video processing method and video processing application
CN115134661B (en)*2022-06-282024-08-27龙芯中科(合肥)技术有限公司Video processing method and video processing application
CN116668773A (en)*2022-11-222023-08-29荣耀终端有限公司Method for enhancing video image quality and electronic equipment
CN116668773B (en)*2022-11-222023-12-22荣耀终端有限公司Method for enhancing video image quality and electronic equipment

Also Published As

Publication numberPublication date
CN109587561B (en)2020-12-22

Similar Documents

PublicationPublication DateTitle
CN109640168B (en) Video processing method, apparatus, electronic device and computer readable medium
CN112235626B (en)Video rendering method and device, electronic equipment and storage medium
US11418832B2 (en)Video processing method, electronic device and computer-readable storage medium
CN110377263B (en) Image synthesis method, device, electronic device and storage medium
CN109168068B (en) Video processing method, apparatus, electronic device and computer readable medium
CN112637675B (en) Video generation method, device, electronic device and storage medium
CN109587560A (en)Video processing method, video processing device, electronic equipment and storage medium
CN112714352B (en) A screen recording method, apparatus, computing device and readable storage medium
CN109379627A (en)Video processing method, video processing device, electronic equipment and storage medium
CN109587546B (en) Video processing method, apparatus, electronic device and computer readable medium
CN109361949B (en)Video processing method, video processing device, electronic equipment and storage medium
CN112057851A (en) A real-time rendering method of single-frame image based on multiple graphics cards
CN109120988B (en)Decoding method, decoding device, electronic device and storage medium
CN109151966A (en)Terminal control method, terminal control device, terminal equipment and storage medium
CN109361950A (en) Video processing method, device, electronic device and storage medium
CN109587558B (en) Video processing method, device, electronic device, and storage medium
CN109587561A (en)Method for processing video frequency, device, electronic equipment and storage medium
CN109600654A (en)Barrage processing method, device and electronic equipment
CN113132800A (en)Video processing method and device, video player, electronic equipment and readable medium
WO2020108010A1 (en)Video processing method and apparatus, electronic device and storage medium
CN114390307A (en)Image quality enhancement method, device, terminal and readable storage medium
WO2024164675A1 (en)Method and apparatus for image matting, electronic device, and storage medium
CN109587555A (en)Video processing method and device, electronic equipment and storage medium
CN109688462A (en)Method and device for reducing power consumption of equipment, electronic equipment and storage medium
CN115100334A (en)Image edge drawing and animation method, device and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp