CN108614844B - Multimedia file generation method and device - Google Patents

Multimedia file generation method and device Download PDF

Info

Publication number
CN108614844B
CN108614844B CN201611151299.6A CN201611151299A CN108614844B CN 108614844 B CN108614844 B CN 108614844B CN 201611151299 A CN201611151299 A CN 201611151299A CN 108614844 B CN108614844 B CN 108614844B
Authority
CN
China
Prior art keywords
multimedia file
parameter
current
dynamic
acquiring
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
CN201611151299.6A
Other languages
Chinese (zh)
Other versions
CN108614844A (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.)
Tencent Technology Beijing Co Ltd
Original Assignee
Tencent Technology Beijing 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 Tencent Technology Beijing Co Ltd filed Critical Tencent Technology Beijing Co Ltd
Priority to CN201611151299.6A priority Critical patent/CN108614844B/en
Publication of CN108614844A publication Critical patent/CN108614844A/en
Application granted granted Critical
Publication of CN108614844B publication Critical patent/CN108614844B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a multimedia file generation method and device. Wherein, the method comprises the following steps: acquiring a file identifier of a multimedia file to be generated; acquiring an object array matched with the multimedia file according to the file identifier, wherein the object array comprises one or more processing objects associated with the multimedia file, and the processing objects comprise static objects and/or dynamic objects; and generating the multimedia file by splicing the processing objects in the object array. The invention solves the technical problem of low generation efficiency when the existing multimedia file generation method is adopted.

Description

