Method and device for determining cover picture, server and storage medium

文档序号:1908584 发布日期:2021-11-30 浏览:15次 中文

阅读说明:本技术 封面图片的确定方法、装置、服务器及存储介质 (Method and device for determining cover picture, server and storage medium ) 是由 王志强 于 2021-07-30 设计创作,主要内容包括:本公开实施例提供了一种封面图片的确定方法、装置、服务器及存储介质。方法包括:在接收到电子设备发送的请求获取视频数据的请求信息的情况下,获取电子设备的设备参数;根据设备参数,获取与设备参数匹配度最高的第一视频封面图参数,并在数据库中查找是否存在与第一视频封面图参数对应的第一封面图;若数据库中存在第一封面图,则将第一封面图下发至电子设备;若数据库中不存在第一封面图,则将第二视频封面图参数对应的第二封面图下发至电子设备;其中,第二视频封面图参数为在数据库中存在对应的封面图、且与第一视频封面图参数相似度最高的视频封面图参数。上述方案,可以减少不必要的计算与存储资源的消耗,降低网络流量和电量的消耗。(The embodiment of the disclosure provides a method and a device for determining a cover picture, a server and a storage medium. The method comprises the following steps: under the condition of receiving request information for requesting to acquire video data sent by electronic equipment, acquiring equipment parameters of the electronic equipment; acquiring a first video cover picture parameter with the highest matching degree with the equipment parameter according to the equipment parameter, and searching whether a first cover picture corresponding to the first video cover picture parameter exists in a database; if the first cover picture exists in the database, the first cover picture is issued to the electronic equipment; if the first cover picture does not exist in the database, the second cover picture corresponding to the second video cover picture parameter is issued to the electronic equipment; the second video cover picture parameter is a video cover picture parameter which has a corresponding cover picture in the database and has the highest similarity with the first video cover picture parameter. By the scheme, the consumption of unnecessary calculation and storage resources can be reduced, and the consumption of network flow and electric quantity can be reduced.)

1. A method for determining a cover picture, the method comprising:

under the condition of receiving request information for requesting to acquire video data sent by electronic equipment, acquiring equipment parameters of the electronic equipment;

according to the equipment parameters, obtaining first video cover picture parameters with the highest matching degree with the equipment parameters, and searching whether a first cover picture corresponding to the first video cover picture parameters exists in a database;

if the first cover picture exists in the database, the first cover picture is issued to the electronic equipment;

if the first cover picture does not exist in the database, issuing a second cover picture corresponding to a second video cover picture parameter to the electronic equipment;

the second video cover picture parameter is a video cover picture parameter which has a corresponding cover picture in the database and has the highest similarity with the first video cover picture parameter.

2. The method for determining cover pictures according to claim 1, wherein the obtaining of the first video cover picture parameter with the highest matching degree with the device parameter according to the device parameter comprises:

acquiring various video cover picture parameters corresponding to the equipment parameters according to the equipment parameters;

sorting the multiple video cover picture parameters according to the matching degree of the equipment parameters and each video cover picture parameter in the multiple video cover picture parameters to obtain a sorted video cover picture parameter list;

and acquiring a first video cover picture parameter with the highest matching degree with the equipment parameter from the video cover picture parameter list.

3. The method of claim 2, wherein the step of sorting the plurality of video cover map parameters according to the matching degree between the device parameter and each of the plurality of video cover map parameters to obtain a sorted video cover map parameter list comprises:

and sorting the matching degrees of the various video cover picture parameters according to the matching degrees of the definition in the equipment parameters and the definition of each video cover picture parameter in the various video cover picture parameters to obtain a sorted video cover picture parameter list.

4. The method for determining cover pictures according to claim 2, wherein the issuing a second cover picture corresponding to a second video cover picture parameter to the electronic device if the first cover picture does not exist in the database comprises:

if the first cover picture does not exist in the database, searching cover pictures corresponding to other video cover picture parameters in the database according to the sequence of the video cover picture parameters in the video cover picture parameter list until a second cover picture is obtained;

issuing the second cover picture to the electronic equipment;

and the other video cover picture parameters are video cover picture parameters except the first video cover picture parameter in the video cover picture parameter list.

5. The method for determining cover pictures according to claim 1, wherein after searching the database for the presence of the first cover picture corresponding to the first video cover picture parameter, the method further comprises:

if the first cover picture does not exist in the database, generating a first cover picture corresponding to the first video cover picture parameter;

and saving the first cover picture into the database.

6. The method of determining a cover photograph as claimed in claim 5, wherein after saving the first cover photograph to the database, the method further comprises:

and under the condition of receiving request information which is sent by the electronic equipment and requests for acquiring video data, issuing the first cover picture to the electronic equipment.

7. A device for determining a cover photograph, the device comprising:

the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is configured to acquire the device parameters of the electronic device when receiving request information which is sent by the electronic device and requests to acquire video data;

the second acquisition module is configured to acquire a first video cover picture parameter with the highest matching degree with the equipment parameter according to the equipment parameter, and search whether a first cover picture corresponding to the first video cover picture parameter exists in a database;

