Detailed Description
In order to make the objects, technical embodiments and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. 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 description relating to "first", "second", etc. in the present invention is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, the technical embodiments of the present invention may be combined with each other, but it must be based on the realization of those skilled in the art, and when the combination of the technical embodiments contradicts each other or cannot be realized, such combination of the technical embodiments should be considered to be absent and not within the protection scope of the present invention.
Fig. 1 is a schematic diagram of a network deployment architecture according to an embodiment of the multimedia data generation method of the present invention. The client 01 is installed with a multimedia data generating program 10. A plurality of clients 01 are connected to the server 03 via the network 02. Network 02 may be a local area network, wide area network, metropolitan area network, personal area network, or the like; the wireless network can be a wired network or a wireless network. The client 01 may be a desktop computer, a notebook, a tablet computer, a mobile phone, or other terminal devices installed with application software and capable of communicating with the server 03 through the network 02.
Because the existing live video recording method has complicated recording process and poor timeliness of live video recording, the requirement of timely releasing live video by a user cannot be met.
Accordingly, to solve the above-mentioned problems, an aspect of the present invention provides a multimedia data generating method. Fig. 2 is a schematic flow chart of a multimedia data generating method according to an embodiment of the present invention. The method may be performed by an apparatus, which may be implemented by software and/or hardware.
S110, receiving a control instruction, generating corresponding control event information according to the control instruction, and storing the control event information to a control event information set.
In this embodiment, in order to make this embodiment more clear, how to timely intercept a video generated in a live broadcast process on the live broadcast platform APP according to the preference of the user himself is taken as an example to further explain this scheme, and a client is taken as an execution subject, where the client refers to a computer or a mobile phone or other electronic equipment capable of installing the live broadcast platform APP. Specifically, the control instruction may be triggered by detecting an operation of the client by the user, for example, by inputting text information on a keyboard of the client; the control action of the user can be detected to trigger, such as waving or moving fingers, twisting fingers, stretching palms, rotating wrists, watching or transferring sight, moving heads and moving bodies; it may also be triggered by detecting a voice input by the user, e.g. by detecting a voice message of the user by a microphone, etc.
In a specific embodiment, the control command may be a piece of data input by the user in the input area 002 of the operation interface 001 of the client, and then click the control area 003 to trigger, for example, "SSS", and generate a text bullet screen to be displayed on the display area 004 of the client. Referring to fig. 3, a schematic view of a user interface operation of an electronic device implementing a multimedia data generating method according to an embodiment of the present invention is shown.
When the client receives a control instruction sent by a user, the client generates control instruction information including identification information (for example, UID: unique identification of the user) for identifying the control instruction according to the control instruction, namely, the intention of the user is identified through the control instruction information, for example, different control instructions can indicate that the user wants to start video capture operation at a certain time point, or wants to end video capture operation at a certain time point, or wants to cancel video capture operation at a certain time point. The identity information of the user (e.g. UID: unique identification of the user) may also be identified by the control instruction information.
Furthermore, as the live broadcast platform belongs to a public platform facing audiences, any user can log in the live broadcast platform and send a control instruction to the client. If all users can randomly intercept videos generated in the live broadcasting process by sending a control instruction and issue small videos, a plurality of small videos with different qualities are derived from the same live video, and the overall quality of the small videos is affected. Therefore, in the present embodiment, it needs to be specified that when the received control instruction information is judged to satisfy the instruction verification rule, the corresponding control event information is generated and stored to the control event information set.
Wherein, the validation rule comprises:
and judging whether the identification information corresponding to the control instruction information is contained in a pre-established white list or not, and if so, generating control event information corresponding to the control instruction information.
The white list records identification information (such as UID) with appointed authority, namely the client is controlled to carry out operations such as video interception, video interception stop, video interception cancellation and the like by the authority through a control instruction.
In another embodiment, the method further comprises:
when the control instruction corresponding to the control instruction information is a preset cancel instruction, finding the last piece of control event information of the control instruction information from the control event information set, and if the control instruction corresponding to the last piece of control event information is a preset start instruction, deleting the last piece of control event information.
The method aims to meet the requirement that a user can cancel the control instruction sent this time according to the actual situation after sending the control instruction which wants to carry out the video capturing operation. In this embodiment, the control instruction may also be configured to be an instruction capable of controlling the client to cancel the video capture operation. Specifically, when the client receives that the control instruction sent by the user is a preset cancel instruction (for example, "CCC"), the client first finds the last piece of control event information of the control instruction information from the control event information set, and deletes the last piece of control event information if the control instruction corresponding to the last piece of control event information is a preset start instruction (for example, "SSS"), that is, cancels the video capture operation.
And S120, acquiring first control event information and second control event information in the control event information set according to a preset matching rule.
In the embodiment, the invalid control commands are automatically filtered by using the preset matching rule, and only the first control event and the second control event which simultaneously satisfy the matching rule can be intercepted and generated to generate the multimedia data.
Specifically, how to obtain the first control event information and the second control event information according to the preset matching rule may be implemented by the following steps:
and acquiring first control event information from the control event information set, and deleting the first control event information when a control instruction corresponding to the first control event information is a preset ending instruction. For example, when the control command corresponding to the first control event message is the preset end command "EEE", because there is no matched preset start command, the first control event message is directly deleted, or is included in the to-be-deleted event list and waits to be deleted.
The method can also be realized by the following steps:
and acquiring first control event information from the control event information set, acquiring second control event information when a control instruction corresponding to the first control event information is the preset starting instruction, and deleting the first control event information when the control instruction corresponding to the second control event information is the preset starting instruction. For example, when the control instruction corresponding to the first control event information is a preset start instruction "SS", the second control event message is acquired, and when the control instruction corresponding to the second control event information is a preset start instruction "SSs" as the first control event information, the first control event message needs to be deleted, and the first control event message is directly deleted, or is included in an event list to be deleted, and waits for deletion. And reserving a preset starting instruction which is closest to the current event, namely the second control event information.
The method can also be realized by the following steps:
and when the control instruction corresponding to the second control event information is the preset ending instruction, generating a multimedia data interception instruction according to the first control event information and the second control event information. For example, when the control instruction corresponding to the first control event information is a preset start instruction "SSS", the second control event information is acquired, and when the control instruction corresponding to the second control event information is a preset end instruction "EEE", at this time, the first control event information is just successfully paired with the second control event information, and a multimedia data (for example, a video generated in a live broadcast process) interception instruction can be generated according to the first control event information and the second control event information.
In another embodiment, the method further comprises:
acquiring first control event information from the control event information set, and acquiring grouping information corresponding to the first control event information, wherein the grouping information is included in the control event information;
and acquiring second control event information of the same group from the control event information set according to the group information.
In this embodiment, the first control event information and the second control event information corresponding to the same user need to be grouped and classified, so as to avoid confusion of pairing between the first control event information and the second control event information of different users.
S130, generating the multimedia data according to the first control event information and the second control event information.
In this embodiment, when the first control event information and the second control event information in the control event information set obtained by using the preset matching rule just can be successfully paired, a multimedia data interception instruction can be generated according to the first control event information and the second control event information, and corresponding multimedia data (for example, a video generated in a live broadcast process) can be intercepted and generated according to the multimedia interception instruction.
In another embodiment, the method further comprises the steps of:
and screening the plurality of multimedia data interception instructions according to a preset interception instruction screening rule, and reserving one multimedia data interception instruction from the plurality of multimedia data interception instructions with the similarity greater than or equal to a preset threshold value.
In order to make the embodiment more clear, the above description is continued by taking an example of how to timely intercept the video generated in the live broadcast process on the live broadcast platform APP according to the preference of the user. Because a plurality of users in the white list may perform video capture operations on the same live video at the same time, and the video contents obtained after capture are just similar, the overall quality of the video is affected if deduplication processing is not performed.
In order to solve the above problem, in this embodiment, a plurality of multimedia data interception instructions are screened, and only one of the multimedia data interception instructions is reserved, where the specific implementation process includes:
and calculating the similarity values of every two multimedia data interception instructions, and reserving one multimedia data interception instruction from a plurality of multimedia data interception instructions with the similarity greater than or equal to a preset threshold value. The specific similarity value calculation algorithm can adopt a conventional cosine similarity calculation method.
In another embodiment, the method further comprises the steps of:
screening out a multimedia data interception instruction of which the interval duration between the first control event information and the second control event information is greater than or equal to a first preset duration;
and delaying the time point corresponding to the first control event information by the first preset time length to obtain a time point which is used as the time point of the second control event information.
In the embodiment, by limiting the maximum duration of data interception, the situation that the duration of a video recorded by a user exceeds the specified maximum duration of video transmission to cause failure of video distribution is avoided. Specifically, a multimedia data interception instruction that the interval duration between the first control event information and the second control event information is greater than or equal to a first preset duration is screened out, and a time point obtained by delaying a time point corresponding to the first control event information by the first preset duration is used as a time point of the second control event information. For example, the time point corresponding to the first control event information is 15:20:00, the time point corresponding to the second control event information is 15:26:23, the first preset time duration is 5 minutes, and at this time, the time point corresponding to the second control event information already exceeds the first preset time duration, so that the actual time point corresponding to the second control event information is a time point corresponding to the first control event information, which is delayed by the first preset time duration, that is, 15:25: 00.
In another embodiment, the method further comprises the steps of:
and judging whether the multimedia data conforms to the auditing rule.
In order to prevent illegal information, such as sensitive information, existing in the intercepted video, which causes the video to be published unsuccessfully. Therefore, in this embodiment, after the video capture is completed, it is necessary to determine whether the multimedia data conforms to the auditing rule, and the specific auditing rule may refer to the current video publishing legal provision.
In another embodiment, the time point corresponding to the first control event information or the time point corresponding to the second control event information is obtained by converting a preset expression rule;
wherein the preset expression rule comprises:
the time point corresponding to the first control event information is equal to the time when the control instruction corresponding to the first control event information is sent out, and the time is increased or decreased by a second preset time length; or
And the time corresponding to the second control event information is equal to the time point when the control instruction corresponding to the second control event information is sent out, and the time point is increased or decreased by a third preset time length.
In actual operation, the user may think that the video capture operation is to be performed after a period of time elapses after the highlight of the multimedia data, but it is not time to issue the video capture instruction. Therefore, in order to make the present solution better satisfy the actual situation of the user, in this embodiment, the time point corresponding to the first control event information or the time point corresponding to the second control event information may be obtained by converting the preset expression rule.
For example, when the control command issued by the user is "SSS-10 s", the time point corresponding to the generated control event information is the current time-10 s.
For another example, when the control command issued by the user is "SSS +10 s", the time point current time corresponding to the control event information is +10 s.
And S140, displaying the multimedia video to the user in a preset display mode.
In this embodiment, after the multimedia data is generated, the multimedia data (for example, a video generated in a live broadcasting process) may be presented to a user in a preset presentation manner. The display mode may be that the generated multimedia data is directly played on a client (for example, a mobile phone or a computer), or a reminder message of "successful data interception" is sent and displayed on the client to remind the user that the data is generated.
The invention also provides a multimedia data intercepting method which is used for intercepting the multimedia data displayed on the user interaction interface. Fig. 4 is a schematic flow chart of a multimedia data interception method according to an embodiment of the present invention. The method may be performed by an apparatus, which may be implemented by software and/or hardware.
In this embodiment, the multimedia data intercepting method includes:
s210, receiving a control instruction, and generating control instruction information including identification information for identifying the control instruction according to the control instruction.
In this embodiment, in order to make this embodiment more clear, how to timely intercept a video generated in a live broadcast process on the live broadcast platform APP according to the preference of the user himself is taken as an example to further explain this scheme, and a client is taken as an execution subject, where the client refers to a computer or a mobile phone or other electronic equipment capable of installing the live broadcast platform APP. Specifically, the control instruction may be triggered by detecting an operation of the client by the user, for example, by inputting text information on a keyboard of the client; the control action of the user can be detected to trigger, such as waving or moving fingers, twisting fingers, stretching palms, rotating wrists, watching or transferring sight, moving heads and moving bodies; it may also be triggered by detecting a voice input by the user, e.g. by detecting a voice message of the user by a microphone, etc.
In a specific embodiment, the control command may be a piece of data input by the user in the input area 002 of the operation interface 001 of the client, and then click the control area 003 to trigger, for example, "SSS", and generate a text bullet screen to be displayed on the display area 004 of the client. Referring to fig. 3, a schematic view of a user interface operation of an electronic device implementing a multimedia data generating method according to an embodiment of the present invention is shown.
When the client receives a control instruction sent by a user, the client generates control instruction information including identification information (for example, UID: unique identification of the user) for identifying the control instruction according to the control instruction, namely, the intention of the user is identified through the control instruction information, for example, different control instructions can indicate that the user wants to start video capture operation at a certain time point, or wants to end video capture operation at a certain time point, or wants to cancel video capture operation at a certain time point. The identity information of the user (e.g. UID: unique identification of the user) may also be identified by the control instruction information.
S220, when the control instruction information meets the instruction verification rule, generating corresponding control event information, and storing the control event information to a control event information set.
In this embodiment, in order to make this embodiment more clear, the present solution is further explained by taking as an example how to timely intercept, according to the preference of the user, the video generated in the live broadcast process on the live broadcast platform APP, and taking a client as an execution subject, where the client refers to a computer or a mobile phone or other electronic equipment capable of installing the live broadcast platform APP. Specifically, as the live broadcast platform belongs to a public platform facing audiences, any user can log in the live broadcast platform and send a control instruction to the client. If all users can randomly intercept videos generated in the live broadcasting process by sending a control instruction and issue small videos, a plurality of small videos with different qualities are derived from the same live video, and the overall quality of the small videos is affected. Therefore, in the present embodiment, it needs to be specified that when the received control instruction information is judged to satisfy the instruction verification rule, the corresponding control event information is generated and stored to the control event information set.
Wherein, the validation rule comprises:
and judging whether the identification information corresponding to the control instruction information is contained in a pre-established white list or not, and if so, generating control event information corresponding to the control instruction information.
The white list records identification information (such as UID) with appointed authority, namely the client is controlled to carry out operations such as video interception, video interception stop, video interception cancellation and the like by the authority through a control instruction.
In another embodiment, the method further comprises:
when the control instruction corresponding to the control instruction information is a preset cancel instruction, finding the last piece of control event information of the control instruction information from the control event information set, and if the control instruction corresponding to the last piece of control event information is a preset start instruction, deleting the last piece of control event information.
The method aims to meet the requirement that a user can cancel the control instruction sent this time according to the actual situation after sending the control instruction which wants to carry out the video capturing operation. In this embodiment, the control instruction may also be configured to be an instruction capable of controlling the client to cancel the video capture operation. Specifically, when the client receives that the control instruction sent by the user is a preset cancel instruction (for example, "CCC"), the client first finds the last piece of control event information of the control instruction information from the control event information set, and deletes the last piece of control event information if the control instruction corresponding to the last piece of control event information is a preset start instruction (for example, "SSS"), that is, cancels the video capture operation.
And S230, acquiring first control event information and second control event information in the control event information set according to a preset matching rule.
In the embodiment, the invalid control commands are automatically filtered by using the preset matching rule, and only the first control event and the second control event which simultaneously satisfy the matching rule can be intercepted and generated to generate the multimedia data.
Specifically, how to obtain the first control event information and the second control event information according to the preset matching rule may be implemented by the following steps:
and acquiring first control event information from the control event information set, and deleting the first control event information when a control instruction corresponding to the first control event information is a preset ending instruction. For example, when the control command corresponding to the first control event message is the preset end command "EEE", because there is no matched preset start command, the first control event message is directly deleted, or is included in the to-be-deleted event list and waits to be deleted.
The method can also be realized by the following steps:
and acquiring first control event information from the control event information set, acquiring second control event information when a control instruction corresponding to the first control event information is the preset starting instruction, and deleting the first control event information when the control instruction corresponding to the second control event information is the preset starting instruction. For example, when the control instruction corresponding to the first control event information is a preset start instruction "SS", the second control event message is acquired, and when the control instruction corresponding to the second control event information is a preset start instruction "SSs" as the first control event information, the first control event message needs to be deleted, and the first control event message is directly deleted, or is included in an event list to be deleted, and waits for deletion. And reserving a preset starting instruction which is closest to the current event, namely the second control event information.
The method can also be realized by the following steps:
and when the control instruction corresponding to the second control event information is the preset ending instruction, generating a multimedia data interception instruction according to the first control event information and the second control event information. For example, when the control instruction corresponding to the first control event information is a preset start instruction "SSS", the second control event information is acquired, and when the control instruction corresponding to the second control event information is a preset end instruction "EEE", at this time, the first control event information is just successfully paired with the second control event information, and a multimedia data (for example, a video generated in a live broadcast process) interception instruction can be generated according to the first control event information and the second control event information.
In another embodiment, the method further comprises:
acquiring first control event information from the control event information set, and acquiring grouping information corresponding to the first control event information, wherein the grouping information is included in the control event information;
and acquiring second control event information of the same group from the control event information set according to the group information.
In this embodiment, the first control event information and the second control event information corresponding to the same user need to be grouped and classified, so as to avoid confusion of pairing between the first control event information and the second control event information of different users.
S240, generating the intercepted multimedia data according to the first control event information and the second control event information.
In this embodiment, when the first control event information and the second control event information in the control event information set obtained by using the preset matching rule just can be successfully paired, a multimedia data interception instruction can be generated according to the first control event information and the second control event information, and corresponding multimedia data (for example, a video generated in a live broadcast process) can be intercepted and generated according to the multimedia interception instruction.
In another embodiment, the method further comprises the steps of:
and screening the plurality of multimedia data interception instructions according to a preset interception instruction screening rule, and reserving one multimedia data interception instruction from the plurality of multimedia data interception instructions with the similarity greater than or equal to a preset threshold value.
In order to make the embodiment more clear, the above description is continued by taking an example of how to timely intercept the video generated in the live broadcast process on the live broadcast platform APP according to the preference of the user. Because a plurality of users in the white list may perform video capture operations on the same live video at the same time, and the video contents obtained after capture are just similar, the overall quality of the video is affected if deduplication processing is not performed.
In order to solve the above problem, in this embodiment, a plurality of multimedia data interception instructions are screened, and only one of the multimedia data interception instructions is reserved, where the specific implementation process includes:
and calculating the similarity values of every two multimedia data interception instructions, and reserving one multimedia data interception instruction from a plurality of multimedia data interception instructions with the similarity greater than or equal to a preset threshold value. The specific similarity value calculation algorithm can adopt a conventional cosine similarity calculation method.
In another embodiment, the method further comprises the steps of:
screening out a multimedia data interception instruction of which the interval duration between the first control event information and the second control event information is greater than or equal to a first preset duration;
and delaying the time point corresponding to the first control event information by the first preset time length to obtain a time point which is used as the time point of the second control event information.
In the embodiment, by limiting the maximum duration of data interception, the situation that the duration of a video recorded by a user exceeds the specified maximum duration of video transmission to cause failure of video distribution is avoided. Specifically, a multimedia data interception instruction that the interval duration between the first control event information and the second control event information is greater than or equal to a first preset duration is screened out, and a time point obtained by delaying a time point corresponding to the first control event information by the first preset duration is used as a time point of the second control event information. For example, the time point corresponding to the first control event information is 15:20:00, the time point corresponding to the second control event information is 15:26:23, the first preset time duration is 5 minutes, and at this time, the time point corresponding to the second control event information already exceeds the first preset time duration, so that the actual time point corresponding to the second control event information is a time point corresponding to the first control event information, which is delayed by the first preset time duration, that is, 15:25: 00.
In another embodiment, the method further comprises the steps of:
and judging whether the multimedia data conforms to the auditing rule.
In order to prevent illegal information, such as sensitive information, existing in the intercepted video, which causes the video to be published unsuccessfully. Therefore, in this embodiment, after the video capture is completed, it is necessary to determine whether the multimedia data conforms to the auditing rule, and the specific auditing rule may refer to the current video publishing legal provision.
In another embodiment, the time point corresponding to the first control event information or the time point corresponding to the second control event information is obtained by converting a preset expression rule;
wherein the preset expression rule comprises:
the time point corresponding to the first control event information is equal to the time when the control instruction corresponding to the first control event information is sent out, and the time is increased or decreased by a second preset time length; or
And the time corresponding to the second control event information is equal to the time point when the control instruction corresponding to the second control event information is sent out, and the time point is increased or decreased by a third preset time length.
In actual operation, the user may think that the video capture operation is to be performed after a period of time elapses after the highlight of the multimedia data, but it is not time to issue the video capture instruction. Therefore, in order to make the present solution better satisfy the actual situation of the user, in this embodiment, the time point corresponding to the first control event information or the time point corresponding to the second control event information may be obtained by converting the preset expression rule.
For example, when the control command issued by the user is "SSS-10 s", the time point corresponding to the generated control event information is the current time-10 s.
For another example, when the control command issued by the user is "SSS +10 s", the time point current time corresponding to the control event information is +10 s.
In another embodiment, the method further comprises the steps of:
and displaying the multimedia video to a user in a preset display mode.
In this embodiment, after the multimedia data is generated, the multimedia data (for example, a video generated in a live broadcasting process) may be presented to a user in a preset presentation manner. The display mode may be that the generated multimedia data is directly played on a client (for example, a mobile phone or a computer), or a reminder message of "successful data interception" is sent and displayed on the client to remind the user that the data is generated.
For detailed description of the above steps, please refer to the following description of fig. 5 regarding a schematic diagram of program modules of an embodiment of the multimedia data generating program 10 and fig. 2 regarding a schematic diagram of a method flow of an embodiment of a multimedia data generating method.
Fig. 5 is a functional block diagram of the multimedia data generating apparatus 100 according to the present invention.
The multimedia generating apparatus 100 of the present invention may be installed in the electronic device 1. According to the realized functions, the multimedia generating apparatus 100 may include a receiving module 110, an obtaining module 120, a generating module 130 and a presenting module 140. The module of the invention, which may also be referred to as a unit, is a series of computer program segments that can be executed by a processor of the electronic device 1 and that can perform a fixed function, and is stored in a memory of the electronic device 1.
In the present embodiment, the functions regarding the respective modules/units are as follows:
the receiving module 110 is configured to receive a control instruction, generate corresponding control event information according to the control instruction, and store the control event information in a control event information set.
In this embodiment, in order to make this embodiment more clear, how to timely intercept a video generated in a live broadcast process on the live broadcast platform APP according to the preference of the user himself is taken as an example to further explain this scheme, and a client is taken as an execution subject, where the client refers to a computer or a mobile phone or other electronic equipment capable of installing the live broadcast platform APP. Specifically, the control instruction may be triggered by detecting an operation of the client by the user, for example, by inputting text information on a keyboard of the client; the control action of the user can be detected to trigger, such as waving or moving fingers, twisting fingers, stretching palms, rotating wrists, watching or transferring sight, moving heads and moving bodies; it may also be triggered by detecting a voice input by the user, e.g. by detecting a voice message of the user by a microphone, etc.
In a specific embodiment, the control command may be a piece of data input by the user in the input area 002 of the operation interface 001 of the client, and then click the control area 003 to trigger, for example, "SSS", and generate a text bullet screen to be displayed on the display area 004 of the client. Referring to fig. 3, a schematic view of a user interface operation of an electronic device implementing a multimedia data generating method according to an embodiment of the present invention is shown.
When the client receives a control instruction sent by a user, the client generates control instruction information including identification information (for example, UID: unique identification of the user) for identifying the control instruction according to the control instruction, namely, the intention of the user is identified through the control instruction information, for example, different control instructions can indicate that the user wants to start video capture operation at a certain time point, or wants to end video capture operation at a certain time point, or wants to cancel video capture operation at a certain time point. The identity information of the user (e.g. UID: unique identification of the user) may also be identified by the control instruction information.
Furthermore, as the live broadcast platform belongs to a public platform facing audiences, any user can log in the live broadcast platform and send a control instruction to the client. If all users can randomly intercept videos generated in the live broadcasting process by sending a control instruction and issue small videos, a plurality of small videos with different qualities are derived from the same live video, and the overall quality of the small videos is affected. Therefore, in the present embodiment, it needs to be specified that when the received control instruction information is judged to satisfy the instruction verification rule, the corresponding control event information is generated and stored to the control event information set.
Wherein, the validation rule comprises:
and judging whether the identification information corresponding to the control instruction information is contained in a pre-established white list or not, and if so, generating control event information corresponding to the control instruction information.
The white list records identification information (such as UID) with appointed authority, namely the client is controlled to carry out operations such as video interception, video interception stop, video interception cancellation and the like by the authority through a control instruction.
In another embodiment, the apparatus further comprises a deletion module to:
when the control instruction corresponding to the control instruction information is a preset cancel instruction, finding the last piece of control event information of the control instruction information from the control event information set, and if the control instruction corresponding to the last piece of control event information is a preset start instruction, deleting the last piece of control event information.
The method aims to meet the requirement that a user can cancel the control instruction sent this time according to the actual situation after sending the control instruction which wants to carry out the video capturing operation. In this embodiment, the control instruction may also be configured to be an instruction capable of controlling the client to cancel the video capture operation. Specifically, when the client receives that the control instruction sent by the user is a preset cancel instruction (for example, "CCC"), the client first finds the last piece of control event information of the control instruction information from the control event information set, and deletes the last piece of control event information if the control instruction corresponding to the last piece of control event information is a preset start instruction (for example, "SSS"), that is, cancels the video capture operation.
The obtaining module 120 is configured to obtain the first control event information and the second control event information in the control event information set according to a preset matching rule.
In the embodiment, the invalid control commands are automatically filtered by using the preset matching rule, and only the first control event and the second control event which simultaneously satisfy the matching rule can be intercepted and generated to generate the multimedia data.
Specifically, how to obtain the first control event information and the second control event information according to the preset matching rule may be implemented by the following steps:
and acquiring first control event information from the control event information set, and deleting the first control event information when a control instruction corresponding to the first control event information is a preset ending instruction. For example, when the control command corresponding to the first control event message is the preset end command "EEE", because there is no matched preset start command, the first control event message is directly deleted, or is included in the to-be-deleted event list and waits to be deleted.
The method can also be realized by the following steps:
and acquiring first control event information from the control event information set, acquiring second control event information when a control instruction corresponding to the first control event information is the preset starting instruction, and deleting the first control event information when the control instruction corresponding to the second control event information is the preset starting instruction. For example, when the control instruction corresponding to the first control event information is a preset start instruction "SS", the second control event message is acquired, and when the control instruction corresponding to the second control event information is a preset start instruction "SSs" as the first control event information, the first control event message needs to be deleted, and the first control event message is directly deleted, or is included in an event list to be deleted, and waits for deletion. And reserving a preset starting instruction which is closest to the current event, namely the second control event information.
The method can also be realized by the following steps:
and when the control instruction corresponding to the second control event information is the preset ending instruction, generating a multimedia data interception instruction according to the first control event information and the second control event information. For example, when the control instruction corresponding to the first control event information is a preset start instruction "SSS", the second control event information is acquired, and when the control instruction corresponding to the second control event information is a preset end instruction "EEE", at this time, the first control event information is just successfully paired with the second control event information, and a multimedia data (for example, a video generated in a live broadcast process) interception instruction can be generated according to the first control event information and the second control event information.
In another embodiment, the apparatus further comprises a grouping module to:
acquiring first control event information from the control event information set, and acquiring grouping information corresponding to the first control event information, wherein the grouping information is included in the control event information;
and acquiring second control event information of the same group from the control event information set according to the group information.
In this embodiment, the first control event information and the second control event information corresponding to the same user need to be grouped and classified, so as to avoid confusion of pairing between the first control event information and the second control event information of different users.
A generating module 130, configured to generate the multimedia data according to the first control event information and the second control event information.
In this embodiment, when the first control event information and the second control event information in the control event information set obtained by using the preset matching rule just can be successfully paired, a multimedia data interception instruction can be generated according to the first control event information and the second control event information, and corresponding multimedia data (for example, a video generated in a live broadcast process) can be intercepted and generated according to the multimedia interception instruction.
In another embodiment, the apparatus further comprises a first screening module to:
and screening the plurality of multimedia data interception instructions according to a preset interception instruction screening rule, and reserving one multimedia data interception instruction from the plurality of multimedia data interception instructions with the similarity greater than or equal to a preset threshold value.
In order to make the embodiment more clear, the above description is continued by taking an example of how to timely intercept the video generated in the live broadcast process on the live broadcast platform APP according to the preference of the user. Because a plurality of users in the white list may perform video capture operations on the same live video at the same time, and the video contents obtained after capture are just similar, the overall quality of the video is affected if deduplication processing is not performed.
In order to solve the above problem, in this embodiment, a plurality of multimedia data interception instructions are screened, and only one of the multimedia data interception instructions is reserved, where the specific implementation process includes:
and calculating the similarity values of every two multimedia data interception instructions, and reserving one multimedia data interception instruction from a plurality of multimedia data interception instructions with the similarity greater than or equal to a preset threshold value. The specific similarity value calculation algorithm can adopt a conventional cosine similarity calculation method.
In another embodiment, the apparatus further comprises a second screening module for:
screening out a multimedia data interception instruction of which the interval duration between the first control event information and the second control event information is greater than or equal to a first preset duration;
and delaying the time point corresponding to the first control event information by the first preset time length to obtain a time point which is used as the time point of the second control event information.
In the embodiment, by limiting the maximum duration of data interception, the situation that the duration of a video recorded by a user exceeds the specified maximum duration of video transmission to cause failure of video distribution is avoided. Specifically, a multimedia data interception instruction that the interval duration between the first control event information and the second control event information is greater than or equal to a first preset duration is screened out, and a time point obtained by delaying a time point corresponding to the first control event information by the first preset duration is used as a time point of the second control event information. For example, the time point corresponding to the first control event information is 15:20:00, the time point corresponding to the second control event information is 15:26:23, the first preset time duration is 5 minutes, and at this time, the time point corresponding to the second control event information already exceeds the first preset time duration, so that the actual time point corresponding to the second control event information is a time point corresponding to the first control event information, which is delayed by the first preset time duration, that is, 15:25: 00.
In another embodiment, the apparatus further comprises an audit module to:
and judging whether the multimedia data conforms to the auditing rule.
In order to prevent illegal information, such as sensitive information, existing in the intercepted video, which causes the video to be published unsuccessfully. Therefore, in this embodiment, after the video capture is completed, it is necessary to determine whether the multimedia data conforms to the auditing rule, and the specific auditing rule may refer to the current video publishing legal provision.
In another embodiment, the time point corresponding to the first control event information or the time point corresponding to the second control event information is obtained by converting a preset expression rule;
wherein the preset expression rule comprises:
the time point corresponding to the first control event information is equal to the time when the control instruction corresponding to the first control event information is sent out, and the time is increased or decreased by a second preset time length; or
And the time corresponding to the second control event information is equal to the time point when the control instruction corresponding to the second control event information is sent out, and the time point is increased or decreased by a third preset time length.
In actual operation, the user may think that the video capture operation is to be performed after a period of time elapses after the highlight of the multimedia data, but it is not time to issue the video capture instruction. Therefore, in order to make the present solution better satisfy the actual situation of the user, in this embodiment, the time point corresponding to the first control event information or the time point corresponding to the second control event information may be obtained by converting the preset expression rule.
For example, when the control command issued by the user is "SSS-10 s", the time point corresponding to the generated control event information is the current time-10 s.
For another example, when the control command issued by the user is "SSS +10 s", the time point current time corresponding to the control event information is +10 s.
The display module 140 is configured to display the multimedia video to a user in a preset display manner.
In this embodiment, after the multimedia data is generated, the multimedia data (for example, a video generated in a live broadcasting process) may be presented to a user in a preset presentation manner. The display mode may be that the generated multimedia data is directly played on a client (for example, a mobile phone or a computer), or a reminder message of "successful data interception" is sent and displayed on the client to remind the user that the data is generated.
Fig. 6 is a schematic structural diagram of an electronic device implementing the multimedia data generating method according to the present invention.
The electronic device 1 may comprise a processor 12, a memory 11 and a bus, and may further comprise a computer program, such as a multimedia data generating program 10, stored in the memory 11 and executable on the processor 12.
Wherein the memory 11 includes at least one type of readable storage medium having stored thereon a multimedia data generation program executable by one or more processors. The readable storage medium includes flash memory, removable hard disks, multimedia cards, card type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disks, optical disks, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device 1, such as a removable hard disk of the electronic device 1. The memory 11 may also be an external storage device of the electronic device 1 in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device 1. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device 1. The memory 11 may be used not only to store application software installed in the electronic device 1 and various types of data, such as codes of the multimedia data generating program 10, but also to temporarily store data that has been output or is to be output.
The processor 12 may be formed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or may be formed of a plurality of integrated circuits packaged with the same or different functions, including one or more Central Processing Units (CPUs), microprocessors, digital Processing chips, graphics processors, and combinations of various control chips. The processor 12 is a Control Unit (Control Unit) of the electronic device 1, connects various components of the electronic device 1 by using various interfaces and lines, and executes various functions and processes data of the electronic device 1 by operating or executing programs or modules (such as a multimedia data generating program) stored in the memory 11 and calling data stored in the memory 11.
The bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is arranged to enable connection communication between the memory 11 and at least one processor 12 or the like.
Fig. 6 only shows the electronic device 1 with components, and it will be understood by those skilled in the art that the structure shown in fig. 6 does not constitute a limitation of the electronic device 1, and may comprise fewer or more components than those shown, or some components may be combined, or a different arrangement of components.
For example, although not shown, the electronic device 1 may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 12 through a power management system, so as to implement functions of charge management, discharge management, power consumption management, and the like through the power management system. The power supply may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The electronic device 1 may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
Further, the electronic device 1 may further include a network interface 13, and optionally, the network interface 13 may include a wired interface and/or a wireless interface (such as a WI-FI interface, a bluetooth interface, etc.), which are generally used for establishing a communication connection between the electronic device 1 and other electronic devices 1.
Optionally, the electronic device 1 may further comprise a user interface, which may be a Display (Display), an input unit (such as a Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the electronic device 1 and for displaying a visualized user interface, among other things.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
The multimedia data generating program 10 stored in the memory 11 of the electronic device 1 is a combination of instructions that, when executed in the processor 12, enable:
receiving a control instruction, generating corresponding control event information according to the control instruction, and storing the control event information to a control event information set;
acquiring first control event information and second control event information in the control event information set according to a preset matching rule;
generating the multimedia data according to the first control event information and the second control event information;
and displaying the multimedia video to a user in a preset display mode.
In another embodiment, the program further performs the steps comprising:
and screening the plurality of multimedia data interception instructions according to a preset interception instruction screening rule, and reserving one multimedia data interception instruction from the plurality of multimedia data interception instructions with the similarity greater than or equal to a preset threshold value.
In another embodiment, the program further performs the steps comprising:
screening out a multimedia data interception instruction of which the interval duration between the first control event information and the second control event information is greater than or equal to a first preset duration;
and delaying the time point corresponding to the first control event information by the first preset time length to obtain a time point which is used as the time point of the second control event information.
In another embodiment, the program further performs the steps comprising:
and judging whether the multimedia data conforms to the auditing rule.
In another embodiment, the program further performs the steps comprising:
when the control instruction corresponding to the control instruction information is a preset cancel instruction, finding the last piece of control event information of the control instruction information from the control event information set, and if the control instruction corresponding to the last piece of control event information is a preset start instruction, deleting the last piece of control event information.
Specifically, the processor 11 may refer to the description of the relevant steps in the embodiment corresponding to fig. 2, and details thereof are not repeated herein.
Further, the integrated modules/units of the electronic device 1, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. The computer-readable medium may include: any entity or system capable of carrying said computer program code, a recording medium, a usb-disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM).
In the embodiments provided by the present invention, it should be understood that the disclosed apparatus, system, and method may be implemented in other ways. For example, the system embodiments described above are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules 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 modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules 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, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or systems recited in the system claims may also be implemented by one unit or system in software or hardware. The terms second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.