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
CN109587561A CN201811438276.2A CN201811438276A CN109587561A CN 109587561 A CN109587561 A CN 109587561A CN 201811438276 A CN201811438276 A CN 201811438276A CN 109587561 A CN109587561 A CN 109587561A
Authority
CN
China
Prior art keywords
video
source
playing
optimal parameters
broadcasting
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 Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811438276.2A priority Critical patent/CN109587561B/en
Publication of CN109587561A publication Critical patent/CN109587561A/en
Application granted granted Critical
Publication of CN109587561B publication Critical patent/CN109587561B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/44004Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving video buffer management, e.g. video decoder buffer or video display buffer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440218Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration
    • H04N21/4854End-user interface for client configuration for modifying image parameters, e.g. image brightness, contrast

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, electronics Standby and storage medium.
Background technique
Electronic equipment, such as computer, mobile phone etc. have become most common consumer electronic product in people's daily life One of.With the development of electronic equipment, more and more users carry out the broadcasting of video using electronic equipment, but are utilizing electronics When 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-readable Storage 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 video When putting, detection plays the source of video;Judge whether the source for playing video is local file;When source is local file When, display enhancing processing is carried out to the broadcasting video, the display enhancing processing handles the broadcasting by Optimal Parameters and regards Image 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 mould Block, video source judgment module and display enhancing module, wherein the video source detection module is used to carry out video playing When, detection plays the source of video;The video source judgment module is used to judge whether the source for playing video to be local File;The display enhancing module is used for when source is local file, and the display enhancing processing is handled by Optimal Parameters Image 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 by One or more of processors execute, and one or more of programs are configured to carry out the video that above-mentioned first aspect provides Processing method.
Fourth aspect, the embodiment of the present application provides a kind of computer-readable storage medium, described computer-readable Program code is stored in storage medium, said program code can be called the video for executing above-mentioned first aspect and providing by processor Processing 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 video Source whether be local file, when source be local file when, to play video carry out display enhancing processing.Due to when broadcasting When 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 sources Frequency 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 embodiment Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
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 application Block 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 application Program 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 application Attached 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 electronics When equipment carries out the broadcasting of video, the operating system of electronic equipment can parse sound after getting video data to be played Video data.Usual video file is made of video flowing and audio stream two parts, the encapsulation lattice of different video format audio-videos Formula will be different.The process of audio stream and video flowing composite document is known as muxer (merging file).The corresponding inverse mistake of muxer Journey is then that the process of separating audio stream and video flowing is known as demuxer (separate file) from media file.Playing video file When, it needs to isolate audio stream and video flowing from file stream, it is decoded respectively, decoded video frame can be direct Rendering, the buffer area that audio frame can be sent to audio output apparatus play out, certainly, the time of Video Rendering and audio broadcasting Stamp 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 processing Device (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 with It greatly reduces the load to CPU, some other programs can be run simultaneously after the occupancy of CPU is lower.When So, for the processor of better performances, software decoding also can be used, i.e., solved by the decoding software program in CPU Code.
Referring to Fig. 1, showing the block diagram of the video playing framework of electronic equipment.When player is broadcasting using hard decoder When putting device, Media Framework (multimedia framework) obtains client by the api interface of the client with player and waits broadcasting The 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, Media Framework may include MediaPlayer (media player), MediaPlayerService (media player service) and Tri- parts Stagefrightplayer.Specifically, multimedia framework part uses the structure of C/S, MediaPlayer conduct The Client (client) of C/S structure is held, and MediaPlayerService and Stagefrightplayer are as C/S structure The end Server (service), carries the responsibility for playing multimedia file, and by Stagefrightplayer, the end Server is completed The 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 video Decoded video data transmission to SurfaceFlinger (figure layer transfer module) render and in screen by dynamic program In 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 input Then HWComposer or OpenGL (Open Graphics is transferred in position of the Surface in final composograph Library, 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, solved It 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 special Subcard 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 process Reason.Specifically, after obtaining decoded video data by hard decoder or soft decoding, decoded video data conduct Image 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 optimizing SurfaceFlinger does rendering and subsequent display operation on the screen.HQV algoritic module is used for will be above-mentioned to be rendered Image data is stored to off screen Render Buffer, to the image of the multiple image data in off screen Render Buffer, is passed through Exposure enhancing, denoising, edge sharpening, contrast increases and the Optimal Parameters such as saturation degree increases, and carries out display enhancing processing And then it is transmitted to SurfaceFlinger and carries out rendering and subsequent optimization operation on the screen.Wherein, above-mentioned display increases The image quality for playing video can be improved in strength reason, and image quality includes clarity, acutance, lens distortion, color, resolution, colour gamut model It encloses, purity etc., can there is different display reinforcing effects by its different combination.Reach group different in above-mentioned image quality Conjunction mode can be realized by controlling above-mentioned Optimal Parameters.Wherein, it should be noted that the display enhancing for playing video is handled It is also understood that for the sequence of operations done before formally handle to broadcasting video, including image enhancement and image are answered Original etc., image enhancement are to add some information or transformation data to original image by certain means, selectively protrude image In interested feature or inhibit image in certain unwanted features, so that image is matched with Optimal Parameters, so as to improve Picture 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 SurfaceFlinger Area, subsequent Video Controller read the data of frame buffer zone, pass to display by digital-to-analogue conversion and show, so as to realize The display enhancing that video is shown.
But inventor has found that when carrying out display enhancing, part system can be occupied in video display process Unite resource, be easy to appear Caton when playing video, and electronic equipment play network video needed for system resource, compared to broadcasting System resource needed for putting non-network video is more.Therefore, for the technical problem, inventor is by studying and proposing for a long time Method for processing video frequency, device, electronic equipment and computer-readable storage medium provided by the embodiments of the present application, by working as When 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 sources Video 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 video Processing 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 increase Strength reason.And when carrying out display enhancing processing, part system resource can be occupied, the burden of processor is increased, is easy to cause view There is Caton when playing in frequency.Wherein, display enhancing processing is improved by the image in Optimal Parameters processing broadcasting video and plays view The 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 video The reason of impacting to the fluency of video playing is when broadcasting is not derived from the video of local file, to occupy more System resource so that the burden of processor is larger.Therefore, when broadcasting is not derived from the video of local file, if this When 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 into Row 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 electricity When 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 video Enhancing processing.
In some embodiments, video broadcasting condition can be detected, can be the video of detection electronic equipment It plays and whether works in framework, to determine electronic equipment currently whether in video broadcasting condition, when video playing framework works When, 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 video Whether used correlation module works when broadcasting, to determine that electronic equipment is carrying out video playing, for example, when detecting video When decoder, figure layer transfer module and video player etc. are in running order, detect carrying out video playing.Certainly, have Body 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.As A 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 path When 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 big Therefore relevant information mostly with mark video network address can detecte and play video with whether having mark video network The relevant information of location, when playing relevant information of the video with mark video network address, then playing video is in real time from network The 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 limit It 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 is No 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 can With understanding, when the source for judging to play video is local file, the system resource of the task occupancy due to playing video It 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 increases Strength 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 increasing Strength reason.The video played, by decoded video data as image data to be rendered, by above-mentioned HQV algoritic module It intercepts, HQV algoritic module stores above-mentioned image data to be rendered to off screen Render Buffer, renders and buffers to off screen After 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 can To include the Optimal Parameters such as exposure enhancing, denoising, edge sharpening, contrast increase and saturation degree increase.Certainly, specifically Optimal 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 broadcast It 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 S120 When 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 played The 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 video There 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 video Source just carries out display enhancing processing to broadcasting video when the source of broadcasting video is local file, can be to avoid to all next The 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 out Detection 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 device When 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 kind The switch button of the function for carrying out display enhancing processing, user can be set in the system interface of electronic equipment for mode The 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 detecting Whether 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 can It 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 video Detection 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 increases Strength 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 video The system resource occupied of being engaged in is less, therefore can carry out display enhancing processing to video is played, without keeping processor burden excessive And 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 played When reason, due to there are many Optimal Parameters for showing enhancing processing pre-set in electronic equipment, can be to broadcasting Video carries out the display enhancing processing of the optimization operation of all Optimal Parameters, or carry out the optimization operation of part Optimal Parameters Show enhancing processing.
As an implementation, when the source for playing video is local file, display enhancing is carried out to video is played It handles, may include:
When source is local file, all Optimal Parameters are chosen, as carrying out display increasing to the broadcasting video The 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 file All Optimal Parameters in module, as objective optimization parameter, which is used to carry out display increasing to broadcasting video Strength reason.Then, according to the objective optimization parameter, display enhancing processing is carried out to video is played, that is, the video played is decoded Video 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 module The image data of dye is stored to off screen Render Buffer, to the images of the multiple image data in off screen Render Buffer into The display enhancing of the corresponding optimization operation of all Optimal Parameters of row, which handles and then is transmitted to SurfaceFlinger, to be rendered And 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 mould All Optimal Parameters in block include exposure enhancing, denoising, edge sharpening, contrast increases and the increased optimization of saturation degree Parameter then increases image data degree of being exposed enhancing to be rendered, denoising, edge sharpening, contrast and saturation degree increases The 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 file To 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 played Strength is managed, and may include:
When source is local file, the selected part Optimal Parameters from all Optimal Parameters, as being broadcast to described Put the objective optimization parameter that video carries out display enhancing processing;According to the objective optimization parameter, the broadcasting video is carried out Show enhancing processing.
It is understood that being carried out to video excellent when the Optimal Parameters using HQV module carry out display enhancing processing When change, the corresponding optimization processing of every kind of Optimal Parameters can occupy the resource of processor, and every kind of Optimal Parameters occupancy processing The 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 mould In all Optimal Parameters of block, selected part Optimal Parameters, as objective optimization parameter, which is used for broadcasting Video 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, playing Video intercepted by above-mentioned HQV algoritic module, HQV algorithm mould by decoded video data as image data to be rendered Block stores above-mentioned image data to be rendered to off screen Render Buffer, to the multiple image in off screen Render Buffer The 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 figure As achieving the effect that high visual effect.For example, all Optimal Parameters in the HQV module include that exposure enhancing, denoising, edge are sharp Change, contrast increase and the increased Optimal Parameters of saturation degree, the part Optimal Parameters of selection include exposure enhancing and it is right Increase 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 out Follow-up play.It is understood that choosing above-mentioned different part Optimal Parameters, the effect of different promotion image quality can achieve Fruit.
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 optimization Parameter is the part Optimal Parameters in above-mentioned all Optimal Parameters.That is, excellent to video progress part is played when needing When 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 played Show 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 through The rule of setting, chooses Optimal Parameters, such as the rule of setting can be the present load rate according to processor, obtains Its corresponding Optimal Parameters is also possible to the optimization priority according to setting, chooses the Optimal Parameters of setting quantity.Certainly, have The 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 file Show 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 Parameters Strength reason, therefore the resource occupied excessively will not keep processor burden excessive, so as to so that playing video has higher view While 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 network Video file.
It is understood that when judging that playing the source of video is not local file in step S220, then it represents that broadcast Network 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 out It 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 time Reason, then may cause processor, over-burden, and occurs Caton in video playing.Therefore, coming for video can played When 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 view Whether 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 broadcasting Frequency 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 processing Raw Caton, therefore can forbid carrying out display enhancing to broadcasting video when the source for judging to play video is network Processing, that is to say, that display enhancing processing is not carried out to broadcasting video, will directly play video and play out, to reduce video The 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.Also It 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 all Part 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 time System resource is more, and for opposite broadcasting local video, processor burden is larger.And the configuration in electronic equipment is higher, place When 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 broadcasting When 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 Parameters Selected part Optimal Parameters, for carrying out display enhancing processing to broadcasting video, it is possible to prevente effectively from the money that video playing occupies Source is excessive and keeps processor burden excessive, while so as to so that the display effect for playing video is promoted, guarantees video playing Fluency.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 time It 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 played Enhancing 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 video Source carries out display enhancing processing to video is played according to all Optimal Parameters when the source for playing video is local file, or Person carries out display enhancing processing to video is played according to part Optimal Parameters, while reaching the visual effect for promoting broadcasting video, keeps away Exempt 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 video Display enhancing processing is carried out, or carries out display enhancing processing to video is played according to part Optimal Parameters, avoids playing video When 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 not It repeats again.
Step S330: when source is local file, the video parameter values for playing video, the video parameter are obtained Value 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 played When local file, the system resource that the task due to playing video occupies is less, can carry out display increasing to video is played Strength 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 played When, the display enhancing for playing the optimization operation that video carries out all Optimal Parameters can be handled, or carry out part optimization ginseng The display enhancing processing of several optimization operations.Wherein, all Optimal Parameters refer to all optimizations ginseng being arranged in above-mentioned HQV module Number.
Specifically, the parameter value for playing video can be obtained when the source for playing video is local file, with According 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, divides At 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, video The 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 image Amount number a parameter, resolution ratio determines the fine degree of bitmap images details, it is generally the case that the resolution ratio of image Higher, 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 is For 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 text Part 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 obtain The 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 video Parameter 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 parameter Value 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 its Corresponding given threshold is compared, to judge whether given threshold is lower than given threshold.For example, video parameter values include code rate And 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 low In resolution threshold.Wherein, the value that the size of resource is occupied when above-mentioned given threshold can be set as distinguishing its broadcasting, when Video 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 its It 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 parameter Type determines.
Step S350: if shown according to all Optimal Parameters to the broadcasting video lower than the given threshold Enhancing 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 video Carry 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 values When 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 file All Optimal Parameters in above-mentioned HQV algoritic module are joined as the optimization for carrying out display enhancing processing to broadcasting video Number.Then, according to all Optimal Parameters, display enhancing processing, that is, the video played, by decoded view are carried out to video is played Frequency 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 rendered As data are stored to off screen Render Buffer, own to the image of the multiple image data in off screen Render Buffer Optimal Parameters it is corresponding optimization operation display enhancing processing and then be transmitted to SurfaceFlinger carry out rendering and after Continuous 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 module All 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 excellent Change 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 threshold When, the display enhancing for playing the whole Optimal Parameters of video progress is handled, does not come source network, and video due to playing video Parameter value is lower, therefore the resource occupied excessively will not keep processor burden excessive, makes to play video with super clear visual effect Meanwhile 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 institute It 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 threshold Value, then playing video, occupied resource may be more when playing, at this time then can be according to above-mentioned all Optimal Parameters middle parts Divide Optimal Parameters, carries out display enhancing processing to video is played.When video parameter values include a variety of, can be ought be wherein any When a kind of video parameter values are not less than its corresponding given threshold, according to part Optimal Parameters in all Optimal Parameters, to broadcasting Video 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 rendered Image data, can carry out part Optimal Parameters it is corresponding optimization operation display enhancing processing and then be transmitted to SurfaceFlinger carries out rendering and subsequent optimization operation on the screen, so that the video image of display reaches high visual effect Effect.For example, when the part Optimal Parameters of selection include contrast increase and saturation degree increase, then to figure to be rendered As 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 preset Part Optimal Parameters are the part Optimal Parameters in above-mentioned all Optimal Parameters.That is, when need to play video into When 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 playing Frequency 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 processor Preceding load factor obtains its corresponding Optimal Parameters, is also possible to the optimization priority according to setting, chooses the optimization of setting quantity Parameter.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 portion The 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 broadcasting It 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 broadcast While 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 network Video 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 optimizations Part 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 network When 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 broadcasting Video carries out the display enhancing processing of optimization operation corresponding to part display enhancing parameter, it is possible to prevente effectively from processor is negative Carry 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 playing Video 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 broadcasting Video plays out, and to reduce the resource that video playing occupies processor, avoids processor burden excessive and generates video playing When Caton.
In the embodiment of the present application, it according to the part Optimal Parameters in all Optimal Parameters, is shown to video is played Enhancing is handled, and may include:
Obtain current network state;Judge whether the network state is setting state, and the setting state includes net Network signal strength is higher than target strength or network speed is higher than target velocity;When the network state is setting state, root According 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 by The 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 broadcasting Video carries out display enhancing processing, the probability easy to increase for playing Caton.Therefore, in the embodiment of the present application, available electricity The 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 electronics It, can be by obtaining ConnectivityManager object when equipment is the equipment based on android (Android) operating system Afterwards, then NetworkInfo object corresponding to ConnectivityManager object is obtained, then from NetworkInfo object Take out the information about network connection.Wherein, ConnectivityManager object is for checking network state and management network Relevant 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 equipment Number 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 state According 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 set Determine 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 selects The optimization priority of the part Optimal Parameters of taking-up, greater than the optimization priority of other Optimal Parameters, other Optimal Parameters are institute There 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 Parameters The optimization priority of Optimal Parameters, chooses Optimal Parameters.It as an implementation, can be according to each Optimal Parameters Optimization priority, choose target number Optimal Parameters, for example, the row according to the optimization priority of Optimal Parameters from high to low Sequence from ranking results as a result, choose preceding target number Optimal Parameters, that is to say, that the Optimal Parameters of the target number selected Priority, be all larger than the priority of other Optimal Parameters.Wherein, the setting of target number needs to meet the excellent of target number When change parameter is any Optimal Parameters, processor energy smooth execution shows enhancing processing.It is thus possible to the video of broadcasting after making When carrying out display enhancing processing, it can be handled according to the high Optimal Parameters of priority.As a kind of mode, optimize priority Can 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 portion Divide 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 made The 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 to When 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 Parameters Frequency carries out display enhancing processing, or is shown according to the part Optimal Parameters in above-mentioned all Optimal Parameters to video is played Enhancing 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, when When 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 played Corresponding display enhancing processing, or the corresponding display enhancing processing of part Optimal Parameters is carried out to video is played, promote video Image quality, and Caton when effectively avoiding video playing.In addition, being the video text obtained in real time from network when playing video Part constantly, to video is played carries out the corresponding display enhancing processing of part Optimal Parameters, or does not show to broadcasting video Enhancing 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 processing Device 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 mould Block 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 is When local file, display enhancing processing is carried out to the broadcasting video, the display enhancing processing handles institute by Optimal Parameters It 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, choose All Optimal Parameters, as the objective optimization parameter for carrying out display enhancing processing to the broadcasting video;According to the mesh Optimal 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, from Selected part Optimal Parameters in all Optimal Parameters, it is excellent as the target for carrying out display enhancing processing to the broadcasting video Change 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, obtain The 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 institute It 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 threshold Change 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 module 440 and enhancing execution module 450.File judgment module 440 is used for when source is not local file, judges the broadcasting view Whether 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 reality When obtain video file when, according to the part Optimal Parameters in all Optimal Parameters, display increasing is carried out to the broadcasting video Strength reason.
Enhancing execution module 450 can be specifically used for: obtain current network state;Judge the network state whether be Setting state, the setting state include that network signal intensity is higher than target strength or network speed higher than target velocity;When When the network state is setting state, according to the part Optimal Parameters in all Optimal Parameters, the broadcasting video is carried out Show enhancing processing.
In the embodiment of the present application, Fig. 7 is referred to, which can also include: file judgment module 440 and enhancing disabled module 460.File judgment module 440 is used for when source is not local file, judges the broadcasting view Whether 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 reality When 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 and The 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 other The coupling of form.
It, can also be in addition, can integrate in a processing module in each functional module in each embodiment of the application It is that modules physically exist alone, can also be integrated in two or more modules in a module.Above-mentioned integrated mould Block 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 video Whether 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 as When 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 sources Video 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 equipment 100, which can be smart phone, tablet computer, e-book etc., can run the electronic equipment of application program.Electronics in the application Equipment 100 may include one or more such as lower component: processor 110, memory 120, screen 130 and one or more are answered With program, wherein one or more application programs can be stored in memory 120 and be configured as by one or more It 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 connection Various pieces in a electronic equipment 100, by run or execute the instruction being stored in memory 120, program, code set or Instruction set, and the data being stored in memory 120 are called, execute the various functions and processing data of electronic equipment 100.It can Selection of land, processor 110 can use Digital Signal Processing (Digital Signal Processing, DSP), field-programmable Gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA) at least one of example, in hardware realize.
Processor 110 can integrating central processor 111 (Central Processing Unit, CPU), image processor The combination of one or more of 112 (Graphics Processing Unit, GPU) and modem etc..Wherein, CPU Main processing operation system, user interface and application program etc.;GPU is for being responsible for the rendering and drafting of display content;Modulatedemodulate Adjust device for handling wireless communication.It is understood that above-mentioned modem can not also be integrated into processor 110, it is single Solely realized by one piece of communication chip.
Memory 120 may include random access memory (Random Access Memory, RAM), also may include read-only Memory (Read-Only Memory).Memory 120 can be used for store instruction, program, code, code set or instruction set.It deposits Reservoir 120 may include storing program area and storage data area, wherein the finger that storing program area can store for realizing operating system Enable, for realizing at least one function instruction (such as touch function, sound-playing function, image player function etc.), be used for Realize the instruction etc. of following each embodiments of the method.Storage data area can also store the number that terminal 100 is created in use According 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 user Shape 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 reality Apply 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 meter Calculation machine readable medium (non-transitory computer-readable storage medium).Computer-readable storage Medium 800 has the memory space for the program code 810 for executing any method and step in the above method.These program codes can With 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;Although The application is described in detail with reference to the foregoing embodiments, those skilled in the art are when understanding: it still can be with It modifies the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;And These are modified or replaceed, do not drive corresponding technical solution essence be detached from each embodiment technical solution of the application spirit and Range.

Claims (10)

1. a kind of method for processing video frequency, which is characterized in that the described method includes:
When carrying out video playing, 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 passes through excellent Change the image in broadcasting video described in parameter processing and improves the image quality for playing video.
2. the method according to claim 1, wherein it is described when source be local file when, to broadcastings view Frequency carries out display enhancing processing, comprising:
When source is local file, all Optimal Parameters are chosen, as carrying out at display enhancing to the broadcasting video The objective optimization parameter of reason;
According to the objective optimization parameter, display enhancing processing is carried out to the broadcasting video.
3. the method according to claim 1, wherein it is described when source be local file when, to broadcastings view Frequency carries out display enhancing processing, comprising:
When source is not network, the selected part Optimal Parameters from all Optimal Parameters, as to the broadcasting video Carry out the objective optimization parameter of display enhancing processing;
According to the objective optimization parameter, display enhancing processing is carried out to the broadcasting video.
4. the method according to claim 1, wherein it is described when source be local file when, to broadcastings view Frequency carries out display enhancing processing, comprising:
When source is local file, the video parameter values for playing video are obtained, the video parameter values include code rate, divide At least one of resolution 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, display enhancing processing is carried out to the broadcasting video;
If being not less than the given threshold, according to the part Optimal Parameters in all Optimal Parameters, to the broadcasting video into Row display enhancing processing.
5. method according to claim 1-4, which is characterized in that in the judgement source for playing video After whether being local file, the method also includes:
When source is not local file, judge whether the broadcasting video is the video file obtained in real time from network;
It is excellent according to the part in all Optimal Parameters when the broadcasting video is the video file obtained in real time from network Change parameter, display enhancing processing is carried out to the broadcasting video.
6. according to the method described in claim 5, it is characterized in that, the part according in all Optimal Parameters optimizes Parameter carries out display enhancing processing to the broadcasting video, comprising:
Obtain current network state;
Judge whether the network state is setting state, the setting state include network signal intensity be higher than target strength, Or network speed is higher than target velocity;
When the network state is the setting state, according to the part Optimal Parameters in all Optimal Parameters, to institute It states broadcasting video and carries out display enhancing processing.
7. method according to claim 1-4, which is characterized in that in the judgement source for playing video After whether being local file, the method also includes:
When source is not local file, judge whether the broadcasting video is the video file obtained in real time from network;
When the broadcasting video is the video file obtained in real time from network, forbid carrying out display enhancing to the broadcasting video Processing.
8. a kind of video process apparatus, which is characterized in that described device includes: video source detection module, video source judgment module And display enhancing module, wherein
The video source detection module is used for when carrying out video playing, and detection plays the source of video;
The video source judgment module is used to judge whether the source for playing video to be local file;
The display enhancing module is used for when source is local file, carries out display enhancing processing, institute to the broadcasting video It states display enhancing processing and handles the image quality that the image in the broadcasting video improves the broadcasting video by Optimal Parameters.
9. a kind of electronic equipment characterized by comprising
One or more processors;
Memory;
One or more application program, wherein one or more of application programs are stored in the memory and are configured To be executed by one or more of processors, one or more of programs are configured to carry out as claim 1-7 is any Method described in.
10. a kind of computer-readable storage medium, which is characterized in that be stored with journey in the computer-readable storage medium Sequence code, said program code can be called by processor and execute the method according to claim 1 to 7.
CN201811438276.2A 2018-11-27 2018-11-27 Video processing method and device, electronic equipment and storage medium Active CN109587561B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811438276.2A CN109587561B (en) 2018-11-27 2018-11-27 Video processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811438276.2A CN109587561B (en) 2018-11-27 2018-11-27 Video processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109587561A true CN109587561A (en) 2019-04-05
CN109587561B CN109587561B (en) 2020-12-22

Family

ID=65924987

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811438276.2A Active CN109587561B (en) 2018-11-27 2018-11-27 Video processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109587561B (en)

Cited By (3)

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

Citations (4)

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

Patent Citations (4)

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

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114827723A (en) * 2022-04-25 2022-07-29 阿里巴巴(中国)有限公司 Video processing method and device, electronic equipment and storage medium
CN114827723B (en) * 2022-04-25 2024-04-09 阿里巴巴(中国)有限公司 Video processing method, device, electronic equipment and storage medium
CN115134661A (en) * 2022-06-28 2022-09-30 龙芯中科(合肥)技术有限公司 Video processing method and video processing application
CN116668773A (en) * 2022-11-22 2023-08-29 荣耀终端有限公司 Method for enhancing video image quality and electronic equipment
CN116668773B (en) * 2022-11-22 2023-12-22 荣耀终端有限公司 Method for enhancing video image quality and electronic equipment

Also Published As

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

Similar Documents

Publication Publication Date Title
CN112235626B (en) Video rendering method and device, electronic equipment and storage medium
CN104244024B (en) Video cover generation method and device and terminal
US11418832B2 (en) Video processing method, electronic device and computer-readable storage medium
CN110377263B (en) Image synthesis method, image synthesis device, electronic equipment and storage medium
CN109587560A (en) Method for processing video frequency, device, electronic equipment and storage medium
CN109379627A (en) Method for processing video frequency, device, electronic equipment and storage medium
CN109587561A (en) Method for processing video frequency, device, electronic equipment and storage medium
CN110559659A (en) game rendering optimization method, device, equipment and storage medium
CN107209693A (en) Buffer optimization
CN109361949A (en) Method for processing video frequency, device, electronic equipment and storage medium
CN109379624A (en) Method for processing video frequency, device, electronic equipment and storage medium
CN109151966A (en) terminal control method, device, terminal device and storage medium
CN109600654A (en) Barrage processing method, device and electronic equipment
CN109640169A (en) Video source modeling control method, device and electronic equipment
WO2020108010A1 (en) Video processing method and apparatus, electronic device and storage medium
CN109120988A (en) Coding/decoding method, device, electronic equipment and storage medium
CN112637675A (en) Video generation method and device, electronic equipment and storage medium
CN106131643A (en) A kind of barrage processing method, processing means and electronic equipment thereof
CN109640151A (en) Method for processing video frequency, device, electronic equipment and storage medium
CN109587558A (en) Method for processing video frequency, device, electronic equipment and storage medium
CN111491208A (en) Video processing method and device, electronic equipment and computer readable medium
CN109587555A (en) Method for processing video frequency, device, electronic equipment and storage medium
CN109688462A (en) Reduce method, apparatus, electronic equipment and the storage medium of equipment power dissipation
CN113132800B (en) Video processing method and device, video player, electronic equipment and readable medium
WO2013020411A1 (en) Instant messaging terminal and method for displaying session message in real time

Legal Events

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