a first sending module configured to send the first cover map to the electronic device if the first cover map exists in the database;

the second issuing module is configured to issue a second cover picture corresponding to a second video cover picture parameter to the electronic equipment if the first cover picture does not exist in the database;

the second video cover picture parameter is a video cover picture parameter which has a corresponding cover picture in the database and has the highest similarity with the first video cover picture parameter.

8. A server, comprising:

a processor;

a memory for storing the processor-executable instructions;

wherein the processor is configured to execute the instructions to implement the method of determining a cover picture of any one of claims 1 to 6.

9. A computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of a server, enable the server to perform the method of determining a cover picture of any one of claims 1 to 6.

10. A computer program product comprising computer programs/instructions, characterized in that the computer programs/instructions, when executed by a processor, implement the method of determining a cover picture of any one of claims 1 to 6.

Technical Field

The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for determining a cover picture, a server, and a storage medium.

Background

When a user uses a short video Application (APP), in addition to consuming video content, a large number of works are exposed in the form of cover page pictures under an APP homepage, an operator station, a related recommendation and other interfaces for guiding consumption. High-frequency work cover downloading and rendering, and the sensitivity of the mobile device to network flow and electric quantity loss, if the resource loss of cover loading is reduced, the definition of the cover is reduced.

In the existing solution, definition options such as "high definition", "normal", "low definition" and the like are provided for a User in a "setting" User Interface (UI) of a client, and pictures with corresponding definitions of quality levels are issued according to different definition requirements. However, in this scheme, a plurality of cover maps with the same content and different definitions are generated for each cover map, in a short video APP ecology, a large number of users upload various videos, the total number of the videos is very large, but actually, the amount of highly-exposed works only occupies a small part, and this processing mode causes a large amount of compression calculation power and storage space to be consumed and lost, and a large amount of network traffic and electric quantity to be consumed.

Disclosure of Invention

The present disclosure provides a method, an apparatus, a server, and a storage medium for determining a cover picture, so as to at least solve the problem in the related art that a processing manner for a cover picture is vulnerable to consume a lot of network traffic and electric power. The technical scheme of the disclosure is as follows:

according to a first aspect of the embodiments of the present disclosure, there is provided a method for determining a cover picture, the method including:

under the condition of receiving request information for requesting to acquire video data sent by electronic equipment, acquiring equipment parameters of the electronic equipment;

according to the equipment parameters, obtaining first video cover picture parameters with the highest matching degree with the equipment parameters, and searching whether a first cover picture corresponding to the first video cover picture parameters exists in a database;

if the first cover picture exists in the database, the first cover picture is issued to the electronic equipment;

if the first cover picture does not exist in the database, issuing a second cover picture corresponding to a second video cover picture parameter to the electronic equipment;

the second video cover picture parameter is a video cover picture parameter which has a corresponding cover picture in the database and has the highest similarity with the first video cover picture parameter.

In a possible implementation manner, the obtaining, according to the device parameter, a first video cover picture parameter that matches the device parameter with the highest degree includes:

acquiring various video cover picture parameters corresponding to the equipment parameters according to the equipment parameters;

sorting the multiple video cover picture parameters according to the matching degree of the equipment parameters and each video cover picture parameter in the multiple video cover picture parameters to obtain a sorted video cover picture parameter list;

and acquiring a first video cover picture parameter with the highest matching degree with the equipment parameter from the video cover picture parameter list.

In one possible implementation, the sorting the multiple video cover map parameters according to the matching degree between the device parameter and each of the multiple video cover map parameters to obtain a sorted video cover map parameter list includes:

and sorting the matching degrees of the various video cover picture parameters according to the matching degrees of the definition in the equipment parameters and the definition of each video cover picture parameter in the various video cover picture parameters to obtain a sorted video cover picture parameter list.

In a possible implementation manner, if the first cover map does not exist in the database, issuing a second cover map corresponding to a second video cover map parameter to the electronic device includes:

if the first cover picture does not exist in the database, searching cover pictures corresponding to other video cover picture parameters in the database according to the sequence of the video cover picture parameters in the video cover picture parameter list until a second cover picture is obtained;

issuing the second cover picture to the electronic equipment;

and the other video cover picture parameters are video cover picture parameters except the first video cover picture parameter in the video cover picture parameter list.

In one possible embodiment, after searching the database for the presence of the first cover map corresponding to the first video cover map parameter, the method further comprises:

if the first cover picture does not exist in the database, generating a first cover picture corresponding to the first video cover picture parameter;

and saving the first cover picture into the database.

In one possible embodiment, after saving the first cover sheet map to the database, the method further comprises:

and under the condition of receiving request information which is sent by the electronic equipment and requests for acquiring video data, issuing the first cover picture to the electronic equipment.

In one possible implementation, the issuing the first cover map to the electronic device includes:

responding to the request information, sending video data to the electronic equipment so that the electronic equipment renders the video data, acquires the first cover picture, and loads and renders the first cover picture on the basis of rendering the video data.

