CN108377421A - The playback method and display equipment, computer readable storage medium of video - Google Patents

The playback method and display equipment, computer readable storage medium of video Download PDF

Info

Publication number
CN108377421A
CN108377421A CN201810391334.4A CN201810391334A CN108377421A CN 108377421 A CN108377421 A CN 108377421A CN 201810391334 A CN201810391334 A CN 201810391334A CN 108377421 A CN108377421 A CN 108377421A
Authority
CN
China
Prior art keywords
ratio
resolution ratio
described image
adjustment
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810391334.4A
Other languages
Chinese (zh)
Other versions
CN108377421B (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.)
Shenzhen TCL New Technology Co Ltd
Shenzhen TCL Digital Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN201810391334.4A priority Critical patent/CN108377421B/en
Publication of CN108377421A publication Critical patent/CN108377421A/en
Application granted granted Critical
Publication of CN108377421B publication Critical patent/CN108377421B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream 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/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Processing (AREA)
  • Television Signal Processing For Recording (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a kind of playback methods of video, and this approach includes the following steps:The real-time performance parameter of current display setup is obtained, the real-time performance parameter is CPU usage and/or memory usage;The image resolution ratio and picture display face product of current playing video file in the display equipment are obtained, and shows that area obtains image parameter according to described image resolution ratio and described image;Numeric ratio is obtained according to the ratio calculation of described image parameter and the performance parameter;When the numeric ratio is less than or equal to the predetermined threshold value, continue that described image resolution ratio and described image is kept to show that area plays the video file;When the numeric ratio is more than the predetermined threshold value, described image resolution ratio is reduced and/or reduces described image showing area.The invention also discloses a kind of display equipment and computer readable storage mediums.Technical solution provided by the invention can reduce Caton phenomenon when video playing.

Description

The playback method and display equipment, computer readable storage medium of video
Technical field
The present invention relates to the playback method and display equipment of field of video broadcasting technology more particularly to a kind of video, calculate Machine readable storage medium storing program for executing.
Background technology
Now with the development of the video technique of the larger resolution ratio such as 4K, user in daily life can be aobvious by having The electronic equipment of display screen plays the video of the big resolution ratio such as 4K, however the video playing of big resolution ratio needs to occupy more memories And CPU.When cpu performance or internal memory performance cannot meet use, video playing interim card can be led to, while also resulting in electronics and setting Standby operation interim card.
The solution used at present is according to process priority, and dynamic carry out process exits management, to ensure to play Process can have enough idle CPU or free memory to use, but this technology is often limited by the priority of system process, and The technical issues of playing interim card cannot be overcome completely.
Therefore, it is necessary to provide a kind of playback method of video, above-mentioned technical problem is solved.
Invention content
The main purpose of the present invention is to provide a kind of playback method of video and display equipment, computer-readable storage mediums Matter, it is intended to when solving existing display equipment and carrying out big resolution video and play, the technical issues of playing easy interim card.
To achieve the above object, the playback method of a kind of video provided by the invention, includes the following steps:
The real-time performance parameter of current display setup is obtained, the real-time performance parameter is that CPU usage and/or memory account for With rate;
The image resolution ratio and picture display face product of current playing video file in the display equipment are obtained, and according to institute It states image resolution ratio and described image shows that area obtains image parameter;
Numeric ratio is obtained according to the ratio calculation of described image parameter and the real-time performance parameter;
Judge whether the numeric ratio is more than predetermined threshold value;
When the numeric ratio is less than or equal to the predetermined threshold value, continue to keep described image resolution ratio and described image Show that area plays the video file;
When the numeric ratio is more than the predetermined threshold value, described image resolution ratio is reduced and/or reduces described image showing Show area, so that the numeric ratio obtained after adjustment reduces.
Preferably, the image resolution ratio and picture display face for obtaining current playing video file in the display equipment Product, and the step of area obtains image parameter is shown according to described image resolution ratio and described image, it specifically includes:
The image resolution ratio and picture display face product for obtaining current playing video file in the display equipment, according to described Image resolution ratio and described image show that the product of area obtains described image parameter.
Preferably, the image resolution ratio and picture display face for obtaining current playing video file in the display equipment Product, and the step of area obtains image parameter is shown according to described image resolution ratio and described image, it specifically includes:
The image resolution ratio and picture display face product for obtaining current playing video file in the display equipment, according to described Image resolution ratio, described image show that the product of area and preset constant obtains described image parameter.
Preferably, described when the numeric ratio is more than the predetermined threshold value, reduce described image resolution ratio and/or diminution Described image shows area, so that the step of numeric ratio obtained after adjustment reduces, specifically includes:
When the numeric ratio is more than the predetermined threshold value, the image resolution ratio of the video file is reduced;
The real-time performance parameter after adjustment is obtained, and shows the described image after area and adjustment according to described image Described image parameter after the adjustment that resolution ratio obtains obtains first with the ratio calculation of the real-time performance parameter after adjustment Numeric ratio;
Judge whether first numeric ratio is more than the predetermined threshold value;
When first numeric ratio is less than or equal to the predetermined threshold value, the video file is with described image display surface Image resolution ratio after product and the adjustment plays;
When first numeric ratio is more than the predetermined threshold value, reduces described image and show area;
Obtain adjustment after presently described real-time performance parameter, and according to after the adjustment image resolution ratio and adjustment after Described image show the described image parameter after the obtained adjustment of area, the ratio calculation with presently described real-time performance parameter Obtain second value ratio;
Judge the second value than whether being more than the predetermined threshold value;
When the second value ratio is less than or equal to the predetermined threshold value, the video file is with the figure after the adjustment It is played as the picture display face after resolution ratio and the adjustment accumulates.
Preferably, described when the numeric ratio is more than the predetermined threshold value, reduce the image resolution of the video file The step of rate, specifically includes:
When the numeric ratio is more than the predetermined threshold value, according to presently described real-time performance parameter and default capabilities parameter Constant mapping table, obtain first constant, according to presently described picture display face product and pre-set image show area constant reflect Firing table obtains second constant;
Described image resolution ratio is multiplied by the first constant and the ratio of the second constant is worth to the figure after the adjustment As resolution ratio, the image resolution ratio for reducing the video file is the image resolution ratio after the adjustment.
Preferably, it according to when first numeric ratio is more than the predetermined threshold value, reduces described image and shows area Step specifically includes:
When first numeric ratio is more than the predetermined threshold value, according to presently described real-time performance parameter and described default The constant mapping table of performance parameter obtains three constant, according to the image resolution ratio and pre-set image point after presently described adjustment The constant mapping table of resolution obtains the 4th constant;
Described image shows that area is multiplied by the three constant and the ratio of the 4th constant is worth to the image after the adjustment Show area, the picture display face product for reducing the video file is the picture display face product after the adjustment.
Preferably, the image resolution ratio after the adjustment is greater than or equal to default minimum image resolution ratio, after the adjustment Picture display face product be greater than or equal to default minimum image and show area.
Preferably, described when the numeric ratio is more than the predetermined threshold value, reduce described image resolution ratio and/or diminution Described image shows area, so that after the step of numeric ratio obtained after adjustment reduces, further includes:
The image resolution ratio after adjustment is equal to the default minimum image resolution ratio, and the image after the adjustment is aobvious When showing that area is equal to the default minimum image display area, and second value ratio is more than the predetermined threshold value, stops It plays the video file and pops up prompt message.
The present invention provides a kind of display equipment, the display equipment include storage unit, processing unit, display unit and The computer program that can be run in the storage unit and on the processing unit is stored in, described in the processing unit executes The step of playback method of video as the aforementioned is realized when computer program.
The present invention provides a kind of computer readable storage medium, calculating is stored on the computer readable storage medium The step of machine program, the computer program realizes the playback method of video as the aforementioned when being executed by processing unit.
In technical solution provided by the invention, due to image resolution ratio and picture display face product with real-time performance parameter at Direct ratio can reflect and work as according to the ratio of image parameter and real-time performance parameter that image resolution ratio and picture display face product obtain Whether preceding display device plays video meets setting.It is weights and measures by the numeric ratio, is compared with predetermined threshold value, to It can further carry out reducing described image resolution ratio automatically and/or reduce the adjusting work that described image shows area;Pass through drop Low described image resolution ratio and/or diminution described image show area, to reduce real-time performance parameter, to solve display equipment It plays video cardton, fall the technical issues of frame.
Description of the drawings
Fig. 1 is the hardware module structural schematic diagram of the display equipment in one embodiment of the invention;
Fig. 2 is the flow diagram of the first embodiment of the playback method of the video in the present invention;
Fig. 3 is the flow diagram of the second embodiment of the playback method of the video in the present invention;
Fig. 4 is the flow diagram of the 3rd embodiment of the playback method of the video in the present invention;
Fig. 5 is the part flow diagram of the fourth embodiment of the playback method of the video in the present invention;
Fig. 6 is the part flow diagram of the 5th embodiment of the playback method of the video in the present invention;
Fig. 7 is the part flow diagram of the sixth embodiment of the playback method of the video in the present invention;
Fig. 8 is the flow diagram of the 7th embodiment of the playback method of the video in the present invention.
The realization, the function and the advantages of the object of the present invention will elaborate with reference to attached drawing in conjunction with the embodiments.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiment is only a part of the embodiment of the present invention, instead of all the embodiments.Base Embodiment in the present invention, those of ordinary skill in the art obtained without creative efforts it is all its His embodiment, shall fall within the protection scope of the present invention.
It is to be appreciated that the directional instruction (such as up, down, left, right, before and after ...) of institute is only used in the embodiment of the present invention In explaining relative position relation, motion conditions etc. under a certain particular pose (as shown in the picture) between each component, if should When particular pose changes, then directionality instruction also correspondingly changes correspondingly.
In addition, the description for being such as related to " first ", " second " in the present invention is used for description purposes only, and should not be understood as It indicates or implies its relative importance or implicitly indicate the quantity of indicated technical characteristic.Define as a result, " first ", The feature of " second " can explicitly or implicitly include at least one of the features.In the description of the present invention, " multiple " contain Justice is at least two, such as two, three etc., unless otherwise specifically defined.
In the present invention unless specifically defined or limited otherwise, term " connection ", " fixation " etc. shall be understood in a broad sense, For example, " fixation " may be a fixed connection, it may be a detachable connection, or integral;It can be mechanical connection, can also be Electrical connection;It can be directly connected, can also can be indirectly connected through an intermediary the connection inside two elements or two The interaction relationship of a element, unless otherwise restricted clearly.It for the ordinary skill in the art, can basis Concrete condition understands the concrete meaning of above-mentioned term in the present invention.
In subsequent description, using for indicating that the suffix of such as " module ", " component " or " unit " of element is only The explanation for being conducive to the present invention, itself does not have a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
In addition, the technical solution between each embodiment of the present invention can be combined with each other, but must be general with this field Logical technical staff can be implemented as basis, will be understood that when the combination of technical solution appearance is conflicting or cannot achieve this The combination of technical solution is not present, also not the present invention claims protection domain within.
The present invention proposes a kind of playback method and display equipment, computer readable storage medium of video.
As shown in Figure 1, Fig. 1 is the hardware module structural schematic diagram of the display equipment in one embodiment of the invention.
Display equipment 100 in the present embodiment includes the components such as storage unit 10, processing unit 20 and display unit 30. The processing unit 20 is connect with the storage unit 10 and display unit 30 respectively, and calculating is stored in the storage unit 10 Machine program, the computer program can be executed by the processing unit 20.
It should be understood that the display equipment 100 can be television set, PC, can also be smart mobile phone, tablet computer, E-book reader, MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert pressure Contracting standard audio level 3) player, MP4 (Moving Picture Experts Group Audio Layer IV, dynamic shadow As expert's compression standard audio level 3) terminal device with display function such as player, pocket computer.The display is set Standby 100 can be by the wired or wirelessly foundation communication connection between server, to realize data interaction.
In the present embodiment, storage unit 10 can be used for storing software program and various data.Storage unit 10 can be led To include storing program area and storage data field, wherein storing program area can storage program area, needed at least one function Application program etc., storage data field can store data (such as video file) etc. required when display equipment 100 uses.In addition, Storage unit 10 may include high speed random memory unit, can also include non-volatile memory cells, for example, at least a magnetic Disk storage unit, flush memory device or other volatile solid-state memory cell devices.
Processing unit 20, is the control centre for showing equipment 100, and equipment is entirely shown using various interfaces and connection 100 various pieces by running or execute the software program and/or module that are stored in storage unit 10, and are called and are deposited The data in storage unit 10 are stored up, the various functions for showing equipment 100 and processing data are executed, to showing equipment 100 Carry out integral monitoring.Processing unit 20 may include one or more processors or chip;Optionally, processing unit 20 includes center Processor (CPU, Central Processing Unit) and memory bar (Memory), with processing operation system, user interface and Application program etc..
Display unit 30, processing unit 20 can transfer the video file to prestore in storage unit 10, or transfer by logical The video file that letter unit 40 receives, then played back by display unit 30.
It will be understood by those skilled in the art that the display equipment 100 shown in Fig. 1 can also include than illustrate it is more or Less component either combines certain components or different components arrangement.
Based on above-mentioned hardware configuration, each embodiment of the playback method of the video in the present invention is proposed.
Please refer to Fig. 2, the flow diagram of the first embodiment of the playback method of the video in the present invention.The video Playback method 201 includes the following steps:
Step S1, obtains the real-time performance parameter of current display setup, the real-time performance parameter be CPU usage and/ Or memory usage;
CPU is one piece of ultra-large integrated circuit, is the arithmetic core and control core of a computer.CPU is occupied Rate is the cpu resource for showing the program run in equipment 100 and occupying, and indicates to show the operation journey of equipment 100 at some time point The case where sequence.CPU usage is higher, illustrates to show that equipment 100 has run many programs on this time, otherwise less.
Memory (Memory) is also referred to as built-in storage, is used to temporarily store the operational data in CPU, and and hard disk The data that equal external memories exchange, are the bridges linked up with CPU.Memory usage refers to the interior of process institute expense It deposits.Many cpu resources can not necessarily be occupied by accounting for the big program of memory, and accounts for the big programs of CPU also not necessarily expense is too big Memory.The excessively high operation that can influence other programs of CPU usage of a certain program.And a certain program committed memory is excessive, it can shadow Ring the overall performance of machine.
Real-time performance parameter can only be CPU usage or memory usage, can also be comprehensive CPU usage and memory The numerical value that occupancy obtains, the operating condition for embodying current display setup 100.
Step S2 obtains the image resolution ratio and picture display face product of current playing video file in the display equipment, And show that area obtains image parameter according to described image resolution ratio and described image;
Image resolution ratio refers to the information content stored in image, is how many pixel in per inch image.Image resolution Rate is used for indicating the clarity of image, and there are many representation methods of image resolution ratio, the expression side of image resolution ratio in invention Method is not limited, and common image resolution ratio has 640*480;1024*768;1600*1200;2048*1536;4096×2160 Deng 4K videos refer to the video with 4096 × 2160 image resolution ratios at present.
Picture display face product refers to the length and width multiplication occupied area of video image, using the area in physical significance Unit.
In fact, the resolution ratio of image is higher, the clarity that user experiences image is better, and validity is better, and image is aobvious Show that area is bigger, user can watch in remoter place.When video file plays out, image resolution ratio and image are aobvious Show that area is directly proportional to real-time performance parameter, image resolution ratio is higher, and real-time performance parameter is higher;Picture display face product is got over Greatly, real-time performance parameter is higher.
Step S3 obtains numeric ratio according to the ratio calculation of described image parameter and the performance parameter;
Step S4, judges whether the numeric ratio is more than predetermined threshold value;
The predetermined threshold value is the numerical value being pre-stored in display equipment, which is that technical staff's foundation is specifically set It sets.
Step S5, when the numeric ratio be less than or equal to the predetermined threshold value when, continue keep described image resolution ratio and Described image shows that area plays the video file;
Step S6 is reduced when the numeric ratio is more than the predetermined threshold value described in described image resolution ratio and/or diminution Picture display face accumulates, so that the numeric ratio obtained after adjustment reduces.
Since image resolution ratio and picture display face product are directly proportional to real-time performance parameter, according to image resolution ratio and figure As show area obtain image parameter and real-time performance parameter ratio, can reflect current display setup broadcasting performance whether Meet the needs of playing video file.It is weights and measures by the numeric ratio, is compared with predetermined threshold value, so as to further Carry out the automatic adjusting work for reducing described image resolution ratio and/or reduce described image display area;By reducing the figure As resolution ratio and/or described image display area is reduced, to reduce real-time performance parameter, to solve display device plays video Interim card falls the technical issues of frame.
Referring to Fig. 3, the method flow of the playback method 202 for the video in the second embodiment in the present invention Figure.In this second embodiment, the step S1 of the playback method 202 of the video, step S3, step S4, step S5 and step S6 is identical with first embodiment, and details are not described herein;Its difference is that the step S2 is specifically included:
Step S201 obtains the image resolution ratio and picture display face of current playing video file in the display equipment Product shows that the product of area obtains described image parameter according to described image resolution ratio and described image.Due to image resolution ratio Directly proportional to real-time performance parameter with picture display face product, described image parameter is that described image resolution ratio and described image are aobvious Show the product of area, can reflect that described image resolution ratio and described image show area numerically by described image parameter Variation.Such as:Image resolution ratio is 1920*1080, and picture display face product is 88cm*50cm, then image parameter can be 1920*1080*88cm*50cm。
Referring to Fig. 4, the method flow of the playback method 203 for the video in the 3rd embodiment in the present invention Figure.In the 3rd embodiment, step S1, step S3, step S4, step S5 and the step of the playback method 203 of the video S6 is identical with first embodiment, and details are not described herein;Its difference is that the step S2 is specifically included:
Step S211 obtains the image resolution ratio and picture display face of current playing video file in the display equipment Product shows that the product of area and preset constant obtains described image parameter according to described image resolution ratio, described image.It is described pre- If constant is the gain constant that those skilled in the art are configured as needed, to adjust obtained numeric ratio, facilitates and compare.
In the present embodiment, described image resolution ratio, described image display area and real-time performance parameter are brought into following Formula:
Wherein, image resolution ratio y, picture display face product are z, real-time performance ginseng Number is x, and B/A is preset constant.
By the way that preset constant is arranged so that the numeric ratio of acquisition is distributed around in numerical value 1, that is to say, that can be arranged default Threshold value is 1.F (x, y, z) is less than or equal to 1, continues that described image resolution ratio and described image is kept to show described in area broadcasting Video file;When f (x, y, z) is more than 1, described image resolution ratio is reduced and/or reduces described image showing area, so as to adjust The numeric ratio obtained after whole reduces.
Referring to Fig. 5, the method for the step S6 for the playback method of the video in the fourth embodiment in the present invention Flow chart.In the fourth embodiment, step S1, step S2, step S3, step S4 and the step of the playback method of the video S5 is identical with first embodiment, and details are not described herein;Its difference is that the step S6 is specifically included:
Step S61 reduces the image resolution ratio of the video file when the numeric ratio is more than the predetermined threshold value;
When the numeric ratio is more than the predetermined threshold value, illustrate that interim card, i.e. CPU or interior occurs in currently playing video file The working performance deposited cannot meet current needs, by reducing the image resolution ratio of the video file, be occupied to reduce CPU Rate or memory usage.
Step S62 obtains the real-time performance parameter after adjustment, and according to described image display area and after adjusting Described image parameter after the adjustment that described image resolution ratio obtains, the ratio calculation with the real-time performance parameter after adjustment Obtain the first numeric ratio;
Step S63, judges whether first numeric ratio is more than the predetermined threshold value;
Step S64, when first numeric ratio is less than or equal to the predetermined threshold value, the video file is with the figure As showing that the image resolution ratio after area and the adjustment plays;
Step S65 reduces described image and shows area when first numeric ratio is more than the predetermined threshold value;
When first numeric ratio is more than the predetermined threshold value, illustrate that currently playing video file still interim card occurs, I.e. by reducing the image resolution ratio of the video file, to reduce CPU usage or memory usage, the CPU after adjustment Or the working performance of memory times cannot so meet current needs, to be accumulated by adjusting picture display face, further decrease CPU and account for With rate or memory usage.
Step S66 obtains the presently described real-time performance parameter after adjustment, and according to the image resolution ratio after the adjustment The described image parameter after the adjustment that area obtains is shown with the described image after adjustment, is joined with the real-time performance after adjustment Several ratio calculations obtains second value ratio;
Step S67 judges the second value than whether being more than the predetermined threshold value;
Step S68, when the second value ratio is less than or equal to the predetermined threshold value, the video file is with the tune Picture display face product after image resolution ratio and the adjustment after whole plays.
When due to video-see, certain clarity is turned down, user is also that can continue to watch the video.And adjust image Display area may result in user and need to change the distance between display equipment, to see the video of broadcasting clearly.So this reality It applies by first adjusting image resolution ratio in example, it is rear to adjust picture display face product so that broadcasting for video can be first ensured when being adjusted Size is put, user is facilitated to watch.
Referring to Fig. 6, the method for the step S61 for the playback method of the video in the 5th embodiment in the present invention Flow chart.In the 5th embodiment, the step S62 of the playback method of the video, step S63, step S64, step S65, Step S66, step S67 and step S68 are identical with fourth embodiment, and details are not described herein;Its difference is, the step S61 is specifically included:
Step S611, when the numeric ratio is more than the predetermined threshold value, according to presently described real-time performance parameter and in advance If the constant mapping table of performance parameter, first constant is obtained, according to presently described picture display face product and pre-set image display surface Long-pending constant mapping table obtains second constant;
The constant mapping table of default capabilities parameter is the numerical tabular defaulted in display equipment, is labelled with different performance ginsengs The corresponding constant of number;Pre-set image shows that the constant mapping table of area is the numerical tabular defaulted in display equipment, is labelled with not Same picture display face accumulates corresponding constant.
Step S612, described image resolution ratio is multiplied by the first constant and the ratio of the second constant is worth to the tune Image resolution ratio after whole, the image resolution ratio for reducing the video file are the image resolution ratio after the adjustment.
Performance parameter and picture display face product are converted into corresponding numerical value, the image after the adjustment point is calculated Resolution avoids repeatedly adjusting.In fact, the resolution ratio that existing video is all made of certain format plays out, as being not provided with It states first constant and second constant is adjusted, and successively decreased successively from presently described image resolution ratio using arithmetic logic, until f (x, y, z) is less than or equal to 1, and obtained y values, which differ, surely meets existing common resolution format.Such as:Original image is differentiated Rate is 4096 × 2160, and 2048*1790 is calculated and meets f (x, y, z) equal to 1, but in order to meet most of electronic equipments It plays and needs, and inconvenience is played out using 2048*1790.The general format 2048* nearest with 2048*1790 can be used 1536 play out.Broadcasting can be facilitated using the first constant and second constant that are arranged in the present embodiment.
Referring to Fig. 7, the method for the step S65 for the playback method of the video in the sixth embodiment in the present invention Flow chart.In the sixth embodiment, the step S61 of the playback method 206 of the video, step S62, step S63, step S64, step S66, step S67 and step S68 are identical with the 5th embodiment, and details are not described herein;Its difference is, the step Rapid S65 is specifically included:
Step S651, when first numeric ratio is more than the predetermined threshold value, according to presently described real-time performance parameter With the constant mapping table of the default capabilities parameter, obtain three constant, according to after presently described adjustment image resolution ratio and The constant mapping table of pre-set image resolution ratio obtains the 4th constant;
Step S652, described image show that area is multiplied by the three constant and the ratio of the 4th constant is worth to the adjustment Picture display face product afterwards, the picture display face product for reducing the video file are the picture display face product after the adjustment.
Likewise, performance parameter and image resolution ratio are converted to corresponding numerical value, after the adjustment is calculated Picture display face accumulates, and avoids repeatedly adjusting.In fact, existing video be all made of certain format resolution ratio play out it is same When, also played out using certain length-width ratio, to meet human vision custom, the three constant and the 4th normal as described in being not provided with Number is adjusted, and arithmetic logic is used to successively decrease successively from presently described picture display face product, until f (x, y, z) is less than or waits In 1, obtained z values, which differ, surely meets existing common display scale format.
In one embodiment, the image resolution ratio after the adjustment is greater than or equal to default minimum image resolution ratio, described Picture display face product after adjustment is greater than or equal to default minimum image and shows area.This is preset minimum image resolution ratio and presets Minimum image show area be those skilled in the art be configured according to need so that the image resolution ratio after the adjustment and Picture display face product after the adjustment meets the Minimum requirements of viewing video file.
Referring to Fig. 8, the method flow of the playback method 204 for the video in the 7th embodiment in the present invention Figure.In the 7th embodiment, step S1, step S2, step S3, step S4, the step S5 of the playback method 204 of the video Identical with first embodiment with step S6, details are not described herein;Its difference is, after the step S6, further includes:
Step S7, the image resolution ratio after adjustment is equal to the default minimum image resolution ratio, after the adjustment Picture display face product when being equal to the default minimum image and showing area, and second value ratio is more than the default threshold Value stops playing the video file and pops up prompt message.
Referring once again to Fig. 1, the present invention also provides a kind of display equipment, including it is storage unit 10, processing unit 20, aobvious Show unit 30 and is stored in the computer program that can be run in the storage unit 10 and on the processing unit 20, the place The step of reason unit 20 realizes the playback method of video as the aforementioned when executing the computer program, specifically includes:
Step S1, obtains the real-time performance parameter of current display setup, the real-time performance parameter be CPU usage and/ Or memory usage;
Step S2 obtains the image resolution ratio and picture display face product of current playing video file in the display equipment, And show that area obtains image parameter according to described image resolution ratio and described image;
Step S3 obtains numeric ratio according to the ratio calculation of described image parameter and the real-time performance parameter;
Step S4, judges whether the numeric ratio is more than predetermined threshold value;
Step S5, when the numeric ratio be less than or equal to the predetermined threshold value when, continue keep described image resolution ratio and Described image shows that area plays the video file;
Step S6 is reduced when the numeric ratio is more than the predetermined threshold value described in described image resolution ratio and/or diminution Picture display face accumulates, so that the numeric ratio obtained after adjustment reduces.
Since image resolution ratio and picture display face product are directly proportional to real-time performance parameter, according to image resolution ratio and figure As the ratio of the image parameter and real-time performance parameter that show area acquisition, it can reflect whether the performance of current display setup meets The needs of playing video file.It is weights and measures by the numeric ratio, is compared with predetermined threshold value, so as to further carry out It is automatic to reduce described image resolution ratio and/or reduce the adjusting work that described image shows area;By reducing described image point Resolution and/or diminution described image show area, to reduce real-time performance parameter, to solve display device plays video card Pause, fall the technical issues of frame.
Optionally, the step S2 is specifically included:
Step S201 obtains the image resolution ratio and picture display face of current playing video file in the display equipment Product shows that the product of area obtains described image parameter according to described image resolution ratio and described image.
Optionally, the step S2 is specifically included:
Step S211 obtains the image resolution ratio and picture display face of current playing video file in the display equipment Product shows that the product of area and preset constant obtains described image parameter according to described image resolution ratio, described image.
Optionally, the step S6 is specifically included:
Step S61 reduces the image resolution ratio of the video file when the numeric ratio is more than the predetermined threshold value;
Step S62 obtains the real-time performance parameter after adjustment, and according to described image display area and after adjusting Described image parameter after the adjustment that described image resolution ratio obtains, the ratio calculation with the real-time performance parameter after adjustment Obtain the first numeric ratio;
Step S63, judges whether first numeric ratio is more than the predetermined threshold value;
Step S64, when first numeric ratio is less than or equal to the predetermined threshold value, the video file is with the figure As showing that the image resolution ratio after area and the adjustment plays;
Step S65 reduces described image and shows area when first numeric ratio is more than the predetermined threshold value;
Step S66 obtains the presently described real-time performance parameter after adjustment, and according to the image resolution ratio after the adjustment The described image parameter after the adjustment that area obtains is shown with the described image after adjustment, is joined with the real-time performance after adjustment Several ratio calculations obtains second value ratio;
Step S67 judges the second value than whether being more than the predetermined threshold value;
Step S68, when the second value ratio is less than or equal to the predetermined threshold value, the video file is with the tune Picture display face product after image resolution ratio and the adjustment after whole plays.
Optionally, the step S61 is specifically included:
Step S611, when the numeric ratio is more than the predetermined threshold value, according to presently described real-time performance parameter and in advance If the constant mapping table of performance parameter, first constant is obtained, according to presently described picture display face product and pre-set image display surface Long-pending constant mapping table obtains second constant;
Step S612, described image resolution ratio is multiplied by the first constant and the ratio of the second constant is worth to the tune Image resolution ratio after whole, the image resolution ratio for reducing the video file are the image resolution ratio after the adjustment.
Optionally, step S65 is specifically included:
Step S651, when first numeric ratio is more than the predetermined threshold value, according to presently described real-time performance parameter With the constant mapping table of the default capabilities parameter, obtain three constant, according to after presently described adjustment image resolution ratio and The constant mapping table of pre-set image resolution ratio obtains the 4th constant;
Step S652, described image show that area is multiplied by the three constant and the ratio of the 4th constant is worth to the adjustment Picture display face product afterwards, the picture display face product for reducing the video file are the picture display face product after the adjustment.
Optionally, the image resolution ratio after the adjustment is greater than or equal to default minimum image resolution ratio, after the adjustment Picture display face product be greater than or equal to default minimum image and show area.
Optionally, after step S6, further include:
Step S7, the image resolution ratio after adjustment are equal to the default minimum image resolution ratio, and the tune When picture display face product after whole is equal to the default minimum image display area, the second value ratio is more than the default threshold Value stops playing the video file and pops up prompt message.
The present invention also provides a kind of computer readable storage mediums, which is characterized in that the computer readable storage medium On be stored with computer program, the computer program realizes the playback method of video as the aforementioned when being executed by processing unit 20 The step of.
In the description of this specification, reference term " embodiment ", " another embodiment ", " other embodiment " or " The description of one embodiment~X embodiment " etc. mean specific features described in conjunction with this embodiment or example, structure, material or Person's feature is included at least one embodiment or example of the invention.In the present specification, to the schematic table of above-mentioned term It states and may not refer to the same embodiment or example.Moreover, specific features, structure, material, method and step or the spy of description Point can be combined in any suitable manner in any one or more of the embodiments or examples.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that process, method, article or system including a series of elements include not only those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this There is also other identical elements in the process of element, method, article or system.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a display equipment equipment (can be hand Machine, computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The foregoing is merely the optional implementations of the present invention, are not intended to limit the scope of the invention, every in this hair Under bright design, using equivalent structure transformation made by description of the invention and accompanying drawing content, or directly/it is used in other indirectly Relevant technical field is included in the scope of patent protection of the present invention.

Claims (10)

1. a kind of playback method of video, which is characterized in that include the following steps:
The real-time performance parameter of current display setup is obtained, the real-time performance parameter is CPU usage and/or EMS memory occupation Rate;
The image resolution ratio and picture display face product of current playing video file in the display equipment are obtained, and according to the figure As resolution ratio and described image show that area obtains image parameter;
Numeric ratio is obtained according to the ratio calculation of described image parameter and the real-time performance parameter;
Judge whether the numeric ratio is more than predetermined threshold value;
When the numeric ratio is less than or equal to the predetermined threshold value, continue that described image resolution ratio and described image is kept to show Area plays the video file;
When the numeric ratio is more than the predetermined threshold value, reduces described image resolution ratio and/or reduce described image display surface Product, so that the numeric ratio obtained after adjustment reduces.
2. the playback method of video as described in claim 1, which is characterized in that described obtain currently is broadcast in the display equipment The image resolution ratio and picture display face product of video file are put, and shows that area obtains according to described image resolution ratio and described image It the step of to image parameter, specifically includes:
The image resolution ratio and picture display face product for obtaining current playing video file in the display equipment, according to described image Resolution ratio and described image show that the product of area obtains described image parameter.
3. the playback method of video as described in claim 1, which is characterized in that described obtain currently is broadcast in the display equipment The image resolution ratio and picture display face product of video file are put, and shows that area obtains according to described image resolution ratio and described image It the step of to image parameter, specifically includes:
The image resolution ratio and picture display face product for obtaining current playing video file in the display equipment, according to described image Resolution ratio, described image show that the product of area and preset constant obtains described image parameter.
4. the playback method of video as described in claim 1, which is characterized in that described when the numeric ratio is more than described preset When threshold value, described image resolution ratio is reduced and/or reduces described image showing area, so that the numeric ratio obtained after adjustment The step of reduction, specifically includes:
When the numeric ratio is more than the predetermined threshold value, the image resolution ratio of the video file is reduced;
The real-time performance parameter after adjustment is obtained, and shows that the described image after area and adjustment is differentiated according to described image Rate be adjusted after described image parameter, obtain the first numerical value with the ratio calculation of the real-time performance parameter after adjustment Than;
Judge whether first numeric ratio is more than the predetermined threshold value;
When first numeric ratio be less than or equal to the predetermined threshold value when, the video file with described image show area and Image resolution ratio after the adjustment plays;
When first numeric ratio is more than the predetermined threshold value, reduces described image and show area;
The presently described real-time performance parameter after adjustment is obtained, and according to the image resolution ratio after the adjustment and the institute after adjustment The described image parameter after the adjustment that picture display face accumulates is stated, the ratio calculation with the real-time performance parameter after adjustment Obtain second value ratio;
Judge the second value than whether being more than the predetermined threshold value;
When the second value ratio is less than or equal to the predetermined threshold value, the video file is with the image after the adjustment point Picture display face product after resolution and the adjustment plays.
5. the playback method of video as claimed in claim 4, which is characterized in that described when the numeric ratio is more than described preset When threshold value, the step of reducing the image resolution ratio of the video file, specifically include:
When the numeric ratio is more than the predetermined threshold value, according to the normal of presently described real-time performance parameter and default capabilities parameter Number mapping table, obtains first constant, and the constant mapping table of area is shown according to presently described picture display face product and pre-set image, Obtain second constant;
Described image resolution ratio is multiplied by the first constant and the ratio of the second constant is worth to the image after the adjustment point Resolution, the image resolution ratio for reducing the video file are the image resolution ratio after the adjustment.
6. the playback method of video as claimed in claim 4, which is characterized in that according to being more than when first numeric ratio When predetermined threshold value, the step of described image shows area is reduced, is specifically included:
When first numeric ratio is more than the predetermined threshold value, according to presently described real-time performance parameter and the default capabilities The constant mapping table of parameter obtains three constant, according to the image resolution ratio and pre-set image resolution ratio after presently described adjustment Constant mapping table, obtain the 4th constant;
Described image shows that area is multiplied by the image that the ratio of the three constant and the 4th constant is worth to after the adjustment and shows Area, the picture display face product for reducing the video file are the picture display face product after the adjustment.
7. the playback method of the video as described in any one of claim 4 to 6, which is characterized in that the image after the adjustment Resolution ratio is greater than or equal to default minimum image resolution ratio, and the picture display face product after the adjustment is greater than or equal to default minimum Picture display face accumulates.
8. the playback method of video as claimed in claim 7, which is characterized in that described when the numeric ratio is more than described preset When threshold value, described image resolution ratio is reduced and/or reduces described image showing area, so that the numeric ratio obtained after adjustment After the step of reduction, further include:
The image resolution ratio after adjustment is equal to the default minimum image resolution ratio, the picture display face after the adjustment When product is equal to the default minimum image display area, and second value ratio is more than the predetermined threshold value, stops playing The video file simultaneously pops up prompt message.
9. a kind of display equipment, which is characterized in that the display equipment includes storage unit, processing unit, display unit and deposits The computer program that can be run in the storage unit and on the processing unit is stored up, the processing unit executes the meter The step of playback method such as video described in any item of the claim 1 to 8 is realized when calculation machine program.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes the broadcasting such as video described in any item of the claim 1 to 8 when the computer program is executed by processing unit The step of method.
CN201810391334.4A 2018-04-26 2018-04-26 Video playing method, display device and computer readable storage medium Active CN108377421B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810391334.4A CN108377421B (en) 2018-04-26 2018-04-26 Video playing method, display device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810391334.4A CN108377421B (en) 2018-04-26 2018-04-26 Video playing method, display device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108377421A true CN108377421A (en) 2018-08-07
CN108377421B CN108377421B (en) 2021-06-11

Family

ID=63032818

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810391334.4A Active CN108377421B (en) 2018-04-26 2018-04-26 Video playing method, display device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108377421B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110189388A (en) * 2019-05-28 2019-08-30 上海哔哩哔哩科技有限公司 Animation detection method, readable storage medium storing program for executing and computer equipment
CN111182352A (en) * 2018-11-09 2020-05-19 浙江宇视科技有限公司 Adaptive code stream control device and method for video playing
WO2020107992A1 (en) * 2018-11-27 2020-06-04 Oppo广东移动通信有限公司 Video processing method, device, electronic device and storage medium
CN112449241A (en) * 2019-08-29 2021-03-05 中兴通讯股份有限公司 Power consumption adjusting method and device and computer readable storage medium
US11206444B2 (en) * 2018-12-28 2021-12-21 Beijing Microlive Vision Technology Co., Ltd Method and device for video previewing, electronic equipment, and computer-readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080072231A1 (en) * 2006-09-20 2008-03-20 Kabushiki Kaisha Toshiba Resource management apparatus
CN103220577A (en) * 2012-01-18 2013-07-24 腾讯科技(深圳)有限公司 Method, device and system for video displaying
US8503539B2 (en) * 2010-02-26 2013-08-06 Bao Tran High definition personal computer (PC) cam
CN104093072A (en) * 2014-06-30 2014-10-08 京东方科技集团股份有限公司 System and method for playing video information
CN104394387A (en) * 2014-12-09 2015-03-04 中国电子科技集团公司第五十四研究所 Multi-channel image display method supporting video superposition for ground control station of unmanned aerial vehicle
CN106792169A (en) * 2016-12-12 2017-05-31 深圳Tcl数字技术有限公司 Internet video play handling method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080072231A1 (en) * 2006-09-20 2008-03-20 Kabushiki Kaisha Toshiba Resource management apparatus
US8503539B2 (en) * 2010-02-26 2013-08-06 Bao Tran High definition personal computer (PC) cam
CN103220577A (en) * 2012-01-18 2013-07-24 腾讯科技(深圳)有限公司 Method, device and system for video displaying
CN104093072A (en) * 2014-06-30 2014-10-08 京东方科技集团股份有限公司 System and method for playing video information
CN104394387A (en) * 2014-12-09 2015-03-04 中国电子科技集团公司第五十四研究所 Multi-channel image display method supporting video superposition for ground control station of unmanned aerial vehicle
CN106792169A (en) * 2016-12-12 2017-05-31 深圳Tcl数字技术有限公司 Internet video play handling method and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111182352A (en) * 2018-11-09 2020-05-19 浙江宇视科技有限公司 Adaptive code stream control device and method for video playing
CN111182352B (en) * 2018-11-09 2022-06-14 浙江宇视科技有限公司 Adaptive code stream control device and method for video playing
WO2020107992A1 (en) * 2018-11-27 2020-06-04 Oppo广东移动通信有限公司 Video processing method, device, electronic device and storage medium
US11206444B2 (en) * 2018-12-28 2021-12-21 Beijing Microlive Vision Technology Co., Ltd Method and device for video previewing, electronic equipment, and computer-readable storage medium
CN110189388A (en) * 2019-05-28 2019-08-30 上海哔哩哔哩科技有限公司 Animation detection method, readable storage medium storing program for executing and computer equipment
CN110189388B (en) * 2019-05-28 2024-06-14 上海哔哩哔哩科技有限公司 Animation detection method, readable storage medium, and computer device
CN112449241A (en) * 2019-08-29 2021-03-05 中兴通讯股份有限公司 Power consumption adjusting method and device and computer readable storage medium

Also Published As

Publication number Publication date
CN108377421B (en) 2021-06-11

Similar Documents

Publication Publication Date Title
CN108377421A (en) The playback method and display equipment, computer readable storage medium of video
US20230393646A1 (en) Throttling of components using priority ordering
US9800826B2 (en) Method and device for adjusting frame rate of video recording
CN108288251A (en) Image super-resolution method, device and computer readable storage medium
TWI578153B (en) Adaptive graphics subsystem power and performance management
CN103823546B (en) Information control method and electronic equipment
US20090270138A1 (en) Coordinating power management functions in a multi-media device
CN108509016A (en) Control the method and device and related media production of CPU power consumption
CN103702216A (en) Intelligent terminal and method for displaying video images by same
CN103944231A (en) Mobile terminal temperature raising control method and device
CN106155263A (en) A kind of parameter adjusting method and device
CN101751901B (en) Method and device for playing dynamic electronic album
DE112015006587T5 (en) Adaptive batch encoding for slow motion video recording
CN110413245A (en) Image composition method, device, electronic equipment and storage medium
CN103607629B (en) Multimedia file playing method and electronic terminal
CN106454364A (en) Panoramic video playing method and device
CN103200310B (en) Mobile terminal interface adjusting method, mobile terminal interface adjusting device and mobile terminal
CN114115773B (en) Frame rate adjusting method, device, storage medium and terminal equipment
JP2018081488A (en) Image processing device and control method thereof
CN112911390B (en) Video data playing method and terminal equipment
CN108337554A (en) Smart mobile phone browser video buffer method
CN108037819A (en) A kind of mobile terminal reduces method, mobile terminal and the storage device of power consumption
CN103377015B (en) Electronic equipment and its information processing method
CN100480960C (en) Control method and system for adjusting operation frequency of microprocessor
CN112799848A (en) Control method and device

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