WO2020107971A1 - 视频增强控制方法、装置、电子设备及存储介质 - Google Patents

视频增强控制方法、装置、电子设备及存储介质 Download PDF

Info

Publication number
WO2020107971A1
WO2020107971A1 PCT/CN2019/102862 CN2019102862W WO2020107971A1 WO 2020107971 A1 WO2020107971 A1 WO 2020107971A1 CN 2019102862 W CN2019102862 W CN 2019102862W WO 2020107971 A1 WO2020107971 A1 WO 2020107971A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
resolution
played
playback
enhancement
Prior art date
Application number
PCT/CN2019/102862
Other languages
English (en)
French (fr)
Inventor
胡小朋
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Priority to KR1020217019549A priority Critical patent/KR102534443B1/ko
Priority to EP19889127.7A priority patent/EP3886447A4/en
Priority to JP2021529859A priority patent/JP7169449B2/ja
Publication of WO2020107971A1 publication Critical patent/WO2020107971A1/zh
Priority to US17/329,100 priority patent/US11627369B2/en

Links

Images

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 or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream 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/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
    • H04N21/44209Monitoring of downstream path of the transmission network originating from a server, e.g. bandwidth variations of a wireless network
    • 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 or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440263Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the spatial resolution, e.g. for displaying on a connected PDA
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/23439Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements for generating different versions
    • 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 or rendering scenes according to encoded video stream scene graphs
    • H04N21/44008Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
    • 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
    • H04N21/44204Monitoring of content usage, e.g. the number of times a movie has been viewed, copied or the amount which has been watched
    • 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
    • H04N21/4424Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used
    • 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/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • 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/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/462Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
    • H04N21/4621Controlling the complexity of the content stream or additional data, e.g. lowering the resolution or bit-rate of the video stream for a mobile client with a small screen