Multimedia file generation method and device
Technical Field
The invention relates to the field of computers, in particular to a multimedia file generation method and device.
Background
Nowadays, many network media platforms receive multimedia file orders, and push corresponding multimedia files on the network media platforms for display according to contents indicated by the multimedia file orders, so as to obtain corresponding benefits provided by multimedia file providers.
In the existing multimedia file generation process, a common technical means is to add order information of multimedia files to be displayed into a generation system one by one in sequence and then uniformly convert the order information into character strings in a predetermined format, so that the front end can directly display the corresponding multimedia files after acquiring the character strings. However, when a large number of multimedia file orders are processed, if the order information is still sequentially input to generate the multimedia files in the above manner, the operation complexity is high, which not only increases the operation consumption, but also increases the time required for generating the multimedia files, which greatly affects the generation efficiency of the multimedia files.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a multimedia file generation method and a multimedia file generation device, which at least solve the technical problem of low generation efficiency when the existing multimedia file generation method is adopted.
According to an aspect of an embodiment of the present invention, there is provided a multimedia file generating method, including: acquiring a file identifier of a multimedia file to be generated; acquiring an object array matched with the multimedia file according to the file identifier, wherein the object array comprises one or more processing objects related to the multimedia file, and the processing objects comprise static objects and/or dynamic objects; and generating the multimedia file by splicing the processing objects in the object array.
According to another aspect of the embodiments of the present invention, there is also provided a multimedia file generating apparatus, including: the first acquisition unit is used for acquiring a file identifier of a multimedia file to be generated; a second obtaining unit, configured to obtain an object array matched with the multimedia file according to the file identifier, where the object array includes one or more processing objects associated with the multimedia file, and the processing objects include static objects and/or dynamic objects; and the generating unit is used for generating the multimedia file by splicing the processing objects in the object array.
In the embodiment of the invention, after the file identifier of the multimedia file to be generated is acquired, the processing object in the object array matched with the multimedia file is spliced, wherein the processing object comprises a static object and/or a dynamic object, so as to generate the corresponding multimedia file. That is to say, by using the object array including one or more processed objects obtained through preprocessing, the corresponding multimedia file can be directly generated through splicing without filling in order information of the multimedia file in sequence, and then the multimedia file is generated through conversion, so that the generation efficiency of the multimedia file is improved, and the problem of low generation efficiency of the multimedia file in the prior art is solved. In addition, in the process of generating the multimedia file by splicing the processing objects in the object array, different encoding modes and different client versions can be applied, so that the application range of the generated multimedia file is expanded, and the expansibility and the compatibility of the generated multimedia file are improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a schematic diagram of an application environment of an alternative multimedia file generation method according to an embodiment of the present invention;
FIG. 2 is a flow chart of an alternative multimedia file generation method according to an embodiment of the present invention;
FIG. 3 is an exemplary diagram of an alternative multimedia file generation method according to an embodiment of the present invention;
FIG. 4 is an exemplary diagram of another alternative multimedia file generation method according to an embodiment of the present invention;
FIG. 5 is an exemplary diagram of an alternative multimedia file generation method according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of an alternative multimedia file generating apparatus according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of an alternative multimedia file generation system according to an embodiment of the present invention
FIG. 8 is a flow chart of an alternative multimedia file generation method according to an embodiment of the present invention;
FIG. 9 is a flow chart of yet another alternative multimedia file generation method according to an embodiment of the present invention;
fig. 10 is a schematic diagram of an alternative multimedia file generation server according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above 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 invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
In an embodiment of the present invention, an embodiment of the above multimedia file generation method is provided. As an alternative implementation, the multimedia file generating method may be applied, but not limited to, in the application environment shown in fig. 1, where a client runs on a terminal 102, a server 106 obtains an access request to a predetermined page on the client through a network 104, selects a multimedia file for displaying in the page for the page in response to the access request, and then, the server 106 obtains a file identifier of the selected multimedia file to be generated, and obtains an object array matched with the multimedia file according to the file identifier, where the object array includes one or more processing objects associated with the multimedia file, and the processing objects include static objects and/or dynamic objects. Then, the processing objects in the object array are spliced to generate the multimedia file. Further, the multimedia file may be pushed to a client on the terminal 102 for display.
In this embodiment, after the file identifier of the multimedia file to be generated is obtained, the processing object in the object array matched with the multimedia file is spliced, where the processing object includes a static object and/or a dynamic object, so as to generate the corresponding multimedia file. That is to say, by using the object array including one or more processed objects obtained through preprocessing, the corresponding multimedia file can be directly generated through splicing without filling in order information of the multimedia file in sequence, and then the multimedia file is generated through conversion, so that the generation efficiency of the multimedia file is improved, and the problem of low generation efficiency of the multimedia file in the prior art is solved. In addition, in the process of generating the multimedia file by splicing the processing objects in the object array, different coding modes and different client versions can be applied, so that the application range of the generation method is expanded, and the expansibility and the compatibility of the generation method are improved.
Optionally, in this embodiment, the terminal may include, but is not limited to, at least one of the following: mobile phones, tablet computers, notebook computers, desktop PCs, digital televisions and other hardware devices that can display multimedia files. The network may include, but is not limited to, at least one of: wide area networks, metropolitan area networks, and local area networks. The above is only an example, and the present embodiment is not limited to this.
According to an embodiment of the present invention, there is provided a multimedia file generating method, as shown in fig. 2, the method including:
s202, acquiring a file identifier of a multimedia file to be generated;
s204, acquiring an object array matched with the multimedia file according to the file identifier, wherein the object array comprises one or more processing objects related to the multimedia file, and the processing objects comprise static objects and/or dynamic objects;
s206, the processing objects in the object array are spliced to generate the multimedia file.
Optionally, in this embodiment, the multimedia file generating method may be but is not limited to be applied to a process of pushing a multimedia file to a client, for example, after receiving an access request sent by the client for accessing a predetermined page, the multimedia file that needs to be inserted into the predetermined page is selected, a file identifier of the multimedia file is obtained, further, an object array that is matched with the multimedia file is obtained according to the file identifier, the multimedia file is directly generated by splicing processing objects in the object array, and the generated multimedia file is further pushed to the client. The multimedia files may include, but are not limited to: the advertisement file, such as a video advertisement file, an audio advertisement file, a picture advertisement file, or a text advertisement file, is only an example, and this is not limited in this embodiment.
It should be noted that after the file identifier of the multimedia file to be generated is obtained, the processing object in the object array matched with the multimedia file is spliced, where the processing object includes a static object and/or a dynamic object, so as to generate the corresponding multimedia file. That is to say, by using the object array including one or more processed objects obtained through preprocessing, the corresponding multimedia file can be directly generated through splicing without filling in order information of the multimedia file in sequence, and then the multimedia file is generated through conversion, so that the generation efficiency of the multimedia file is improved, and the problem of low generation efficiency of the multimedia file in the prior art is solved. In addition, in the process of generating the multimedia file by splicing the processing objects in the object array, different coding modes and different client versions can be applied, so that the application range of the generation method is expanded, and the expansibility and the compatibility of the generation method are improved.
Optionally, in this embodiment, the types of the processing objects in the object array include: static object, dynamic object, wherein, the above-mentioned processing object includes: the object type indicates an identity, an object parameter value. Alternatively, the object parameter values for the static object may include, but are not limited to: parameter name and parameter value; the object parameter values of the dynamic object may include, but are not limited to: parameter names, parameter values, object prefixes, and/or object suffixes.
Optionally, in this embodiment, before obtaining the object array matched with the multimedia file according to the file identifier, the method further includes: acquiring display configuration information of the multimedia file, wherein the display configuration information is used for controlling the display of the multimedia file at a client; and acquiring an object array matched with the multimedia file according to the display configuration information, wherein in the display configuration information, the parameter value is indicated as a fixed value configuration static object, and the parameter value is indicated as a variable value configuration dynamic object.
It should be noted that, the configuration parameters in the display configuration information may include, but are not limited to, at least one of the following: a title (title) of the multimedia file, an abstract (abstract) of the multimedia file, a price of the multimedia file, a Resource link address (URL) of the multimedia file, an identifier (icon) of the multimedia file, whether a monitoring result (such as ping _ data and ping _ type) of the multimedia file needs to be reported, and the like.
Optionally, in this embodiment, the display configuration information may be, but is not limited to, stored in a character string with a predetermined format, where a specific identifier is used to identify whether a parameter value is a variable value, for example, a configuration parameter configured with the specific identifier corresponds to a dynamic object, and a configuration parameter not configured with the specific identifier corresponds to a static object. Optionally, in this embodiment, the specific identifier may be, but is not limited to, a macro "$ { }".
For example, the display configuration information may be, but is not limited to, as shown in fig. 3, wherein the parameter value of the configuration parameter "order _ id" in the display configuration information is indicated as a fixed value, such as "123456", and the parameter value of the configuration parameter "pctr" in the display configuration information is indicated as a variable value carrying a specific identification macro "$ { }", such as "$ { pctr }"; assuming that "1" represents a static object and "2" represents a dynamic object, the resulting object array may be as shown in fig. 4, where the configuration parameter "order _ id" is configured as a static object in the object array, and type is configured as "1"; the configuration parameter "pctr" is configured as a dynamic object in the object array, and the type is configured as "2".
It should be noted that, in this embodiment, according to the order of displaying the configuration information, in the obtained object array, a plurality of consecutive parameter values configured as fixed values may use one object type indicator, as shown in fig. 4, which is the first processing object.
In this embodiment, the object array corresponding to the multimedia file is obtained by preprocessing the display configuration information required in the multimedia file order, so that when the multimedia file to be pushed is generated, the processing objects in the object array can be used for directly splicing, thereby realizing the rapid generation of the multimedia file and achieving the effect of improving the generation efficiency of the multimedia file.
Optionally, in this embodiment, before obtaining the object array matched with the multimedia file according to the file identifier, the method further includes: and acquiring an access request sent by a client, wherein the access request carries dynamic information.
Optionally, in this embodiment, the parameter value carried in the dynamic information may include, but is not limited to, at least one of the following: the system comprises a client version identifier of a client for requesting to display the multimedia file, a device identifier of a terminal where the client for requesting to display the multimedia file is located, a login account used by the client for requesting to display the multimedia file and a login address of the client for requesting to display the multimedia file.
That is to say, different access requests are identified by judging parameter values carried in the dynamic information, so that different variable values can be configured for different access requests, and the purposes of expanding the application range of the generated multimedia file and improving the compatibility are achieved. For example, for different encoding modes, different client versions and different terminal types, the multimedia files correspondingly supported can be generated by configuring different variable values. Furthermore, when the parameter value in the dynamic information is a default value or is empty, the current variable value can be skipped to obtain and process the next processing object directly, thereby saving the flow consumed when generating the multimedia file.
Optionally, in this embodiment, the generating the multimedia file by splicing the processing objects in the object array includes: when the processing object is a static object, directly configuring a corresponding fixed value for the processing object; when the processing object is a dynamic object, configuring a variable value determined according to a judgment result after judging the dynamic information; and splicing the processing objects according to the file format of the multimedia file to generate the multimedia file.
The file format of the multimedia file may include, but is not limited to: the json format is an xml format, wherein the json format which conforms to the OpenRTB standard is mainly applied to information flow advertisements; the xml format conforming to the VAST protocol is mainly applied to video advertisements.
That is to say, for the complexity of different encoding modes and different terminal types indicated by the dynamic information, in this embodiment, different variable values may be configured for the dynamic information, so as to generate the multimedia file correspondingly supported. Therefore, the purposes of expanding the application range of the generated multimedia file and improving the compatibility are achieved.
According to the embodiment provided by the application, the object array which is obtained through preprocessing and comprises one or more processing objects is utilized, so that the corresponding multimedia file is directly generated through splicing, the order information of the multimedia file does not need to be filled in sequence, and the multimedia file is generated through conversion, the generation efficiency of the multimedia file is improved, and the problem that the multimedia file generation efficiency is low in the prior art is solved. In addition, in the process of generating the multimedia file by splicing the processing objects in the object array, different encoding modes and different client versions can be applied, so that the application range of the generated multimedia file is expanded, and the expansibility and compatibility of the generation method are improved.
As an optional scheme, before obtaining the object array matched with the multimedia file according to the file identifier, the method further includes:
s1, acquiring display configuration information of the multimedia file, wherein the display configuration information is used for controlling the display of the multimedia file at the client;
and S2, acquiring an object array matched with the multimedia file according to the display configuration information, wherein in the display configuration information, the parameter value indicates a fixed value configuration as a static object, and the parameter value indicates a variable value configuration as a dynamic object.
It should be noted that, the configuration parameters in the display configuration information may include, but are not limited to, at least one of the following: a title (title) of the multimedia file, an abstract (abstract) of the multimedia file, a price of the multimedia file, a Resource link address (URL) of the multimedia file, an identifier (icon) of the multimedia file, whether a monitoring result (such as ping _ data, ping _ type) of the multimedia file needs to be reported, and the like.
Optionally, in this embodiment, the display configuration information may be, but is not limited to, stored in a character string with a predetermined format, where a specific identifier is used to identify whether a parameter value is a variable value, for example, a configuration parameter configured with the specific identifier corresponds to a dynamic object, and a configuration parameter not configured with the specific identifier corresponds to a static object. Optionally, in this embodiment, the specific identifier may be, but is not limited to, a macro "$ { }".
For example, the display configuration information may be, but is not limited to, as shown in fig. 3, wherein the parameter value of the configuration parameter "order _ id" in the display configuration information is indicated as a fixed value, such as "123456", and the parameter value of the configuration parameter "pctr" in the display configuration information is indicated as a variable value carrying a specific identification macro "$ { }", such as "$ { pctr }"; assuming that "1" represents a static object and "2" represents a dynamic object, the resulting object array may be as shown in fig. 4, where the configuration parameter "order _ id" is configured as a static object in the object array, and type is configured as "1"; the configuration parameter "pctr" is configured as a dynamic object in the object array, and the type is configured as "2".
Optionally, in this embodiment, in the step S2, the obtaining the object array matched with the multimedia file according to the display configuration information includes:
s21, repeatedly executing the following steps until all configuration parameters in the configuration information are displayed in a traversing manner:
s21-1, acquiring current configuration parameters;
s21-2, judging whether the current configuration parameter is configured with a specific identifier, wherein the specific identifier is used for identifying the parameter value of the configuration parameter as a variable value;
s21-3, when the current configuration parameter is not configured with the specific identification, configuring the current configuration parameter as a static object; when the current configuration parameter configures the specific identifier, configuring the current configuration parameter into a dynamic object to obtain a processing object corresponding to the current configuration parameter in an object array;
and S21-4, acquiring the next configuration parameter as the current configuration parameter.
Referring to fig. 3, traversing each configuration parameter in the display configuration information, according to whether the configuration parameter configures a specific identifier, dividing the configuration parameter of the display configuration information into a static object and a dynamic object, and respectively storing the static object and the dynamic object to obtain an object array, so that the processing objects (i.e., the static object and the dynamic object) can be directly used for splicing, thereby achieving the purpose of rapidly generating the multimedia file.
According to the embodiment provided by the application, the display configuration information for controlling the display of the multimedia file is split into the static object and the dynamic object in the object array, and the multimedia file can be directly generated in a splicing combination mode through the preprocessing operation when the multimedia file is generated, so that the order information of the multimedia file does not need to be manually input, and the generation steps of the multimedia file are simplified.
As an optional scheme, the generating the multimedia file by splicing the processing objects in the object array includes:
s1, repeatedly executing the following steps until all processing objects in the object array are traversed:
s12, acquiring the current processing object;
s14, when the current processing object is a static object, directly configuring the parameter value of the current processing object as a corresponding fixed value;
s16, when the current processing object is a dynamic object, obtaining a variable value matched with the current processing object, and configuring the parameter value of the current processing object as the variable value;
s18, acquiring the next processing object as the current processing object;
and S2, splicing the processing objects with the configured parameter values according to the file format of the multimedia file to generate the multimedia file.
Optionally, in this embodiment, in the process of generating a multimedia file by splicing, but not limited to, each processing object in the object array matched with the multimedia file may be sequentially obtained, and different values are configured for the static object and the dynamic object, respectively.
For example, the static object is directly configured with a corresponding fixed value, as shown in fig. 4, assuming that the static object is "order _ id", the fixed value is directly configured, such as "123456"; the dynamic object determines a corresponding variable value according to a determination result of the acquired dynamic information, and as shown in fig. 4, assuming that the dynamic object is "USER _ IP", the dynamic object may acquire the dynamic information carried in the access request sent by the client, such as an IP address (IP ═ 10.11.12.13), and further configure the variable value "10.11.12.13".
Optionally, when performing splicing on the processing objects in the object array, the splicing may be performed according to, but not limited to, a file format of the multimedia file. The file format of the multimedia file may include, but is not limited to: the json format is an xml format, wherein the json format which conforms to the OpenRTB standard is mainly applied to information flow advertisements; the xml format conforming to the VAST protocol is mainly applied to video advertisements. For example, the multimedia file obtained after splicing and pushed to the client may be a character string as shown in fig. 5, and after receiving the character string, the client may perform displaying the multimedia file according to the character string.
By the embodiment provided by the application, the multimedia file is generated by directly splicing the processing objects in the object array without sequentially filling the order information of the multimedia file, so that the generation efficiency of the multimedia file is improved, and the problem of low generation efficiency of the multimedia file in the prior art is solved.
As an optional scheme, when the current processing object is a dynamic object, acquiring a variable value matched with the current processing object includes:
s1, acquiring the object prefix and/or object suffix of the current processing object;
s2, obtaining the judgment result of the dynamic information matched with the current processing object, wherein the dynamic information has an incidence relation with the client end for requesting to display the multimedia file;
and S3, splicing the object prefix and/or the object suffix of the current processing object and the judgment result to obtain a variable value matched with the current processing object.
Specifically, with reference to the following example, the processing objects in the object array shown in fig. 4 respectively include an object type identifier type and an object parameter value. Assume that a static object is represented by "1" and a dynamic object is represented by "2". Wherein the object parameter values of the static object include: parameter name, parameter value. For example, static objects are as follows:
{
“type”:1,
"value": "," title ": "example advertisement title", "order _ id": 123456"
}
Wherein, the parameter value of the parameter name 'title' is 'example advertisement title'; the parameter name "order _ id" has a parameter value of "123456".
Further, the object parameter values of the dynamic object include: parameter names, parameter values, object prefixes, and/or object suffixes. For example, the dynamic objects are as follows:
{“type”:2,
“value”:“PING_DATA”,
“value_prefix”:“,“ping_data”:””,
“value_surfix”:“””
}
it should be noted that, according to different scenes, the object prefixes and/or object suffixes are correspondingly different. Optionally, in this embodiment, the object prefix may be, but is not limited to, content before a specific identifier (e.g., $ macro), and the object suffix may be, but is not limited to, content after the specific identifier (e.g., $ macro). Referring to the display configuration information shown in fig. 3, the content before the configuration parameter "PING _ DATA", macro "$ { }" is the content in the box: [ ping _ data': ", i.e., corresponds to the object prefix; the content behind the macro "$ { }" is the content in the box: [ MEANS FOR SOLVING PROBLEMS ] corresponds to an object suffix surfix.
Optionally, in this embodiment, in step S2, the obtaining of the determination result of the dynamic information matching the current processing object includes:
s21, judging whether the parameter value carried in the dynamic information is a default value or null;
s22, when the parameter value carried in the dynamic information is default or empty, obtaining the next processing object as the current processing object;
and S23, when the parameter value carried in the dynamic information is not the default value or is empty, acquiring a corresponding coding mode as a judgment result according to the parameter value carried in the dynamic information.
Optionally, in this embodiment, the parameter value carried in the dynamic information includes at least one of the following: the system comprises a client version identifier of a client for requesting to display the multimedia file, a device identifier of a terminal where the client for requesting to display the multimedia file is located, a login account used by the client for requesting to display the multimedia file and a login address of the client for requesting to display the multimedia file.
It should be noted that, in this embodiment, when the parameter value indicated by the obtained dynamic information is a default value or is empty, in order to save the terminal traffic, the current processing object may be skipped, and the next processing object may be directly obtained without configuring a variable value for the current processing object. Therefore, in the process of generating the multimedia file through splicing, the processing object with the parameter value as the default value or empty is removed, so that the transmission flow is saved.
In addition, in this embodiment, different determination results are obtained for different dynamic information, so as to configure different variable values for the dynamic object, so as to expand the application range of the generated multimedia file and achieve the effect of improving compatibility.
According to the embodiment provided by the application, the variable values are spliced by using the judgment result of the dynamic information to obtain the dynamic object, so that the generated multimedia file is suitable for different coding modes and different client versions by splicing the static object and/or the dynamic object, the application range of the generated multimedia file is further expanded, and the expansibility and compatibility of the generation method are improved.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
According to an embodiment of the present invention, there is also provided a multimedia file generating apparatus for implementing the above-mentioned multimedia file generating method, as shown in fig. 6, the apparatus includes:
1) a first obtaining unit 602, configured to obtain a file identifier of a multimedia file to be generated;
2) a second obtaining unit 604, configured to obtain an object array matched with the multimedia file according to the file identifier, where the object array includes one or more processing objects associated with the multimedia file, and the processing objects include static objects and/or dynamic objects;
3) a generating unit 606, configured to generate a multimedia file by splicing the processing objects in the object array.
Optionally, in this embodiment, the multimedia file generating apparatus may be, but not limited to, applied to a process of pushing a multimedia file to a client, for example, after receiving an access request sent by the client for accessing a predetermined page, the multimedia file that needs to be inserted into the predetermined page is selected, a file identifier of the multimedia file is obtained, further, an object array that is matched with the multimedia file is obtained according to the file identifier, the multimedia file is directly generated by splicing processing objects in the object array, and the generated multimedia file is further pushed to the client. The multimedia files may include, but are not limited to: the advertisement file, such as a video advertisement file, an audio advertisement file, a picture advertisement file, or a text advertisement file, is only an example, and this is not limited in this embodiment.
It should be noted that after the file identifier of the multimedia file to be generated is obtained, the processing object in the object array matched with the multimedia file is spliced, where the processing object includes a static object and/or a dynamic object, so as to generate the corresponding multimedia file. That is to say, by using the object array including one or more processed objects obtained through preprocessing, the corresponding multimedia file can be directly generated through splicing without filling in order information of the multimedia file in sequence, and then the multimedia file is generated through conversion, so that the generation efficiency of the multimedia file is improved, and the problem of low generation efficiency of the multimedia file in the prior art is solved. In addition, in the process of generating the multimedia file by splicing the processing objects in the object array, different encoding modes and different client versions can be applied, so that the application range of the generated multimedia file is expanded, and the expansibility and the compatibility of the generated multimedia file are improved.
Optionally, in this embodiment, the types of the processing objects in the object array include: static object, dynamic object, wherein, the above-mentioned processing object includes: the object type indicates an identity, an object parameter value. Alternatively, the object parameter values for the static object may include, but are not limited to: parameter name and parameter value; the object parameter values of the dynamic object may include, but are not limited to: parameter names, parameter values, object prefixes, and/or object suffixes.
Optionally, in this embodiment, before obtaining the object array matched with the multimedia file according to the file identifier, the method further includes: acquiring display configuration information of the multimedia file, wherein the display configuration information is used for controlling the display of the multimedia file at a client; and acquiring an object array matched with the multimedia file according to the display configuration information, wherein in the display configuration information, the parameter value is indicated as a fixed value configuration static object, and the parameter value is indicated as a variable value configuration dynamic object.
It should be noted that, the configuration parameters in the display configuration information may include, but are not limited to, at least one of the following: a title (title) of the multimedia file, an abstract (abstract) of the multimedia file, a price of the multimedia file, a Resource link address (URL) of the multimedia file, an identifier (icon) of the multimedia file, whether a monitoring result (such as ping _ data and ping _ type) of the multimedia file needs to be reported, and the like.
Optionally, in this embodiment, the display configuration information may be, but is not limited to, stored in a character string with a predetermined format, where a specific identifier is used to identify whether a parameter value is a variable value, for example, a configuration parameter configured with the specific identifier corresponds to a dynamic object, and a configuration parameter not configured with the specific identifier corresponds to a static object. Optionally, in this embodiment, the specific identifier may be, but is not limited to, a macro "$ { }".
For example, the display configuration information may be, but is not limited to, as shown in fig. 3, wherein the parameter value of the configuration parameter "order _ id" in the display configuration information is indicated as a fixed value, such as "123456", and the parameter value of the configuration parameter "pctr" in the display configuration information is indicated as a variable value carrying a specific identification macro "$ { }", such as "$ { pctr }"; assuming that "1" represents a static object and "2" represents a dynamic object, the resulting object array may be as shown in fig. 4, where the configuration parameter "order _ id" is configured as a static object in the object array, and type is configured as "1"; the configuration parameter "pctr" is configured as a dynamic object in the object array, and the type is configured as "2".
It should be noted that, in this embodiment, according to the order of displaying the configuration information, in the obtained object array, a plurality of consecutive parameter values configured as fixed values may use one object type indicator, as shown in fig. 4, which is the first processing object.
In this embodiment, the object array corresponding to the multimedia file is obtained by preprocessing the display configuration information required in the multimedia file order, so that when the multimedia file to be pushed is generated, the processing objects in the object array can be used for directly splicing, thereby realizing the rapid generation of the multimedia file and achieving the effect of improving the generation efficiency of the multimedia file.
Optionally, in this embodiment, the method further includes: 1) and the fifth obtaining unit is used for obtaining the access request sent by the client before obtaining the object array matched with the multimedia file according to the file identifier, wherein the access request carries dynamic information.
Optionally, in this embodiment, the parameter value carried in the dynamic information may include, but is not limited to, at least one of the following: the system comprises a client version identifier of a client for requesting to display the multimedia file, a device identifier of a terminal where the client for requesting to display the multimedia file is located, a login account used by the client for requesting to display the multimedia file and a login address of the client for requesting to display the multimedia file.
That is to say, different access requests are identified by judging parameter values carried in the dynamic information, so that different variable values can be configured for different access requests, and the purposes of expanding the application range of the generated multimedia file and improving the compatibility are achieved. For example, for different encoding modes, different client versions and different terminal types, the multimedia files correspondingly supported can be generated by configuring different variable values. Furthermore, when the parameter value in the dynamic information is a default value or is empty, the current variable value can be skipped to obtain and process the next processing object directly, thereby saving the flow consumed when generating the multimedia file.
Optionally, in this embodiment, the generating the multimedia file by splicing the processing objects in the object array includes: when the processing object is a static object, directly configuring a corresponding fixed value for the processing object; when the processing object is a dynamic object, configuring a variable value determined according to a judgment result after judging the dynamic information; and splicing the processing objects according to the file format of the multimedia file to generate the multimedia file.
The file format of the multimedia file may include, but is not limited to: the json format is an xml format, wherein the json format which conforms to the OpenRTB standard is mainly applied to information flow advertisements; the xml format conforming to the VAST protocol is mainly applied to video advertisements.
That is to say, for the complexity of different encoding modes and different terminal types indicated by the dynamic information, in this embodiment, different variable values may be configured for the dynamic information, so as to generate the multimedia file correspondingly supported. Therefore, the purposes of expanding the application range of the generated multimedia file and improving the compatibility are achieved.
According to the embodiment provided by the application, the object array which is obtained through preprocessing and comprises one or more processing objects is utilized, so that the corresponding multimedia file is directly generated through splicing, the order information of the multimedia file does not need to be filled in sequence, and the multimedia file is generated through conversion, the generation efficiency of the multimedia file is improved, and the problem that the multimedia file generation efficiency is low in the prior art is solved. In addition, in the process of generating the multimedia file by splicing the processing objects in the object array, different encoding modes and different client versions can be applied, so that the application range of the generated multimedia file is expanded, and the expansibility and the compatibility of the generated multimedia file are improved.
As an optional scheme, the method further comprises the following steps:
1) the third acquisition unit is used for acquiring the display configuration information of the multimedia file before acquiring the object array matched with the multimedia file according to the file identifier, wherein the display configuration information is used for controlling the display of the multimedia file at the client;
2) and the fourth acquisition unit is used for acquiring the object array matched with the multimedia file according to the display configuration information, wherein in the display configuration information, the parameter values indicate fixed value configuration as static objects, and the parameter values indicate variable value configuration as dynamic objects.
It should be noted that, the configuration parameters in the display configuration information may include, but are not limited to, at least one of the following: a title (title) of the multimedia file, an abstract (abstract) of the multimedia file, a price of the multimedia file, a Resource link address (URL) of the multimedia file, an identifier (icon) of the multimedia file, whether a monitoring result (such as ping _ data, ping _ type) of the multimedia file needs to be reported, and the like.
Optionally, in this embodiment, the display configuration information may be, but is not limited to, stored in a character string with a predetermined format, where a specific identifier is used to identify whether a parameter value is a variable value, for example, a configuration parameter configured with the specific identifier corresponds to a dynamic object, and a configuration parameter not configured with the specific identifier corresponds to a static object. Optionally, in this embodiment, the specific identifier may be, but is not limited to, a macro "$ { }".
For example, the display configuration information may be, but is not limited to, as shown in fig. 3, wherein the parameter value of the configuration parameter "order _ id" in the display configuration information is indicated as a fixed value, such as "123456", and the parameter value of the configuration parameter "pctr" in the display configuration information is indicated as a variable value carrying a specific identification macro "$ { }", such as "$ { pctr }"; assuming that "1" represents a static object and "2" represents a dynamic object, the resulting object array may be as shown in fig. 4, where the configuration parameter "order _ id" is configured as a static object in the object array, and type is configured as "1"; the configuration parameter "pctr" is configured as a dynamic object in the object array, and the type is configured as "2".
Optionally, in this embodiment, the fourth obtaining unit includes: (1) the first processing module is used for repeatedly executing the following steps until all the configuration parameters in the configuration information are displayed in a traversing manner:
s1, acquiring current configuration parameters;
s2, judging whether the current configuration parameter is configured with a specific identifier, wherein the specific identifier is used for identifying the parameter value of the configuration parameter as a variable value;
s3, when the current configuration parameter is not configured with the specific mark, configuring the current configuration parameter as a static object; when the current configuration parameter configures the specific identifier, configuring the current configuration parameter into a dynamic object to obtain a processing object corresponding to the current configuration parameter in an object array;
and S4, acquiring the next configuration parameter as the current configuration parameter.
Referring to fig. 3, traversing each configuration parameter in the display configuration information, according to whether the configuration parameter configures a specific identifier, dividing the configuration parameter of the display configuration information into a static object and a dynamic object, and respectively storing the static object and the dynamic object to obtain an object array, so that the processing objects (i.e., the static object and the dynamic object) can be directly used for splicing, thereby achieving the purpose of rapidly generating the multimedia file.
According to the embodiment provided by the application, the display configuration information for controlling the display of the multimedia file is split into the static object and the dynamic object in the object array, and the multimedia file can be directly generated in a splicing combination mode through the preprocessing operation when the multimedia file is generated, so that the order information of the multimedia file does not need to be manually input, and the generation steps of the multimedia file are simplified.
As an optional scheme, the generating unit includes: (1) the second processing module is used for repeatedly executing the following steps until all processing objects in the object array are traversed:
s1, acquiring the current processing object;
s2, when the current processing object is a static object, directly configuring the parameter value of the current processing object as a corresponding fixed value;
s3, when the current processing object is a dynamic object, obtaining a variable value matched with the current processing object, and configuring the parameter value of the current processing object as the variable value;
s4, acquiring the next processing object as the current processing object;
2) and the generating module is used for splicing the processing objects with the configured parameter values according to the file format of the multimedia file so as to generate the multimedia file.
Optionally, in this embodiment, in the process of generating a multimedia file by splicing, but not limited to, each processing object in the object array matched with the multimedia file may be sequentially obtained, and different values are configured for the static object and the dynamic object, respectively.
For example, the static object is directly configured with a corresponding fixed value, as shown in fig. 4, assuming that the static object is "order _ id", the fixed value is directly configured, such as "123456"; the dynamic object determines a corresponding variable value according to a determination result of the acquired dynamic information, and as shown in fig. 4, assuming that the dynamic object is "USER _ IP", the dynamic object may acquire the dynamic information carried in the access request sent by the client, such as an IP address (IP ═ 10.11.12.13), and further configure the variable value "10.11.12.13".
Optionally, when performing splicing on the processing objects in the object array, the splicing may be performed according to, but not limited to, a file format of the multimedia file. The file format of the multimedia file may include, but is not limited to: the json format is an xml format, wherein the json format which conforms to the OpenRTB standard is mainly applied to information flow advertisements; the xml format conforming to the VAST protocol is mainly applied to video advertisements. For example, the multimedia file obtained after splicing and pushed to the client may be a character string as shown in fig. 5, and after receiving the character string, the client may perform displaying the multimedia file according to the character string.
By the embodiment provided by the application, the multimedia file is generated by directly splicing the processing objects in the object array without sequentially filling the order information of the multimedia file, so that the generation efficiency of the multimedia file is improved, and the problem of low generation efficiency of the multimedia file in the prior art is solved.
As an optional scheme, the second processing module obtains a variable value matched with the current processing object when the current processing object is a dynamic object by the following steps:
s1, acquiring the object prefix and/or object suffix of the current processing object;
s2, obtaining the judgment result of the dynamic information matched with the current processing object, wherein the dynamic information has an incidence relation with the client end for requesting to display the multimedia file;
and S3, splicing the object prefix and/or the object suffix of the current processing object and the judgment result to obtain a variable value matched with the current processing object.
Specifically, with reference to the following example, the processing objects in the object array shown in fig. 4 respectively include an object type identifier type and an object parameter value. Assume that a static object is represented by "1" and a dynamic object is represented by "2". Wherein the object parameter values of the static object include: parameter name, parameter value. For example, static objects are as follows:
{
“type”:1,
"value": "," title ": "example advertisement title", "order _ id": 123456"
}
Wherein, the parameter value of the parameter name 'title' is 'example advertisement title'; the parameter name "order _ id" has a parameter value of "123456".
Further, the object parameter values of the dynamic object include: parameter names, parameter values, object prefixes, and/or object suffixes. For example, the dynamic objects are as follows:
{“type”:2,
“value”:“PING_DATA”,
“value_prefix”:“,“ping_data”:””,
“value_surfix”:“””
}
it should be noted that, according to different scenes, the object prefixes and/or object suffixes are correspondingly different. Optionally, in this embodiment, the object prefix may be, but is not limited to, content before a specific identifier (e.g., $ macro), and the object suffix may be, but is not limited to, content after the specific identifier (e.g., $ macro). Referring to the display configuration information shown in fig. 3, the content before the configuration parameter "PING _ DATA", macro "$ { }" is the content in the box: [ ping _ data': ", i.e., corresponds to the object prefix; the content behind the macro "$ { }" is the content in the box: [ MEANS FOR SOLVING PROBLEMS ] corresponds to an object suffix surfix.
Optionally, in this embodiment, the second processing module obtains a result of determining the dynamic information matched with the current processing object by:
s1, judging whether the parameter value carried in the dynamic information is a default value or null;
s2, when the parameter value carried in the dynamic information is default or empty, obtaining the next processing object as the current processing object;
and S3, when the parameter value carried in the dynamic information is not the default value or is empty, acquiring a corresponding coding mode as a judgment result according to the parameter value carried in the dynamic information.
Optionally, in this embodiment, the parameter value carried in the dynamic information includes at least one of: the system comprises a client version identifier of a client for requesting to display the multimedia file, a device identifier of a terminal where the client for requesting to display the multimedia file is located, a login account used by the client for requesting to display the multimedia file and a login address of the client for requesting to display the multimedia file.
It should be noted that, in this embodiment, when the parameter value indicated by the obtained dynamic information is a default value or is empty, in order to save the terminal traffic, the current processing object may be skipped, and the next processing object may be directly obtained without configuring a variable value for the current processing object. Therefore, in the process of generating the multimedia file through splicing, the processing object with the parameter value as the default value or empty is removed, so that the transmission flow is saved.
In addition, in this embodiment, different determination results are obtained for different dynamic information, so as to configure different variable values for the dynamic object, so as to expand the application range of the generated multimedia file and achieve the effect of improving compatibility.
According to the embodiment provided by the application, the variable values are spliced by using the judgment result of the dynamic information to obtain the dynamic object, so that the generated multimedia file is suitable for different coding modes and different client versions by splicing the static object and/or the dynamic object, the application range of the generated multimedia file is further expanded, and the expansibility and compatibility of the generation method are improved.
Example 3
The application environment of the embodiment of the present invention may refer to the application environment in embodiment 1, but is not described herein again.
Optionally, in this embodiment, the multimedia file generation method may be applied, but not limited to, in a multimedia file generation system as shown in fig. 7, where the multimedia file is exemplified by an advertisement. Receiving order delivery of an advertisement supplier, storing the order delivery in an order database, preprocessing the advertisement, and splicing the processed objects in the preprocessed object array matched with the multimedia file through an advertisement engine to generate the advertisement to be pushed to each terminal of the front end.
Specifically, as described with reference to the following example, as shown in steps S802 to S818 of fig. 8, the display configuration information in the advertisement order is obtained, the advertisement format is determined, if the advertisement format is json format, the process proceeds to step S806-1, and if the advertisement format is not xml format, the process proceeds to step S806-2, so that the display configuration information is distinguished according to different formats. Further, the configuration parameters in the display configuration information shown in fig. 3 are sequentially acquired as the current configuration parameters, and the following judgments are performed: judging whether a specific identification macro $ { } exists or not, and if no macro exists, configuring the current configuration parameters into static objects; and if the macro exists, configuring the current configuration parameters into dynamic objects. Resulting in a preprocessed array of objects that match the advertisement as shown in fig. 4.
Further, after receiving an access request sent by a client for accessing a predetermined page, the access request carries dynamic information. And generating corresponding advertisements for the preset page by using the object array. Specifically, as shown in fig. 9, in steps S902 to S928, dynamic information is obtained, an advertisement identifier of a currently selected advertisement is obtained, a matched object array is obtained according to the advertisement identifier, and a splicing format is determined according to a format of the advertisement, for example, splicing according to an xml format or splicing according to a json format; further, sequentially acquiring the processing objects in the object array, and respectively executing the following steps:
judging the object type of the processing object, if the object is a static object, entering step S914-1, and directly configuring a corresponding fixed value; if the dynamic object is a dynamic object, step S916 is performed to obtain an object prefix and/or an object suffix of the dynamic object, and determine the obtained dynamic information. In this example, but not limited to, taking the example that the dynamic information is the client version number as an example, the version rule is configured in advance for the version 15110 and 16110, for example, the encoding method 2 is used, and the encoding method 3 is used for other versions. If the version is judged to belong to the version ver attribute directional designation, executing step S918-1; otherwise, step S918-2 is executed, using default rules
In addition, in this embodiment, it is further determined whether the parameter value indicated by the dynamic information is a default value or null, and if the parameter value is the default value or null, the subsequent determination stitching step is skipped to obtain the next processing object; and if the current value is not the default value or null, executing the subsequent splicing step. In this embodiment, the execution sequence of the determination step in the generation method may be, but is not limited to, that shown in fig. 9, or the step may be directly executed after determining that the object is a dynamic object, which is not limited in this embodiment.
Further, assuming that the current dynamic information indicates that the client version number is 15110, and belongs to the range indicated by the pre-configured version rule, step S918-2 is executed using the version rule. Then, step S922 is executed to obtain an encoding method, such as encoding method 2, and step S924-2 is executed to perform splicing by using the obtained object prefix and/or object suffix and encoding method to obtain a variable value corresponding to the dynamic information, so as to obtain the dynamic object.
Finally, the corresponding advertisements are directly generated by splicing the static objects and/or the dynamic objects, so that the aim of reducing CPU consumption is fulfilled, and the generation efficiency of the advertisements is improved; in addition, the processing object with the parameter value being null or the default value can be removed, so that the effect of saving the flow of the server and the terminal is realized; moreover, by means of splicing the processing objects, various requirements can be flexibly supported: and performing differentiated generation processing on different dynamic information, such as terminal versions, coding modes and the like. Furthermore, the present embodiment can achieve the purpose of reducing information leakage by removing unnecessary processing objects or performing special encoding.
Example 4
According to an embodiment of the present invention, there is also provided a multimedia file generating server for implementing the multimedia file generating method, as shown in fig. 10, the server includes:
1) a communication interface 1002 configured to acquire a file identifier of a multimedia file to be generated;
2) the processor 1004 is connected with the communication interface 1002 and is configured to obtain an object array matched with the multimedia file according to the file identifier, wherein the object array comprises one or more processing objects associated with the multimedia file, and the processing objects comprise static objects and/or dynamic objects; the method also comprises the steps of splicing the processing objects in the object array to generate a multimedia file;
3) the memory 1006, configured to couple the communication interface 1002 with the processor 1004, is configured to store the object array and the generated multimedia file.
Optionally, the specific examples in this embodiment may refer to the examples described in embodiment 1 and embodiment 2, and this embodiment is not described herein again.
Example 4
The embodiment of the invention also provides a storage medium. Optionally, in this embodiment, the storage medium may be located in at least one of a plurality of network devices in a network.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps:
s1, acquiring a file identifier of the multimedia file to be generated;
s2, acquiring an object array matched with the multimedia file according to the file identifier, wherein the object array comprises one or more processing objects associated with the multimedia file, and the processing objects comprise static objects and/or dynamic objects;
and S3, generating the multimedia file by splicing the processing objects in the object array.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Optionally, the specific examples in this embodiment may refer to the examples described in embodiment 1 and embodiment 2, and this embodiment is not described herein again.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (15)