According to a second aspect of the embodiments of the present disclosure, there is provided a device for determining a cover picture, the device including:

the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is configured to acquire the device parameters of the electronic device when receiving request information which is sent by the electronic device and requests to acquire video data;

the second acquisition module is configured to acquire a first video cover picture parameter with the highest matching degree with the equipment parameter according to the equipment parameter, and search whether a first cover picture corresponding to the first video cover picture parameter exists in a database;

a first sending module configured to send the first cover map to the electronic device if the first cover map exists in the database;

the second issuing module is configured to issue a second cover picture corresponding to a second video cover picture parameter to the electronic equipment if the first cover picture does not exist in the database;

the second video cover picture parameter is a video cover picture parameter which has a corresponding cover picture in the database and has the highest similarity with the first video cover picture parameter.

In a possible implementation manner, the second obtaining module is specifically configured to:

acquiring various video cover picture parameters corresponding to the equipment parameters according to the equipment parameters;

sorting the multiple video cover picture parameters according to the matching degree of the equipment parameters and each video cover picture parameter in the multiple video cover picture parameters to obtain a sorted video cover picture parameter list;

and acquiring a first video cover picture parameter with the highest matching degree with the equipment parameter from the video cover picture parameter list.

In a possible implementation manner, the second obtaining module, when sorting the multiple video cover map parameters according to the matching degree between the device parameter and each of the multiple video cover map parameters to obtain a sorted video cover map parameter list, is specifically configured to:

and sorting the matching degrees of the various video cover picture parameters according to the matching degrees of the definition in the equipment parameters and the definition of each video cover picture parameter in the various video cover picture parameters to obtain a sorted video cover picture parameter list.

In a possible implementation manner, the second issuing module is specifically configured to:

if the first cover picture does not exist in the database, searching cover pictures corresponding to other video cover picture parameters in the database according to the sequence of the video cover picture parameters in the video cover picture parameter list until a second cover picture is obtained;

issuing the second cover picture to the electronic equipment;

and the other video cover picture parameters are video cover picture parameters except the first video cover picture parameter in the video cover picture parameter list.

In one possible embodiment, the apparatus further comprises:

a generating module configured to generate a first cover map corresponding to the first video cover map parameter if the first cover map does not exist in the database;

a saving module configured to save the first cover sheet to the database.

In one possible embodiment, the apparatus further comprises:

the third issuing module is configured to issue the first cover picture to the electronic device under the condition that request information which is sent by the electronic device and used for requesting to acquire video data is received.

In one possible embodiment, the first sending module includes:

the sending module is configured to respond to the request information, send video data to the electronic equipment, enable the electronic equipment to render the video data, acquire the first cover art, and load and render the first cover art on the basis of rendering the video data.

According to a third aspect of embodiments of the present disclosure, there is provided a server, including:

a processor;

a memory for storing the processor-executable instructions;

wherein the processor is configured to execute the instructions to implement the method for determining a cover picture provided by the present disclosure.

According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium in which instructions, when executed by a processor of a server, enable the server to perform the above-described cover picture determination method.

According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising computer programs/instructions which, when executed by a processor, implement the method of determining a cover picture provided by the present disclosure.

The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:

according to the technical scheme provided by the embodiment of the disclosure, under the condition that request information of acquiring video data is received, which is sent by electronic equipment, the equipment parameters of the electronic equipment are acquired, the first video cover picture parameter with the highest matching degree with the equipment parameters is acquired according to the equipment parameters, whether a first cover picture corresponding to the first video cover picture parameter exists or not is searched in a database, and if the first cover picture exists in the database, the first cover picture is issued to the electronic equipment so that the electronic equipment displays the first cover picture with the highest matching degree with the equipment parameters; and if the first cover page image does not exist in the database, issuing a second cover page image corresponding to the second video cover page image parameter to the electronic equipment. According to the scheme, the first video cover map parameter which is most matched with the equipment parameter is obtained, if the first cover map corresponding to the first video cover map parameter already exists, the first cover map can be directly issued to the electronic equipment for display, if the first cover map does not exist, the cover map corresponding to the second video cover map parameter which has the highest similarity with the first video cover map parameter and is closest to the first video cover map parameter is obtained in the already existing cover map through a degradation strategy for issuing, a plurality of cover maps which are identical in content and different in definition do not need to be generated and stored for each cover map, the consumption of unnecessary calculation and storage resources can be reduced, and the consumption of network flow and electric quantity is reduced.

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 is a flow diagram illustrating a method for determining a cover photograph in accordance with one exemplary embodiment;

FIG. 2 is a flow diagram illustrating another method of determining a cover photograph in accordance with one exemplary embodiment;

FIG. 3 is a flow diagram illustrating a particular implementation of a method for determining a cover picture according to one illustrative embodiment;

FIG. 4 is a block diagram illustrating a cover picture determination device in accordance with one exemplary embodiment;

FIG. 5 is a block diagram illustrating a server in accordance with an example embodiment.

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 implementations described in the exemplary embodiments below are not intended to represent all implementations 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.