Definitions

  • the present application relates to the field of image processing technology, and more specifically, to a video enhancement control method, device, electronic device, and storage medium.
  • this application proposes a video enhancement control method, device, electronic device, and storage medium to improve the above problems.
  • the present application provides a video enhancement control method, which is applied to an electronic device.
  • the method includes: acquiring a resolution corresponding to a played video after detecting that it is in a video playback state; and determining whether the network status satisfies the Playback conditions corresponding to the resolution; if the network status does not satisfy the playback conditions, reduce the resolution of the played video, and perform video enhancement on the played video, the video enhancement includes performing an image on the played video Enhanced.
  • the present application provides a video enhancement control device, which runs on an electronic device, and the device includes: a resolution acquisition unit configured to acquire a resolution corresponding to a played video when it is detected to be in a video playback state; The resolution detection unit is used to determine whether the network state meets the playback conditions corresponding to the resolution; the video enhancement unit is used to reduce the resolution of the played video if the network state does not meet the playback conditions. Perform video enhancement on the played video, and the video enhancement includes enhancing the image of the played video.
  • the present application provides an electronic device, including one or more processors and a memory; one or more programs, wherein the one or more programs are stored in the memory and configured to be The one or more processors execute, and the one or more programs are configured to perform the above method.
  • the present application provides a computer-readable storage medium having program code stored therein, wherein the above method is executed when the program code runs.
  • FIG. 1 shows a schematic diagram of a video processing architecture proposed by an embodiment of the present application.
  • FIG. 2 shows a flowchart of a video enhancement control method proposed by an embodiment of the present application.
  • FIG. 3 shows a schematic diagram of a switch control of an application program provided by an embodiment of the present application.
  • FIG. 4 shows a schematic diagram of a video playback interface proposed by an embodiment of the present application.
  • FIG. 5 shows a flowchart of a video enhancement control method proposed by another embodiment of the present application.
  • FIG. 6 shows a flowchart of a video enhancement control method proposed by still another embodiment of the present application.
  • FIG. 7 shows a structural block diagram of a video enhancement control device proposed by an embodiment of the present application.
  • FIG. 8 shows a structural block diagram of a video enhancement control device according to another embodiment of the present application.
  • FIG. 9 shows a structural block diagram of a video enhancement control device according to another embodiment of the present application.
  • FIG. 10 shows a structural block diagram of an electronic device of the present application for executing the video enhancement control method according to an embodiment of the present application.
  • FIG. 11 is a storage unit for storing or carrying program code for implementing a video enhancement control method according to an embodiment of the present application.
  • the electronic device can run a video playback client, and then use the video playback client to play the video requested from the network, or can run the web browser, and then play the video in the web browser, or electronic The device can play locally stored video files through video playback software.
  • the transmitted video is transmitted on the network or the locally stored video
  • the video when the video is generated, in order to reduce the occupation of storage space and facilitate transmission on the network, the generated video will be compressed.
  • the electronic device when the electronic device obtains the video, it will first obtain the video after compression encoding, then in this case, the electronic device will first decode the video that has been compression encoded.
  • the electronic device can perform video decoding through hard decoding and soft decoding.
  • hard decoding refers to the use of non-CPU for decoding, such as GPU (Graphics Processing Unit), dedicated DSP, FPGA, ASIC chip, etc.
  • the soft decoding refers to the use of CPU for decoding.
  • MediaFramework obtains the video file to be played through an API interface with a client or a web browser, and hands it over to Video Decode (video decoder).
  • Video Decode video decoder
  • Media Framework multimedia framework
  • the decoded video data is sent to SurfaceFlinger (layer transfer module), and SurfaceFlinger renders and synthesizes the decoded video data and displays it on the screen.
  • SurfaceFlinger is an independent Service, which receives all Surface as input, calculates the position of each Surface in the final composite image according to ZOrder, transparency, size, position and other parameters, and then passes it to HWComposer or OpenGL to generate the final Display Buffer, and then display to a specific display device.
  • the visual enhancement process can be added in the process of hard decoding or soft decoding, so that the video played later has a higher visual effect.
  • the video can be edge-dried, adjusted for exposure, or improved in sharpness based on HQV (hollywood quality video) technology.
  • HQV hollywood quality video
  • there are other ways to enhance the visual experience of the video being played for example, to enhance the colorfulness of the color.
  • a video enhancement control method provided by this application is applied to an electronic device, and the method includes:
  • Step S110 When it is detected that it is in the video playback state, the resolution corresponding to the played video is acquired.
  • the electronic device can identify whether it is currently in the video playback state in various ways.
  • the step of detecting whether the electronic device is in a video playback state includes: detecting whether a set video playback application is running in the electronic device; if it is detected that a set video playback application is running To determine that the electronic device is in the video playback state.
  • the electronic device may establish a list of video playback applications in advance, so as to record the video playback applications in the list.
  • the list can be freely configured by the user of the electronic device, or can be determined according to the usage of a video playback application.
  • multiple applications are displayed on the interface shown in FIG. 3, and the status corresponding to each application.
  • the status corresponding to the application is “off”, it means that the application is removed or not added to the above list.
  • the status corresponding to the application is “on”, then it means The application is added to the above list.
  • the corresponding status is “On”, which means that the "TX Video” application will exist in the aforementioned list.
  • the corresponding status is “Off”
  • the application "AQY Video” will not exist in the aforementioned list.
  • the electronic device can detect the frequency of use of each video playback application. If it is detected that the frequency of use of a video playback application exceeds the set frequency, the video playback application can be added to the aforementioned list and corresponding In the state corresponding to the name of the video playback application in FIG. 3 is configured as “on”.
  • the electronic device can first detect which application is currently running in the foreground, and then further detect whether the application currently running in the foreground is on the list. If it is, then it is determined that it is currently in the video playback state .
  • the electronic device is an Android operating system
  • the name of the application currently running in the foreground can be obtained by executing the getRunningTasks method of ActivityManager.
  • the electronic device can also obtain a list of applications used by the user through the UsageStatsManager, and identify the most recently used applications recorded in the list as the current foreground application.
  • the electronic device may also combine the detection of the return value of the AudioManager class to determine whether there is video playing.
  • the electronic device can first detect the return value of the AudioManager class to determine whether there is audio output. If audio output is detected, then further determine whether the video playback application is running according to the foregoing detection to determine the electronic Whether the device is in the video playback state.
  • the electronic device can also detect whether it is in the video playback state by detecting the touch state of the video playback button. For example, as shown in FIG. 4, a play button 98 is displayed on the video playback interface 99 shown in FIG. 4, and the interface shown in FIG. 4 is in a state where video playback is paused. In this case, after detecting that the playback button 98 is touched, it can be determined that the electronic device is currently in the video playback state.
  • the electronic device can obtain the resolution of the played video in various ways.
  • the electronic device can obtain the resolution of the played video by performing image recognition on the picture of the played video. For example, the electronic device can obtain a frame of image from the video being played, and then recognize the image, and then obtain the resolution of the image of the frame, and use the resolution as the resolution of the currently playing video.
  • the video that is usually played can be divided into multiple parts.
  • some online videos usually include an advertisement part and a video content part.
  • the video content part is the part that characterizes the content of the video.
  • TV series-type videos usually include an opening ad in the front part. Then, if the electronic device captures a certain frame of image as part of the opening advertisement, it will cause the obtained image to be irrelevant to the video content part, and thus the resolution of the video being played cannot be accurately obtained.
  • the electronic device can directly obtain a frame of image in the middle part of the played video according to the duration of the played video.
  • the middle part is the middle part of the entire video time length. For example, if the entire length of the video being played is 60 minutes, the middle part is the 30th minute.
  • the electronic device can acquire a certain frame of image to detect the resolution during the process of detecting the playing of the video content part.
  • the electronic device may acquire a certain frame of image in the video content after the specified duration to detect the resolution. It can be understood that the video's opening ad usually takes 60 seconds to 80 seconds, then the electronic device can use the duration of the opening ad obtained from statistics as the specified duration.
  • the electronic device can obtain the resolution code rate by directly detecting the played video, and can also obtain the resolution selection control. It can be understood that, in the case where the video being played supports multiple levels of resolution, the user can operate the resolution selection control to select the resolution he needs. For example, when the video being played supports ultra-clear, high-definition and standard-definition, the user can select the video to be played in ultra-clear resolution through the resolution selection control, then after the user selects ultra-clear, the electronic device can be stored locally The result of the selection, then the electronic device can determine the resolution of the currently played video by reading the result of the selection, that is, the resolution corresponding to the resolution selection control selected by the user is determined as the resolution corresponding to the currently played video rate.
  • the clarity of the video can usually be divided into multiple levels. For example, Blu-ray, Ultra Clear, HD, etc. And different video producers may grade the video in different ways. Or it may be due to incorrect settings, which may cause the resolution of the video to be different from the actual resolution of the video.
  • the actual resolution of a video is high-definition, and due to a configuration error, the resolution assigned to the video will be ultra-clear, which will cause the video's configured resolution to be different from the actual resolution.
  • the actual resolution of the video played is high definition, which will cause the electronic device to obtain the resolution of the video played. , The wrong resolution was obtained.
  • the resolution of a certain frame of the video being played can be directly used as the first resolution to be compared, and also stored in
  • the result of the local characterization of the resolution selected by the user is used as the second resolution to be compared, and then the first resolution to be compared is compared with the second resolution to be compared.
  • the second resolutions to be compared are the same, any one of the first resolutions to be compared and the second resolutions to be compared is used as the resolution corresponding to the played video.
  • the first to-be-compared resolution and the second to-be-compared resolution are different, the first to-be-compared resolution is used as the resolution corresponding to the played video.
  • Step S120 Determine whether the network status meets the playback conditions corresponding to the resolution.
  • video is usually composed of multiple frames of images.
  • the data volume corresponding to different resolutions is different.
  • Different data volumes require different transmission network bandwidth.
  • the network bandwidth required for Blu-ray, Ultra-Clear, and HD is reduced in sequence.
  • the network status can be characterized by the network bandwidth.
  • the electronic device based on the determination of the resolution of the played video, based on the playback conditions that can obtain the resolution of the played video, where the playback conditions include the transmission rate corresponding to the played video.
  • the transmission rate is the lowest network data transmission rate for smoothly transmitting the video with the resolution.
  • the transmission rate corresponding to a certain resolution can be pre-configured and stored in the electronic device, so that the electronic device can obtain the resolution of the played video locally after obtaining the resolution of the played video The transmission rate corresponding to the rate.
  • the electronic device can obtain the transmission rate of the currently connected network, and then compare the transmission rate of the currently connected network with the transmission rate corresponding to the resolution of the video being played.
  • the transmission rate into the network is not less than the transmission rate corresponding to the resolution of the video being played, then it is determined that the network status meets the playback conditions corresponding to the resolution, if the transmission rate of the currently connected network is less than the resolution corresponding to the resolution of the video being played If the transmission rate is not reached, then it is determined that the network status does not meet the playback conditions corresponding to the resolution.
  • Step S130 If the network status does not satisfy the playback condition, reduce the resolution of the played video, and perform video enhancement on the played video, where the video enhancement includes enhancing the image of the played video.
  • the image parameters of the played video may be adjusted to enhance the image.
  • the image parameters include at least one of sharpness adjustment parameters, lens distortion control parameters, color gamut control parameters, color adjustment parameters, sharpness adjustment parameters, brightness adjustment parameters, contrast adjustment parameters, noise reduction control parameters, and saturation adjustment parameters .
  • the image parameter to be adjusted can be determined according to the degree of reducing the resolution. For example, if the resolution is reduced to a greater degree, then more parameters can be used.
  • the electronic device can adjust the clarity adjustment parameters, sharpness adjustment parameters, brightness adjustment parameters, etc. of the video being played, and if the electronic device reduces the resolution from super clear If it is reduced to high definition, then the electronic device can be configured to adjust the clarity adjustment parameters of the video being played.
  • Step S140 If the network status meets the playback condition, play the video at the current resolution.
  • a video enhancement control method provided by the present application after detecting that it is in a video playback state, obtains the resolution corresponding to the played video, and judges whether the network state meets the playback conditions corresponding to the resolution, if the network state If the playback conditions are not met, the resolution of the played video is reduced, and the played video is enhanced.
  • This method reduces the resolution of the currently played video by detecting that the current network status does not meet the resolution of the video being played, and thus adapts to the current network status, and simultaneously enables video enhancement, thereby enabling the network
  • the video played can still have a higher playback visual effect, which improves the user experience.
  • a video enhancement control method provided by this application is applied to an electronic device, and the method includes:
  • Step S210 When it is detected that it is in the video playback state, the resolution corresponding to the played video is acquired.
  • Step S220 Determine whether the network status meets the playback conditions corresponding to the resolution.
  • Step S230 If the network status does not satisfy the playback condition, reduce the resolution of the played video, and perform video enhancement on the played video.
  • Step S231 If the network status satisfies the playback condition, play the video at the current resolution.
  • Step S240 Determine whether the network status meets the playback conditions corresponding to the resolution.
  • the electronic device After performing step S230, the electronic device still regularly checks the current network status, and after detecting that the current network status satisfies the playback condition, the resolution of the played video can be increased.
  • Step S250 If it is determined that the current network state meets the playback condition, increase the resolution of the played video.
  • the resolution of the played video is increased to the target resolution.
  • the electronic device can be determined in various ways.
  • the electronic device can be randomly increased to a higher resolution than the previously reduced resolution.
  • the electronic device can increase the resolution to the resolution previously selected by the user. It is understandable that the user selects the required resolution before the video starts to play or during the video playback, then after the electronic device determines that the network status does not support the playback condition of the resolution selected by the user, the electronic device can reduce The selected resolution, when the electronic device detects that the current network supports the playback condition of the resolution selected by the user, the electronic device can switch the resolution of the played video to the resolution selected by the user.
  • the resolution selected by the user is ultra-clear
  • the electronic device detects that the current network state does not satisfy the ultra-clear playback conditions
  • the resolution can be reduced to high-definition for playback.
  • the electronic device detects that the current network status meets the ultra-clear playback conditions, it can increase the video resolution from high-definition to ultra-clear.
  • the step of increasing the resolution of the played video further includes: stopping video enhancement of the played video.
  • the visual effect of the played video can be improved to a certain extent.
  • the electronic device can sharpen the played video, thereby improving the clarity of the played video.
  • the electronic device can enhance the saturation of the played video, thereby making the played video fuller in color.
  • the user can perceive the start and stop of video enhancement, then as a way, the step of stopping video enhancement of the played video includes: obtaining parameters of the video screen; based on the The parameter determines the moment when the video enhancement is turned off; at the moment, the video enhancement of the played video is turned off.
  • the step of determining the moment when the video enhancement is turned off based on the parameters includes: determining whether the brightness of the video picture is lower than the specified brightness; if it is determined that the brightness of the video picture is lower than the specified brightness, the brightness of the video picture is detected to be low The moment when the brightness is specified is taken as the moment when the video enhancement is turned off.
  • the step of using the moment when the brightness of the video picture is detected to be lower than the specified brightness as the moment to turn off video enhancement includes: if it is determined that the brightness of the video picture is lower than the specified brightness To obtain a multi-frame video picture after the moment when the brightness of the video picture is detected to be lower than the specified brightness; based on the brightness of the multi-frame video picture, calculate the duration of the brightness lower than the specified brightness; if the length of time is determined If it is greater than the specified length, the moment when the brightness of the video image is detected to be lower than the specified brightness is taken as the moment when the video enhancement is turned off.
  • the user's content recognition degree for the video picture is worse than the case where the brightness of the video picture is higher than the specified brightness.
  • the user is more sensitive to whether the video screen is clear, and when the content displayed on the video screen is at night, the user has poorer perception of the clarity of the video.
  • the moment when the brightness of the detected video image is lower than the specified brightness is taken as the moment when video enhancement is turned off, the probability of user recognition can be reduced when the video enhancement is turned off, thereby making it possible for the user to When perception or perception is small, the video enhancement is closed to improve the user experience.
  • a video enhancement control method provided by the present application after detecting that it is in a video playback state, obtains the resolution corresponding to the played video, and judges whether the network state meets the playback conditions corresponding to the resolution, if the network state If the playback conditions are not met, the resolution of the played video is reduced, and the played video is enhanced. When it is detected that the network meets the playback conditions again, the resolution of the played video starts to be increased, and the video enhancement effect is reduced according to the increase in resolution, thereby reducing power consumption.
  • This method reduces the resolution of the currently played video by detecting that the current network status does not meet the resolution of the video being played, and thus adapts to the current network status, and simultaneously enables video enhancement, thereby enabling the network
  • the video played can still have a higher playback visual effect, which improves the user experience.
  • a video enhancement control method provided in this application is applied to an electronic device, and the method includes:
  • Step S310 When it is detected that it is in the video playback state, the resolution corresponding to the played video is acquired.
  • Step S320 Determine whether the network status meets the playback conditions corresponding to the resolution.
  • Step S330 If the network status does not satisfy the playback condition, reduce the resolution of the played video.
  • Step S331 If the network status meets the playback condition, play the video at the current resolution.
  • Step S340 Determine the video enhancement effect based on the reduced resolution amplitude, where the greater the resolution reduction amplitude, the stronger the enhancement effect determined.
  • Step S350 Perform video enhancement based on the determined video enhancement effect.
  • a video enhancement control method provided by the present application after detecting that it is in a video playback state, obtains the resolution corresponding to the played video, and judges whether the network state meets the playback conditions corresponding to the resolution, if the network state If the playback condition is not satisfied, the resolution of the video being played is reduced, and the video being played is video-enhanced according to the reduction in resolution.
  • This method reduces the resolution of the currently played video by detecting that the current network status does not meet the resolution of the video being played, and thus adapts to the current network status, and simultaneously enables video enhancement, thereby enabling the network
  • the video played can still have a higher playback visual effect, which improves the user experience.
  • a video enhancement control device 400 provided by the present application runs on an electronic device.
  • the device 400 includes a resolution acquisition unit 410, a resolution detection unit 420, and a video enhancement unit 430.
  • the resolution obtaining unit 410 is used to obtain the resolution corresponding to the played video after detecting that it is in the video playing state;
  • the resolution detection unit 420 is used to determine whether the network status meets the playback conditions corresponding to the resolution
  • the video enhancement unit 430 is configured to reduce the resolution of the played video and perform video enhancement on the played video if the network status does not satisfy the playback condition.
  • a video enhancement control device after detecting that it is in a video playback state, obtains the resolution corresponding to the played video, and judges whether the network state meets the playback conditions corresponding to the resolution, if the network state If the playback conditions are not met, the resolution of the played video is reduced, and the played video is enhanced.
  • This method reduces the resolution of the currently played video by detecting that the current network status does not meet the resolution of the video being played, and thus adapts to the current network status, and simultaneously enables video enhancement, thereby enabling the network
  • the video played can still have a higher playback visual effect, which improves the user experience.
  • a video enhancement control device 500 provided by the present application runs on an electronic device, and the device 500 includes: a resolution acquisition unit 510, a resolution detection unit 520, a resolution control unit 530, and a video enhancement unit 540 .
  • the resolution acquiring unit 510 is configured to acquire the resolution corresponding to the played video after detecting that it is in the video playing state.
  • the resolution detection unit 520 is used to determine whether the network status meets the playback conditions corresponding to the resolution.
  • the resolution control unit 530 is configured to reduce the resolution of the played video if the network status does not satisfy the playback condition
  • the video enhancement unit 540 is configured to perform video enhancement on the played video if the network status does not satisfy the playback condition.
  • the resolution control unit 530 is also used to increase the resolution of the played video if it is determined that the current network state meets the playback condition.
  • the resolution control unit 530 is further configured to increase the resolution of the played video to the target resolution if it is determined that the current network state meets the playback condition.
  • the video enhancement unit 540 is specifically configured to, if it is determined that the current network state meets the playback condition, the step of increasing the resolution of the played video further includes: stopping the playback of the video Perform video enhancement.
  • the video enhancement unit 540 is specifically configured to acquire parameters of a video picture; determine a time to close video enhancement based on the parameters; and start to close video enhancement of the played video at the time.
  • the video enhancement unit 540 is specifically configured to determine whether the brightness of the video picture is lower than the specified brightness; As a moment to turn off video enhancement.
  • the video enhancement unit 540 is specifically configured to, if it is determined that the brightness of the video picture is lower than the specified brightness, acquire multiple frames of video pictures after the moment when the brightness of the video picture is detected to be lower than the specified brightness; based on the multiple frames For the brightness of the video picture, calculate the duration of the brightness being lower than the specified brightness; if it is determined that the length of time is greater than the specified length, the moment when the brightness of the video picture is detected to be lower than the specified brightness is taken as the moment when the video enhancement is turned off.
  • the user's content recognition degree for the video picture is worse than the case where the brightness of the video picture is higher than the specified brightness.
  • the user is more sensitive to whether the video screen is clear, and when the content displayed on the video screen is at night, the user has poorer perception of the clarity of the video.
  • the moment when the brightness of the detected video image is lower than the specified brightness is taken as the moment when video enhancement is turned off, the probability of user recognition can be reduced when the video enhancement is turned off, thereby making it possible for the user to When perception or perception is small, the video enhancement is closed to improve the user experience.
  • a video enhancement control device after detecting that it is in a video playback state, obtains the resolution corresponding to the played video, and judges whether the network state meets the playback conditions corresponding to the resolution, if the network state If the playback conditions are not met, the resolution of the played video is reduced, and the played video is enhanced. When it is detected that the network meets the playback conditions again, the resolution of the played video starts to be increased, and the video enhancement effect is reduced according to the increase in resolution, thereby reducing power consumption.
  • This method reduces the resolution of the currently played video by detecting that the current network status does not meet the resolution of the video being played, and thus adapts to the current network status, and simultaneously enables video enhancement, thereby enabling the network
  • the video played can still have a higher playback visual effect, which improves the user experience.
  • a video enhancement control device 600 provided by the present application runs on an electronic device, and the device 600 includes: a resolution acquisition unit 610, a resolution detection unit 620, a resolution control unit 630, and resolution effect recognition Unit 640 and video enhancement unit 650.
  • the resolution acquiring unit 610 is configured to acquire the resolution corresponding to the played video after detecting that it is in the video playing state.
  • the resolution detection unit 620 is configured to determine whether the network status meets the playback conditions corresponding to the resolution.
  • the resolution control unit 630 is configured to reduce the resolution of the played video if the network status does not satisfy the playback condition.
  • the resolution effect recognition unit 640 is used to determine the effect of video enhancement based on the reduced resolution amplitude, where the greater the resolution reduction amplitude, the stronger the enhancement effect determined.
  • the video enhancement unit 650 is configured to perform video enhancement based on the determined video enhancement effect.
  • a video enhancement control device after detecting that it is in a video playback state, obtains the resolution corresponding to the played video, and judges whether the network state meets the playback conditions corresponding to the resolution, if the network state If the playback condition is not satisfied, the resolution of the video being played is reduced, and the video being played is video-enhanced according to the reduction in resolution.
  • This method reduces the resolution of the currently played video by detecting that the current network status does not meet the resolution of the video being played, and thus adapts to the current network status, and simultaneously enables video enhancement, thereby enabling the network
  • the video played can still have a higher playback visual effect, which improves the user experience.
  • each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module.
  • the above integrated modules may be implemented in the form of hardware or software function modules.
  • the video enhancement control method, device, electronic equipment and storage medium provided by the present application, after detecting that it is in the video playback state, obtain the resolution corresponding to the video being played, and determine whether the network status meets the requirements
  • the playback conditions corresponding to the resolution if the network status does not satisfy the playback conditions, reduce the resolution of the played video, and perform video enhancement on the played video.
  • This method reduces the resolution of the currently played video by detecting that the current network status does not meet the resolution of the video being played, and thus adapts to the current network status, and simultaneously enables video enhancement, thereby enabling the network
  • the video played can still have a higher playback visual effect, which improves the user experience.
  • the electronic device 100 includes one or more (only one shown in the figure) processor 102, memory 104, network module 106, video codec 108, and screen 112 coupled to each other.
  • the memory 104 stores a program that can execute the content in the foregoing embodiment, and the processor 102 can execute the program stored in the memory 104.
  • the processor 102 may include one or more processing cores.
  • the processor 102 connects various parts of the entire electronic device 100 using various interfaces and lines, executes or executes instructions, programs, code sets or instruction sets stored in the memory 104, and calls data stored in the memory 104 to execute Various functions and processing data of the electronic device 100.
  • the processor 102 may adopt at least one of digital signal processing (Digital Signal Processing (DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA) Various hardware forms.
  • the processor 102 may integrate one or a combination of one of a central processing unit (Central Processing Unit, CPU), an image processing unit (Graphics Processing Unit, GPU), and a modem.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • modem modem
  • CPU mainly deals with operating system, user interface and application program, etc.
  • GPU is used for rendering and rendering of display content
  • modem is used for handling wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 102, and may be implemented by a communication chip alone.
  • the memory 104 may include random access memory (RAM) or read-only memory (Read-Only Memory).
  • the memory 104 may be used to store instructions, programs, codes, code sets, or instruction sets.
  • the memory 104 may include a storage program area and a storage data area.
  • the memory 104 may store a video enhancement control device.
  • the video enhancement control device may be the aforementioned device 400, device 500, or device 600.
  • the storage program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch function, sound playback function, image playback function, etc.), and instructions for implementing the following method embodiments Wait.
  • the storage data area may also store data created by the terminal 100 in use (such as a phone book, audio and video data, and chat history data).
  • the network module 106 is used to receive and send electromagnetic waves to realize the mutual conversion of electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices, such as a wireless access point.
  • the network module 106 may include various existing circuit elements for performing these functions, for example, an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a subscriber identity module (SIM) card, a memory, etc. .
  • SIM subscriber identity module
  • the network module 106 can communicate with various networks such as the Internet, intranets, and wireless networks or communicate with other devices through the wireless network.
  • the aforementioned wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network.
  • the video codec 108 can be used to decode the data requested by the network module 106 from the network for transmission to the screen 112 for display.
  • the video codec 108 may be a GPU, a dedicated DSP, FPGA, ASIC chip, or the like.
  • FIG. 11 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • the computer readable medium 800 stores program codes, and the program codes can be called by a processor to execute the method described in the above method embodiments.
  • the computer-readable storage medium 800 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium.
  • the computer-readable storage medium 800 has a storage space for the program code 810 that performs any of the method steps described above. These program codes can be read from or written into one or more computer program products.
  • the program code 810 may be compressed in an appropriate form, for example.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Software Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Digital Computer Display Output (AREA)