1. A method for generating a multimedia file, comprising:
acquiring a file identifier of a multimedia file to be generated;
acquiring display configuration information of the multimedia file, wherein the display configuration information is used for controlling the display of the multimedia file at a client;
acquiring an object array matched with the multimedia file according to the display configuration information, wherein in the display configuration information, a parameter value indicates a fixed value configuration as a static object, and a parameter value indicates a variable value configuration as a dynamic object;
acquiring the object array matched with the multimedia file according to the file identifier, wherein the object array comprises one or more processing objects associated with the multimedia file, and the processing objects comprise the static objects and/or the dynamic objects;
generating the multimedia file by splicing the processing objects in the object array.
2. The method of claim 1, wherein the obtaining the object array matching the multimedia file according to the display configuration information comprises:
repeatedly executing the following steps until all configuration parameters in the display configuration information are traversed:
acquiring current configuration parameters;
judging whether the current configuration parameter is configured with a specific identifier, wherein the specific identifier is used for identifying the parameter value of the configuration parameter as a variable value;
when the specific identifier is not configured by the current configuration parameter, configuring the current configuration parameter as the static object; when the specific identifier is configured by the current configuration parameter, configuring the current configuration parameter as the dynamic object to obtain a processing object corresponding to the current configuration parameter in the object array;
and acquiring the next configuration parameter as the current configuration parameter.
3. The method of claim 1, wherein the generating the multimedia file by stitching the processing objects in the object array comprises:
repeatedly executing the following steps until all processing objects in the object array are traversed:
acquiring a current processing object;
when the current processing object is the static object, directly configuring the parameter value of the current processing object as a corresponding fixed value;
when the current processing object is the dynamic object, obtaining a variable value matched with the current processing object, and configuring a parameter value of the current processing object as the variable value;
acquiring a next processing object as the current processing object; and splicing the processing objects with the configured parameter values according to the file format of the multimedia file to generate the multimedia file.
4. The method of claim 3, wherein obtaining the variable value matching the current processing object when the current processing object is the dynamic object comprises:
acquiring an object prefix and/or an object suffix of the current processing object;
acquiring a judgment result of dynamic information matched with the current processing object, wherein the dynamic information has an incidence relation with a client side for requesting to display the multimedia file;
and splicing by using the object prefix and/or the object suffix of the current processing object and the judgment result to obtain the variable value matched with the current processing object.
5. The method according to claim 4, wherein the obtaining of the determination result of the dynamic information matching the current processing object comprises:
judging whether the parameter value carried in the dynamic information is a default value or null;
when the parameter value carried in the dynamic information is the default value or empty, acquiring a next processing object as the current processing object;
and when the parameter value carried in the dynamic information is not the default value or is empty, acquiring a corresponding coding mode as the judgment result according to the parameter value carried in the dynamic information.
6. The method of claim 4, wherein the parameter values carried in the dynamic information comprise at least one of: the system comprises a client version identification of a client for requesting to display the multimedia file, a device identification of a terminal where the client for requesting to display the multimedia file is located, a login account used by the client for requesting to display the multimedia file and a login address of the client for requesting to display the multimedia file.
7. The method of claim 4, further comprising, before the obtaining the object array matching the multimedia file according to the file identifier:
and acquiring an access request sent by a client, wherein the access request carries the dynamic information.
8. The method according to any one of claims 1-7, wherein the processing the object comprises: the object type indicates an identity, an object parameter value.
9. A multimedia file generating apparatus, comprising:
the first acquisition unit is used for acquiring a file identifier of a multimedia file to be generated;
a second obtaining unit, configured to obtain an object array matched with the multimedia file according to the file identifier, where the object array includes one or more processing objects associated with the multimedia file, and the processing objects include static objects and/or dynamic objects;
a third obtaining unit, configured to obtain display configuration information of the multimedia file before obtaining the object array matched with the multimedia file according to the file identifier, where the display configuration information is used to control display of the multimedia file on a client;
a fourth obtaining unit, configured to obtain the object array matched with the multimedia file according to the display configuration information, where in the display configuration information, a configuration with a parameter value indicated as a fixed value is the static object, and a configuration with a parameter value indicated as a variable value is the dynamic object;
and the generating unit is used for generating the multimedia file by splicing the processing objects in the object array.
10. The apparatus of claim 9, wherein the fourth obtaining unit comprises:
a first processing module, configured to repeatedly perform the following steps until all configuration parameters in the display configuration information are traversed:
acquiring current configuration parameters;
judging whether the current configuration parameter is configured with a specific identifier, wherein the specific identifier is used for identifying the parameter value of the configuration parameter as a variable value;
when the specific identifier is not configured by the current configuration parameter, configuring the current configuration parameter as the static object; when the specific identifier is configured by the current configuration parameter, configuring the current configuration parameter as the dynamic object to obtain a processing object corresponding to the current configuration parameter in the object array;
and acquiring the next configuration parameter as the current configuration parameter.
11. The apparatus of claim 9, wherein the generating unit comprises:
a second processing module, configured to repeatedly execute the following steps until all processing objects in the object array are traversed:
acquiring a current processing object;
when the current processing object is the static object, directly configuring the parameter value of the current processing object as a corresponding fixed value;
when the current processing object is the dynamic object, obtaining a variable value matched with the current processing object, and configuring a parameter value of the current processing object as the variable value;
acquiring a next processing object as the current processing object; and the generating module is used for splicing the processing objects with the configured parameter values according to the file format of the multimedia file so as to generate the multimedia file.
12. The apparatus of claim 11, wherein the second processing module obtains the variable value matching the current processing object when the current processing object is the dynamic object by:
acquiring an object prefix and/or an object suffix of the current processing object;
acquiring a judgment result of dynamic information matched with the current processing object, wherein the dynamic information has an incidence relation with a client side for requesting to display the multimedia file;
and splicing by using the object prefix and/or the object suffix of the current processing object and the judgment result to obtain the variable value matched with the current processing object.
13. The apparatus according to claim 12, wherein the second processing module obtains the determination result of the dynamic information matching the current processing object by:
judging whether the parameter value carried in the dynamic information is a default value or null;
when the parameter value carried in the dynamic information is the default value or empty, acquiring a next processing object as the current processing object;
and when the parameter value carried in the dynamic information is not the default value or is empty, acquiring a corresponding coding mode as the judgment result according to the parameter value carried in the dynamic information.
14. The apparatus of claim 12, wherein the parameter values carried in the dynamic information comprise at least one of: the system comprises a client version identification of a client for requesting to display the multimedia file, a device identification of a terminal where the client for requesting to display the multimedia file is located, a login account used by the client for requesting to display the multimedia file and a login address of the client for requesting to display the multimedia file.
15. The apparatus of claim 12, further comprising:
and a fifth obtaining unit, configured to obtain an access request sent by a client before obtaining the object array matched with the multimedia file according to the file identifier, where the access request carries the dynamic information.
CN201611151299.6A 2016-12-13 2016-12-13 Multimedia file generation method and device Active CN108614844B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611151299.6A CN108614844B (en) 2016-12-13 2016-12-13 Multimedia file generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611151299.6A CN108614844B (en) 2016-12-13 2016-12-13 Multimedia file generation method and device