Currently, the prior art can calculate the precision that the cover map can actually represent according to the representation of the cover map under a common screen (e.g. 1080 × 1920 resolution), and generate a corresponding compressed picture for the cover map when the cover map is uploaded. However, the above processing method cannot cover all resolutions; on one hand, young people pursue high resolution on the aspect of intelligent equipment, and on the other hand, the old models of the intelligent equipment still have a large stock, and the mode of cutting the way can not meet the extremely pursuit of users for vision, and causes low-performance machines to lose excessive unnecessary network flow and electric quantity. Moreover, by providing multiple pictures of sharpness for selection, a large amount of compression power and storage space is consumed, and a large amount of network traffic and power are consumed. Therefore, the embodiment of the invention provides a method, a device, a server and a storage medium for determining a cover picture, which do not need to generate and store a plurality of cover pictures with the same content and different definitions for each cover picture, and can reduce the consumption of unnecessary calculation and storage resources and reduce the consumption of network traffic and electric quantity.

Specifically, fig. 1 is a flowchart illustrating a method for determining a cover picture according to an exemplary embodiment, where the method for determining a cover picture is applicable to a server, and the server includes: short video servers, cache servers, cover page compression servers, Content Delivery Network (CDN) nodes, and the like. As shown in fig. 1, the method for determining the cover picture includes the following steps:

in step S11, upon receiving request information requesting to acquire video data, which is transmitted by an electronic device, device parameters of the electronic device are acquired.

Specifically, the electronic equipment is connected with the short video server through a network; when the electronic equipment opens the short video APP, the short video APP needs to display the covers of a plurality of works, the electronic equipment needs to send request information for requesting to acquire video data to the short video server, the electronic equipment needs to acquire own equipment parameters and send the equipment parameters to the short video server, and therefore the short video server acquires the equipment parameters related to the electronic equipment.

Wherein the device parameters may include: at least one of the parameters such as screen resolution and network condition is not limited herein.

In step S12, according to the device parameter, a first video cover map parameter with the highest matching degree with the device parameter is obtained, and whether a first cover map corresponding to the first video cover map parameter exists is searched in a database.

Specifically, the short video server acquires a first video cover picture parameter which is most matched with the equipment parameter according to the acquired equipment parameter and the matching degree of the equipment parameter and the video cover picture parameter. After the first video cover picture parameter is obtained, searching whether a cover picture corresponding to the first video cover picture parameter exists in a database, namely the first cover picture; in other words, after the first video cover sheet parameter is obtained, the database is searched for whether a first cover sheet having the first video cover sheet parameter exists.

Further, the database may be specifically a cache server, the cache server stores the video cover map parameters corresponding to the existing cover map, and the short video server searches whether the video cover map parameters corresponding to the existing cover map cached in the cache server include the first video cover map parameter. In step S13, if the first cover map exists in the database, the first cover map is sent to the electronic device.

Specifically, if the first cover map corresponding to the first video cover map parameter is an existing cover map, the short video server may search the first video cover map parameter in the cache server, that is, the first cover map exists in the database, and the short video server may directly issue the first cover map to the electronic device for display.

In step S14, if the first cover map does not exist in the database, issuing a second cover map corresponding to a second video cover map parameter to the electronic device;

the second video cover picture parameter is a video cover picture parameter which has a corresponding cover picture in the database and has the highest similarity with the first video cover picture parameter.

Specifically, if the first cover map corresponding to the first video cover map parameter does not exist, the short video server may obtain, from the video cover map parameters existing in the cache server, the second video cover map parameter with the highest similarity to the first video cover map parameter and closest to the first video cover map parameter, and send the second cover map corresponding to the second video cover map parameter to the electronic device for display.

As can be seen from the foregoing steps S11 to S14, in the embodiment of the present disclosure, when request information requesting to acquire video data sent by an electronic device is received, an apparatus parameter of the electronic device is acquired, a first video cover map parameter with the highest degree of matching with the apparatus parameter is acquired according to the apparatus parameter, and whether a first cover map corresponding to the first video cover map parameter exists is searched in a database, and if the first cover map exists in the database, the first cover map is issued to the electronic device, so that the electronic device displays the first cover map with the highest degree of matching with the apparatus parameter; and if the first cover page image does not exist in the database, issuing a second cover page image corresponding to the second video cover page image parameter to the electronic equipment. According to the scheme, the first video cover map parameter which is most matched with the equipment parameter is obtained, if the first cover map corresponding to the first video cover map parameter already exists, the first cover map can be directly issued to the electronic equipment for display, if the first cover map does not exist, the cover map corresponding to the second video cover map parameter which has the highest similarity with the first video cover map parameter and is closest to the first video cover map parameter is obtained in the already existing cover map through a degradation strategy for issuing, a plurality of cover maps which are identical in content and different in definition do not need to be generated and stored for each cover map, the consumption of unnecessary calculation and storage resources can be reduced, and the consumption of network flow and electric quantity is reduced.

Fig. 2 is a detailed flowchart illustrating a method for determining a cover photograph according to an exemplary embodiment. As shown in fig. 2, the method for determining the cover picture includes the following steps S21 to S25.