Abstract

本申请实施例公开了一种视频增强控制方法、装置、电子设备及存储介质。所述方法包括:当检测到处于视频播放状态后,获取所播放视频对应的分辨率;判断网络状态是否满足所述分辨率对应的播放条件;若所述网络状态不满足所述播放条件,降低所述所播放视频的分辨率,对所播放的视频进行视频增强。本方法通过在检测到当前的网络状态不满足所播放的视频的分辨率的情况下,降低当前所播放视频的分辨率,进而以适应当前的网络状态,并且同时开启视频增强,从而使得在网络不支持当前分辨率的情况下,依然可以使得所播放的视频可以有较高的播放视效,提升了用户体验。

Description

视频增强控制方法、装置、电子设备及存储介质
相关申请的交叉引用
本申请要求于2018年11月27日提交的申请号为CN201811429235.7的中国申请的优先权,其在此出于所有目的通过引用将其全部内容并入本文。
技术领域
本申请涉及图像处理技术领域,更具体地,涉及一种视频增强控制方法、装置、电子设备及存储介质。
背景技术
带屏幕的电子设备应用随着社会的发展,其应用范围不断地扩大。例如,利用屏幕显示图片以及视频等图像。而大部分电子设备的显示质量会因为周围光源的变化,或者是所播放视频的片源质量问题而受到严重影响。
发明内容
鉴于上述问题,本申请提出了一种视频增强控制方法、装置、电子设备及存储介质,以改善上述问题。
第一方面,本申请提供了一种视频增强控制方法,应用于电子设备,所述方法包括:当检测到处于视频播放状态后,获取所播放视频对应的分辨率;判断网络状态是否满足所述分辨率对应的播放条件;若所述网络状态不满足所述播放条件,降低所述所播放视频的分辨率,对所播放的视频进行视频增强,所述视频增强包括对所播放视频的图像进行增强。
第二方面,本申请提供了一种视频增强控制装置,运行于电子设备,所述装置包括:分辨率获取单元,用于当检测到处于视频播放状态后,获取所播放视频对应的分辨率;分辨率检测单元,用于判断网络状态是否满足所述分辨率对应的播放条件;视频增强单元,用于若所述网络状态不满足所述播放条件,降低所述所播放视频的分辨率,对所播放的视频进行视频增强,所述视频增强包括对所播放视频的图像进行增强。
第三方面,本申请提供了一种电子设备,包括一个或多个处理器以及存储器;一个或多个程序,其中所述一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述的方法。
第四方面,本申请提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有程序代码,其中,在所述程序代码运行时执行上述的方法。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所 需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1示出了本申请实施例提出的一种视频处理架构示意图。
图2示出了本申请实施例提出的一种视频增强控制方法的流程图。
图3示出了本申请实施例提出的应用程序的开关控件示意图。
图4示出了本申请实施例提出的视频播放界面的示意图。
图5示出了本申请另一实施例提出的一种视频增强控制方法的流程图。
图6示出了本申请再一实施例提出的一种视频增强控制方法的流程图。
图7示出了本申请实施例提出的一种视频增强控制装置的结构框图。
图8示出了本申请另一实施例提出的一种视频增强控制装置的结构框图。
图9示出了本申请再一实施例提出的一种视频增强控制装置的结构框图。
图10示出了本申请的用于执行根据本申请实施例的视频增强控制方法的电子设备的结构框图。
图11是本申请实施例的用于保存或者携带实现根据本申请实施例的视频增强控制方法的程序代码的存储单元。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
随着电子设备的硬件性能的提升,更多的电子设备可以支持进行视频播放。例如,电子设备可以运行视频播放客户端,然后通过该视频播放客户端来对从网络请求的视频进行播放,或者可以通过运行网页浏览器,然后通过在网页浏览器中进行视频播放,再或者电子设备可以通过视频播放软件对本地存储的视频文件进行播放。
而无论对于是在网络上传输播放的视频,还是在本地存储的视频,在视频被生成的时候,为了能够降低对存储空间的占用以及便于在网络上传输,都会对生成的视频进行压缩。那么相应的,电子设备在获取到视频时,先获取的到也会是压缩编码以后的视频,那么在这种情况下,电子设备会先对已经压缩编码的视频进行视频解码。
通常,如图1所示,电子设备可以通过硬解码以及软解码两种方式来进行视频解码。其中,硬解码是指使用非CPU进行解码,如GPU(Graphics Processing Unit)、专用的DSP、FPGA、ASIC芯片等。而软解码是指使用CPU进行解码。
具体地,如图1所示,MediaFramework(多媒体框架)通过与客户端或者网页浏览器的API接口获取待播放的视频文件,并交由Video Decode(视频解码 器),其中,Media Framework(多媒体框架)为操作系统中多媒体框架。
不论是硬解码还是软解码,在将视频数据解码之后,会将解码后的视频数据发送至SurfaceFlinger(图层传递模块),由SurfaceFlinger将解码后的视频数据渲染和合成之后,在屏幕上显示。其中,SurfaceFlinger是一个独立的Service,它接收所有的Surface作为输入,根据ZOrder、透明度、大小、位置等参数,计算出每个Surface在最终合成图像中的位置,然后交由HWComposer或OpenGL生成最终的显示Buffer,然后显示到特定的显示设备上。
而发明人发现无论是在硬解码还是软解码过程中都可以加入视觉增强过程,从而使得后续所播放的视频有更高的视觉效果。例如,可以基于HQV(hollywood quality video)技术对视频进行边缘去燥、调节曝光度或者提升清晰度等。此外,还可以通过其他的方式来提升所播放视频的视觉体验,例如,提升颜色艳丽程度等。
但是,发明人进一步的发现,对于是否对所播放的视频进行视觉增强的控制方式还有待提升。因此,提出了本申请提供的可以提升控制便利性以及智能化的视频增强控制方法、装置、电子设备及存储介质。
下面将结合具体实施例对本申请内容进行介绍。
请参阅图2,本申请提供的一种视频增强控制方法,应用于电子设备,所述方法包括:
步骤S110:当检测到处于视频播放状态后,获取所播放视频对应的分辨率。
在本申请中,电子设备可以通过多种的方式来识别当前是否处于视频播放状态。
作为一种方式,所述检测电子设备是否处于视频播放状态的步骤包括:检测所述电子设备中是否有设定的视频播放应用程序在运行;若检测到有设定的视频播放应用程序在运行,判定所述电子设备处于所述视频播放状态。其中,电子设备可以预先建立一个视频播放应用程序的名单,以便在该名单中记录视频播放应用程序。其中,该名单可以由电子设备的用户自由配置,也可以根据某个视频播放应用程序的使用情况来确定。
例如,如图3所示,在图3所示的界面中显示有多个应用程序,以及每个应用程序对应的状态。可以理解的是,若应用程序对应的状态为图示的“关”,那么表示该应用程序移除或者不加入到上述名单中,若应用程序对应的状态为图示的“开”,那么表示该应用程序加入到上述名单中。例如,对于名称为“TX视频”的应用程序,其对应的状态为“开”,即表示“TX视频”这个应用程序会存在于前述的名单中。而对于名称为“AQY视频”的应用程序,其对应的状态为“关”,那么表示“AQY视频”这个应用程序不会存在于前述的名单中。
再者,电子设备可以检测每个视频播放应用程序的使用频率,若检测到某个视频播放程序的使用频率超过设定的频率,则可以将该视频播放应用程序添加到前述名单中,并对应的将该视频播放应用程序的名称在图3中所对应的状态配置为“开”。
那么在这种情况下,电子设备可以先检测当前在前台运行的应用程序是哪个,然后再进一步的检测当前前台运行的应用程序是否在该名单中,若在,那么就判定当前处于视频播放状态。其中,作为一种方式,若电子设备为Android操作系统,可以通过执行ActivityManager的getRunningTasks方法来获取到当前在前台运行的应用程序的名称。此外,电子设备还可以通过UsageStatsManager来获取用户使用的应用程序的列表,将该列表中记录的最近使用的应用程序识别为当前的前台应用。再者,还可以通过Android自带无障碍功能,监控窗口焦点的变化,拿到焦点窗口对应包名作为当前在前台运行的应用程序。
作为另外一种方式,电子设备还可以结合检测AudioManager类的返回值来确定是否有视频在进行播放。在这种情况下,电子设备可以先检测AudioManager类的返回值来确定是否有音频输出,若在检测到有音频输出的情况下,再进一步的根据前述检测是否有视频播放应用程序运行来确定电子设备是否处于视频播放状态。
再者,作为再一种方式,电子设备还可以通过检测视频播放按键的触控状态来检测是否处于视频播放状态。例如,如图4所示,在图4所示的视频播放界面99中显示有播放按键98,且图4中所示的界面为视频播放暂停的状态。那么在这种情况下,当检测到播放按键98被触控后,即可判定电子设备当前处于视频播放状态。
在本申请中,电子设备有多种方式可以获取到所播放视频的分辨率。作为一种方式,电子设备可以通过对所播放的视频的画面进行图像识别的方式获取到所播放视频的分辨率。例如,电子设备可以从所播放的视频中获取一帧图像,然后对该图像进行识别,进而获取到该一帧图像的分辨率,将该分辨率作为当前所播放视频的分辨率。
再者,通常所播放的视频可以分成多个部分。例如,对于一些网络视频通常包括广告部分以及视频内容部分。而其中的视频内容部分为表征视频所要表达的内容的部分。例如,对于一些电视剧类型的视频,电视剧类型的视频通常在前面部分会包括有片头广告。那么如果电子设备在采集某一帧图像时所采集到的为片头广告部分,那么就会造成所获取的图像与视频内容部分无关,进而无法准确获取到所播放视频的分辨率。
那么作为一种方式,电子设备可以在检测到处于视频播放状态以后,根据所播放视频的时长长度,直接获取所播放视频的中间部分的一帧图像。其中,该中间部分为整个视频时间长度中间的部分。例如,如果所播放视频的整个时间长度为60分钟,那么中间部分为第30分钟的部分。而作为另外一种方式,如果所播放的视频是可以识别片头以及视频内容部分的,那么电子设备可以在检测到播放视频内容部分的过程中获取某一帧图像来检测分辨率。
而作为再一种方式,电子设备可以在检测到当前所播放的视频已经播放指定时长后,获取该指定时长以后的视频内容中的某一帧图像来检测分辨率。可以理解的是,视频的片头广告通常会在60秒到80秒,那么电子设备可以 根据统计得到的片头广告的时长来作为指定时长。
此外,电子设备除了可以通过直接检测所播放的视频来获取分辨码率外,还可以通过分辨率选择控件来获取。可以理解的是,在所播放的视频支持多种等级分辨率的情况下,用户可以操作分辨率选择控件来选择自己需要的分辨率。例如,在播放的视频支持超清、高清以及标清的情况下,用户可以通过分辨率选择控件选择视频以超清的分辨率进行播放,那么在用户选择了超清以后,电子设备可以在本地存储该选择的结果,那么电子设备可以通过读取该选择的结果,来确定当前所播放视频的分辨率,即将与用户所选择的分辨率选择控件对应的分辨率确定为当前所播放视频对应的分辨率。
作为一种方式,视频的清晰度通常可以分成多个等级。例如,蓝光、超清、高清等。而不同的视频制作者对于视频的等级的分级方式可能不同。或者是由于设置错误,会造成视频所对应的分辨率不是该视频实际的分辨率。例如,某个视频的实际分辨率为高清,而由于配置错误会造成给该视频分配的分辨率为超清,进而造成视频的配置分辨率与实际分辨率不同。那么在这种情况下,即使用户选择了超清,而电子设备在播放视频的过程中,所播放视频的实际分辨率为高清,从而会造成电子设备在获取所播放的视频的分辨率的过程中,获取到错误的分辨率。
那么作为一种方式,可以在获取所播放的视频的分辨率的过程中,既直接通过检测所播放的视频的某一帧图像的分辨率来作为第一待对比分辨率,而也获取存储在本地的表征用户所选择的分辨率的结果来作为第二待对比分辨率,进而将该第一待对比分辨率与第二待对比分辨率进行比对,在比对第一待对比分辨率和第二待对比分辨率相同的情况下,将第一待对比分辨率和第二待对比分辨率中的任意一个作为所播放视频对应的分辨率。而在第一待对比分辨率和第二待对比分辨率不相同的情况下,将第一待对比分辨率作为所播放视频对应的分辨率。
步骤S120:判断网络状态是否满足所述分辨率对应的播放条件。
可以理解的是,视频通常是由多帧图像组成的。而对于图像,不同的分辨率所对应的数据量是不同的。而不同的数据量,所需要的传输网络带宽是不同的。例如,对于蓝光、超清以及高清所要求的网络带宽依次降低。那么作为一种方式,可以通过网络带宽来表征网络状态。那么在这种情况下,电子设备在确定了所播放视频的分辨率的情况下,基于可以获取到所播放视频的分辨率的播放条件,其中该播放条件包括该所播放视频对应的传输速率。其中,该传输速率为顺利传输该分辨率的视频的最低网络数据传输速率。
作为一种方式,对于某一种分辨率对应的传输速率可以预先配置后存储在电子设备中,从而便于电子设备在获取到所播放视频的分辨率以后,可以从本地获取到所播放视频的分辨率对应的传输速率。
那么在这种情况下,电子设备可以获取当前所接入网络的传输速率,然后将该当前所接入网络的传输速率与所播放视频的分辨率对应的传输速率进行比对,若当前所接入网络的传输速率不小于所播放视频的分辨率对应的传输速率,那么就判定网络状态满足所述分辨率对应的播放条件,若当前所接 入网络的传输速率小于所播放视频的分辨率对应的传输速率,那么就判定网络状态不满足所述分辨率对应的播放条件。
步骤S130:若所述网络状态不满足所述播放条件,降低所述所播放视频的分辨率,对所播放的视频进行视频增强,所述视频增强包括对所播放视频的图像进行增强。
作为一种方式,可以通过对所播放视频的图像参数进行调节,以增强所述图像进行增强。
其中,图像参数包括清晰度调节参数、镜头畸变控制参数、色域控制参数、色彩调节参数、锐度调节参数、亮度调节参数、对比度调节参数、降噪控制参数以及饱和度调节参数中的至少一个。其中,作为一种方式,可以根据降低分辨率的程度来确定所要调节的图像参数。例如,若降低分辨率的程度较大,那么可以更多的参数。可选的,若将分辨率由超清降低到标清,那么电子设备可以调节所播放视频的清晰度调节参数、锐度调节参数、亮度调节参数等,而若电子设备是将分辨率由超清降低到高清,那么电子设备可以配置调节所播放视频的清晰度调节参数。
步骤S140:若所述网络状态满足所述播放条件,以当前的分辨率播放视频。
本申请提供的一种视频增强控制方法,在当检测到处于视频播放状态后,获取所播放视频对应的分辨率,并判断网络状态是否满足所述分辨率对应的播放条件,若所述网络状态不满足所述播放条件,降低所述所播放视频的分辨率,对所播放的视频进行视频增强。本方法通过在检测到当前的网络状态不满足所播放的视频的分辨率的情况下,降低当前所播放视频的分辨率,进而以适应当前的网络状态,并且同时开启视频增强,从而使得在网络不支持当前分辨率的情况下,依然可以使得所播放的视频可以有较高的播放视效,提升了用户体验。
请参阅图5,本申请提供的一种视频增强控制方法,应用于电子设备,所述方法包括:
步骤S210:当检测到处于视频播放状态后,获取所播放视频对应的分辨率。
步骤S220:判断网络状态是否满足所述分辨率对应的播放条件。
步骤S230:若所述网络状态不满足所述播放条件,降低所述所播放视频的分辨率,对所播放的视频进行视频增强。
步骤S231:若所述网络状态满足所述播放条件,以当前的分辨率播放视频。
步骤S240:判断网络状态是否满足所述分辨率对应的播放条件。
电子设备在执行步骤S230以后,依然会定时检查当前的网络状态,而在检测到当前的网络状态满足所述播放条件以后,就可以提升所播放视频的分辨率。
步骤S250:若判定当前的网络状态满足所述播放条件,提升所述所播放视频的分辨率。
作为一种方式,若判定当前的网络状态满足所述播放条件,提升所述所播放视频的分辨率到目标分辨率。
而对于目标分辨率,电子设备可以有多种方式来确定。可选的,电子设备可以随机提升到相对之前降低后的分辨率更高的分辨率。可选的,电子设备可以将分辨率提升到之前用户所选择的分辨率。可以理解的是,用户在视频开始播放之前或者在视频播放过程中选择自己所需要的分辨率,那么在电子设备判断网络状态不支持用户所选择的分辨率的播放条件以后,电子设备可以降低用户所选择的分辨率,那么当电子设备检测到当前的网络支持用户所选择的分辨率的播放条件以后,电子设备可以将所播放的视频的分辨率切换到用户所选择的分辨率。
例如,若用户选择的分辨率为超清,而电子设备检测到当前的网络状态并不满足超清的播放条件,那么可以将分辨率降低到高清进行播放。而当电子设备检测到当前的网络状态满足超清的播放条件以后,可以将视频的分辨率从高清提升到超清。
作为一种方式,所述若判定当前的网络状态满足所述播放条件,提升所述所播放视频的分辨率的步骤之后还包括:停止对所述所播放的视频进行视频增强。
可以理解的是,在对视频进行视频增强以后,可以在一定程度上提升所播放视频的视觉效果。例如,作为一种增强方式,电子设备可以对所播放的视频进行锐化,进而提升所播放视频的清晰度。而作为另外一种增强方式,电子设备可以对所播放的视频的饱和度进行增强,进而使得所播放的视频的颜色更加的饱满。而在一些场景下,用户是可以感知视频增强的启动以及停止的,那么作为一种方式,所述停止对所述所播放的视频进行视频增强的步骤包括:获取视频画面的参数;基于所述参数确定关闭视频增强的时刻;在所述时刻开始关闭对所述所播放的视频进行视频增强。
可选的,所述基于所述参数确定关闭视频增强的时刻的步骤包括:判断视频画面的亮度是否低于指定亮度;若判定视频画面的亮度低于指定亮度,将检测到视频画面的亮度低于指定亮度的时刻作为关闭视频增强的时刻。
可选的,所述若判定视频画面的亮度低于指定亮度,将检测到视频画面的亮度低于指定亮度的时刻作为关闭视频增强的时刻的步骤包括:若判定视频画面的亮度低于指定亮度,获取检测到视频画面的亮度低于指定亮度的时刻之后的多帧视频画面;基于所述多帧视频画面的亮度,计算亮度低于所述指定亮度的持续时间长度;若判定所述时间长度大于指定长度,将检测到视频画面的亮度低于指定亮度的时刻作为关闭视频增强的时刻。
可以理解的是,当视频画面的亮度低于指定亮度的情况下,用户对于视频画面的内容识别度相较于视频画面的亮度高于指定亮度的情况下更差。例如,当视频画面所显示的内容是在白天,那么对于视频画面是否清晰,用户感知较为敏感,而当视频画面所显示的内容是在夜晚,那么用户对于视频的清晰度是否清晰感知较差。那么在这种情况下,若在将检测到视频画面的亮度低于指定亮度的时刻作为关闭视频增强的时刻,可以在进行视频增强关闭 时,减小用户识别的概率,进而使得可以在用户无感知或者感知较小的情况下,完成视频增强的关闭,以提升用户体验。
本申请提供的一种视频增强控制方法,在当检测到处于视频播放状态后,获取所播放视频对应的分辨率,并判断网络状态是否满足所述分辨率对应的播放条件,若所述网络状态不满足所述播放条件,降低所述所播放视频的分辨率,对所播放的视频进行视频增强。而当在检测到网络又满足播放条件以后,开始提升所述所播放视频的分辨率,并根据分辨率的提升,降低视频增强效果,进而降低功耗。本方法通过在检测到当前的网络状态不满足所播放的视频的分辨率的情况下,降低当前所播放视频的分辨率,进而以适应当前的网络状态,并且同时开启视频增强,从而使得在网络不支持当前分辨率的情况下,依然可以使得所播放的视频可以有较高的播放视效,提升了用户体验。
请参阅图6,本申请提供的一种视频增强控制方法,应用于电子设备,所述方法包括:
步骤S310:当检测到处于视频播放状态后,获取所播放视频对应的分辨率。
步骤S320:判断网络状态是否满足所述分辨率对应的播放条件。
步骤S330:若所述网络状态不满足所述播放条件,降低所述所播放视频的分辨率。
步骤S331:若所述网络状态满足所述播放条件,以当前的分辨率播放视频。
步骤S340:基于所降低的分辨率的幅度,确定视频增强的效果,其中,分辨率降低幅度越大,确定的增强效果越强。
可以理解的是,分辨率越高的视频对应的视频效果越好。那么在分辨率降低幅度较大的情况下,所呈现的视频效果就越差,那么在这种情况下,就需要更大程度的视频增强效果,来保证视频较高的视觉体验。例如,在用户选择的分辨率为超清的情况下,将超清的分辨率降低到标清所对应的视频增强幅度,会大于在将超清降低到高清所对应的视频增强幅度,进而所对应的增强效果越强。
步骤S350:基于所述确定的视频增强效果进行视频增强。
本申请提供的一种视频增强控制方法,在当检测到处于视频播放状态后,获取所播放视频对应的分辨率,并判断网络状态是否满足所述分辨率对应的播放条件,若所述网络状态不满足所述播放条件,降低所述所播放视频的分辨率,并且是根据分辨率的降低幅度,对所播放的视频进行视频增强。本方法通过在检测到当前的网络状态不满足所播放的视频的分辨率的情况下,降低当前所播放视频的分辨率,进而以适应当前的网络状态,并且同时开启视频增强,从而使得在网络不支持当前分辨率的情况下,依然可以使得所播放的视频可以有较高的播放视效,提升了用户体验。
请参阅图7,本申请提供的一种视频增强控制装置400,运行于电子设备,所述装置400包括:分辨率获取单元410、分辨率检测单元420以及视频增 强单元430。
分辨率获取单元410,用于当检测到处于视频播放状态后,获取所播放视频对应的分辨率;
分辨率检测单元420,用于判断网络状态是否满足所述分辨率对应的播放条件;
视频增强单元430,用于若所述网络状态不满足所述播放条件,降低所述所播放视频的分辨率,对所播放的视频进行视频增强。
本申请提供的一种视频增强控制装置,在当检测到处于视频播放状态后,获取所播放视频对应的分辨率,并判断网络状态是否满足所述分辨率对应的播放条件,若所述网络状态不满足所述播放条件,降低所述所播放视频的分辨率,对所播放的视频进行视频增强。本方法通过在检测到当前的网络状态不满足所播放的视频的分辨率的情况下,降低当前所播放视频的分辨率,进而以适应当前的网络状态,并且同时开启视频增强,从而使得在网络不支持当前分辨率的情况下,依然可以使得所播放的视频可以有较高的播放视效,提升了用户体验。
请参阅图8,本申请提供的一种视频增强控制装置500,运行于电子设备,所述装置500包括:分辨率获取单元510、分辨率检测单元520、分辨率控制单元530以及视频增强单元540。
分辨率获取单元510,用于当检测到处于视频播放状态后,获取所播放视频对应的分辨率。
分辨率检测单元520,用于判断网络状态是否满足所述分辨率对应的播放条件。
分辨率控制单元530,用于若所述网络状态不满足所述播放条件,降低所述所播放视频的分辨率,
视频增强单元540,用于若所述网络状态不满足所述播放条件,对所播放的视频进行视频增强。
分辨率控制单元530,还用于若判定当前的网络状态满足所述播放条件,提升所述所播放视频的分辨率。
作为一种方式,所述分辨率控制单元530,还用于若判定当前的网络状态满足所述播放条件,提升所述所播放视频的分辨率到目标分辨率。
作为一种方式,所述视频增强单元540,具体用于若判定当前的网络状态满足所述播放条件,提升所述所播放视频的分辨率的步骤之后还包括:停止对所述所播放的视频进行视频增强。
可选的,所述视频增强单元540,具体用于获取视频画面的参数;基于所述参数确定关闭视频增强的时刻;在所述时刻开始关闭对所述所播放的视频进行视频增强。
作为一种方式,所述视频增强单元540,具体用于判断视频画面的亮度是否低于指定亮度;若判定视频画面的亮度低于指定亮度,将检测到视频画面的亮度低于指定亮度的时刻作为关闭视频增强的时刻。
可选的,所述视频增强单元540,具体用于若判定视频画面的亮度低于 指定亮度,获取检测到视频画面的亮度低于指定亮度的时刻之后的多帧视频画面;基于所述多帧视频画面的亮度,计算亮度低于所述指定亮度的持续时间长度;若判定所述时间长度大于指定长度,将检测到视频画面的亮度低于指定亮度的时刻作为关闭视频增强的时刻。
可以理解的是,当视频画面的亮度低于指定亮度的情况下,用户对于视频画面的内容识别度相较于视频画面的亮度高于指定亮度的情况下更差。例如,当视频画面所显示的内容是在白天,那么对于视频画面是否清晰,用户感知较为敏感,而当视频画面所显示的内容是在夜晚,那么用户对于视频的清晰度是否清晰感知较差。那么在这种情况下,若在将检测到视频画面的亮度低于指定亮度的时刻作为关闭视频增强的时刻,可以在进行视频增强关闭时,减小用户识别的概率,进而使得可以在用户无感知或者感知较小的情况下,完成视频增强的关闭,以提升用户体验。
本申请提供的一种视频增强控制装置,在当检测到处于视频播放状态后,获取所播放视频对应的分辨率,并判断网络状态是否满足所述分辨率对应的播放条件,若所述网络状态不满足所述播放条件,降低所述所播放视频的分辨率,对所播放的视频进行视频增强。而当在检测到网络又满足播放条件以后,开始提升所述所播放视频的分辨率,并根据分辨率的提升,降低视频增强效果,进而降低功耗。本方法通过在检测到当前的网络状态不满足所播放的视频的分辨率的情况下,降低当前所播放视频的分辨率,进而以适应当前的网络状态,并且同时开启视频增强,从而使得在网络不支持当前分辨率的情况下,依然可以使得所播放的视频可以有较高的播放视效,提升了用户体验。
请参阅图9,本申请提供的一种视频增强控制装置600,运行于电子设备,所述装置600包括:分辨率获取单元610、分辨率检测单元620、分辨率控制单元630、分辨率效果识别单元640以及视频增强单元650。
分辨率获取单元610,用于当检测到处于视频播放状态后,获取所播放视频对应的分辨率。
分辨率检测单元620,用于判断网络状态是否满足所述分辨率对应的播放条件。
分辨率控制单元630,用于若所述网络状态不满足所述播放条件,降低所述所播放视频的分辨率。
分辨率效果识别单元640,用于基于所降低的分辨率的幅度,确定视频增强的效果,其中,分辨率降低幅度越大,确定的增强效果越强。
视频增强单元650,用于基于所述确定的视频增强效果进行视频增强。
本申请提供的一种视频增强控制装置,在当检测到处于视频播放状态后,获取所播放视频对应的分辨率,并判断网络状态是否满足所述分辨率对应的播放条件,若所述网络状态不满足所述播放条件,降低所述所播放视频的分辨率,并且是根据分辨率的降低幅度,对所播放的视频进行视频增强。本方法通过在检测到当前的网络状态不满足所播放的视频的分辨率的情况下,降低当前所播放视频的分辨率,进而以适应当前的网络状态,并且同时开启视 频增强,从而使得在网络不支持当前分辨率的情况下,依然可以使得所播放的视频可以有较高的播放视效,提升了用户体验。
需要说明的是,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性。另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。
需要说明的是,本申请中具体如何根据音频编码类型对音频数据进行编码是可以采用现有的技术,本申请就不再细述。
综上所述,本申请提供的一种视频增强控制方法、装置、电子设备及存储介质,在当检测到处于视频播放状态后,获取所播放视频对应的分辨率,并判断网络状态是否满足所述分辨率对应的播放条件,若所述网络状态不满足所述播放条件,降低所述所播放视频的分辨率,对所播放的视频进行视频增强。本方法通过在检测到当前的网络状态不满足所播放的视频的分辨率的情况下,降低当前所播放视频的分辨率,进而以适应当前的网络状态,并且同时开启视频增强,从而使得在网络不支持当前分辨率的情况下,依然可以使得所播放的视频可以有较高的播放视效,提升了用户体验。
下面将结合图10对本申请提供的一种电子设备进行说明。
请参阅图10,基于上述的视频增强控制方法、装置,本申请实施例还提供的另一种可以执行前述视频增强控制方法的电子设备100。电子设备100包括相互耦合的一个或多个(图中仅示出一个)处理器102、存储器104、网络模块106、视频编解码器108、以及屏幕112。其中,该存储器104中存储有可以执行前述实施例中内容的程序,而处理器102可以执行该存储器104中存储的程序。
其中,处理器102可以包括一个或者多个处理核。处理器102利用各种接口和线路连接整个电子设备100内的各个部分,通过运行或执行存储在存储器104内的指令、程序、代码集或指令集,以及调用存储在存储器104内的数据,执行电子设备100的各种功能和处理数据。可选地,处理器102可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器102可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器102中,单独通过一块通信芯片进行实现。
存储器104可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器104可用于存储指令、程序、代码、代码集或指令集。存储器104可包括存储程序区和存储数据区,例如, 存储器104中可以存储有视频增强控制装置。该视频增强控制装置可以为前述的装置400、装置500或者装置600。其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储终端100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。
所述网络模块106用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯,例如和无线接入点进行通讯。所述网络模块106可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。所述网络模块106可与各种网络如互联网、企业内部网、无线网络进行通讯或者通过无线网络与其他设备进行通讯。上述的无线网络可包括蜂窝式电话网、无线局域网或者城域网。
该视频编解码器108可以用于对网络模块106从网络请求的数据进行解码,以便传输到屏幕112进行显示。具体的,视频编解码器108可以为GPU、专用的DSP、FPGA、ASIC芯片等。
请参考图11,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质800中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。
计算机可读存储介质800可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质800包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质800具有执行上述方法中的任何方法步骤的程序代码810的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码810可以例如以适当形式进行压缩。
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。