Publications (2)

Publication Number Publication Date
CN108614844A CN108614844A (en) 2018-10-02
CN108614844B true CN108614844B (en) 2020-12-29

Family

ID=63658131

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611151299.6A Active CN108614844B (en) 2016-12-13 2016-12-13 Multimedia file generation method and device

Country Status (1)

Country Link
CN (1) CN108614844B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111294321B (en) * 2018-12-07 2022-07-26 北京字节跳动网络技术有限公司 Information processing method and device
CN114118007B (en) * 2021-12-02 2022-07-08 江苏中威科技软件系统有限公司 Method for converting format data stream file into OFD file

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104331407A (en) * 2013-12-26 2015-02-04 乐视网信息技术(北京)股份有限公司 Multimedia file information recommending method and multimedia file information recommending device
CN104618418A (en) * 2014-07-09 2015-05-13 腾讯科技(北京)有限公司 Method and device for playing multimedia file
CN105812377A (en) * 2005-06-27 2016-07-27 核心无线许可有限公司 Transport mechanisms for dynamic rich media scenes
CN105898560A (en) * 2016-03-31 2016-08-24 广州华多网络科技有限公司 Video editing method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2329404B1 (en) * 2008-09-05 2018-04-04 Thomson Licensing DTV Method and system for dynamic play list modification
CN103428555B (en) * 2013-08-06 2018-08-10 乐视网信息技术(北京)股份有限公司 A kind of synthetic method of multimedia file, system and application process
CN103428213A (en) * 2013-08-08 2013-12-04 深圳市同洲电子股份有限公司 Multi-media file generation method and multi-media device
CN104424955B (en) * 2013-08-29 2018-11-27 国际商业机器公司 Generate figured method and apparatus, audio search method and the equipment of audio

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105812377A (en) * 2005-06-27 2016-07-27 核心无线许可有限公司 Transport mechanisms for dynamic rich media scenes
CN104331407A (en) * 2013-12-26 2015-02-04 乐视网信息技术(北京)股份有限公司 Multimedia file information recommending method and multimedia file information recommending device
CN104618418A (en) * 2014-07-09 2015-05-13 腾讯科技(北京)有限公司 Method and device for playing multimedia file
CN105898560A (en) * 2016-03-31 2016-08-24 广州华多网络科技有限公司 Video editing method and device