Step S21: the method comprises the steps of acquiring equipment parameters of the electronic equipment under the condition of receiving request information which is sent by the electronic equipment and requests for acquiring video data.

Specifically, the electronic equipment is connected with the short video server through a network; when the electronic equipment opens the short video APP, the short video APP needs to display the covers of a plurality of works, the electronic equipment needs to send request information for requesting to acquire video data to the short video server, the electronic equipment needs to acquire own equipment parameters and send the equipment parameters to the short video server, and therefore the short video server acquires the equipment parameters related to the electronic equipment.

Wherein the device parameters may include: at least one of the parameters such as screen resolution and network condition is not limited herein.

Step S22: and acquiring various video cover picture parameters corresponding to the equipment parameters according to the equipment parameters.

Specifically, the short video server acquires various video cover picture parameters matched with the equipment parameters according to the equipment parameters.

Wherein the video cover map parameters may include: the resolution of the cover map, the picture format of the cover map (e.g., jpg format or png format, etc.), etc., are not limited in this regard.

Step S23: and sequencing the multiple video cover picture parameters according to the matching degree of the equipment parameters and each video cover picture parameter in the multiple video cover picture parameters to obtain a sequenced video cover picture parameter list.

Specifically, the device parameter has a matching value with each type of video cover map parameter, and the matching value is used for indicating the matching degree of the video cover map parameter and the device parameter. And the short video server sorts the various video cover picture parameters according to the matching degree of the equipment parameters and the video cover picture parameters to obtain a sorted video cover picture parameter list. The video cover map parameter list may be sorted according to the matching degree from high to low, or sorted according to the matching degree from low to high, or sorted according to other manners (for example, the video cover map parameter corresponding to the original cover map when the video is uploaded may be arranged at the end, that is, the matching degree between the video cover map parameter corresponding to the original cover map and the device parameter is the lowest), and is not specifically limited herein.

Step S24: and acquiring a first video cover picture parameter with the highest matching degree with the equipment parameter from the video cover picture parameter list.

Specifically, the short video server obtains, from the video cover map parameter list, a video cover map parameter that matches the device parameter most, that is, a first video cover map parameter.

Step S25: and searching whether a first cover picture corresponding to the first video cover picture parameter exists in a database.

Specifically, after acquiring a first video cover picture parameter, the short video server searches whether a cover picture corresponding to the first video cover picture parameter exists in a database, namely the first cover picture; in other words, after the first video cover sheet parameter is obtained, the database is searched for whether a first cover sheet having the first video cover sheet parameter exists. If so, go to step S26; if not, the process proceeds to step S27.

Further, the database may be specifically a cache server, the cache server stores the video cover map parameters corresponding to the existing cover map, and the short video server searches whether the video cover map parameters corresponding to the existing cover map cached in the cache server include the first video cover map parameter.

Step S26: and if the first cover picture exists in the database, issuing the first cover picture to the electronic equipment.

Specifically, if the first cover map corresponding to the first video cover map parameter is an existing cover map, the short video server may search the first video cover map parameter in the cache server, that is, the first cover map exists in the database, and the short video server may directly issue the first cover map to the electronic device for display.

Step S27: if the first cover picture does not exist in the database, issuing a second cover picture corresponding to a second video cover picture parameter to the electronic equipment;

the second video cover picture parameter is a video cover picture parameter which has a corresponding cover picture in the database and has the highest similarity with the first video cover picture parameter.

Specifically, if the first cover map corresponding to the first video cover map parameter does not exist, the short video server may obtain, from the video cover map parameters existing in the cache server, the second video cover map parameter with the highest similarity to the first video cover map parameter and closest to the first video cover map parameter, and send the second cover map corresponding to the second video cover map parameter to the electronic device for display.

As can be seen from the foregoing steps S21 to S27, in the embodiment of the present disclosure, after the short video server obtains the device parameters, multiple video cover map parameters corresponding to the device parameters are obtained, the multiple video cover map parameters are sorted according to the matching degree between the device parameters and each of the video cover map parameters, a sorted video cover map parameter list is obtained, and the first video cover map parameter with the highest matching degree with the device parameters is obtained in the video cover map parameter list; if the first cover map corresponding to the first video cover map parameter already exists, the first cover map can be directly issued to the electronic device for display, if the first cover map does not exist, the cover map corresponding to the second video cover map parameter which has the highest similarity with the first video cover map parameter and is closest to the first video cover map parameter is acquired in the already existing cover map through a degradation strategy for issuing, a plurality of cover maps with the same content and different definitions do not need to be generated and stored for each cover map, the consumption of unnecessary calculation and storage resources can be reduced, and the consumption of network flow and electric quantity is reduced.

In a possible implementation manner, the step S23 is to sort the multiple video cover map parameters according to the matching degree between the device parameter and each of the multiple video cover map parameters, so as to obtain a sorted video cover map parameter list, and specifically includes:

and sorting the matching degrees of the various video cover picture parameters according to the matching degrees of the definition in the equipment parameters and the definition of each video cover picture parameter in the various video cover picture parameters to obtain a sorted video cover picture parameter list.