Claims (20)

  1. 一种视频增强控制方法,其特征在于,应用于电子设备,所述方法包括:
    当检测到处于视频播放状态后,获取所播放视频对应的分辨率;
    判断网络状态是否满足所述分辨率对应的播放条件;
    若所述网络状态不满足所述播放条件,降低所述所播放视频的分辨率,对所播放的视频进行视频增强,所述视频增强包括对所播放视频的图像进行增强。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    若判定当前的网络状态满足所述播放条件,提升所述所播放视频的分辨率。
  3. 根据权利要求2所述的方法,其特征在于,所述若判定当前的网络状态满足所述播放条件,提升所述所播放视频的分辨率的步骤包括:
    若判定当前的网络状态满足所述播放条件,提升所述所播放视频的分辨率到目标分辨率。
  4. 根据权利要求2所述的方法,其特征在于,所述若判定当前的网络状态满足所述播放条件,提升所述所播放视频的分辨率的步骤之后还包括:
    停止对所述所播放的视频进行视频增强。
  5. 根据权利要求4所述的方法,其特征在于,所述停止对所述所播放的视频进行视频增强的步骤包括:
    获取视频画面的参数;
    基于所述参数确定关闭视频增强的时刻;
    在所述时刻开始关闭对所述所播放的视频进行视频增强。
  6. 根据权利要求5所述的方法,其特征在于,所述参数包括亮度,所述基于所述参数确定关闭视频增强的时刻的步骤包括:
    判断视频画面的亮度是否低于指定亮度;
    若判定视频画面的亮度低于指定亮度,将检测到视频画面的亮度低于指定亮度的时刻作为关闭视频增强的时刻。
  7. 根据权利要求6所述的方法,其特征在于,所述若判定视频画面的亮度低于指定亮度,将检测到视频画面的亮度低于指定亮度的时刻作为关闭视频增强的时刻的步骤包括:
    若判定视频画面的亮度低于指定亮度,获取检测到视频画面的亮度低于指定亮度的时刻之后的多帧视频画面;
    基于所述多帧视频画面的亮度,计算亮度低于所述指定亮度的持续时间长度;
    若判定所述时间长度大于指定长度,将检测到视频画面的亮度低于指定亮度的时刻作为关闭视频增强的时刻。
  8. 根据权利要求1所述的方法,其特征在于,所述若所述网络状态不 满足所述播放条件,降低所述所播放视频的分辨率,对所播放的视频进行视频增强的步骤包括:
    若所述网络状态不满足所述播放条件,降低所述所播放视频的分辨率;
    基于所降低的分辨率的幅度,确定视频增强的效果,其中,分辨率降低幅度越大,确定的增强效果越强;
    基于所述确定的视频增强效果进行视频增强。
  9. 根据权利要求1-8任一所述的方法,其特征在于,所述对所播放的视频进行视频增强,所述视频增强包括对所播放视频的图像进行增强的步骤包括:
    对所播放视频的图像参数进行调节,以增强所述图像进行增强。
  10. 根据权利要求9所述的方法,其特征在于,所述图像参数包括清晰度调节参数、镜头畸变控制参数、色域控制参数、色彩调节参数、锐度调节参数、亮度调节参数、对比度调节参数、降噪控制参数以及饱和度调节参数中的至少一个。
  11. 根据权利要求1-10任一所述的方法,其特征在于,所述获取所播放视频对应的分辨率的步骤包括:
    获取所播放的视频的一帧图像的分辨率作为第一待对比分辨率;
    获取存储在本地的表征用户所选择的分辨率作为第二待对比分辨率;
    将所述第一待对比分辨率与所述第二待对比分辨率进行比对;
    若所述第一待对比分辨率与所述第二待对比分辨率相同,将所述第一待对比分辨率与所述第二待对比分辨率中的任意一个作为所播放视频对应的分辨率;
    若所述第一待对比分辨率与所述第二待对比分辨率不相同,将所述第一待对比分辨率作为所播放视频对应的分辨率。
  12. 根据权利要求1-11任一所述的方法,其特征在于,所述判断网络状态是否满足所述分辨率对应的播放条件的步骤包括:
    获取所播放视频的分辨率对应的传输速率;
    获取当前所接入网络的传输速率;
    将所述当前所接入网络的传输速率与所述所播放视频的分辨率对应的传输速率进行比对;
    若所述当前所接入网络的传输速率不小于所述所播放视频的分辨率对应的传输速率,判定网络状态满足所述分辨率对应的播放条件;
    若所述当前所接入网络的传输速率小于所述所播放视频的分辨率对应的传输速率,判定网络状态不满足所述分辨率对应的播放条件。
  13. 根据权利要求1-12任一所述的方法,其特征在于,所述方法还包括:
    若所述网络状态满足所述播放条件,以当前的分辨率播放视频。
  14. 根据权利要求1-13任一所述的方法,其特征在于,所述当检测到处于视频播放状态后,获取所播放视频对应的分辨率的步骤之前包括:
    检测是否有设定的视频播放应用程序在运行;
    若检测到有设定的视频播放应用程序在运行,判定为检测到处于视频播 放状态。
  15. 根据权利要求1-13任一所述的方法,其特征在于,所述当检测到处于视频播放状态后,获取所播放视频对应的分辨率的步骤之前包括:
    获取当前在前台运行的应用程序;
    检测所述应用程序是否在预先建立的视频播放应用程序的名单内;
    若是,判定为检测到处于视频播放状态。
  16. 根据权利要求1-13任一所述的方法,其特征在于,所述当检测到处于视频播放状态后,获取所播放视频对应的分辨率的步骤之前包括:
    检测是否有音频输出;
    若有,检测是否有视频播放应用程序运行;
    若是,判定为检测到处于视频播放状态。
  17. 一种视频增强控制装置,其特征在于,运行于电子设备,所述装置包括:
    分辨率获取单元,用于当检测到处于视频播放状态后,获取所播放视频对应的分辨率;
    分辨率检测单元,用于判断网络状态是否满足所述分辨率对应的播放条件;
    视频增强单元,用于若所述网络状态不满足所述播放条件,降低所述所播放视频的分辨率,对所播放的视频进行视频增强,所述视频增强包括对所播放视频的图像进行增强。
  18. 根据权利要求17所述的装置,其特征在于,所述视频增强单元还用于若判定当前的网络状态满足所述播放条件,提升所述所播放视频的分辨率。
  19. 一种电子设备,其特征在于,包括一个或多个处理器、视频编解码器以及存储器;
    一个或多个程序,其中所述一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行权利要求1-16任一所述的方法。
  20. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有程序代码,其中,在所述程序代码由处理器运行时执行权利要求1-16任一所述的方法。