Also Published As

Publication number Publication date
CN108614844A (en) 2018-10-02

Similar Documents

Publication Publication Date Title
CN111176976B (en) Test data generation method and device, storage medium and electronic device
CN110096660B (en) Method and device for loading page pictures and electronic equipment
CN104243273A (en) Method and device for displaying information on instant messaging client and information display system
CN106649446B (en) Information pushing method and device
US10289747B2 (en) Dynamic file concatenation
US11244153B2 (en) Method and apparatus for processing information
CN103699597A (en) Method for downloading file through browser and browser
WO2018188373A1 (en) Page sharing method and apparatus, server and storage medium
CN104978358A (en) Method for displaying web page fragment on desktop and system for capturing web page fragment to desktop for displaying
CN109753424B (en) AB test method and device
CN106302103A (en) A kind of information processing method and system, application server
CN108696899A (en) Sip message transmits and method of reseptance and transmission and reception device
CN112487763A (en) SVG-based OFD file online display method, server side and system
CN108614844B (en) Multimedia file generation method and device
CN113934559B (en) Application program query method, device, equipment and storage medium
CN104735041A (en) Method and device for having access to offline resources
CN110049358B (en) Television-based article pushing method and system
CN106878145B (en) Display method, display device and display system of user-defined picture
CN106855768A (en) Information processing method, device, system and terminal device
CN108848158B (en) Method, device and server for recommending mobile phone game to mobile terminal
CN111797334A (en) Website access method and device, electronic equipment and storage medium
CN107690057B (en) Conference video data interaction method and device
CN114039801B (en) Short link generation method, short link analysis system, short link analysis equipment and storage medium
CN112788077B (en) Data acquisition method and device, computer equipment and computer-readable storage medium
CN107209670B (en) Configuration method and device of application attribute parameters and terminal

Legal Events

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