Specifically, the device parameters may include definition parameters (e.g., screen resolution), the definition in the device parameters and the definition parameter in each video cover map parameter have a matching value, the short video server sorts the multiple video cover map parameters according to the matching degree between the definition in the device parameters and the definition in each video cover map parameter, and obtains a sorted video cover map parameter list, so as to obtain the video cover map parameter that is most suitable for the device parameters (i.e., has the highest matching degree) in the video cover map parameter list.

In a possible implementation manner, if the first cover map does not exist in the database in step S27, issuing a second cover map corresponding to a second video cover map parameter to the electronic device includes:

if the first cover picture does not exist in the database, searching cover pictures corresponding to other video cover picture parameters in the database according to the sequence of the video cover picture parameters in the video cover picture parameter list until a second cover picture is obtained;

issuing the second cover picture to the electronic equipment;

and the other video cover picture parameters are video cover picture parameters except the first video cover picture parameter in the video cover picture parameter list.

Specifically, if the first cover map corresponding to the first video cover map parameter does not exist, the short video server searches whether the video cover map parameter exists in the cache server one by one according to the sequence of other video cover map parameters in the video cover map parameter list until the existing video cover map parameter, namely the second video cover map parameter, is found in the cache server, and then determines that the second cover map corresponding to the second video cover map parameter exists, and the short video server acquires the second cover map from the CDN node and sends the second cover map to the electronic device for display. In the above embodiment, if there is no first cover sheet corresponding to the first video cover sheet parameter with the highest matching degree of the device parameters, the cover sheet corresponding to the second video cover sheet parameter with the highest similarity and the closest similarity to the first video cover sheet parameter is acquired in the existing cover sheet through a downgrading strategy and issued, and it is not necessary to generate and store a plurality of cover sheets with the same content and different definitions for each cover sheet, so that unnecessary consumption of calculation and storage resources can be reduced, and consumption of network traffic and electric quantity can be reduced.

For example: the video cover map parameter list respectively comprises the following components in sequence: the video cover map parameter A, the video cover map parameter B, the video cover map parameter C and the video cover map parameter D, wherein the matching degree of the video cover map parameter A and the equipment parameter is the highest, namely the first video cover map parameter A is the video cover map parameter A, and the matching degree of the video cover map parameter D and the equipment parameter is the lowest. Video cover map parameter B is the video cover map parameter with the highest similarity to video cover map parameter a, followed by video cover map parameter C, and video cover map parameter D is the video cover map parameter with the lowest similarity to video cover map parameter a.

If the first cover map corresponding to the video cover map parameter a does not exist, the short video server searches whether the video cover map parameter exists in the cache server one by one according to the sequence of other video cover map parameters (namely, the video cover map parameter B, the video cover map parameter C and the video cover map parameter D) in the video cover map parameter list, namely, firstly searches whether the video cover map parameter B exists in the cache server, if not, continuously searches whether the video cover map parameter C exists in the cache server, if so, the video cover map parameter C is a second video cover map parameter, namely, the video cover map parameter C is a video cover map parameter which has the highest similarity with the video cover map parameter a and is the closest to the video cover map parameter a and exists in the cache server.

In a possible implementation manner, after the step S25 finds whether there is a first cover map corresponding to the first video cover map parameter in the database, the method further includes:

if the first cover picture does not exist in the database, generating a first cover picture corresponding to the first video cover picture parameter;

and saving the first cover picture into the database.

Specifically, if the first cover map corresponding to the first video cover map parameter does not exist, the short video server sends indication information for generating the first cover map to the cover compression server, the indication information carries the first video cover map parameter, and the cover compressor generates the corresponding first cover map according to the first video cover map parameter. The cover compressor then saves the first cover drawing in a database.

Further, the database may specifically be a CDN node, and after the cover compressor generates the corresponding first cover map according to the first video cover map parameter, the CDN node acquires and stores the first cover map in a preset delivery manner. Then, the CDN node saves the first video cover map parameter corresponding to the first cover map to the cache server.

The mode adopts a 'lazy processing' mode of generating on demand, when the video is uploaded, only the original cover is stored for the user under the condition of not bringing negative effects to the user, and only when the first cover map corresponding to the first video cover map parameter which is most matched with the equipment parameter does not exist, the corresponding first cover map is asynchronously generated, so that the unnecessary calculation and the consumption of storage resources are reduced.

In one possible embodiment, after saving the first cover sheet map to the database, the method further comprises:

and under the condition of receiving request information which is sent by the electronic equipment and requests for acquiring video data, issuing the first cover picture to the electronic equipment.

Specifically, after the first cover sheet is saved in the database, if request information for requesting to acquire video data sent by the electronic device is received again, since the device parameter of the electronic device is the first video cover sheet parameter which is most matched with the device parameter, and the first cover sheet corresponding to the first video cover sheet parameter is the existing cover sheet, the first cover sheet can be directly acquired and issued to the electronic device, so that the cover sheet which is most suitable for being displayed by the electronic device can be quickly acquired.