PCT/CN2019/102862 2018-11-27 2019-08-27 视频增强控制方法、装置、电子设备及存储介质 WO2020107971A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
KR1020217019549A KR102534443B1 (ko) 2018-11-27 2019-08-27 비디오 증강 제어 방법, 장치, 전자 기기 및 저장 매체
EP19889127.7A EP3886447A4 (en) 2018-11-27 2019-08-27 VIDEO ENHANCEMENT CONTROL METHOD AND APPARATUS, ELECTRONIC DEVICE AND MEMORY MEDIA
JP2021529859A JP7169449B2 (ja) 2018-11-27 2019-08-27 映像増強制御方法、装置、電子機器及び記憶媒体
US17/329,100 US11627369B2 (en) 2018-11-27 2021-05-24 Video enhancement control method, device, electronic device, and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811429235.7 2018-11-27
CN201811429235.7A CN109688465B (zh) 2018-11-27 2018-11-27 视频增强控制方法、装置以及电子设备

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/329,100 Continuation US11627369B2 (en) 2018-11-27 2021-05-24 Video enhancement control method, device, electronic device, and storage medium

Publications (1)

Publication Number Publication Date
WO2020107971A1 true WO2020107971A1 (zh) 2020-06-04

Family

ID=66184997

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/102862 WO2020107971A1 (zh) 2018-11-27 2019-08-27 视频增强控制方法、装置、电子设备及存储介质

