CN112702511B - Method and device for outputting video - Google Patents

Method and device for outputting video Download PDF

Info

Publication number
CN112702511B
CN112702511B CN202011499807.6A CN202011499807A CN112702511B CN 112702511 B CN112702511 B CN 112702511B CN 202011499807 A CN202011499807 A CN 202011499807A CN 112702511 B CN112702511 B CN 112702511B
Authority
CN
China
Prior art keywords
video
gear
output parameter
electronic device
resolution
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
CN202011499807.6A
Other languages
Chinese (zh)
Other versions
CN112702511A (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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202011499807.6A priority Critical patent/CN112702511B/en
Publication of CN112702511A publication Critical patent/CN112702511A/en
Application granted granted Critical
Publication of CN112702511B publication Critical patent/CN112702511B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Facsimiles In General (AREA)

Abstract

A method and apparatus for outputting video are provided. The method for outputting video includes: determining an output parameter gear of the video based on at least one of model capability checking information of the electronic device, video resolution and real-time performance data of the electronic device when the video is previewed; and outputting the video based on the determined output parameter gear of the video. According to the method and the device for outputting the video, the development cost of video output (export) can be reduced, online of the video is accelerated, the selection of the output parameter gear of the video is more reasonable by combining with real-time performance data, the quality of the output video is improved under the condition of not causing bad experiences such as blocking and the like, and the user experience is improved.

Description

Method and device for outputting video
Technical Field
The present disclosure relates to the field of video technology. More particularly, the present disclosure relates to a method and apparatus for outputting video.
Background
In a short video production environment, a user can perform a series of editing operations on a video, such as adding filters, beautifying, special effects and the like on the video. The user can then export (export) the edited video for upload distribution or save locally, at which point he is faced with the choice of which gear to export (export) the video.
Disclosure of Invention
An exemplary embodiment of the present disclosure is to provide a method and apparatus for outputting a video to solve at least the problems in outputting a video in the related art, and may not solve any of the problems.
According to an exemplary embodiment of the present disclosure, there is provided a method for outputting video, including: determining an output parameter gear of the video based on at least one of model capability checking information of the electronic device, video resolution and real-time performance data of the electronic device when the video is previewed; and outputting the video based on the determined output parameter gear of the video.
Alternatively, the output parameter gear of the video may be used to determine the resolution of the output video.
Optionally, the step of determining an output parameter gear of the video based on at least one of model capability check information of the electronic device, a video resolution, and real-time performance data of the electronic device when the video is previewed may include: acquiring machine type capability checking information of the electronic device; determining an output parameter gear of a video based on the model capability check information of the electronic device; and when the output parameter gear of the video determined based on the model capability verification information of the electronic device is a preset gear, determining the output parameter gear of the video as the preset gear.
Optionally, the step of determining an output parameter gear of the video based on at least one of model capability check information of the electronic device, a video resolution, and real-time performance data of the electronic device when the video is previewed may further include: when the output parameter gear of the video determined based on the model capability check information of the electronic device is not the preset gear, starting video preview; acquiring the resolution of a video; determining an output parameter gear of the video based on the video resolution; and when the output parameter gear of the video determined based on the video resolution is the preset gear, determining the output parameter gear of the video as the preset gear.
Optionally, the step of determining an output parameter gear of the video based on at least one of the model capability check information of the electronic device, the video resolution, and the real-time performance data of the electronic device when previewing the video may further include: when the output parameter gear of the video determined based on the video resolution is not the preset gear, acquiring real-time performance data of the electronic device during video preview; determining an output parameter gear of the video based on the real-time performance data; when the output parameter gear of the video determined based on the real-time performance data is the preset gear, determining the output parameter gear of the video as the preset gear; and when the output parameter gear of the video determined based on the real-time performance data is not the preset gear, determining the output parameter gear of the video as the output parameter gear of the video determined based on the real-time performance data.
Optionally, the output parameter steps of the video are classified into at least a high step and a normal step, wherein the high step is an output parameter step of the video in which the resolution of the output video is not lower than a preset resolution, and the normal step is an output parameter step of the video in which the resolution of the output video is lower than the preset resolution.
Optionally, the step of determining an output parameter gear of the video based on at least one of the model capability check information of the electronic device, the video resolution, and the real-time performance data of the electronic device when the video is previewed may include: acquiring machine type capability checking information of the electronic device; determining an output parameter gear of the video based on the model capability check information of the electronic device; and when the output parameter gear of the video determined based on the model capability verification information of the electronic device is a common gear, determining the output parameter gear of the video as the common gear.
Optionally, the step of determining an output parameter gear of the video based on at least one of model capability check information of the electronic device, a video resolution, and real-time performance data of the electronic device when the video is previewed may further include: when the output parameter gear of the video determined based on the model capability checking information of the electronic device is high-grade, starting video preview; acquiring the video resolution; determining an output parameter gear of the video based on the video resolution; and when the output parameter gear of the video determined based on the video resolution is the common gear, determining the output parameter gear of the video as the common gear.
Optionally, the step of determining an output parameter gear of the video based on at least one of the model capability check information of the electronic device, the video resolution, and the real-time performance data of the electronic device when previewing the video may further include: when the output parameter gear of the video determined based on the video resolution is high-grade, acquiring real-time performance data of the electronic device during video previewing; determining an output parameter gear of the video based on the real-time performance data; when the output parameter gear of the video determined based on the real-time performance data is a common gear, determining the output parameter gear of the video as the common gear; and when the output parameter gear of the video determined based on the real-time performance data is a high gear, determining the output parameter gear of the video as a high gear.
Optionally, the step of acquiring real-time performance data of the electronic device when previewing the video may include: acquiring real-time performance data of the electronic device when previewing a video; normalizing the acquired real-time performance data; and taking the real-time performance data after the normalization processing as the real-time performance data of the electronic device when previewing the video.
Optionally, the real-time performance data may include at least one of cpu utilization, preview frame rate, and katton rate.
Optionally, the model capability check information may include at least one of a resolution and a memory of the electronic device.
According to an exemplary embodiment of the present disclosure, there is provided an apparatus for outputting video, including: the gear determining unit is configured to determine an output parameter gear of the video based on at least one of model capability checking information of the electronic device, video resolution and real-time performance data of the electronic device when the video is previewed; and a video output unit configured to output the video based on the determined output parameter steps of the video.
Alternatively, the output parameter gear of the video may be used to determine the resolution of the output video.
Alternatively, the gear position determination unit may include a first determination unit configured to: acquiring machine type capability checking information of the electronic device; determining an output parameter gear of the video based on the model capability check information of the electronic device; and when the output parameter gear of the video determined based on the model capability verification information of the electronic device is a preset gear, determining the output parameter gear of the video as the preset gear.
Optionally, the gear position determining unit may further include a second determining unit configured to: when the output parameter gear of the video determined based on the model capability check information of the electronic device is not the preset gear, starting video preview; acquiring the video resolution; determining an output parameter gear of the video based on the video resolution; and when the output parameter gear of the video determined based on the video resolution is the preset gear, determining the output parameter gear of the video as the preset gear.
Optionally, the gear position determining unit may further include a third determining unit configured to: when the output parameter gear of the video determined based on the video resolution is not the preset gear, acquiring real-time performance data of the electronic device during video previewing; determining an output parameter gear of the video based on the real-time performance data; when the output parameter gear of the video determined based on the real-time performance data is the preset gear, determining the output parameter gear of the video as the preset gear; and when the output parameter gear of the video determined based on the real-time performance data is not the preset gear, determining the output parameter gear of the video as the output parameter gear of the video determined based on the real-time performance data.
Alternatively, the output parameter ranks of the video may be classified into at least a high rank that is an output parameter rank of the video in which the resolution of the output video is not lower than a preset resolution, and a normal rank that is an output parameter rank of the video in which the resolution of the output video is lower than the preset resolution.
Alternatively, the gear position determination unit may be configured to: acquiring machine type capability checking information of the electronic device; determining an output parameter gear of the video based on the model capability check information of the electronic device; and when the output parameter gear of the video determined based on the model capability verification information of the electronic device is a common gear, determining the output parameter gear of the video as the common gear.
Optionally, the gear determining unit may be further configured to: when the output parameter gear of the video determined based on the model capability check information of the electronic device is high-grade, starting video preview; acquiring the resolution of a video; determining an output parameter gear of the video based on the video resolution; and when the output parameter gear of the video determined based on the video resolution is the common gear, determining the output parameter gear of the video as the common gear.
Optionally, the gear determining unit may be further configured to: when the output parameter gear of the video determined based on the video resolution is high-grade, acquiring real-time performance data of the electronic device during video previewing; determining an output parameter gear of the video based on the real-time performance data; when the output parameter gear of the video determined based on the real-time performance data is a common gear, determining the output parameter gear of the video as the common gear; and when the output parameter gear of the video determined based on the real-time performance data is a high gear, determining the output parameter gear of the video as a high gear.
Alternatively, the gear determination unit may be configured to: acquiring real-time performance data of the electronic device during video preview; normalizing the acquired real-time performance data; and taking the real-time performance data after the normalization processing as the real-time performance data of the electronic device when previewing the video.
Optionally, the real-time performance data may include at least one of cpu utilization, preview frame rate, and katton rate.
Optionally, the model capability check information may include at least one of a resolution and a memory of the electronic device.
According to an exemplary embodiment of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method for outputting video according to an exemplary embodiment of the present disclosure.
According to an exemplary embodiment of the present disclosure, there is provided an electronic apparatus including: at least one processor; at least one memory storing a computer program that, when executed by the at least one processor, implements a method for outputting video according to an exemplary embodiment of the present disclosure.
According to an exemplary embodiment of the present disclosure, a computer program product is provided, in which instructions are executable by a processor of a computer device to perform a method for outputting video according to an exemplary embodiment of the present disclosure.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
1. the development cost is reduced, and the online time is shortened. Extra tests are not needed, the labor input is reduced, and the development period is shortened.
2. The coverage rate of the high-grade video output (exported) is improved, and the pause rate of the video output (exported) is reduced. The real-time data of the equipment is combined, more reasonable gear selection is made, the equipment with poor performance cannot be jammed due to the fact that high-level videos are output (exported), and the equipment with better performance can output (export) the videos with higher quality.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 illustrates a flowchart of a method for outputting video according to an exemplary embodiment of the present disclosure.
Fig. 2 shows a flowchart of a method for outputting video according to another exemplary embodiment of the present disclosure.
Fig. 3 illustrates a block diagram of an apparatus for outputting video according to an exemplary embodiment of the present disclosure.
Fig. 4 illustrates a block diagram of an apparatus for outputting video according to another exemplary embodiment of the present disclosure.
Fig. 5 is a block diagram of an electronic device 500 according to an example embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The embodiments described in the following examples do not represent all embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
In this case, the phrase "at least one of the plurality of items" in the present disclosure means that the three parallel cases including "any one of the plurality of items", "a combination of any plurality of the plurality of items", and "the entirety of the plurality of items" are included. For example, "including at least one of a and B" includes the following three cases in parallel: (1) comprises A; (2) comprises B; and (3) comprises A and B. For another example, "at least one of the first step and the second step is performed", which means that the following three cases are juxtaposed: (1) executing the step one; (2) executing the step two; and (3) executing the step one and the step two.
In the related art, the output (lead-out) position of the video is selected mainly by setting a white list. The tester tests the high-grade video output (export) of a plurality of types of equipment on line, and the developer configures the types of the equipment meeting the high-grade video output (export) condition into a white list. When the output (derivation) gear of the video is selected, whether the current equipment model is contained in the white list or not is judged, and the output (derivation) gear of the video is selected according to the white list. The related art has two main problems: firstly, the development cost is high and the flexibility is not enough. The addition of the white list depends on the offline test result of a tester, the test of the tester is difficult to cover all equipment models, and the tester is required to test new equipment models whenever the new equipment models appear. Secondly, real-time data is not combined, the actual performance of the current equipment cannot be accurately reflected by setting a model white list, and poor experience of a user can be caused after unreasonable gears are selected by mistake. The performance of the same model and different loss conditions of the equipment can be different.
Hereinafter, a method and apparatus for outputting video according to an exemplary embodiment of the present disclosure will be described in detail with reference to fig. 1 to 5. The method and the device for outputting the video according to the exemplary embodiments of the present disclosure are adapted to complete an output (export) scene after video editing, and before video output (export), determine whether to output (export) the video as a high-end video by combining at least one of model basic capability (e.g., resolution, memory of the electronic device), video resolution, real-time performance data, and configured high-end video threshold. It should be understood that for high-grade understanding, the definition of high-grade and medium-grade may be different due to different models and networks in different country and region. In an exemplary embodiment of the present disclosure, a code rate of 5Mbps, at a resolution of 720p, at mid-range; the high-end code rate is 1080p and 8Mbps.
Fig. 1 illustrates a flowchart of a method for outputting video according to an exemplary embodiment of the present disclosure.
Referring to fig. 1, in step S101, an output parameter gear of a video is determined based on at least one of model capability check information of an electronic device, a video resolution, and real-time performance data of the electronic device when previewing the video.
In an exemplary embodiment of the present disclosure, an output parameter gear of a video may be used to determine a resolution of the output video.
In an exemplary embodiment of the present disclosure, when an output parameter gear of a video is determined based on at least one of model capability check information, video resolution, and real-time performance data of the electronic device when the video is previewed, the model capability check information of the electronic device may be first acquired, the output parameter gear of the video may be determined based on the model capability check information of the electronic device, and then the output parameter gear of the video may be determined as a preset gear when the output parameter gear of the video determined based on the model capability check information of the electronic device is the preset gear. In an exemplary embodiment of the present disclosure, the model capability checking information may include at least one of a resolution and a memory of the electronic device. It should be understood that the model capability check information may also include other relevant parameters or data, which the present disclosure does not limit. For example, if the resolution of the electronic device reaches above 720p and the memory reaches above 3.8g, it is determined that the output parameter gear of the video is not the preset gear, otherwise it is determined that the output parameter gear of the video is the preset gear. Here, if the output parameter gear of the video is classified into two or more gears, the preset gear may be a designated or preset gear among the two or more gears.
In an exemplary embodiment of the disclosure, when the output parameter gear of the video determined based on the model capability check information of the electronic device is not the preset gear, the video preview may be started first, the video resolution is obtained, the output parameter gear of the video is determined based on the video resolution, and then when the output parameter gear of the video determined based on the video resolution is the preset gear, the output parameter gear of the video is determined as the preset gear. Before entering the publication page, a video preview page exists on a video client of a general electronic device, so that a user can see a video preview effect. Video clients of most electronic devices can also edit functions on the video preview page support. For example, if the resolution of the video itself is high (e.g., up to 720p or more), the determined output parameter gear of the video is not a preset gear; the resolution of the video itself is low (e.g., below 720 p), and the determined output parameter level of the video is a preset level. Because if the resolution of the video itself is low (e.g., lower than 720 p), it is not necessary to stretch the original video to a higher (e.g., higher than 720 p) resolution. This does not yield a benefit of sharpness, but only increases the video size unnecessarily.
In an exemplary embodiment of the present disclosure, when the output parameter gear of the video determined based on the video resolution is not the preset gear, the real-time performance data of the electronic device during the video preview may be first obtained, and the output parameter gear of the video may be determined based on the real-time performance data, and then when the output parameter gear of the video determined based on the real-time performance data is the preset gear, the output parameter gear of the video may be determined as the preset gear; and when the output parameter gear of the video determined based on the real-time performance data is not the preset gear, determining the output parameter gear of the video as the output parameter gear of the video determined based on the real-time performance data. In an exemplary embodiment of the present disclosure, the real-time performance data may include at least one of cpu utilization, preview frame rate, and katton rate. It should be understood that the real-time performance data may also include other relevant parameters or data, which the present disclosure does not limit. For example, if the real-time Cpu utilization rate of the electronic device is 48%, the preview frame rate is 25 frames/second, and the katon rate (katon times per second) is 0.1, it is determined that the output parameter gear of the video is not the preset gear, otherwise it is determined that the output parameter gear of the video is the preset gear.
In an exemplary embodiment of the present disclosure, the output parameter gear of the video may be classified into at least a high gear and a normal gear. Here, the high-end is an output parameter level of a video having a resolution of an output video not lower than a preset resolution, and the normal-end is an output parameter level of a video having a resolution of an output video lower than the preset resolution. Here, the preset resolution may be, for example, but not limited to, 480p, 720p, 1080p, and the like.
In an exemplary embodiment of the present disclosure, when an output parameter gear of a video is determined based on at least one of model capability check information, video resolution, and real-time performance data of the electronic device when the video is previewed, the model capability check information of the electronic device may be first acquired, and the output parameter gear of the video may be determined based on the model capability check information of the electronic device, and then when the output parameter gear of the video determined based on the model capability check information of the electronic device is a normal gear, the output parameter gear of the video may be determined as the normal gear.
In an exemplary embodiment of the present disclosure, when the output parameter gear of the video determined based on the model capability check information of the electronic device is the top gear, the video preview may be first started and the video resolution is acquired, the output parameter gear of the video is determined based on the video resolution, and then the output parameter gear of the video is determined as the normal gear when the output parameter gear of the video determined based on the video resolution is the normal gear.
In an exemplary embodiment of the present disclosure, when the output parameter gear of the video determined based on the video resolution is a high gear, the real-time performance data of the electronic device while previewing the video may be first acquired, and the output parameter gear of the video may be determined based on the real-time performance data, and then when the output parameter gear of the video determined based on the real-time performance data is a normal gear, the output parameter gear of the video may be determined as a normal gear; and when the output parameter gear of the video determined based on the real-time performance data is a high gear, determining the output parameter gear of the video as a high gear.
In an exemplary embodiment of the present disclosure, when acquiring the real-time performance data of the electronic device when previewing a video, the real-time performance data of the electronic device when previewing the video may be acquired first, the acquired real-time performance data may be normalized, and then the normalized real-time performance data may be used as the real-time performance data of the electronic device when previewing the video.
Since the cpu utilization rate is large in the whole preview process, for example, when a preview page is just entered and a preview page is just pushed out, the cpu utilization rate is high because other modules may consume the cpu besides the video preview module. Therefore, for example, the cpu utilization rate may be calculated once per second, and the 50-quantile data in the preview process is finally obtained, thereby obtaining the normalized cpu utilization rate. And taking the average value of the preview frame rates in the whole preview process as the preview frame rate after the normalization processing. In the process of adding some special effects, performance is additionally consumed when the special effects are initialized, and the video is stuck, so that the data needs to be checked when the stuck rate data is processed. For example, the stuck rate may be calculated once per second, the 50 quantiles are calculated first, then the special data far greater than the 50 quantiles (in the current calculation method, a value 3 times the 50 quantiles is calculated as a special data comparison threshold, and the special data greater than the threshold is considered as the special data) is checked, and then the 50 quantiles are calculated for the whole body after the special data is checked, so that the normalized stuck rate is obtained.
In step S102, the video is output based on the determined output parameter steps of the video.
In an exemplary embodiment of the present disclosure, as an example, when the output parameter gear of the video is classified into at least a high gear and a normal gear, if the determined output parameter gear of the video is the high gear, the video having a high gear resolution (for example, but not limited to, 720 p) is output (derived), and if the determined output parameter gear of the video is the normal gear, the video having a normal gear resolution is output (derived).
In an exemplary embodiment of the present disclosure, as an example, when the output parameter gear of the video is classified into first gear to fifth gear, if the output parameter gear of the determined video is the first gear, the video having the first gear resolution (for example, but not limited to, 240 p) is output (derived), if the output parameter gear of the determined video is the second gear, the video having the second gear resolution (for example, but not limited to, 360 p) is output (derived), if the output parameter gear of the determined video is the third gear, the video having the third gear resolution (for example, but not limited to, 720 p) is output (derived), if the output parameter gear of the determined video is the fourth gear, the video having the fourth gear resolution (for example, but not limited to, 1080 p) is output (derived), if the output parameter gear of the determined video is the fifth gear, the video having the fifth gear resolution (for example, but not limited to, 4K) is output (derived).
Fig. 2 illustrates a flowchart of a method for outputting a video according to another exemplary embodiment of the present disclosure.
Referring to fig. 2, in step S201, model capability check information of an electronic device is obtained, and an output parameter gear of a video is determined based on the model capability check information of the electronic device.
In an exemplary embodiment of the present disclosure, the output parameter gear of the video is classified into at least a high gear and a normal gear. Here, the high-end is an output parameter level of a video in which the resolution of the output video is not lower than a preset resolution, and the normal-end is an output parameter level of a video in which the resolution of the output video is lower than the preset resolution. Here, the preset resolution may be, for example, but not limited to, 480p, 720p, 1080p, and the like.
When the output parameter gear of the video determined based on the model capability check information of the electronic device is the normal gear, in step S202, the output parameter gear of the video is determined to be the normal gear, and the normal gear video is output (derived).
In step S203, when the output parameter gear of the video determined based on the model capability check information of the electronic device is high, video preview is started, and real-time performance data of the electronic device in previewing the video is acquired.
In step S204, the video resolution is acquired, and the output parameter gear of the video is determined based on the video resolution.
When the output parameter gear of the video determined based on the video resolution is the normal gear, step S202 is performed, the output parameter gear of the video is determined to be the normal gear, and the normal gear video is output (derived).
In step S205, when the output parameter gear of the video determined based on the video resolution is the high gear, the normalization processing is performed on the acquired real-time performance data.
In step S206, an output parameter gear of the video is determined based on the real-time performance data.
When the output parameter gear of the video determined based on the real-time performance data is the normal gear, step S202 is performed to determine the output parameter gear of the video as the normal gear, and output (derive) the normal gear video.
When the output parameter notch of the video determined based on the real-time performance data is the high notch, the output parameter notch of the video is determined to be the high notch and the high notch video is output (derived) in step S207.
In an exemplary embodiment of the present disclosure, as an example, when the output parameter gear of the video is classified into at least a high gear and a normal gear, if the determined output parameter gear of the video is the high gear, the video having a high gear resolution (for example, but not limited to, 720 p) is output (derived), and if the determined output parameter gear of the video is the normal gear, the video having a normal gear resolution is output (derived).
A method for outputting video according to an exemplary embodiment of the present disclosure has been described above in conjunction with fig. 1 to 2. Hereinafter, an apparatus for outputting video and units thereof according to an exemplary embodiment of the present disclosure will be described with reference to fig. 3 and 4.
Fig. 3 illustrates a block diagram of an apparatus for outputting video according to an exemplary embodiment of the present disclosure.
Referring to fig. 3, the apparatus for outputting video includes a gear position determining unit 31 and a video output unit 32.
The gear determination unit 31 is configured to determine an output parameter gear of the video based on at least one of model capability check information of the electronic device, a video resolution, and real-time performance data of the electronic device when previewing the video.
In an exemplary embodiment of the present disclosure, an output parameter gear of a video may be used to determine a resolution of the output video.
In an exemplary embodiment of the present disclosure, the gear position determining unit 31 may include a first determining unit configured to: acquiring machine type capability checking information of the electronic device; determining an output parameter gear of the video based on the model capability check information of the electronic device; and when the output parameter gear of the video determined based on the model capability verification information of the electronic device is a preset gear, determining the output parameter gear of the video as the preset gear.
In an exemplary embodiment of the present disclosure, the gear position determining unit 31 may further include a second determining unit configured to: when the output parameter gear of the video determined based on the model capability verification information of the electronic device is not the preset gear, starting video preview; acquiring the video resolution; determining an output parameter gear of the video based on the video resolution; and when the output parameter gear of the video determined based on the video resolution is the preset gear, determining the output parameter gear of the video as the preset gear.
In an exemplary embodiment of the present disclosure, the gear position determining unit 31 may further include a third determining unit configured to: when the output parameter gear of the video determined based on the video resolution is not the preset gear, acquiring real-time performance data of the electronic device during video previewing; determining an output parameter gear of the video based on the real-time performance data; when the output parameter gear of the video determined based on the real-time performance data is the preset gear, determining the output parameter gear of the video as the preset gear; and when the output parameter gear of the video determined based on the real-time performance data is not the preset gear, determining the output parameter gear of the video as the output parameter gear of the video determined based on the real-time performance data.
In an exemplary embodiment of the present disclosure, the output parameter gear of the video may be classified into at least a high gear and a normal gear. Here, the high-end is an output parameter level of a video in which the resolution of the output video is not lower than a preset resolution, and the normal-end is an output parameter level of a video in which the resolution of the output video is lower than the preset resolution. Here, the preset resolution may be, for example, but not limited to, 480p, 720p, 1080p, and the like.
In an exemplary embodiment of the present disclosure, the gear position determination unit 31 may be configured to: acquiring machine type capability checking information of the electronic device; determining an output parameter gear of the video based on the model capability check information of the electronic device; and when the output parameter gear of the video determined based on the model capability verification information of the electronic device is a common gear, determining the output parameter gear of the video as the common gear.
In an exemplary embodiment of the present disclosure, the gear position determination unit 31 may be further configured to: when the output parameter gear of the video determined based on the model capability check information of the electronic device is high-grade, starting video preview; acquiring the resolution of a video; determining an output parameter gear of the video based on the video resolution; and when the output parameter gear of the video determined based on the video resolution is the common gear, determining the output parameter gear of the video as the common gear.
In an exemplary embodiment of the present disclosure, the gear position determination unit 31 may be further configured to: when the output parameter gear of the video determined based on the video resolution is high-grade, acquiring real-time performance data of the electronic device when the video is previewed; determining an output parameter gear of the video based on the real-time performance data; when the output parameter gear of the video determined based on the real-time performance data is a common gear, determining the output parameter gear of the video as the common gear; and when the output parameter gear of the video determined based on the real-time performance data is a high gear, determining the output parameter gear of the video as a high gear.
In an exemplary embodiment of the present disclosure, the gear position determining unit 31 may be configured to: acquiring real-time performance data of the electronic device when previewing a video; normalizing the acquired real-time performance data; and taking the real-time performance data after the normalization processing as the real-time performance data of the electronic device when previewing the video.
In an exemplary embodiment of the present disclosure, the real-time performance data may include at least one of cpu utilization, preview frame rate, and katton rate.
In an exemplary embodiment of the present disclosure, the model capability checking information may include at least one of a resolution and a memory of the electronic device.
The video output unit 32 is configured to output the video based on the determined output parameter steps of the video.
Fig. 4 illustrates a block diagram of an apparatus for outputting video according to another exemplary embodiment of the present disclosure.
Referring to fig. 4, the apparatus for outputting a video includes a first determining unit 41, a second determining unit 42, a third determining unit 43, and a video output unit 44.
The first determination unit 41 is configured to: acquiring machine type capability checking information of the electronic device; determining an output parameter gear of the video based on the model capability check information of the electronic device; and when the output parameter gear of the video determined based on the model capability verification information of the electronic device is a preset gear, determining the output parameter gear of the video as the preset gear.
The second determination unit 42 is configured to: when the output parameter gear of the video determined based on the model capability check information of the electronic device is not the preset gear, starting video preview; acquiring the resolution of a video; determining an output parameter gear of the video based on the video resolution; and when the output parameter gear of the video determined based on the video resolution is the preset gear, determining the output parameter gear of the video as the preset gear.
The third determination unit 43 is configured to: when the output parameter gear of the video determined based on the video resolution is not the preset gear, acquiring real-time performance data of the electronic device during video preview; determining an output parameter gear of an output parameter of the video based on the real-time performance data; when the output parameter gear of the video determined based on the real-time performance data is the preset gear, determining the output parameter gear of the video as the preset gear; and when the output parameter gear of the video determined based on the real-time performance data is not the preset gear, determining the output parameter gear of the video as the output parameter gear of the video determined based on the real-time performance data.
The video output unit 44 is configured to output video based on the determined output parameter steps of the video.
The apparatus for outputting video according to the exemplary embodiment of the present disclosure has been described above in conjunction with fig. 3 and 4. Next, an electronic apparatus according to an exemplary embodiment of the present disclosure is described with reference to fig. 5.
Fig. 5 is a block diagram of an electronic device 500 according to an example embodiment of the present disclosure.
Referring to fig. 5, an electronic device 500 includes at least one memory 501 and at least one processor 502, the at least one memory 501 having stored therein a set of computer-executable instructions that, when executed by the at least one processor 502, perform a method for outputting video according to an exemplary embodiment of the present disclosure.
By way of example, the electronic device 500 may be a PC computer, tablet device, personal digital assistant, smartphone, or other device capable of executing the set of instructions described above. Here, the electronic device 500 need not be a single electronic device, but can be any collection of devices or circuits that can execute the above instructions (or sets of instructions) individually or in combination. The electronic device 500 may also be part of an integrated control system or system manager, or may be configured as a portable electronic device that interfaces with local or remote (e.g., via wireless transmission).
In the electronic device 500, the processor 502 may include a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a programmable logic device, a special-purpose processor system, a microcontroller, or a microprocessor. By way of example, and not limitation, processors may also include analog processors, digital processors, microprocessors, multi-core processors, processor arrays, network processors, and the like.
The processor 502 may execute instructions or code stored in the memory 501, wherein the memory 501 may also store data. The instructions and data may also be transmitted or received over a network via a network interface device, which may employ any known transmission protocol.
The memory 501 may be integrated with the processor 502, for example, by having RAM or flash memory disposed within an integrated circuit microprocessor or the like. Further, memory 501 may comprise a stand-alone device, such as an external disk drive, storage array, or any other storage device usable by a database system. The memory 501 and the processor 502 may be operatively coupled or may communicate with each other, such as through I/O ports, network connections, etc., so that the processor 502 can read files stored in the memory.
In addition, the electronic device 500 may also include a video display (such as a liquid crystal display) and a user interaction interface (such as a keyboard, mouse, touch input device, etc.). All components of the electronic device 500 may be connected to each other via a bus and/or a network.
According to an exemplary embodiment of the present disclosure, there may also be provided a computer-readable storage medium storing instructions, which, when executed by at least one processor, cause the at least one processor to perform a method for outputting video according to the present disclosure. Examples of computer-readable storage media herein include: read-only memory (ROM), random-access programmable read-only memory (PROM), electrically erasable programmable read-only memory (EEPROM), random-access memory (RAM), dynamic random-access memory (DRAM), static random-access memory (SRAM), flash memory, non-volatile memory, CD-ROM, CD-R, CD + R, CD-RW, CD + RW, DVD-ROM, DVD + R, DVD-RW, DVD + RW, BD-ROM, BD-R LTH, BD-RE, blu-ray or optical disk storage, hard Disk Drive (HDD), solid State Disk (SSD), card storage (such as a multimedia card, secure Digital (SD) card or extreme digital (XD) card), a tape, a floppy disk, an optical data storage device, a hard disk, a solid state disk, and any other device configured to store and provide computer programs and any associated data, data files and data structures in a non-transitory manner to a processor or a computer such that the computer programs and any associated data, data files and data structures are provided to the processor or computer such that the computer programs can be executed or the computer. The computer program in the computer-readable storage medium described above can be run in an environment deployed in a computer device, such as a client, a host, a proxy appliance, a server, or the like, and further, in one example, the computer program and any associated data, data files, and data structures are distributed across networked computer systems such that the computer program and any associated data, data files, and data structures are stored, accessed, and executed in a distributed fashion by one or more processors or computers.
According to an exemplary embodiment of the present disclosure, there may also be provided a computer program product, instructions of which are executable by a processor of a computer device to perform a method for outputting video according to an exemplary embodiment of the present disclosure.
The method and apparatus for outputting video according to the exemplary embodiments of the present disclosure have been described above with reference to fig. 1 to 5. However, it should be understood that: the apparatus for outputting video and units thereof shown in fig. 3 and 4 may be respectively configured as software, hardware, firmware, or any combination thereof to perform a specific function, the electronic device shown in fig. 5 is not limited to include the above-shown components, but some components may be added or deleted as needed, and the above components may also be combined.
According to the method and the device for outputting the video, the output parameter gear of the video is determined through at least one of model capability checking information based on the electronic device, video resolution and real-time performance data of the electronic device when the video is previewed; the video is output based on the determined video output parameter gear, so that the development cost of video output is reduced, online of the video is accelerated, and the gear selection is more reasonable by combining real-time performance data, so that the quality of the output video is improved under the condition of not causing bad experiences such as jamming, and the user experience is improved.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (22)

1. A method for outputting video, comprising:
determining an output parameter gear of the video based on the model capability checking information of the electronic device, the video resolution and real-time performance data of the electronic device during video previewing;
outputting the video based on the determined output parameter gear of the video,
the method comprises the following steps of determining an output parameter gear of a video based on model capability verification information of the electronic device, video resolution and real-time performance data of the electronic device during video previewing, wherein the step comprises the following steps:
acquiring the machine type capability check information, and determining a first output parameter gear of a video based on the machine type capability check information;
under the condition that the first output parameter gear is not a preset gear, starting video preview, acquiring video resolution, and determining a second output parameter gear of the video based on the video resolution;
under the condition that the second output parameter gear is not a preset gear, acquiring the real-time performance data of the electronic device during video preview, and determining a third output parameter gear of the video based on the real-time performance data;
and determining the output parameter gear of the video as the third output parameter gear under the condition that the third output parameter gear is not a preset gear.
2. The method of claim 1, wherein the output parameter level of the video is used to determine the resolution of the output video.
3. The method of claim 1, wherein the step of determining the output parameter gear of the video based on the model capability check information of the electronic device, the video resolution, and the real-time performance data of the electronic device when previewing the video further comprises:
and when any one of the first output parameter gear, the second output parameter gear and the third output parameter gear is the preset gear, determining the output parameter gear of the video as the preset gear.
4. The method according to claim 1, wherein the output parameter steps of the video are classified into at least a high step and a normal step, wherein the high step is an output parameter step of the video in which the resolution of the output video is not lower than a preset resolution, and the normal step is an output parameter step of the video in which the resolution of the output video is lower than the preset resolution.
5. The method according to claim 4, wherein the step of determining the output parameter gear of the video based on the model capability check information of the electronic device, the video resolution and the real-time performance data of the electronic device during video preview comprises:
acquiring machine type capability checking information of the electronic device;
determining an output parameter gear of the video based on the model capability check information of the electronic device;
and when the output parameter gear of the video determined based on the model capability verification information of the electronic device is a common gear, determining the output parameter gear of the video as the common gear.
6. The method of claim 5, wherein the step of determining the output parameter gear of the video based on the model capability check information of the electronic device, the video resolution, and the real-time performance data of the electronic device when previewing the video further comprises:
when the output parameter gear of the video determined based on the model capability checking information of the electronic device is high-grade, starting video preview;
acquiring the resolution of a video;
determining an output parameter gear of the video based on the video resolution;
and when the output parameter gear of the video determined based on the video resolution is the common gear, determining the output parameter gear of the video as the common gear.
7. The method of claim 6, wherein the step of determining the output parameter gear of the video based on the model capability check information of the electronic device, the video resolution, and the real-time performance data of the electronic device when previewing the video further comprises:
when the output parameter gear of the video determined based on the video resolution is high-grade, acquiring real-time performance data of the electronic device when the video is previewed;
determining an output parameter gear of the video based on the real-time performance data;
when the output parameter gear of the video determined based on the real-time performance data is a common gear, determining the output parameter gear of the video as the common gear;
and when the output parameter gear of the video determined based on the real-time performance data is a high gear, determining the output parameter gear of the video as the high gear.
8. The method according to any one of claims 1-7, wherein the real-time performance data of the electronic device when previewing the video is obtained by:
acquiring real-time performance data of the electronic device when previewing a video;
normalizing the acquired real-time performance data;
and taking the real-time performance data after the normalization processing as the real-time performance data of the electronic device when previewing the video.
9. The method of claim 8, wherein the real-time performance data comprises at least one of cpu utilization, preview frame rate, and katton rate.
10. The method of claim 8, wherein the model capability check information comprises at least one of a resolution and a memory of the electronic device.
11. An apparatus for outputting video, the apparatus comprising:
the gear determining unit is configured to determine an output parameter gear of the video based on model capability checking information of the electronic device, video resolution and real-time performance data of the electronic device during video previewing; and
a video output unit configured to output a video based on the determined output parameter steps of the video,
wherein the gear determination unit is configured to:
acquiring the machine type capability check information, and determining a first output parameter gear of a video based on the machine type capability check information;
under the condition that the first output parameter gear is not a preset gear, starting video preview, acquiring video resolution, and determining a second output parameter gear of the video based on the video resolution;
under the condition that the second output parameter gear is not a preset gear, acquiring the real-time performance data of the electronic device during video preview, and determining a third output parameter gear of the video based on the real-time performance data;
and determining the output parameter gear of the video as the third output parameter gear under the condition that the third output parameter gear is not a preset gear.
12. The apparatus of claim 11, wherein the output parameter level of the video is used to determine the resolution of the output video.
13. The apparatus of claim 11, wherein the gear determination unit is further configured to:
and when any one of the first output parameter gear, the second output parameter gear and the third output parameter gear is the preset gear, determining the output parameter gear of the video as the preset gear.
14. The apparatus according to claim 11, wherein the output parameter gear of the video is classified into at least a high gear and a normal gear, wherein the high gear is an output parameter gear of the video in which a resolution of the output video is not lower than a preset resolution, and the normal gear is an output parameter gear of the video in which a resolution of the output video is lower than the preset resolution.
15. The apparatus according to claim 14, characterized in that the gear determining unit is configured to:
acquiring machine type capability checking information of the electronic device;
determining an output parameter gear of the video based on the model capability check information of the electronic device;
and when the output parameter gear of the video determined based on the model capability verification information of the electronic device is a common gear, determining the output parameter gear of the video as the common gear.
16. The apparatus of claim 15, wherein the gear determination unit is further configured to:
when the output parameter gear of the video determined based on the model capability checking information of the electronic device is high-grade, starting video preview;
acquiring the video resolution;
determining an output parameter gear of the video based on the video resolution;
and when the output parameter gear of the video determined based on the video resolution is the common gear, determining the output parameter gear of the video as the common gear.
17. The apparatus of claim 16, wherein the gear determination unit is further configured to:
when the output parameter gear of the video determined based on the video resolution is high-grade, acquiring real-time performance data of the electronic device during video previewing;
determining an output parameter gear of the video based on the real-time performance data;
when the output parameter gear of the video determined based on the real-time performance data is a common gear, determining the output parameter gear of the video as the common gear;
and when the output parameter gear of the video determined based on the real-time performance data is a high gear, determining the output parameter gear of the video as the high gear.
18. The apparatus according to any one of claims 11-17, characterized in that the gear determining unit is configured to:
acquiring real-time performance data of the electronic device when previewing a video;
normalizing the acquired real-time performance data;
and taking the real-time performance data after the normalization processing as the real-time performance data of the electronic device when previewing the video.
19. The apparatus of claim 18, wherein the real-time performance data comprises at least one of cpu utilization, preview frame rate, and katton rate.
20. The apparatus of claim 18, wherein the model capability check information comprises at least one of a resolution and a memory of the electronic device.
21. A computer-readable storage medium storing a computer program which, when executed by a processor, implements the method for outputting video of any one of claims 1 to 10.
22. An electronic device, comprising:
at least one processor;
at least one memory storing a computer program that, when executed by the at least one processor, implements the method for outputting video of any of claims 1-10.
CN202011499807.6A 2020-12-17 2020-12-17 Method and device for outputting video Active CN112702511B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011499807.6A CN112702511B (en) 2020-12-17 2020-12-17 Method and device for outputting video

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011499807.6A CN112702511B (en) 2020-12-17 2020-12-17 Method and device for outputting video

Publications (2)

Publication Number Publication Date
CN112702511A CN112702511A (en) 2021-04-23
CN112702511B true CN112702511B (en) 2023-04-07

Family

ID=75507226

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011499807.6A Active CN112702511B (en) 2020-12-17 2020-12-17 Method and device for outputting video

Country Status (1)

Country Link
CN (1) CN112702511B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
HK1221373A2 (en) * 2016-03-29 2017-05-26 萬維數碼有限公司 Method for enhancing video resolution and video quality, encoder and decoder
CN107872713A (en) * 2017-11-16 2018-04-03 北京小米移动软件有限公司 Short processing system for video, method and device
CN109729385A (en) * 2018-12-25 2019-05-07 广州市百果园信息技术有限公司 Method for downloading video, device, computer equipment, storage medium and terminal
CN111031389B (en) * 2019-12-11 2022-05-20 Oppo广东移动通信有限公司 Video processing method, electronic device and storage medium

Also Published As

Publication number Publication date
CN112702511A (en) 2021-04-23

Similar Documents

Publication Publication Date Title
EP2453370B1 (en) Method and system for specifying, preparing and using parameterized database queries
US20160232450A1 (en) Storage device lifetime monitoring system and storage device lifetime monitoring method thereof
US20130290405A1 (en) Test system and test method using same for automatically distributing test files
CN114816748A (en) Thread scheduling method and device, electronic equipment and storage medium
CN113965805A (en) Prediction model training method and device and target video editing method and device
US20180336122A1 (en) Generating application flow entities
CN112702511B (en) Method and device for outputting video
CN116467975B (en) Data processing method, device, electronic equipment and storage medium
CN114115623B (en) Information display method and device and information transmission method and device
CN112527616A (en) Data processing method and device
CN102970363A (en) Long-distance journal downloading system and long-distance journal downloading method
CN112286573A (en) Method, device and system for modifying configuration parameters of module controller
CN114222118B (en) Encoding method and device, decoding method and device
CN114125277B (en) Method and equipment for controlling video shooting special effects of application
CN116431347B (en) Method, device, electronic equipment and storage medium for resource processing
CN114143612B (en) Video display method, device, electronic equipment, storage medium and program product
CN113347504B (en) Image anti-shake processing method, device and system
CN113411521B (en) Video processing method and device, electronic equipment and storage medium
CN113610713B (en) Training method of video super-resolution model, video super-resolution method and device
US11436243B2 (en) Data harvester
US9830401B2 (en) Automatically selecting optimization filters for optimizing webpages
CN113724225B (en) Method and device for determining transmission quality of application program
CN114339442B (en) Method and device for configuring multimedia channels, electronic equipment and storage medium
US20160062565A1 (en) Method of Removing External Devices for Computer System and Related Computer System
CN114968532A (en) Task execution method and device, electronic equipment and computer readable storage medium

Legal Events

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