In a possible implementation manner, the step S26 of issuing the first cover map to the electronic device includes:

responding to the request information, sending video data to the electronic equipment so that the electronic equipment renders the video data, acquires the first cover picture, and loads and renders the first cover picture on the basis of rendering the video data.

Specifically, if the first cover map corresponding to the first video cover map parameter is an existing cover map, the short video server may search the first video cover map parameter in the cache server, that is, the first cover map exists in the database, and in response to request information sent by the electronic device, the short video server may send video data requested to be obtained by the electronic device to the electronic device, and the electronic device renders the video data, obtains the first cover map to the CDN node, loads the first cover map on the basis of rendering the video data, and renders the first cover map, so as to display the video data and the first cover map on the electronic device, which may improve the downloading and rendering speed of the electronic device. The video data may be the number of praises, the number of concerns, the amount of play, and the like.

The above scheme is explained in detail through a specific implementation flow between the electronic device and the server as follows:

as shown in fig. 3, step a 1: the electronic equipment acquires equipment parameters; specifically, network connection between electronic equipment and the short video server, when electronic equipment opened short video APP, short video APP need show a plurality of works front covers, then electronic equipment need gather the equipment parameter of self.

Step a 2: the short video server acquires equipment parameters and video data; specifically, the short video server acquires video data displayed in the short video APP and acquires device parameters from the electronic device.

Step a 3: the short video server acquires a video cover picture parameter list according to the matching degree of the short video server and the equipment parameters; specifically, after the short video server acquires the device parameters of the electronic device, the matching degrees of the multiple video cover map parameters can be sorted according to the device parameters and the matching degrees of the device parameters, so that a video cover map parameter list sorted according to the matching degrees is obtained. Such as: the video cover picture parameter with the highest matching degree is a first cover picture parameter, and the cover picture corresponding to the first cover picture parameter is the first cover picture.

Step a 4: the short video server acquires the cover picture parameters corresponding to the existing cover pictures from the cache server; specifically, the cache server caches the front cover map parameters corresponding to the existing front cover map, and the short video server obtains the front cover map parameters corresponding to the existing front cover map from the cache server.

Step a 5: the short video server judges whether the first cover picture exists according to the matching degree of the short video server and the equipment parameters; specifically, the short video server judges whether the first cover picture corresponding to the first video cover picture parameter with the highest matching degree exists according to the matching degree with the equipment parameter. If so, go to step a 6; if not, step a7 is entered.

Step a 6: the short video server issues the first cover art to the electronic device, that is, the first cover art is a cover art to be displayed in the electronic device, and then step a11 is performed.

Step a 7: the short video server sends the second cover picture to the electronic equipment, and then the step a11 is carried out; specifically, the short video server issues a second cover map corresponding to the second video cover map parameter to the electronic device, where the second video cover map parameter is a video cover map parameter that has a corresponding cover map in the database and has the highest similarity to the first video cover map parameter, that is, the second cover map is a cover map that needs to be issued finally, and that is, the second cover map is a cover map that needs to be displayed in the electronic device.

Step a 8: the cover compression server generates a first cover map with the first video cover map parameters; specifically, the short video server sends the first video cover map parameter to the cover compression server, so that the cover compression server generates the first cover map with the first video cover map parameter according to the first video cover map parameter.

Step a 9: the CDN node acquires and stores the generated first cover page image from the cover page compression server; specifically, the front cover compression server issues the generated first front cover graph to the CDN nodes, and the CDN nodes store the generated first front cover graph.

Step a 10: the cache server saves the first cover sheet parameter.

Step a 11: the electronic device renders video data.

Step a 12: the electronic equipment acquires a target cover map from the CDN node, and if the first cover map needs to be issued to the electronic equipment, the target cover map is the first cover map; and if the second cover map needs to be issued to the electronic equipment, the target cover map is the second cover map.

Step a 13: the electronic device loads and renders the video cover, i.e., the electronic device loads and renders the target cover map.

On one hand, the most suitable video cover map parameters are matched according to the equipment parameter difference of different electronic equipment by using a dynamic distribution mode, and differential cover maps of the video cover map parameters are issued so as to meet the requirements of different groups or different service scenes on the difference of the definition of the cover maps and the like. On the other hand, the same work can be exposed in different application scenes, and the server flexibly performs matching processing according to the equipment parameters, so that the performance loss of secondary processing of the client can be effectively reduced.

In summary, in the present disclosure, under the condition that the electronic device allows the acquisition of the necessary device parameters, when the video data is pulled from the short video server, the device parameters such as the screen resolution and the network status are reported. The short video server selects the most appropriate video cover picture parameter for the short video server according to the equipment parameters, and checks whether a cover picture corresponding to the video cover picture parameter exists; when the resources do not exist, a cover map (a second cover map) corresponding to the closest and existing video cover map parameters (namely the second cover map parameters) is issued according to the matching of the degradation strategy, namely, the cover maps with different video cover map parameters are matched through different equipment parameters, the matched cover maps are subjected to downloading link distribution, an asynchronous cover compression task is triggered, the cover map of the missing video cover map parameters is generated, only the required cover map needs to be generated, the consumption of unnecessary calculation and storage resources is reduced, the downloading and rendering speed of the electronic equipment is improved, and the consumption of network flow and electric quantity is reduced.