Country Status (6)

Country Link
US (1) US11627369B2 (zh)
EP (1) EP3886447A4 (zh)
JP (1) JP7169449B2 (zh)
KR (1) KR102534443B1 (zh)
CN (1) CN109688465B (zh)
WO (1) WO2020107971A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114173199A (zh) * 2021-11-24 2022-03-11 深圳Tcl新技术有限公司 一种视频输出方法、装置、智能设备及存储介质
CN114938472A (zh) * 2022-06-28 2022-08-23 北京奇艺世纪科技有限公司 视频播放方法、装置、电子设备及计算机可读存储介质

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109688465B (zh) * 2018-11-27 2020-12-29 Oppo广东移动通信有限公司 视频增强控制方法、装置以及电子设备
CN112019918B (zh) * 2019-05-28 2023-05-26 杭州海康威视数字技术股份有限公司 一种视频播放方法及设备
CN112910875B (zh) * 2021-01-27 2023-06-30 维沃移动通信有限公司 显示方法及装置

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102204272A (zh) * 2010-12-31 2011-09-28 华为技术有限公司 流媒体中播放时间点跳转后的处理方法及装置
CN103338401A (zh) * 2013-06-03 2013-10-02 贝壳网际(北京)安全技术有限公司 用于移动终端浏览器中的视频播放控制方法、装置和系统
US20140136686A1 (en) * 2012-11-09 2014-05-15 Institute For Information Industry Dynamic resolution regulating system and dynamic resolution regulating method
CN103945240A (zh) * 2014-04-17 2014-07-23 海信集团有限公司 一种基于视频聚合的视频播放方法及装置
CN104010232A (zh) * 2014-05-23 2014-08-27 惠州Tcl移动通信有限公司 一种智能播放在线视频的方法、系统、播放器及移动终端
CN105263066A (zh) * 2014-06-13 2016-01-20 珠海全志科技股份有限公司 移动设备视频流传输控制方法及系统
CN105392029A (zh) * 2015-11-09 2016-03-09 Tcl集团股份有限公司 一种hls点播和直播的实现方法及系统
CN105979367A (zh) * 2016-05-25 2016-09-28 乐视控股(北京)有限公司 播放控制方法及装置
CN106791927A (zh) * 2016-12-23 2017-05-31 福建帝视信息科技有限公司 一种基于深度学习的视频增强与传输方法
CN109688465A (zh) * 2018-11-27 2019-04-26 Oppo广东移动通信有限公司 视频增强控制方法、装置以及电子设备

