CN108966005B - Video resolution adjusting method and device, storage medium and terminal - Google Patents

Video resolution adjusting method and device, storage medium and terminal Download PDF

Info

Publication number
CN108966005B
CN108966005B CN201810749408.7A CN201810749408A CN108966005B CN 108966005 B CN108966005 B CN 108966005B CN 201810749408 A CN201810749408 A CN 201810749408A CN 108966005 B CN108966005 B CN 108966005B
Authority
CN
China
Prior art keywords
video
frames
pictures
coincidence rate
type
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.)
Active
Application number
CN201810749408.7A
Other languages
Chinese (zh)
Other versions
CN108966005A (en
Inventor
何俊宝
傅瑜
吕林霞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanyang Normal University
Original Assignee
Nanyang Normal University
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 Nanyang Normal University filed Critical Nanyang Normal University
Priority to CN201810749408.7A priority Critical patent/CN108966005B/en
Publication of CN108966005A publication Critical patent/CN108966005A/en
Application granted granted Critical
Publication of CN108966005B publication Critical patent/CN108966005B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • 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/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/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4884Data services, e.g. news ticker for displaying subtitles

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a method and a device for adjusting video resolution, a storage medium and a terminal, wherein when a mobile terminal is detected to play a video, at least two frames of pictures are extracted; judging whether the video type is a preset type or not according to the extraction of at least two frames of pictures; wherein the preset type at least comprises a static background type; and if so, reducing the resolution of the online video. According to the method, the device, the storage medium and the terminal for adjusting the video resolution, the resolution of the currently played online video can be adjusted under the condition that the requirement of a user on the resolution of the currently played video is not high, so that the resource allocation of the mobile terminal is optimized, and the network resources are saved.

Description

Video resolution adjusting method and device, storage medium and terminal
Technical Field
The present invention relates to the field of video playing technologies, and in particular, to a method and an apparatus for adjusting video resolution, a storage medium, and a terminal.
Background
The increasing performance of the mobile terminal provides a good condition for the popularization of mobile terminal video player software, and the video watching on the mobile terminal becomes one of the mainstream applications on the intelligent mobile terminal. Video players on mobile terminals fall into two categories: a local video player and an online video player. When playing online video through a mobile terminal, a large amount of Graphics Processing Unit (GPU) and Central Processing Unit (CPU) resources are required to perform operations such as decoding. However, when no user watches the online video, the online video is always played, which results in a continuously high CPU occupancy rate of the mobile terminal, affects the performance of the mobile terminal, and wastes energy of the mobile terminal. Therefore, how to reduce the resolution of the played video under the condition that the user has low requirement on the resolution of the played video becomes a technical problem which is not solved by the technical personnel in the field.
Disclosure of Invention
The present invention aims to solve the above problems, and provide a method, an apparatus, a storage medium, and a terminal for adjusting a video resolution, which can adjust the resolution of an online video currently being played under the condition that a user has low requirement on the resolution of the currently playing video, thereby optimizing resource allocation of a mobile terminal and saving network resources.
In order to achieve the purpose, the invention adopts the technical scheme that: a method for adjusting video resolution mainly comprises the following steps:
step 110: when the mobile terminal is detected to play a video, extracting at least two frames of pictures;
step 120: judging whether the video type is a preset type or not according to the extracted at least two frames of pictures; wherein the preset type at least comprises a static background type;
step 130: and if so, reducing the resolution of the online video.
Further, in step 200, the determining whether the video type is a preset type according to the extracted at least two frames further includes:
step 121: according to the extraction of at least two frames of pictures, comparing pixel point data of the at least two frames of pictures;
step 122: determining the coincidence rate of the pixel point data of the at least two frames of pictures according to the comparison result of the pixel point data;
step 123: and determining whether the video type is a preset type or not according to the magnitude relation between the pixel point data coincidence rate and a first set coincidence rate threshold value.
Further, before determining the coincidence rate of the pixel data of the at least two frames of pictures according to the comparison result of the pixel data in step 122, the method further includes:
taking the preset area of the at least two frames of pictures as a subtitle area;
and when the coincidence rate of the pixel point data of the caption area exceeds a second set coincidence rate threshold value, determining that the coincidence rate of the caption area is 100%.
Further, after the step 121 of extracting at least two frames of pictures and comparing pixel data of the at least two frames of pictures, the method further includes:
respectively carrying out face recognition on the at least two frames of pictures;
judging whether the facial features of the at least two frames of pictures are consistent;
if so, determining whether the video type is a preset type according to the size relation between the pixel point data coincidence rate and a second set coincidence rate threshold value; wherein the second set coincidence rate threshold is smaller than the first set coincidence rate threshold.
Further, the time span of the at least two frames of pictures is not less than 50% of the total duration of the played video.
Further, an apparatus for adjusting video resolution includes:
the picture extraction module is used for extracting at least two frames of pictures when the video played by the mobile terminal is detected;
the video type judging module is used for judging whether the video type is a preset type or not according to the extraction of the at least two frames of pictures; wherein the preset type at least comprises a static background type;
and the resolution adjusting module is used for reducing the resolution of the online video if the video type judging module judges that the video type judging module is positive.
Further, the video type determination module includes:
the pixel point data comparison unit is used for extracting at least two frames of pictures and comparing pixel point data of the at least two frames of pictures;
the coincidence rate determining unit is used for determining the coincidence rate of the pixel point data of the at least two frames of pictures according to the comparison result of the pixel point data;
and the first video type determining unit is used for determining whether the video type is a preset type according to the size relationship between the pixel data coincidence rate and a first set coincidence rate threshold value.
Further, the video type determining module further includes:
a caption region dividing unit, configured to use a preset region of the at least two frames of pictures as a caption region;
and the caption area coincidence rate determining unit is used for determining that the coincidence rate of the caption area is 100% when the coincidence rate of the pixel point data of the caption area exceeds a second set coincidence rate threshold value.
Further, a computer-readable storage medium for loading a computer program for executing the method for adjusting resolution of an online video according to claims 1-5.
Further, a mobile terminal mainly includes:
a storage medium and a processor;
the processor for executing a computer program loaded with the method for adjusting resolution of online video according to claims 1-5.
The invention has the beneficial technical effects that:
according to the method, the device, the storage medium and the terminal for adjusting the video resolution, when the mobile terminal is detected to play a video, at least two frames of pictures are extracted; judging whether the video type is a preset type or not according to the extraction of at least two frames of pictures; wherein the preset type at least comprises a static background type; and if so, reducing the resolution of the online video. By adopting the technical scheme provided by the application, the resolution of the currently played online video can be adjusted under the condition that the requirement of a user on the resolution of the currently played video is not high, so that the resource allocation of the mobile terminal is optimized and the network resource is saved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
fig. 1 is a flowchart of a method for adjusting video resolution according to an embodiment of the present invention;
fig. 2 is a flowchart of a video resolution adjustment method according to a second embodiment of the present invention;
fig. 3 is a flowchart of a video resolution adjustment method according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus for adjusting video resolution according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The preferred embodiments of the present invention will be described in conjunction with the accompanying drawings, and it will be understood that they are described herein for the purpose of illustration and explanation and not limitation.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a flowchart of a method for adjusting video resolution according to an embodiment of the present invention, where the method is applicable to a video playing situation, and the method can be executed by an apparatus for adjusting video resolution according to an embodiment of the present invention, where the apparatus can be implemented by software and/or hardware, and can be integrated in a mobile terminal or an intelligent terminal.
As shown in fig. 1, the method for adjusting the video resolution includes:
and S110, when the video played by the mobile terminal is detected, extracting at least two frames of pictures.
The online video playing detection can be determined by detecting whether a mode of calling a graphical user interface to play the video exists in a thread of the application program running in the current foreground.
In this embodiment, the frame pictures of the video file are extracted, and then the similarity or other information of at least two frame pictures is determined in a peer-to-peer manner. In this embodiment, two frames, three frames or more frames may be extracted, the number of extracted frames may be determined according to the comparison result of the two frames extracted first, or may be preset, and in each extraction process of the frames, the frame frames with the set number are extracted.
In this embodiment, optionally, the time span of the at least two frames of pictures is not less than 50% of the total duration of the played video. In the online video, if the online video is a live video, at least two frames of pictures can be extracted according to at least half of the past time length of the currently played time length, and if the online video is a cache content, the frames of pictures can be extracted during the caching process, wherein the time span is not less than 50% of the total duration of the played video. The advantage of this arrangement is to ensure that the extracted frame is spread over the entire video file, rather than being misjudged due to extraction completed within a short period of time.
S120, judging whether the video type is a preset type or not according to the extraction of the at least two frames of pictures; wherein the preset type at least comprises a static background type.
The preset type comprises a static background type, the static Beijing type can be a video similar to an online education recording video and the like, such as a dance teaching video, or an examination education video and the like, and because the main expressed content does not need to be expressed through a particularly clear picture, the resolution can be properly reduced under the condition, so that the CPU load and the memory expenditure of the mobile terminal can be saved. Therefore, the type of the video is judged by adopting a frame picture extraction mode, and if the backgrounds of a plurality of extracted frame pictures are all the same, the type of the static background can be determined. For example, for a certain movie with a very strong scene rendering power, such as movie "2012", the rendering effect of the scene picture needs to be supported by a very high resolution, so that for a non-static background type of video, the technical scheme provided by the present application may not be adopted, so as to satisfy the user's appreciation effect for the picture scene.
And S130, if so, reducing the resolution of the online video.
When the video type is determined to be the preset type, the resolution reduction operation can be performed on the played online video. In this embodiment, optionally, if the video is an online video, it may be determined whether the current resolution of the online video is the lowest resolution. Specifically, the current resolution of the online video can be determined by identifying the information file of the currently played online video, and then whether the current resolution is the lowest resolution is determined by reading a resolution value of the application program available for the user to select. When the current resolution is not the lowest resolution of the online video, the current resolution can be adjusted downwards by one resolution level, so that the set advantage is that the memory overhead of the mobile terminal can be saved while the watching of a user is not influenced.
In this embodiment, optionally, after the automatic adjustment, if an instruction of the user to increase the resolution is obtained, the resolution is not adjusted any more in the current online video playing process, so that the advantage of this setting is that the online video viewing effect desired by the user can be provided to the user when the user needs it.
According to the technical scheme provided by the embodiment of the application, when the mobile terminal is detected to play the video, at least two frames of pictures are extracted; judging whether the video type is a preset type or not according to the extraction of at least two frames of pictures; wherein the preset type at least comprises a static background type; and if so, reducing the resolution of the online video. By adopting the technical scheme provided by the application, the resolution of the currently played online video can be adjusted under the condition that the requirement of a user on the resolution of the currently played video is not high, so that the resource allocation of the mobile terminal is optimized and the network resource is saved.
On the basis of the above technical solution, optionally, the determining whether the video type is a preset type according to the extracting of the at least two frames of pictures includes: extracting at least two frames of pictures, and comparing pixel point data of the at least two frames of pictures; determining the coincidence rate of the pixel point data of the at least two frames of pictures according to the comparison result of the pixel point data; and determining whether the video type is a preset type or not according to the magnitude relation between the pixel point data coincidence rate and a first set coincidence rate threshold value. Wherein the first set overlap ratio threshold may be 90%. The type of the currently played video can be determined by determining the coincidence rate of the pixel point data, specifically, at least two frames of pictures can be down sampled before the pixel points are compared, so that the comparison speed can be increased, the power consumption can be reduced, and the phenomenon that the CPU is influenced too much by the comparison of the pictures is avoided, because the CPU utilization rate occupies a larger proportion in the video playing process, the CPU utilization rate needs to be considered heavily.
Example two
Fig. 2 is a flowchart of a video resolution adjustment method according to a second embodiment of the present invention. On the basis of the above embodiments, the present embodiment is optimized as follows: before judging the coincidence rate of the pixel point data of the at least two frames of pictures, the method further comprises the following steps: taking the preset area of the at least two frames of pictures as a subtitle area; and when the coincidence rate of the pixel point data of the caption area exceeds a second set coincidence rate threshold value, determining that the coincidence rate of the caption area is 100%.
As shown in fig. 2, the method for adjusting the video resolution includes:
s210, when the video played by the mobile terminal is detected, at least two frames of pictures are extracted.
S220, comparing the pixel point data of the at least two frames of pictures according to the extracted at least two frames of pictures.
And S230, taking the preset area of the at least two frames of pictures as a subtitle area.
The subtitle regions in the at least two frames of pictures can be compared individually, wherein the positions of the subtitle regions in the at least two frames of pictures can be determined in a statistical manner or the like, for example, the horizontal rectangular bars of the at least two frames of pictures close to the lower positions are taken as the subtitle regions. The advantage of this embodiment is that, for example, in the teaching video process, it may be that the comparison consistency of the pixel points of other background regions is higher, but because the subtitle region may have a subtitle, the consistency of the subtitle region is lower, and the calculation result of the background region is affected, so this embodiment provides a scheme for separately comparing the subtitle regions, and the calculation accuracy can be improved.
And S240, when the coincidence rate of the pixel point data of the caption area exceeds a second set coincidence rate threshold value, determining that the coincidence rate of the caption area is 100%.
Wherein the second set overlap ratio threshold may be 50%. That is, when the coincidence rate of the pixels of the subtitle region exceeds 50%, the coincidence rate of the subtitle region is determined to be 100%. The method has the advantage that interference caused by different subtitles is avoided, and in the actual video playing process, the completely same subtitles are difficult to determine, so that the similarity of subtitle regions can be fuzzified.
And S250, determining the coincidence rate of the pixel data of the at least two frames of pictures according to the comparison result of the pixel data.
And calculating the coincidence rate of pixel point data of other background areas except the caption area, wherein the caption area can be determined according to the mode. .
And S260, determining whether the video type is a preset type or not according to the size relation between the pixel point data coincidence rate and a first set coincidence rate threshold value.
And S270, if so, reducing the resolution of the online video.
On the basis of the foregoing embodiment, the present embodiment provides a scheme for separately processing a subtitle region in a process of determining a coincidence rate of background pixel point data, and thus, the advantage of this setting is that an influence on the coincidence rate of background pixel point data due to different subtitles can be avoided. The recognition accuracy of at least two frames of pictures is improved, and meanwhile, the calculation speed is improved.
EXAMPLE III
Fig. 3 is a flowchart of a method for adjusting video resolution according to a third embodiment of the present invention. On the basis of the above embodiments, the present embodiment is optimized as follows: before judging the coincidence rate of the pixel point data of the at least two frames of pictures, the method further comprises the following steps: taking the preset area of the at least two frames of pictures as a subtitle area; and when the coincidence rate of the pixel point data of the caption area exceeds a second set coincidence rate threshold value, determining that the coincidence rate of the caption area is 100%.
As shown in fig. 3, the method for adjusting the video resolution includes:
and S310, when the video played by the mobile terminal is detected, extracting at least two frames of pictures.
S320, comparing the pixel point data of the at least two frames of pictures according to the extracted at least two frames of pictures.
And S330, respectively carrying out face recognition on the at least two frames of pictures.
The face contour of the user can be determined according to the color data of the pixel points, or whether the face information exists is determined by identifying whether the current image information contains specific images such as glasses and noses.
And S340, judging whether the facial features of the at least two frames of pictures are consistent.
And judging whether the facial features of at least two frames of pictures are consistent or not according to the facial information of the face recognition. If the current video type is the static background type, the same person exists in at least two frames of pictures, and the current video type is determined to be the static background type under the condition that the coincidence rate of the background pixel point data is higher.
S350, if yes, determining whether the video type is a preset type or not according to the size relation between the pixel point data coincidence rate and a second set coincidence rate threshold value; wherein the second set coincidence rate threshold is smaller than the first set coincidence rate threshold.
Wherein the second set overlap ratio threshold may be 80%. The reason why the second set coincidence rate threshold is smaller than the first set coincidence rate threshold is that if the current few two frames of pictures respectively include only one person and the facial features of the persons of the at least two frames of pictures are consistent, the probability that the type of the current video belongs to the video of an education type, such as singing in teaching, dancing in teaching, and teaching and research disciplines, is high. In this case, the teaching video may play a switched slide through the background of the video, and the like, and it may be determined that the current video is of the static background type in a manner of reducing the threshold of the overall coincidence rate when the faces of at least two frames of pictures are consistent.
And S360, if so, reducing the resolution of the online video.
On the basis of the above embodiments, the present embodiment provides a method for identifying a face extracted from at least two frames of pictures, which determines whether the face is currently a static background type, so as to adjust the resolution of a video. The setting can properly reduce the video resolution under the condition that a user does not need extremely high resolution, thereby reducing the video decoding burden of a CPU and saving the memory overhead.
Example four
Fig. 4 is a schematic structural diagram of an apparatus for adjusting video resolution according to a fourth embodiment of the present invention. As shown in fig. 4, the apparatus for adjusting video resolution includes:
the picture extraction module 410 is configured to extract at least two frames of pictures when it is detected that the mobile terminal plays a video;
a video type determining module 420, configured to determine whether the video type is a preset type according to the at least two frames of pictures extracted; wherein the preset type at least comprises a static background type;
a resolution adjusting module 430, configured to decrease the resolution of the online video if the video type determining module 420 determines that the online video is a video.
According to the technical scheme provided by the embodiment of the application, when the mobile terminal is detected to play the video, at least two frames of pictures are extracted; judging whether the video type is a preset type or not according to the extraction of at least two frames of pictures; wherein the preset type at least comprises a static background type; and if so, reducing the resolution of the online video. By adopting the technical scheme provided by the application, the resolution of the currently played online video can be adjusted under the condition that the requirement of a user on the resolution of the currently played video is not high, so that the resource allocation of the mobile terminal is optimized and the network resource is saved.
On the basis of the foregoing embodiments, optionally, the video type determining module includes:
the pixel point data comparison unit is used for extracting at least two frames of pictures and comparing pixel point data of the at least two frames of pictures;
the coincidence rate determining unit is used for determining the coincidence rate of the pixel point data of the at least two frames of pictures according to the comparison result of the pixel point data;
and the first video type determining unit is used for determining whether the video type is a preset type according to the size relationship between the pixel data coincidence rate and a first set coincidence rate threshold value.
On the basis of the foregoing embodiments, optionally, the video type determining module further includes:
a caption region dividing unit, configured to use a preset region of the at least two frames of pictures as a caption region;
and the caption area coincidence rate determining unit is used for determining that the coincidence rate of the caption area is 100% when the coincidence rate of the pixel point data of the caption area exceeds a second set coincidence rate threshold value.
On the basis of the foregoing embodiments, optionally, the video type determining module further includes:
the face information identification unit is used for respectively carrying out face identification on the at least two frames of pictures;
the face information judging unit is used for judging whether the face characteristics of the at least two frames of pictures are consistent;
the second video type determining unit is used for determining whether the video type is a preset type or not according to the size relationship between the pixel point data coincidence rate and a second set coincidence rate threshold value if the face information judging unit judges that the video type is the preset type; wherein the second set coincidence rate threshold is smaller than the first set coincidence rate threshold.
On the basis of the foregoing embodiments, optionally, the time span of the at least two frames of pictures is not less than 50% of the total duration of the played video.
The product can execute the method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE five
Embodiments of the present application also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method for adjusting video resolution, the method comprising:
when the mobile terminal is detected to play a video, extracting at least two frames of pictures;
judging whether the video type is a preset type or not according to the extraction of at least two frames of pictures; wherein the preset type at least comprises a static background type;
and if so, reducing the resolution of the online video.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the computer system in which the program is executed, or may be located in a different second computer system connected to the computer system through a network (such as the internet). The second computer system may provide the program instructions to the computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided in the embodiments of the present application contains computer-executable instructions, and the computer-executable instructions are not limited to the adjustment operation of the online video resolution described above, and may also perform related operations in the adjustment method of the video resolution provided in any embodiment of the present application.
EXAMPLE six
The embodiment of the application provides a mobile terminal, and the mobile terminal can be integrated with the online video resolution adjusting device provided by the embodiment of the application. Fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application. As shown in fig. 5, the mobile terminal may include: a memory 501, a Central Processing Unit (CPU) 502 (also called a processor, hereinafter referred to as CPU), a circuit board (not shown in the figure), and a power circuit (not shown in the figure). The circuit board is arranged in a space enclosed by the shell; the CPU502 and the memory 501 are provided on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the mobile terminal; the memory 501 is used for storing executable program codes; the CPU502 executes a computer program corresponding to the executable program code by reading the executable program code stored in the memory 501 to implement the steps of:
when the mobile terminal is detected to play a video, extracting at least two frames of pictures;
judging whether the video type is a preset type or not according to the extraction of at least two frames of pictures; wherein the preset type at least comprises a static background type;
and if so, reducing the resolution of the online video.
The mobile terminal further includes: peripheral interface 503, RF (Radio Frequency) circuitry 505, audio circuitry 506, speakers 511, power management chip 508, input/output (I/O) subsystem 509, touch screen 512, other input/control devices 510, and external port 504, which communicate via one or more communication buses or signal lines 507.
It should be understood that the illustrated mobile terminal 500 is merely one example of a mobile terminal and that the mobile terminal 500 may have more or fewer components than shown, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail the mobile terminal for adjusting resolution of online video according to this embodiment, where the mobile terminal is a mobile phone as an example.
A memory 501, the memory 501 being accessible by the CPU502, the peripheral interface 503, and the like, the memory 501 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 503, the peripheral interface 503 may connect input and output peripherals of the device to the CPU502 and the memory 501.
An I/O subsystem 509, which I/O subsystem 509 may connect input and output peripherals on the device, such as a touch screen 512 and other input/control devices 510, to the peripheral interface 503. The I/O subsystem 509 may include a display controller 5091 and one or more input controllers 5092 for controlling other input/control devices 510. Where one or more input controllers 5092 receive electrical signals from or send electrical signals to other input/control devices 510, the other input/control devices 510 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is noted that the input controller 5092 may be connected to any one of: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 512, which is an input interface and an output interface between the user's mobile terminal and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 5091 in the I/O subsystem 509 receives electrical signals from the touch screen 512 or transmits electrical signals to the touch screen 512. The touch screen 512 detects a contact on the touch screen, and the display controller 5091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 512, that is, implements a human-computer interaction, and the user interface object displayed on the touch screen 512 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 505 is mainly used to establish communication between the mobile phone and the wireless network (i.e., network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, the RF circuitry 505 receives and transmits RF signals, also referred to as electromagnetic signals, through which the RF circuitry 505 converts electrical signals to or from electromagnetic signals and communicates with communication networks and other devices. The RF circuitry 505 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 506 is mainly used to receive audio data from the peripheral interface 503, convert the audio data into an electric signal, and transmit the electric signal to the speaker 511.
The speaker 511 is used for restoring the voice signal received by the handset from the wireless network through the RF circuit 505 to sound and playing the sound to the user.
And a power management chip 508 for supplying power and managing power to the hardware connected to the CPU502, the I/O subsystem, and the peripheral interfaces.
The mobile terminal provided by the embodiment of the application can adjust the resolution of the currently played online video under the condition that the requirement of a user on the resolution of the currently played video is not high, so that the resource configuration of the mobile terminal is optimized and the network resource is saved.
The online video resolution adjusting device, the storage medium and the mobile terminal provided in the above embodiments may execute the video resolution adjusting method provided in any embodiment of the present application, and have corresponding functional modules and beneficial effects for executing the method. For technical details that are not described in detail in the above embodiments, reference may be made to the method for adjusting the resolution of a video provided in any embodiment of the present application.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that changes may be made in the embodiments and/or equivalents thereof without departing from the spirit and scope of the invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (6)

1. A method for adjusting video resolution is characterized by mainly comprising the following steps:
step 110: when the mobile terminal is detected to play a video, extracting at least two frames of pictures;
step 120: judging whether the video type is a preset type or not according to the extracted at least two frames of pictures; wherein the preset type at least comprises a static background type;
step 130: if so, reducing the resolution of the online video;
in step 120, the determining whether the video type is a preset type according to the extracted at least two frames further includes:
step 121: according to the extraction of at least two frames of pictures, comparing pixel point data of the at least two frames of pictures;
step 122: determining the coincidence rate of the pixel point data of the at least two frames of pictures according to the comparison result of the pixel point data;
step 123: determining whether the video type is a preset type or not according to the magnitude relation between the pixel point data coincidence rate and a first set coincidence rate threshold value;
before determining the coincidence rate of the pixel data of the at least two frames of pictures according to the comparison result of the pixel data in step 122, the method further includes:
taking the preset area of the at least two frames of pictures as a subtitle area;
and when the coincidence rate of the pixel point data of the caption area exceeds a second set coincidence rate threshold value, determining that the coincidence rate of the caption area is 100%.
2. The method according to claim 1, wherein after the step 121 of extracting at least two frames and comparing pixel data of the at least two frames, the method further comprises:
respectively carrying out face recognition on the at least two frames of pictures;
judging whether the facial features of the at least two frames of pictures are consistent;
if so, determining whether the video type is a preset type according to the size relation between the pixel point data coincidence rate and a second set coincidence rate threshold value; wherein the second set coincidence rate threshold is smaller than the first set coincidence rate threshold.
3. The method according to any one of claims 1-2, wherein the time span of said at least two frames is not less than 50% of the total duration of said video.
4. An apparatus for adjusting resolution of a video, comprising:
the picture extraction module is used for extracting at least two frames of pictures when the video played by the mobile terminal is detected;
the video type judging module is used for judging whether the video type is a preset type or not according to the extraction of the at least two frames of pictures; wherein the preset type at least comprises a static background type;
the resolution adjusting module is used for reducing the resolution of the online video if the video type judging module judges that the video type judging module is positive;
wherein, the video type judging module comprises:
the pixel point data comparison unit is used for extracting at least two frames of pictures and comparing pixel point data of the at least two frames of pictures;
the coincidence rate determining unit is used for determining the coincidence rate of the pixel point data of the at least two frames of pictures according to the comparison result of the pixel point data;
the first video type determining unit is used for determining whether the video type is a preset type according to the size relation between the pixel data coincidence rate and a first set coincidence rate threshold value;
wherein, the video type judging module further comprises:
a caption region dividing unit, configured to use a preset region of the at least two frames of pictures as a caption region;
and the caption area coincidence rate determining unit is used for determining that the coincidence rate of the caption area is 100% when the coincidence rate of the pixel point data of the caption area exceeds a second set coincidence rate threshold value.
5. A computer-readable storage medium, characterized in that,
storage medium carrying a computer program for performing a method of adjusting the resolution of a video according to claims 1-3.
6. A mobile terminal, comprising:
a storage medium and a processor;
the processor for executing a computer program loaded with a method for adjusting video resolution according to claims 1-3.
CN201810749408.7A 2018-07-10 2018-07-10 Video resolution adjusting method and device, storage medium and terminal Active CN108966005B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810749408.7A CN108966005B (en) 2018-07-10 2018-07-10 Video resolution adjusting method and device, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810749408.7A CN108966005B (en) 2018-07-10 2018-07-10 Video resolution adjusting method and device, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN108966005A CN108966005A (en) 2018-12-07
CN108966005B true CN108966005B (en) 2021-04-27

Family

ID=64483499

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810749408.7A Active CN108966005B (en) 2018-07-10 2018-07-10 Video resolution adjusting method and device, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN108966005B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112449241A (en) * 2019-08-29 2021-03-05 中兴通讯股份有限公司 Power consumption adjusting method and device and computer readable storage medium
CN115442657B (en) * 2021-10-15 2023-12-26 佛山欧神诺云商科技有限公司 Method, equipment, medium and product for dynamically adjusting resolution of image picture
CN115174965B (en) * 2022-06-30 2024-01-02 杭州海康威视数字技术股份有限公司 Video preview method, device, electronic equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101755460A (en) * 2007-07-20 2010-06-23 富士胶片株式会社 Image processing apparatus, image processing method, image processing system and program
CN105139792A (en) * 2015-08-18 2015-12-09 京东方科技集团股份有限公司 Display method and display device
CN107277419A (en) * 2017-07-28 2017-10-20 京东方科技集团股份有限公司 A kind of display device and its display methods
CN107659828A (en) * 2017-10-30 2018-02-02 广东欧珀移动通信有限公司 Video image quality adjustment method, device, terminal device and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8627206B2 (en) * 2006-03-14 2014-01-07 Sony Corporation Image processing device and image processing method for displaying images in a spiral form
US8891939B2 (en) * 2009-12-22 2014-11-18 Citrix Systems, Inc. Systems and methods for video-aware screen capture and compression
CN105979283A (en) * 2015-08-12 2016-09-28 乐视云计算有限公司 Video transcoding method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101755460A (en) * 2007-07-20 2010-06-23 富士胶片株式会社 Image processing apparatus, image processing method, image processing system and program
CN105139792A (en) * 2015-08-18 2015-12-09 京东方科技集团股份有限公司 Display method and display device
CN107277419A (en) * 2017-07-28 2017-10-20 京东方科技集团股份有限公司 A kind of display device and its display methods
CN107659828A (en) * 2017-10-30 2018-02-02 广东欧珀移动通信有限公司 Video image quality adjustment method, device, terminal device and storage medium

Also Published As

Publication number Publication date
CN108966005A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
US10475413B2 (en) Method and apparatus for adjusting backlight brightness of screen, and mobile terminal
CN109639982B (en) Image noise reduction method and device, storage medium and terminal
CN109157839B (en) Frame rate regulation and control method, device, storage medium and terminal
CN108966005B (en) Video resolution adjusting method and device, storage medium and terminal
CN110795056B (en) Method, device, terminal and storage medium for adjusting display parameters
CN108521607B (en) Method and device for processing advertisements in video, storage medium and intelligent terminal
CN106951054B (en) Application control method and device and mobile terminal
CN106817753B (en) Method and device for saving electricity by switching background gray scales and mobile terminal
CN108648259B (en) Image drawing method and device, storage medium and intelligent terminal
CN108804157A (en) Application program preloads method, apparatus, storage medium and terminal
CN108762831A (en) Application program preloads method, apparatus, storage medium and terminal
CN112203034B (en) Frame rate control method and device and electronic equipment
US11138956B2 (en) Method for controlling display of terminal, storage medium, and electronic device
CN108646906A (en) Frame per second method of adjustment, device, storage medium and intelligent terminal
CN109460364B (en) Application program detection method and device, storage medium and mobile terminal
CN108595224A (en) Application prompts method, apparatus, storage medium and terminal
CN107402712B (en) Touch operation response method and device, storage medium and terminal
CN108693948B (en) Frame rate adjusting method and device, terminal equipment and storage medium
EP3592003A1 (en) Broadcast control method, device, storage medium and mobile terminal
CN108628429B (en) Frame rate adjusting method and device, terminal equipment and storage medium
CN108966010B (en) Method and device for adjusting resolution of online video, storage medium and terminal
CN108811055B (en) Frame rate adjusting method and device, terminal equipment and storage medium
CN109640179A (en) Video frequency decoding control method, device and electronic equipment
CN108594982B (en) Frame rate adjusting method and device, terminal equipment and storage medium
CN106844070B (en) Broadcast control method and device and mobile terminal

Legal Events

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