Fig. 4 is a block diagram of a cover photograph determination apparatus according to an exemplary embodiment. Referring to fig. 4, the cover photograph determination apparatus 40 includes a first acquisition module 41, a second acquisition module 42, a first distribution module 43, and a second distribution module 44.

A first obtaining module 41, configured to, in a case of receiving request information requesting to obtain video data sent by an electronic device, obtain a device parameter of the electronic device;

the second obtaining module 42 is configured to obtain, according to the device parameter, a first video cover picture parameter with the highest matching degree with the device parameter, and search, in a database, whether a first cover picture corresponding to the first video cover picture parameter exists;

a first issuing module 43, configured to issue the first cover map to the electronic device if the first cover map exists in the database;

a second issuing module 44, configured to issue a second cover map corresponding to a second video cover map parameter to the electronic device if the first cover map does not exist in the database;

the second video cover picture parameter is a video cover picture parameter which has a corresponding cover picture in the database and has the highest similarity with the first video cover picture parameter.

In a possible implementation manner, the second obtaining module is specifically configured to:

acquiring various video cover picture parameters corresponding to the equipment parameters according to the equipment parameters;

sorting the multiple video cover picture parameters according to the matching degree of the equipment parameters and each video cover picture parameter in the multiple video cover picture parameters to obtain a sorted video cover picture parameter list;

and acquiring a first video cover picture parameter with the highest matching degree with the equipment parameter from the video cover picture parameter list.

In a possible implementation manner, the second obtaining module, when sorting the multiple video cover map parameters according to the matching degree between the device parameter and each of the multiple video cover map parameters to obtain a sorted video cover map parameter list, is specifically configured to:

and sorting the matching degrees of the various video cover picture parameters according to the matching degrees of the definition in the equipment parameters and the definition of each video cover picture parameter in the various video cover picture parameters to obtain a sorted video cover picture parameter list.

In a possible implementation manner, the second issuing module is specifically configured to:

if the first cover picture does not exist in the database, searching cover pictures corresponding to other video cover picture parameters in the database according to the sequence of the video cover picture parameters in the video cover picture parameter list until a second cover picture is obtained;

issuing the second cover picture to the electronic equipment;

and the other video cover picture parameters are video cover picture parameters except the first video cover picture parameter in the video cover picture parameter list.

In a possible embodiment, the apparatus further comprises:

a generating module configured to generate a first cover map corresponding to the first video cover map parameter if the first cover map does not exist in the database;

a saving module configured to save the first cover sheet to the database.

In a possible embodiment, the apparatus further comprises:

the third issuing module is configured to issue the first cover picture to the electronic device under the condition that request information which is sent by the electronic device and used for requesting to acquire video data is received.

In a possible implementation, the first sending module includes:

the sending module is configured to respond to the request information, send video data to the electronic equipment, enable the electronic equipment to render the video data, acquire the first cover art, and load and render the first cover art on the basis of rendering the video data.

With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.

In summary, in the present disclosure, under the condition that the electronic device allows the acquisition of the necessary device parameters, when the video data is pulled from the short video server, the device parameters such as the screen resolution and the network status are reported. The short video server selects the most appropriate video cover picture parameter for the short video server according to the equipment parameters, and checks whether a cover picture corresponding to the video cover picture parameter exists; when the resources do not exist, a cover map (a second cover map) corresponding to the closest and existing video cover map parameters (namely the second cover map parameters) is issued according to the matching of the degradation strategy, namely, the cover maps with different video cover map parameters are matched through different equipment parameters, the matched cover maps are subjected to downloading link distribution, an asynchronous cover compression task is triggered, the cover map of the missing video cover map parameters is generated, only the required cover map needs to be generated, the consumption of unnecessary calculation and storage resources is reduced, the downloading and rendering speed of the electronic equipment is improved, and the consumption of network flow and electric quantity is reduced.

FIG. 5 is a block diagram illustrating a server in accordance with an example embodiment. Referring to fig. 5, the server includes:

a processor 510;

a memory 520 for storing the processor-executable instructions;

wherein the processor 510 is configured to execute the instructions to implement the method for determining the cover picture.

In an exemplary embodiment, a computer-readable storage medium comprising instructions, such as a memory comprising instructions, executable by the processor 510 of the server to perform the method described above is also provided. Alternatively, the computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.

In an exemplary embodiment, there is also provided a computer program product comprising a computer program/instructions which, when executed by a processor, implement the method of determining a cover picture described above.

Further, the determination scheme of cover pictures provided herein is not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with the teachings herein. The structure required to construct a system incorporating aspects of the present invention will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.

In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.

Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.

Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.

Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.

The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in an information extraction scheme according to embodiments of the present disclosure. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.

It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.

In view of the above, other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the invention 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.

21页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:音视频处理方法、装置和电子设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类