CN111182351A - Video playing processing method and device, storage medium and terminal - Google Patents
Video playing processing method and device, storage medium and terminal Download PDFInfo
- Publication number
- CN111182351A CN111182351A CN202010186913.2A CN202010186913A CN111182351A CN 111182351 A CN111182351 A CN 111182351A CN 202010186913 A CN202010186913 A CN 202010186913A CN 111182351 A CN111182351 A CN 111182351A
- Authority
- CN
- China
- Prior art keywords
- component
- video
- adjusting
- chrominance
- video playing
- 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.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 31
- 238000000034 method Methods 0.000 claims abstract description 26
- 238000012545 processing Methods 0.000 claims abstract description 24
- 241000023320 Luma <angiosperm> Species 0.000 claims description 9
- OSWPMRLSEDHDFF-UHFFFAOYSA-N methyl salicylate Chemical compound COC(=O)C1=CC=CC=C1O OSWPMRLSEDHDFF-UHFFFAOYSA-N 0.000 claims description 9
- 238000000926 separation method Methods 0.000 claims description 5
- 238000000605 extraction Methods 0.000 claims description 3
- 230000000694 effects Effects 0.000 abstract description 8
- 230000006870 function Effects 0.000 description 11
- 238000010586 diagram Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 230000003321 amplification Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/44—Processing 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/4402—Processing 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
- H04N21/47205—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for manipulating displayed content, e.g. interacting with MPEG-4 objects, editing locally
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/485—End-user interface for client configuration
- H04N21/4854—End-user interface for client configuration for modifying image parameters, e.g. image brightness, contrast
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Databases & Information Systems (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The embodiment of the application discloses a video playing processing method, a video playing processing device, a storage medium and a terminal. The video playing processing method comprises the following steps: acquiring a video frame image corresponding to a video playing interface; extracting a first luminance component and a first chrominance component based on the video frame image; adjusting the first luminance component and the first chrominance component according to a user operation; and performing video playing according to the adjusted brightness component and the adjusted chrominance component. According to the video playing method and device, the luminance component and the chrominance component of the video image data are separated, so that a user can respectively adjust the luminance component and the chrominance component according to own requirements, a target video playing effect is achieved, and the video playing efficiency can be improved.
Description
Technical Field
The application relates to the field of mobile terminal application, in particular to a video playing processing method, a video playing processing device, a storage medium and a terminal.
Background
With the continuous popularization of intelligent terminals, the video playing function has become a high-frequency function in the process of using the intelligent terminal by users. Various video applications are also in endless, and the amateur life of people is greatly enriched.
In the related art, when the video is applied to playing the video, a color picture is displayed on a playing interface, but for some users who have special needs or hobbies on color, the experience feeling brought by the method is poor.
Disclosure of Invention
The embodiment of the application provides a video playing processing method and device, a storage medium and a terminal, which can improve video playing efficiency.
The embodiment of the application provides a video playing processing method, which comprises the following steps:
acquiring a video frame image corresponding to a video playing interface;
extracting a first luminance component and a first chrominance component based on the video frame image;
adjusting the first luminance component and the first chrominance component according to a user operation;
and performing video playing according to the adjusted brightness component and the adjusted chrominance component.
Correspondingly, an embodiment of the present application further provides a video playing processing apparatus, including:
the first acquisition unit is used for acquiring a video frame image corresponding to the video playing interface;
an extraction unit configured to extract a first luminance component and a first chrominance component based on the video frame image;
an adjusting unit, configured to adjust the first luminance component and the first chrominance component according to a user operation;
and the playing unit is used for carrying out video playing according to the adjusted brightness component and the adjusted chrominance component.
Correspondingly, the embodiment of the present application further provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to perform the steps in the video playing processing method as described above.
Correspondingly, an embodiment of the present application further provides a terminal, which includes a processor and a memory, where the memory stores a plurality of instructions, and the processor loads the instructions to execute the steps in the video playing processing method described above.
According to the video playing method and device, the luminance component and the chrominance component of the video image data are separated, so that a user can respectively adjust the luminance component and the chrominance component according to own requirements, a target video playing effect is achieved, and the video playing efficiency can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a first video playing processing method according to an embodiment of the present application.
Fig. 2 is a flowchart illustrating a second video playing processing method according to an embodiment of the present application.
Fig. 3 is a schematic view of a video playing interface according to an embodiment of the present application.
Fig. 4 is a schematic view of a user operation interface provided in an embodiment of the present application.
Fig. 5 is a schematic view of a parameter adjustment interface according to an embodiment of the present application.
Fig. 6 is a block diagram of a first video playback processing apparatus according to an embodiment of the present disclosure.
Fig. 7 is a block diagram of a second video playback processing apparatus according to an embodiment of the present application.
Fig. 8 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Based on the above problems, embodiments of the present application provide a video playing processing method, an apparatus, a storage medium, and a terminal, which can effectively improve efficiency of clearing junk data in a memory of the terminal. The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a video playing processing method according to an embodiment of the present disclosure. The video play processing method may be applied to mobile terminals such as terminals, tablet computers, notebook computers, palmtop computers, Portable Media Players (PMPs), and fixed terminals such as desktop computers. The specific flow of the video playing processing method can be as follows:
101. and acquiring a video frame image corresponding to the video playing interface.
Specifically, before the video frame image corresponding to the video playing interface is obtained, the state of the currently played video file at the terminal may be determined. The state of the video file at the terminal may be various, such as cached, uncached, cached, and the like.
After determining the status of the video file, a video frame image of the video file may be acquired. Specifically, the mode of acquiring the video frame image may be determined according to the state of the video file, for example, when the state of the video file is cached, the video file may be represented as a local file, and when the video frame image is acquired, the video frame image data may be directly extracted from the video file data stored in the terminal; for another example, when the video file is not cached, it may indicate that the video file is an online playing video, and when the video frame image is obtained, the video frame image may be obtained from the server side, and so on.
For example, the currently played video file may be in an uncached state, that is, the currently played video file may be played online, and in the playing process of the video file, the video frame image may be acquired, and the video frame image may be acquired from the server.
102. A first luminance component and a first chrominance component are extracted based on a video frame image.
Specifically, a first luminance component and a first chrominance component are extracted based on the video frame image, image information of the video frame image may be acquired, and the first luminance component and the first chrominance component are extracted according to the acquired image information. The image information may include resolution, color, brightness, and the like, among others.
In some embodiments, the step of "extracting a first luminance component and a first chrominance component based on the video frame image" may include the following processes:
acquiring color information of the video frame image in a specified color space;
and performing separation processing on the color information to obtain the first brightness component and the first chrominance component.
Specifically, the color information of the video frame image in a designated color space is obtained, where the color space may include multiple color spaces, such as RGB (Red, Green, Blue) color space, CMY (Cyan, Magenta, Yellow) color space, YUV (luminance, chrominance) color space, and the like, and different color spaces are composed of different parameters, and the color is described in different manners.
The designated color space in the embodiment of the present application may be a YUV color space, because the present solution designs the video playing field, and the YUV color space is a color coding method adopted by the european television system, and is a color space adopted by a PAL (phase alternation Line) and SECAM (sequential Couleur a mean, which sequentially transmits and stores colors) analog color television systems.
YUV is a color space that describes color by luminance-chrominance difference. The luminance signal is often referred to as Y and the chrominance signal is composed of two mutually independent signals. Depending on the color system and format, the two chrominance signals are often referred to as UV. These are all generated by different coding formats, but in practice their concepts are substantially the same.
In a modern color television system, a three-tube color camera or a color CCD (Charge coupled device) camera is usually used for image capture, then the obtained color image signals are subjected to color separation and respective amplification and correction to obtain RGB, a luminance signal Y and two color difference signals B-Y (i.e., U) and R-Y (i.e., V) are obtained through a matrix conversion circuit, and finally, a transmitting end encodes the luminance signal and the color difference signals respectively and transmits the signals through the same channel. This color representation is called YUV color space representation. The importance of using the YUV color space is that its luminance signal Y and chrominance signal U, V are separate.
Specifically, color information of a video frame picture in a YUV color space is obtained, where the color information may include a luminance component (Y) and a chrominance component (UV), where before processing the color information, video bare data of the video frame picture may be obtained, the color data is extracted from the video bare data, the obtained color data is the color information, and then the color data may be separated, so that the luminance component and the chrominance component may be obtained. For example, the first luminance component acquired may be 10, the first chrominance component may be 10, and so on.
103. The first luminance component and the first chrominance component are adjusted according to a user operation.
Specifically, the first luminance component and the first chrominance component are adjusted according to user operation, and after the first luminance component and the first chrominance component are separated from the video frame image data, the first luminance component and the first chrominance component can be displayed on a current display screen interface, so that the user can adjust the first luminance component and the first chrominance component according to viewing requirements.
In some embodiments, the step of "adjusting the first luminance component and the first chrominance component according to a user operation" may include the following processes:
acquiring touch operation of a user on a video playing interface;
displaying a setting control on a current video playing interface according to the touch operation;
and triggering an adjusting instruction through the setting control, adjusting the first brightness component and the first chrominance component according to the adjusting instruction, and displaying the adjusted brightness component and chrominance component on a video playing interface.
Specifically, the touch operation of the user on the play interface is obtained, and the touch operation of the user on the play interface may include multiple types, for example, the user may perform an operation by touching the display screen in a click manner, a sliding manner, or the like. After the touch operation of the user is detected, the setting control can be displayed according to the touch operation of the user, and the setting control can be a setting button or the like, wherein before the setting button is displayed, the touch operation of the user can be compared with a preset touch operation, and whether the touch operation of the user is the preset touch operation is judged.
For example, the user touch operation may be a single-click display screen, the preset touch operation may be a double-click display screen, and if it is determined that the user touch operation does not conform to the preset touch operation, the setting button is not displayed; for another example, the user touch operation may be a single-click on the display screen, the preset touch operation may be a single-click on the display screen, and it may be determined that the user touch operation matches the preset touch operation, and then the setting button may be displayed. Touch operation is preset through setting, user misoperation can be avoided, and therefore the user experience of watching videos is influenced by displaying a setting button on a video playing interface.
After the setting button is displayed according to the touch operation of the user, the user can click the setting button to enter a setting interface, then receives an adjusting instruction, can adjust the first brightness component and the first chrominance component according to the adjusting instruction, and displays the adjusted brightness component and the adjusted chrominance component on a video playing interface. The adjustment instruction may be triggered by a user, and the luminance component and the chrominance component may be adjusted according to a user touch operation through a user touch operation and the like.
In some embodiments, the step of triggering an adjustment instruction through the setting control, and adjusting the first luminance component and the first chrominance component according to the adjustment instruction may include the following steps:
when receiving the moving operation of the first section of sliding block and the second adjusting sliding block, triggering an adjusting instruction;
acquiring a first moving distance of the first adjusting slide block;
acquiring a second moving distance of the second adjusting slide block;
and determining the adjusted brightness component according to the first moving distance, and determining the adjusted brightness component according to the second moving distance.
Specifically, after entering the setting interface according to the user touch operation, the setting interface may include a luminance component adjusting module, a chrominance component adjusting module, and the like, the luminance component adjusting module may include a first slider, and the user may adjust the first luminance component by sliding the first slider; the chrominance adjustment module may include a second slider by which a user may adjust the first chrominance component.
The first moving distance of the first slider is obtained, the adjusted luminance component can be determined by the first moving distance, and the corresponding relationship between the moving distance and the adjusted luminance component can be preset, for example, the moving distance can be 1 mm, the adjusted luminance component can be 10, and the like.
For example, the current first luminance component may be 10, and if the first slider is moved by 2 mm according to the user touch operation, the luminance component is adjusted to be 20, and the adjusted first luminance component is 30.
The second moving distance of the second slider is obtained, the adjusted chromaticity component can be determined by the second moving distance, and the corresponding relationship between the moving distance and the adjusted chromaticity component can be preset, for example, the moving distance can be 1 mm, the adjusted chromaticity component can be 20, and the like.
For example, the current first chromaticity component may be 10, and if the second slider is moved by 2 mm according to the user touch operation, the luminance component is adjusted to 40, and the adjusted first chromaticity component is 50.
In some embodiments, after the step "displaying a setting control on the current video playing interface according to the touch operation", the following steps may be further included:
if the user operation is not detected within a preset time period, acquiring a historical adjustment information set, wherein the historical adjustment information set comprises adjustment information of a plurality of historical playing video files;
and adjusting the first brightness component and the first chrominance component according to the historical adjustment information set.
Specifically, after the first luminance component and the first chrominance component are determined, in a preset time period, if a user operation is detected, a historical adjustment information set may be obtained, where the historical adjustment information set may include a plurality of videos watched by the user in a historical time, luminance components and chrominance components of the plurality of videos, and all information for adjusting and setting the luminance components and the chrominance components, so that the luminance components and the chrominance components may be adjusted according to the historical adjustment information set when the video is watched next time, and adjustment efficiency may be improved.
In some embodiments, the step of "adjusting the first luminance component and the first chrominance component according to the historical set of adjustment information" may comprise the steps of:
obtaining all historical brightness components and historical chrominance components according to the historical adjustment information set, and adjusting the historical brightness components and the historical chrominance components to obtain target brightness components and target chrominance components;
determining a brightness component with the minimum difference value with the first brightness component from all the historical brightness components as a second brightness component;
determining a chroma component with the minimum difference value with the first chroma component from all historical chroma components as a second chroma component;
adjusting the first brightness component based on a target brightness component corresponding to the second brightness component;
and adjusting the first chrominance component based on the target chrominance component corresponding to the second chrominance component.
Specifically, the historical adjustment information set may include adjustment information of a plurality of sample files, where a sample file may be a video file historically viewed by a user, and the adjustment information of a sample file may include an initial luminance component (historical luminance component) and an initial chrominance component (historical chrominance component) and an adjusted luminance component (target luminance component) and a chrominance component (target chrominance component) when the user views the sample file.
After the historical luminance components and the historical chrominance components of all the sample files are obtained, the historical luminance components can be compared with the first luminance component, and the historical luminance component with the smallest difference value with the first luminance component is determined to be used as a second luminance component; and comparing the historical chrominance component with the first chrominance component, and determining the historical chrominance component with the minimum difference value with the first chrominance component as a second chrominance component.
Specifically, a target luminance component corresponding to the second luminance component and a target chrominance component corresponding to the second chrominance component are obtained from the adjustment information set, and then the first luminance component may be adjusted based on the target luminance component corresponding to the second luminance component; and adjusting the first chrominance component based on the target chrominance component corresponding to the second chrominance component.
For example, the historical adjustment information set may include a first sample file, a second sample file, and the like, and the adjustment information corresponding to the first sample file may include that the first sample luminance component is 0, the first sample chrominance component is 0, the first target luminance component is 50, and the first target chrominance component is 50; the adjustment information corresponding to the second sample file may include that the second sample luma component is 100, the second sample chroma component is 50, the second target luma component is 30, the second target chroma component is 0, and the like, the first luma component may be 10, the first chroma component may be 50, it may be determined that the difference between the first sample luma component and the first luma component is minimum, and the difference between the second sample chroma component and the first chroma component is minimum, the first luma component may be adjusted to 50, and the first chroma component may be adjusted to 0.
104. And performing video playing according to the adjusted brightness component and the adjusted chrominance component.
Specifically, after the first luminance component and the first chrominance component are adjusted, the user can obtain the desired viewing effect, and then video playing can be performed according to the adjusted luminance component and chrominance component.
In the process of adjusting the brightness component and the chrominance component by the user, the adjusted picture can be displayed in real time by the video playing interface according to the adjustment operation of the user, so that the user can adjust the brightness component and the chrominance component more conveniently.
The embodiment of the application discloses a video playing processing method, which comprises the following steps: when a screen lightening instruction is detected, acquiring a video frame image corresponding to a video playing interface; extracting a first luminance component and a first chrominance component based on the video frame image; adjusting the first luminance component and the first chrominance component according to a user operation; and performing video playing according to the adjusted brightness component and the adjusted chrominance component. According to the video playing method and device, the luminance component and the chrominance component of the video image data are separated, so that a user can respectively adjust the luminance component and the chrominance component according to own requirements, a target video playing effect is achieved, and the video playing efficiency can be improved.
Referring to fig. 2, fig. 2 is a schematic flowchart of a second video playing processing method according to an embodiment of the present application. The specific scene application of the video playing processing method can be as follows:
201. and the terminal plays the video file selected by the user.
Specifically, before the terminal plays the video, the user may select the video file to play, and the user may play the video file in multiple ways, for example, the user may play the video through a player of the terminal itself, and the video played at this time may be a local video file (a cached video file or a video file shot by the user); the user can also play videos through other video playing applications installed on the terminal, the played video files can be local files or online video files, and if the online video files need to be played, network connection can be opened, and the video files can be obtained from the server side.
After the user determines the video playing mode and the video file, the terminal can start to play the video in the video playing mode selected by the user. Referring to fig. 3, fig. 3 is a schematic view of a video playing interface according to an embodiment of the present disclosure. When the video starts to be played, the terminal display screen interface starts to display the video playing picture.
202. And the terminal detects the touch operation of the user and acquires the current video frame picture according to the touch operation of the user.
Specifically, in the video playing process, when the touch operation of the user is detected, whether the user intends to perform parameter adjustment is determined according to the touch operation of the user. The terminal can preset operation, and whether the user needs to adjust the parameters or not is judged by matching the touch operation of the user with the preset operation.
For example, the preset operation may be long pressing of the display screen for 3 seconds, and when the touch operation of the user is detected and the touch operation of the user is long pressing of the display screen for 3 seconds, it may be determined that the user needs to perform parameter adjustment. Referring to fig. 4, fig. 4 is a schematic view of a user operation interface according to an embodiment of the present disclosure.
After the user touches the display screen, the playing interface is paused to display the current video frame picture, the user can start video playing again through the pause button at the lower left corner, and the user can enter the setting interface through the setting button at the upper right corner.
203. And the terminal acquires video data according to the video frame picture.
Specifically, after the user touches the terminal, the terminal display interface is a video frame picture paused by the user, and the terminal can acquire video data of the video frame picture through the video frame picture.
For example, video data may include resolution, brightness, color, noise, and so on.
204. The terminal separates a luminance component and a chrominance component from the video data.
Specifically, the terminal may separate the luminance component and the chrominance component from the video data, where the luminance component and the chrominance component are included in the color information, and may first obtain data related to the color information from the video data, and then separate the luminance component and the chrominance component from the obtained data related to the color information.
For example, the luminance component acquired to the current video frame picture may be 0, and the chrominance component may be 30.
205. The terminal adjusts the luminance component and the chrominance component.
Specifically, after the luminance component and the chrominance component are acquired, the current luminance component and the current chrominance component may be displayed on the setting interface. Referring to fig. 5, fig. 5 is a schematic view of a parameter adjustment interface according to an embodiment of the present application. After the user clicks the setting button of fig. 4, the parameter adjustment interface of fig. 5 may be entered, where fig. 5 includes a luminance component adjustment module and a chrominance component adjustment module, and the two adjustment modules respectively include an adjustment bar and an adjustment slider, and a display value on the right. When the luminance component and the chrominance component are adjusted, the user can adjust by moving the adjusting slider.
Specifically, in the adjusting process, when the user adjusts the slider to move to the right, the luminance component or the chrominance component may be increased, and when the user adjusts the slider to move to the left, the luminance component or the chrominance component may be decreased. Meanwhile, when the user moves the slider, the luminance component and the chrominance component which are synchronously adjusted in the right display numerical value frame can be displayed, the adjusted effect can be displayed on the video frame picture, and the user experience is greatly improved.
206. And the terminal plays the video based on the adjusted brightness component and the adjusted chroma component.
Specifically, after the user performs the luminance component and the chrominance component, the terminal may perform video playing according to the luminance component and the chrominance component adjusted by the user, and may store the luminance component and the chrominance component adjusted this time, so as to meet the requirement of the user when watching the video next time.
The embodiment of the application discloses a video playing processing method, which comprises the following steps: acquiring a video frame image corresponding to a video playing interface; extracting a first luminance component and a first chrominance component based on the video frame image; adjusting the first luminance component and the first chrominance component according to a user operation; and performing video playing according to the adjusted brightness component and the adjusted chrominance component. According to the video playing method and device, the luminance component and the chrominance component of the video image data are separated, so that a user can respectively adjust the luminance component and the chrominance component according to own requirements, a target video playing effect is achieved, and the video playing efficiency can be improved.
In order to better implement the video playing processing method provided by the embodiment of the present application, an embodiment of the present application further provides a device based on the video playing processing method. The meaning of the noun is the same as that in the video playing processing method, and specific implementation details can refer to the description in the method embodiment.
Referring to fig. 6, fig. 6 is a block diagram of a first video playback processing apparatus according to an embodiment of the present disclosure, which can be applied to a mobile terminal such as a terminal, a tablet computer, a notebook computer, a palm computer, a Portable Media Player (PMP), and a fixed terminal such as a desktop computer, and the apparatus includes:
a first obtaining unit 301, configured to obtain a video frame image corresponding to a video playing interface;
an extracting unit 302, configured to extract a first luminance component and a first chrominance component based on the video frame image;
an adjusting unit 303, configured to adjust the first luminance component and the first chrominance component according to a user operation;
and a playing unit 304, configured to perform video playing according to the adjusted luminance component and chrominance component.
In some embodiments, referring to fig. 7, fig. 7 is a block diagram of a second video playback processing apparatus according to an embodiment of the present disclosure, where the adjusting unit 303 may include:
the first obtaining subunit 3031 is configured to obtain a touch operation of a user on the video playing interface;
the display subunit 3032 is configured to display a setting control on the current video playing interface according to the touch operation;
the first adjusting subunit 3033 is configured to trigger an adjusting instruction through the setting control, adjust the first luminance component and the first chrominance component according to the adjusting instruction, and display the adjusted luminance component and chrominance component on a video playing interface.
In some embodiments, the setup control includes a first slider and a second slider;
the regulator subunit 3023 is particularly useful for: when receiving the moving operation of the first section of sliding block and the second adjusting sliding block, triggering an adjusting instruction; acquiring a first moving distance of the first adjusting slide block; acquiring a second moving distance of the second adjusting slide block; and determining the adjusted brightness component according to the first moving distance, and determining the adjusted brightness component according to the second moving distance.
In some embodiments, the video playback processing apparatus may further include:
a second obtaining unit, configured to obtain a historical adjustment information set if a user operation is not detected within a preset time period, where the historical adjustment information set includes adjustment information of a plurality of historical playing video files;
and the processing unit is used for adjusting the first brightness component and the first chrominance component according to the historical adjustment information set.
In some embodiments, the processing unit may include:
the first determining subunit is used for obtaining all historical brightness components and historical chrominance components according to the historical adjustment information set, and obtaining target brightness components and target chrominance components after the historical brightness components and the historical chrominance components are adjusted;
a second determining subunit, configured to determine, as a second luminance component, a luminance component having a smallest difference from the first luminance component from all the historical luminance components
A third determining subunit, configured to determine, as a second chrominance component, a chrominance component having a smallest difference value from the first chrominance component from all the historical chrominance components;
the second adjusting subunit is used for adjusting the first brightness component based on the target brightness component corresponding to the second brightness component;
and the third adjusting subunit is used for adjusting the first chrominance component by using the target chrominance component corresponding to the second chrominance component.
In some embodiments, the extraction unit 302 may include:
the second acquisition subunit is used for acquiring the color information of the video frame image in a specified color space;
and the separation subunit is configured to perform separation processing on the color information to obtain the first luminance component and the first chrominance component.
The embodiment of the application discloses video playing processing device, this video playing processing device includes: acquiring a video frame image corresponding to a video playing interface; extracting a first luminance component and a first chrominance component based on the video frame image; adjusting the first luminance component and the first chrominance component according to a user operation; and performing video playing according to the adjusted brightness component and the adjusted chrominance component. According to the video playing method and device, the luminance component and the chrominance component of the video image data are separated, so that a user can respectively adjust the luminance component and the chrominance component according to own requirements, a target video playing effect is achieved, and the video playing efficiency can be improved.
The embodiment of the application also provides a terminal. As shown in fig. 8, the terminal may include a Radio Frequency (RF) circuit 601, a memory 602 including one or more storage media, an input unit 603, a display unit 604, a sensor 605, an audio circuit 606, a Wireless Fidelity (WiFi) module 607, a processor 608 including one or more processing cores, and a power supply 609. Those skilled in the art will appreciate that the terminal structure shown in fig. 8 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 601 may be used for receiving and transmitting signals during the process of transmitting and receiving information, and in particular, for processing the received downlink information of the base station by one or more processors 608; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuit 601 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 601 may also communicate with networks and other devices via wireless communications.
The memory 602 may be used to store software programs and modules, and the processor 608 executes various functional applications and data processing by operating the software programs and modules stored in the memory 602. The memory 602 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like. Further, the memory 602 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 602 may also include a memory controller to provide the processor 608 and the input unit 603 access to the memory 602.
The input unit 603 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, input unit 603 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. The input unit 603 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 604 may be used to display information input by or provided to the user and various graphical user interfaces of the server, which may be made up of graphics, text, icons, video, and any combination thereof. The display unit 604 may include a display panel, and optionally, the display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 608 to determine the type of touch event, and the processor 608 then provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 8 the touch sensitive surface and the display panel are two separate components to implement input and output functions, in some embodiments the touch sensitive surface may be integrated with the display panel to implement input and output functions.
The terminal may also include at least one sensor 605, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that turns off the display panel and the backlight when the server moves to the ear.
WiFi belongs to short-distance wireless transmission technology, and the terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 607, and provides wireless broadband internet access for the user. Although fig. 8 shows the WiFi module 607, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope of not changing the essence of the application.
The processor 608 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the server and processes data by running or executing software programs and modules stored in the memory 602 and calling data stored in the memory 602, thereby performing overall monitoring of the terminal. Optionally, processor 608 may include one or more processing cores; preferably, the processor 608 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 608.
The terminal also includes a power supply 609 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 608 via a power management system that may be used to manage charging, discharging, and power consumption. The power supply 609 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Specifically, in this embodiment, the processor 608 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 602 according to the following instructions, and the processor 608 runs the application programs stored in the memory 602, thereby implementing various functions:
acquiring a video frame image corresponding to a video playing interface;
extracting a first luminance component and a first chrominance component based on the video frame image;
adjusting the first luminance component and the first chrominance component according to a user operation;
and performing video playing according to the adjusted brightness component and the adjusted chrominance component.
The embodiment of the application discloses a video playing processing method, a video playing processing device, a storage medium and a terminal. The video playing processing method comprises the following steps: acquiring a video frame image corresponding to a video playing interface; extracting a first luminance component and a first chrominance component based on the video frame image; adjusting the first luminance component and the first chrominance component according to a user operation; and performing video playing according to the adjusted brightness component and the adjusted chrominance component. According to the video playing method and device, the luminance component and the chrominance component of the video image data are separated, so that a user can respectively adjust the luminance component and the chrominance component according to own requirements, a target video playing effect is achieved, and the video playing efficiency can be improved.
It will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by instructions or by instructions controlling associated hardware, which may be stored in a storage medium and loaded and executed by a processor.
To this end, embodiments of the present application provide a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the video playback processing methods provided in the embodiments of the present application. For example, the instructions may perform the steps of:
acquiring a video frame image corresponding to a video playing interface; extracting a first luminance component and a first chrominance component based on the video frame image; adjusting the first luminance component and the first chrominance component according to a user operation; and performing video playing according to the adjusted brightness component and the adjusted chrominance component.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any video playing processing method provided in the embodiments of the present application, beneficial effects that can be achieved by any video playing processing method provided in the embodiments of the present application can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The video playing processing method, the video playing processing device, the storage medium and the terminal provided by the embodiment of the present application are introduced in detail, and a specific example is applied in the text to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Claims (10)
1. A video playing processing method is applied to a terminal and is characterized by comprising the following steps:
acquiring a video frame image corresponding to a video playing interface;
extracting a first luminance component and a first chrominance component based on the video frame image;
adjusting the first luminance component and the first chrominance component according to a user operation;
and performing video playing according to the adjusted brightness component and the adjusted chrominance component.
2. The method of claim 1, wherein the adjusting the first luma component and the first chroma component according to a user operation comprises:
acquiring touch operation of a user on a video playing interface;
displaying a setting control on a current video playing interface according to the touch operation;
and triggering an adjusting instruction through the setting control, adjusting the first brightness component and the first chrominance component according to the adjusting instruction, and displaying the adjusted brightness component and chrominance component on a video playing interface.
3. The method of claim 2, wherein the setup control comprises a first slider and a second slider;
the triggering an adjusting instruction through the setting control, and adjusting the first luminance component and the first chrominance component according to the adjusting instruction, includes:
when receiving the moving operation of the first section of sliding block and the second adjusting sliding block, triggering an adjusting instruction;
acquiring a first moving distance of the first adjusting slide block;
acquiring a second moving distance of the second adjusting slide block;
and determining the adjusted brightness component according to the first moving distance, and determining the adjusted brightness component according to the second moving distance.
4. The method according to claim 2, further comprising, after displaying a setting control on a current video playback interface according to the touch operation:
if the user operation is not detected within a preset time period, acquiring a historical adjustment information set, wherein the historical adjustment information set comprises adjustment information of a plurality of historical playing video files;
and adjusting the first brightness component and the first chrominance component according to the historical adjustment information set.
5. The method of claim 4, wherein the adjusting the first luma component and the first chroma component according to the historical set of adjustment information comprises:
obtaining all historical brightness components and historical chrominance components according to the historical adjustment information set, and adjusting the historical brightness components and the historical chrominance components to obtain target brightness components and target chrominance components;
determining a brightness component with the minimum difference value with the first brightness component from all the historical brightness components as a second brightness component;
determining a chroma component with the minimum difference value with the first chroma component from all historical chroma components as a second chroma component;
adjusting the first brightness component based on a target brightness component corresponding to the second brightness component;
and adjusting the first chrominance component based on the target chrominance component corresponding to the second chrominance component.
6. The method of claim 1, wherein extracting the first luma component and the first chroma component based on the video frame image comprises:
acquiring color information of the video frame image in a specified color space;
and performing separation processing on the color information to obtain the first brightness component and the first chrominance component.
7. A video playback processing apparatus, comprising:
the first acquisition unit is used for acquiring a video frame image corresponding to the video playing interface;
an extraction unit configured to extract a first luminance component and a first chrominance component based on the video frame image;
an adjusting unit, configured to adjust the first luminance component and the first chrominance component according to a user operation;
and the playing unit is used for carrying out video playing according to the adjusted brightness component and the adjusted chrominance component.
8. The apparatus of claim 7, wherein the adjustment unit comprises:
the first acquisition subunit is used for acquiring touch operation of a user on a video playing interface;
the display subunit is used for displaying a setting control on the current video playing interface according to the touch operation;
and the first adjusting subunit is used for triggering an adjusting instruction through the setting control, adjusting the first brightness component and the first chrominance component according to the adjusting instruction, and displaying the adjusted brightness component and chrominance component on a video playing interface.
9. A storage medium storing instructions adapted to be loaded by a processor to perform the steps of the video playback processing method according to any one of claims 1 to 6.
10. A terminal comprising a processor and a memory, the memory storing a plurality of instructions, the processor loading the instructions to perform the steps in the video playback processing method of any of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010186913.2A CN111182351A (en) | 2020-03-17 | 2020-03-17 | Video playing processing method and device, storage medium and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010186913.2A CN111182351A (en) | 2020-03-17 | 2020-03-17 | Video playing processing method and device, storage medium and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111182351A true CN111182351A (en) | 2020-05-19 |
Family
ID=70658542
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010186913.2A Pending CN111182351A (en) | 2020-03-17 | 2020-03-17 | Video playing processing method and device, storage medium and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111182351A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113986175A (en) * | 2021-10-29 | 2022-01-28 | 北京光启元数字科技有限公司 | Color selection method and device, electronic equipment and readable medium |
CN115623215A (en) * | 2022-12-20 | 2023-01-17 | 荣耀终端有限公司 | Method for playing video, electronic equipment and computer readable storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101873503A (en) * | 2009-12-09 | 2010-10-27 | 杭州海康威视软件有限公司 | Method and device for adjusting image property |
CN105302431A (en) * | 2014-05-30 | 2016-02-03 | 富士施乐株式会社 | Image processing apparatus, image processing method, and image processing system |
CN105405427A (en) * | 2015-12-04 | 2016-03-16 | 小米科技有限责任公司 | Facility brightness adjustment method and device |
JP2017062279A (en) * | 2015-09-24 | 2017-03-30 | キヤノン株式会社 | Image processing apparatus and image processing method |
CN106921840A (en) * | 2015-12-25 | 2017-07-04 | 掌赢信息科技(上海)有限公司 | Method for beautifying faces, equipment and system in a kind of instant video |
CN106954055A (en) * | 2016-01-14 | 2017-07-14 | 掌赢信息科技(上海)有限公司 | A kind of luminance video adjusting method and electronic equipment |
-
2020
- 2020-03-17 CN CN202010186913.2A patent/CN111182351A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101873503A (en) * | 2009-12-09 | 2010-10-27 | 杭州海康威视软件有限公司 | Method and device for adjusting image property |
CN105302431A (en) * | 2014-05-30 | 2016-02-03 | 富士施乐株式会社 | Image processing apparatus, image processing method, and image processing system |
JP2017062279A (en) * | 2015-09-24 | 2017-03-30 | キヤノン株式会社 | Image processing apparatus and image processing method |
CN105405427A (en) * | 2015-12-04 | 2016-03-16 | 小米科技有限责任公司 | Facility brightness adjustment method and device |
CN106921840A (en) * | 2015-12-25 | 2017-07-04 | 掌赢信息科技(上海)有限公司 | Method for beautifying faces, equipment and system in a kind of instant video |
CN106954055A (en) * | 2016-01-14 | 2017-07-14 | 掌赢信息科技(上海)有限公司 | A kind of luminance video adjusting method and electronic equipment |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113986175A (en) * | 2021-10-29 | 2022-01-28 | 北京光启元数字科技有限公司 | Color selection method and device, electronic equipment and readable medium |
CN115623215A (en) * | 2022-12-20 | 2023-01-17 | 荣耀终端有限公司 | Method for playing video, electronic equipment and computer readable storage medium |
CN115623215B (en) * | 2022-12-20 | 2023-04-18 | 荣耀终端有限公司 | Method for playing video, electronic equipment and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP4030276B1 (en) | Content continuation method and electronic device | |
CN107038715B (en) | Image processing method and device | |
CN104967801B (en) | A kind of video data handling procedure and device | |
CN107360458B (en) | Play control method, device, storage medium and terminal | |
CN107846554B (en) | Image processing method, terminal and computer readable storage medium | |
WO2018205878A1 (en) | Method for transmitting video information, terminal, server and storage medium | |
US10922846B2 (en) | Method, device and system for identifying light spot | |
CN107371044A (en) | Electronic equipment interactive method, electronic equipment, user terminal and server | |
CN108804184B (en) | Display control method and terminal equipment | |
CN112312144B (en) | Live broadcast method, device, equipment and storage medium | |
WO2020134789A1 (en) | Mobile terminal and method for controlling on and off of screen, and computer storage medium | |
CN111182351A (en) | Video playing processing method and device, storage medium and terminal | |
CN106445970B (en) | Loading processing method and device for placeholder map | |
CN110688051B (en) | Screen recording operation method and device, computer readable storage medium and terminal | |
CN109474833B (en) | Network live broadcast method, related device and system | |
CN113645476B (en) | Picture processing method and device, electronic equipment and storage medium | |
CN111263216B (en) | Video transmission method, device, storage medium and terminal | |
CN113596231B (en) | Screen-throwing display control method, device and computer readable storage medium | |
CN108737639B (en) | Message prompting method, terminal and computer readable storage medium | |
CN114422836A (en) | Remote controller key updating method and device, remote controller and storage medium | |
CN112351507B (en) | Interaction control method, interaction control device, electronic equipment and readable storage medium | |
CN107483826B (en) | The method and apparatus for generating video file | |
CN107564073B (en) | Skin color identification method and device and storage medium | |
WO2024098873A1 (en) | Processing method, processing device, and storage medium | |
CN113556492A (en) | Thumbnail generation method, mobile terminal and readable storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200519 |