Family Cites Families (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6920567B1 (en) * 1999-04-07 2005-07-19 Viatech Technologies Inc. System and embedded license control mechanism for the creation and distribution of digital content files and enforcement of licensed use of the digital content files
US20020180752A1 (en) 2001-04-02 2002-12-05 Pelco Device and method for displaying variable brightness characters
JP2010199820A (ja) 2009-02-24 2010-09-09 Kenwood Corp ネットワーク動画配信システム及び動画受信装置
US20120320966A1 (en) * 2010-03-09 2012-12-20 Telegent Systems Inc. c/o M & C Corporate Services Limited Adaptive video decoding circuitry and techniques
US20120218312A1 (en) * 2011-02-24 2012-08-30 Research In Motion Limited System and method for adjusting display regions for a display on an electronic device
JP2013225101A (ja) * 2012-03-22 2013-10-31 Ricoh Co Ltd プロジェクタ
JP5403450B1 (ja) 2013-02-25 2014-01-29 清一 合志 画像処理装置、画像処理方法
EP2900016B1 (en) * 2014-01-28 2018-10-24 Openet Telecom Ltd. System and Method for Performing Network Selection
CN105592322B (zh) * 2014-09-19 2019-06-28 青岛海尔电子有限公司 一种媒体数据的优化方法及装置
KR102016690B1 (ko) * 2014-09-26 2019-08-30 후아웨이 테크놀러지 컴퍼니 리미티드 애플리케이션 프로그램 제어 방법 및 장치, 그리고 전자 장치
US10021221B2 (en) 2015-02-24 2018-07-10 Citrix Systems, Inc. Methods and systems for detection and classification of multimedia content in secured transactions using pattern matching
CN106162316A (zh) * 2015-04-15 2016-11-23 腾讯科技(深圳)有限公司 一种视频流的数据处理方法、装置和系统
CN105204734A (zh) * 2015-09-07 2015-12-30 上海创功通讯技术有限公司 亮度调节方法及系统
CN105654446A (zh) * 2016-02-02 2016-06-08 广东欧珀移动通信有限公司 一种视频清晰度的调整方法及装置
US10388247B2 (en) 2016-03-29 2019-08-20 Bby Solutions, Inc. Dynamic display device adjustment for streamed video
CN105812711B (zh) 2016-05-05 2019-06-28 广东小天才科技有限公司 视频通话过程中优化图像质量的方法及系统
CN106162224A (zh) * 2016-07-26 2016-11-23 北京金山安全软件有限公司 一种传输视频的方法、装置及电子设备
US10416511B2 (en) * 2016-08-31 2019-09-17 Panasonic Liquid Crystal Display Co., Ltd. Liquid crystal display device
GB2603878B (en) * 2017-05-19 2022-10-26 Displaylink Uk Ltd Adaptive Compression by Light Level
CN108111910B (zh) 2017-12-22 2020-01-21 烽火通信科技股份有限公司 一种调整视频播放清晰度的方法和系统

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102204272A (zh) * 2010-12-31 2011-09-28 华为技术有限公司 流媒体中播放时间点跳转后的处理方法及装置
US20140136686A1 (en) * 2012-11-09 2014-05-15 Institute For Information Industry Dynamic resolution regulating system and dynamic resolution regulating method
CN103338401A (zh) * 2013-06-03 2013-10-02 贝壳网际(北京)安全技术有限公司 用于移动终端浏览器中的视频播放控制方法、装置和系统
CN103945240A (zh) * 2014-04-17 2014-07-23 海信集团有限公司 一种基于视频聚合的视频播放方法及装置
CN104010232A (zh) * 2014-05-23 2014-08-27 惠州Tcl移动通信有限公司 一种智能播放在线视频的方法、系统、播放器及移动终端
CN105263066A (zh) * 2014-06-13 2016-01-20 珠海全志科技股份有限公司 移动设备视频流传输控制方法及系统
CN105392029A (zh) * 2015-11-09 2016-03-09 Tcl集团股份有限公司 一种hls点播和直播的实现方法及系统
CN105979367A (zh) * 2016-05-25 2016-09-28 乐视控股(北京)有限公司 播放控制方法及装置
CN106791927A (zh) * 2016-12-23 2017-05-31 福建帝视信息科技有限公司 一种基于深度学习的视频增强与传输方法
CN109688465A (zh) * 2018-11-27 2019-04-26 Oppo广东移动通信有限公司 视频增强控制方法、装置以及电子设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3886447A4 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114173199A (zh) * 2021-11-24 2022-03-11 深圳Tcl新技术有限公司 一种视频输出方法、装置、智能设备及存储介质
CN114173199B (zh) * 2021-11-24 2024-02-06 深圳Tcl新技术有限公司 一种视频输出方法、装置、智能设备及存储介质
CN114938472A (zh) * 2022-06-28 2022-08-23 北京奇艺世纪科技有限公司 视频播放方法、装置、电子设备及计算机可读存储介质
CN114938472B (zh) * 2022-06-28 2023-09-22 北京奇艺世纪科技有限公司 视频播放方法、装置、电子设备及计算机可读存储介质

Also Published As

Publication number Publication date
US20210281911A1 (en) 2021-09-09
EP3886447A4 (en) 2022-04-06
JP2022514198A (ja) 2022-02-10
JP7169449B2 (ja) 2022-11-10
KR20210091812A (ko) 2021-07-22
KR102534443B1 (ko) 2023-05-26
US11627369B2 (en) 2023-04-11
EP3886447A1 (en) 2021-09-29
CN109688465A (zh) 2019-04-26
CN109688465B (zh) 2020-12-29

Similar Documents

Publication Publication Date Title
WO2020107971A1 (zh) 视频增强控制方法、装置、电子设备及存储介质
KR102558385B1 (ko) 비디오 증강 제어 방법, 장치, 전자 기기 및 저장 매체
CN109151573B (zh) 视频增强控制方法、装置以及电子设备
US11456013B2 (en) Video decoding control method, electronic device, and storage medium
US20110026591A1 (en) System and method of compressing video content
US11985358B2 (en) Artifact removal method and apparatus based on machine learning, and method and apparatus for training artifact removal model based on machine learning
WO2020038127A1 (zh) 解码方法、装置、电子设备以及存储介质
CN109618228B (zh) 视频增强控制方法、装置以及电子设备
CN109587561B (zh) 视频处理方法、装置、电子设备及存储介质
WO2020078130A1 (zh) 视频处理方法、装置、电子设备以及存储介质
CN109587555B (zh) 视频处理方法、装置、电子设备及存储介质
WO2020107970A1 (zh) 视频解码方法、装置、电子设备及存储介质
CN109120979B (zh) 视频增强控制方法、装置以及电子设备
CN109218803B (zh) 视频增强控制方法、装置以及电子设备
CN109257636B (zh) 视频增强的切换方法、装置、电子设备及存储介质
US20230237632A1 (en) Electronic device and operating method thereof
CN109712100B (zh) 视频增强控制方法、装置以及电子设备
CN113507643A (zh) 视频处理方法、装置、终端及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19889127

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2021529859

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 20217019549

Country of ref document: KR

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2019889127

Country of ref document: EP

Effective date: 20210624