[go: up one dir, main page]

CN112911409A - Video data processing method, device, equipment, storage medium and program product - Google Patents

Video data processing method, device, equipment, storage medium and program product Download PDF

Info

Publication number
CN112911409A
CN112911409A CN202110134589.4A CN202110134589A CN112911409A CN 112911409 A CN112911409 A CN 112911409A CN 202110134589 A CN202110134589 A CN 202110134589A CN 112911409 A CN112911409 A CN 112911409A
Authority
CN
China
Prior art keywords
video data
account
video
information
statistical information
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.)
Pending
Application number
CN202110134589.4A
Other languages
Chinese (zh)
Inventor
鲁悦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202110134589.4A priority Critical patent/CN112911409A/en
Publication of CN112911409A publication Critical patent/CN112911409A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/835Generation of protective data, e.g. certificates
    • H04N21/8358Generation of protective data, e.g. certificates involving watermark
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The present disclosure relates to a method, an apparatus, an electronic device, a storage medium, and a program product for processing video data, wherein the method comprises: acquiring video data, video statistical information of the video data and/or account statistical information of an attribution account of the video data, wherein the video statistical information represents the popularity of the video data, and the account statistical information represents the popularity of the attribution account; and when the video statistical information and/or the account statistical information meet the adding condition, adding watermark information to the video data. According to the method and the device, the watermark information is added to the video data of which the video statistical information and/or the account statistical information meet the adding condition, the watermark information is not added to each video data, and the number of the watermark information added to the video data is reduced. The storage space occupied by the video data added with the watermark information is correspondingly reduced, and the computing resource consumption and the storage resource consumption of the attribution platform are reduced.

Description

Video data processing method, device, equipment, storage medium and program product
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for processing video data, an electronic device, a computer-readable storage medium, and a computer program product.
Background
With the rapid development of video technology and internet technology, the security problem of video data is a very important and challenging research topic at present.
In the related art, a user uploads video data to a video platform, the video platform embeds watermark information into each piece of video data, and the watermark information is embedded into the video data, so that the copyright of the video data can be protected, and the influence of the video platform can be improved. However, embedding watermark information into each piece of video data consumes a large amount of computing resources of a video platform, and the video platform needs to store video data without embedded watermark information and video data with embedded watermark information at the same time, which occupies a large amount of storage resources.
Disclosure of Invention
The present disclosure provides a video data processing method, apparatus, electronic device, computer-readable storage medium, and computer program product, to at least solve the problem of occupying a large amount of video platform computing resources and more storage resources in the related art. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a method for processing video data, including: acquiring video data and video statistical information of the video data and/or account statistical information of a home account of the video data, wherein the video statistical information represents the popularity of the video data, and the account statistical information represents the popularity of the home account; and adding watermark information to the video data when the video statistical information and/or the account statistical information meet a preset adding condition.
Optionally, adding watermark information to the video data when the video statistical information and/or the account statistical information satisfy a preset adding condition, where the adding watermark information includes: and adding watermark information to the video data when the video statistical information is greater than or equal to a video statistical threshold value and/or when the account statistical information is greater than or equal to an account statistical threshold value.
Optionally, the video statistical information includes at least one of sharing times, playing times and downloading times; the video counting threshold comprises a sharing time threshold, a playing time threshold and a downloading time threshold; when the video statistic information is greater than or equal to a video statistic threshold, adding watermark information to the video data, including: adding watermark information to the video data when the sharing times are larger than or equal to the sharing time threshold, and/or when the playing times are larger than or equal to the playing time threshold, and/or when the downloading times are larger than or equal to the downloading time threshold.
Optionally, the account statistics information includes an associated account number of the home account; the account statistics threshold comprises an associated account quantity threshold; when the account statistical information is greater than or equal to an account statistical threshold, adding watermark information to the video data, including: and adding watermark information to the video data when the number of the associated accounts is larger than or equal to the threshold value of the number of the associated accounts.
Optionally, the acquiring video data includes: and acquiring the video data when the video data is transmitted.
Optionally, when it is determined that the video data is transmitted, acquiring the video data includes: and when the video data is determined to be shared or downloaded, acquiring the video data.
Optionally, when determining that the video data is shared or downloaded, acquiring the video data includes: and when the video data is determined to be shared or downloaded and the video data which corresponds to the video data and is added with the watermark information is not searched, acquiring the video data.
Optionally, after adding the watermark information to the video data, the method further includes: and storing the video data added with the watermark information to a storage device.
Optionally, the method further comprises: detecting a per-second query rate QPS of the video data added with the watermark information and/or a storage limit value of the storage device according to a preset period; adjusting at least one of the video statistics threshold and the account statistics threshold according to the QPS and/or the storage limit.
Optionally, said adjusting at least one of said video statistics threshold and said account statistics threshold according to said QPS and/or said stored limit values comprises: decreasing a numerical value of at least one of the video statistics threshold and the account statistics threshold when the QPS for a current cycle is greater than the QPS for a previous cycle; increasing a numerical value of at least one of the video statistics threshold and the account statistics threshold when the QPS of a current cycle is less than the QPS of a previous cycle; and/or, when the storage limit value of the current period is greater than the storage limit value of the last period, decreasing the value of at least one of the video statistics threshold and the account statistics threshold; increasing a value of at least one of the video statistics threshold and the account statistics threshold when the stored limit value for a current cycle is less than the stored limit value for a previous cycle.
According to a second aspect of the embodiments of the present disclosure, there is provided a processing apparatus of video data, including: the acquisition module is configured to execute acquisition of video data, and video statistical information of the video data and/or account statistical information of a home account of the video data, wherein the video statistical information represents the popularity of the video data, and the account statistical information represents the popularity of the home account; the adding module is configured to add watermark information to the video data when the video statistical information and/or the account statistical information meet a preset adding condition.
Optionally, the adding module is configured to add watermark information to the video data when the video statistics information is greater than or equal to a video statistics threshold and/or when the account statistics information is greater than or equal to an account statistics threshold.
Optionally, the video statistical information includes at least one of sharing times, playing times and downloading times; the video counting threshold comprises a sharing time threshold, a playing time threshold and a downloading time threshold; the adding module is configured to add watermark information to the video data when the sharing times are greater than or equal to the sharing time threshold, and/or when the playing times are greater than or equal to the playing time threshold, and/or when the downloading times are greater than or equal to the downloading time threshold.
Optionally, the account statistics information includes an associated account number of the home account; the account statistics threshold comprises an associated account quantity threshold; the adding module is configured to add watermark information to the video data when the number of the associated accounts is greater than or equal to the threshold number of the associated accounts.
Optionally, the obtaining module is configured to perform obtaining the video data when determining that the video data is transmitted.
Optionally, the obtaining module is configured to obtain the video data when determining that the video data is shared or downloaded.
Optionally, the obtaining module is configured to perform, when it is determined that the video data is shared or downloaded and video data corresponding to the video data and to which the watermark information is added is not searched for, obtaining the video data.
Optionally, the apparatus further comprises: a storage module configured to store the video data added with the watermark information to a storage device after the adding module adds the watermark information to the video data.
Optionally, the apparatus further comprises: a detection module configured to perform detection of a query rate per second QPS at which the watermark information is added to the video data and/or a storage limit value of the storage device according to a preset period; an adjustment module configured to perform an adjustment of at least one of the video statistics threshold and the account statistics threshold according to the QPS and/or the storage limit.
Optionally, the adjusting module is configured to perform decreasing a value of at least one of the video statistics threshold and the account statistics threshold when the QPS of a current cycle is greater than the QPS of a previous cycle; increasing a numerical value of at least one of the video statistics threshold and the account statistics threshold when the QPS of a current cycle is less than the QPS of a previous cycle; and/or, when the storage limit value of the current period is greater than the storage limit value of the last period, decreasing the value of at least one of the video statistics threshold and the account statistics threshold; increasing a value of at least one of the video statistics threshold and the account statistics threshold when the stored limit value for a current cycle is less than the stored limit value for a previous cycle.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the method of processing video data according to the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium, wherein instructions, when executed by a processor of an electronic device, enable the electronic device to perform the video data processing method according to the first aspect.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the method for processing video data of the first aspect described above.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
according to the embodiment of the disclosure, before adding the watermark information to the video data, whether the video statistical information of the video data and/or the account statistical information of the home account of the video data meet the preset adding condition is judged, and when the video statistical information and/or the account statistical information meet the preset adding condition, the watermark information is added to the video data; and when the video statistical information and/or the account statistical information do not meet the preset adding condition, not adding the watermark information to the video data. The embodiment of the disclosure can add the watermark information to the video data of which the video statistical information and/or the account statistical information meet the preset adding condition, but not add the watermark information to each video data, thereby reducing the number of adding the watermark information to the video data and reducing the computing resource consumption of the attribution platform. Moreover, the number of the video data added with the watermark information is reduced, the storage space occupied by the video data added with the watermark information is correspondingly reduced, and the storage resource consumption of the attribution platform is also reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is a flowchart illustrating a method of processing video data according to an exemplary embodiment.
Fig. 2 is a flow diagram illustrating a watermarking scheme for video data, according to an example embodiment.
Fig. 3 is a block diagram illustrating a video data processing apparatus according to an example embodiment.
Fig. 4 is a block diagram illustrating video data processing electronics in accordance with an exemplary embodiment.
Fig. 5 is a block diagram illustrating an electronic device for processing video data in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a video data processing method according to an exemplary embodiment, and as shown in fig. 1, the video data processing method may be applied to a server that may provide a service for video data, for example, as a home platform of video data, or provide service support for the home platform of video data, the server may communicate with one or more terminals, and each terminal may upload video data to the server. In one embodiment, the home platform of the video data may be understood as a storage platform, a distribution platform, and the like of the video data.
The processing method of video data shown in fig. 1 may specifically include the following steps.
In step S11, the video data, and the video statistical information of the video data and/or the account statistical information of the home account of the video data are acquired.
In the embodiment of the disclosure, video statistical information of video data and video data is acquired, or account statistical information of a home account of the video data and the video data is acquired, or the video statistical information of the video data and the account statistical information of the home account of the video data are acquired. The home account of the video data may be an author, an uploader, a sharer, a publisher, and the like of the video data. The video data may be any video data stored in the server, or the video data may be video data satisfying a preset condition. Wherein, the preset conditions may include but are not limited to: originating from a terminal in communication with the server. The server may store the video data uploaded by the terminal locally in the server, or store the video data uploaded by the terminal in the storage server.
In the embodiment of the disclosure, the server not only stores the video data, but also records the video statistical information of each video data and/or the account statistical information of the home account of each video data. The server can establish a corresponding relationship between the statistical information of the video data acquired in real time and the identification information of the video data, wherein the statistical information of the video data at least comprises the video statistical information and account statistical information of the home account of the video data. Therefore, after the server acquires the video data, the server may acquire the video statistical information and/or the account statistical information corresponding to the identification information, that is, the video statistical information and/or the account statistical information of the video data, according to the corresponding relationship between the identification information of the video data and the video statistical information and/or the account statistical information acquired in real time. The correspondence may vary with real-time changes in the video statistics and/or account statistics. The video statistics information may indicate popularity of the video data, and the account statistics information may indicate popularity of the home account.
In step S12, when the video statistics information and/or the account statistics information satisfy a preset adding condition, adding watermark information to the video data.
In the embodiment of the disclosure, after the video statistical information and/or the account statistical information are obtained, whether the video statistical information and/or the account statistical information meet the preset adding condition may be determined. Adding watermark information to the video data when the video statistical information and/or the account statistical information meet the adding condition; and when the video statistical information and/or the account statistical information do not meet the adding condition, not adding the watermark information to the video data. The watermark information may be associated with a home account and/or a home platform. For example, the watermark information is an account name, an account number, and the like of the home account, and the watermark information may also be a name, a trademark, and the like of the home platform.
In embodiments of the present disclosure, in addition to adding watermark information to video data, the video data may be beautified, encoded, decoded, compressed, converted, and so on.
According to the video data processing scheme provided by the embodiment of the disclosure, video data and video statistical information of the video data and/or account statistical information of a home account of the video data are obtained, wherein the video statistical information represents the popularity of the video data, and the account statistical information represents the popularity of the home account. And then, judging whether the video statistical information and/or the account statistical information meet the preset adding condition, and adding watermark information to the video data when the video statistical information and/or the account statistical information meet the preset adding condition, wherein the watermark information can be associated with the attribution account of the video data and/or the attribution platform of the video data.
According to the embodiment of the disclosure, before adding the watermark information to the video data, whether the video statistical information of the video data and/or the account statistical information of the home account of the video data meet the preset adding condition is judged, and when the video statistical information and/or the account statistical information meet the preset adding condition, the watermark information is added to the video data; and when the video statistical information and/or the account statistical information do not meet the preset adding condition, not adding the watermark information to the video data. The embodiment of the disclosure can add the watermark information to the video data of which the video statistical information and/or the account statistical information meet the preset adding condition, but not to add the watermark information to each video data, thereby reducing the number of adding the watermark information to the video data and reducing the computing resource consumption of the attribution platform. Moreover, the number of the video data added with the watermark information is reduced, the storage space occupied by the video data added with the watermark information is correspondingly reduced, and the storage resource consumption of the attribution platform is also reduced.
In an exemplary embodiment of the present disclosure, in the execution of the above step S12, the video statistic information may be compared with a video statistic threshold, or the account statistic information may be compared with an account statistic threshold, or the video statistic information may be compared with a video statistic threshold and the account statistic information may be compared with an account statistic threshold. And when the video statistical information is greater than or equal to the video statistical threshold, the video statistical information is considered to meet the adding condition. Or, when the account statistical information is greater than or equal to the account statistical threshold, the account statistical information is considered to satisfy the adding condition. Or, when the video statistical information is greater than or equal to the video statistical threshold and the account statistical information is greater than or equal to the account statistical threshold, the video statistical information and the account statistical information are both considered to satisfy the adding condition. That is, when the video statistics information is greater than or equal to the video statistics threshold, or when the account statistics information is greater than or equal to the account statistics threshold, or when the video statistics information is greater than or equal to the video statistics threshold and the account statistics information is greater than or equal to the account statistics threshold, the watermark information is added to the video data.
In practical applications, the video statistics may include, but are not limited to: at least one of sharing times, playing times and downloading times. The account statistics may include an associated account number for the home account, and the like. Video statistics thresholds may include, but are not limited to: a sharing time threshold, a playing time threshold and a downloading time threshold. The account statistics threshold may comprise an associated account number threshold, and the like. The video data may be watermarked when at least one of the following conditions is met: the video statistical information is greater than or equal to a video statistical threshold, the sharing times are greater than or equal to a sharing times threshold, the playing times are greater than or equal to a playing times threshold, the downloading times are greater than or equal to a downloading times threshold, the account statistical information is greater than or equal to an account statistical threshold, and the number of the associated accounts is greater than or equal to an associated account number threshold.
The video data may not be watermarked when at least one of the following conditions is met: the sharing times are smaller than the sharing time threshold, the playing times are smaller than the playing time threshold, and the downloading times are smaller than the downloading time threshold.
The embodiment of the disclosure can judge whether the video data meets the adding condition from the aspect of the video data (such as video statistical information), judge whether the video data meets the adding condition from the aspect of the attribution account of the video data (such as account statistical information), or judge whether the video data meets the adding condition from the aspect of the video data itself (such as video statistical information) and the attribution account (such as account statistical information). A plurality of limiting conditions are set for adding watermark information to video data, so that the video data which can be added with the watermark information is screened out from a plurality of video data according to the limiting conditions, and the video data which do not need to be added with the watermark information is excluded.
In an exemplary embodiment of the present disclosure, in the execution of the above step S11, the video data may be acquired when it is determined that the video data is transmitted. The video data is transmitted, including but not limited to being shared or downloaded or transmitted. In practical applications, when a sharing instruction or a downloading instruction or a sending instruction for video data is received, the video data may be considered to be shared or downloaded or transmitted. For example, if an account of a certain terminal needs to share video data with other accounts of other terminals, the account sends a sharing instruction to the server through the terminal, where the sharing instruction may include identification information of the video data, a sharing operation identification, and the like. For another example, if an account of a terminal needs to download video data to a local area, the account sends a download instruction to the server through the terminal, and the download instruction may include identification information of the video data, a download operation identifier, and the like. After receiving the sharing instruction or the downloading instruction, the server may extract the identification information of the video data from the sharing instruction or the downloading instruction, and then obtain the video data according to the identification information.
In an exemplary embodiment of the present disclosure, when it is determined that video data is shared or downloaded or transmitted, it is also necessary to search whether there is video data corresponding to the video data to which watermark information is added. If there is video data to which watermark information is added, which corresponds to the video data, it is not necessary to add watermark information to the video data, and the searched video data may be used as the video data to which the watermark information is added. And if the video data which is corresponding to the video data and added with the watermark information does not exist, acquiring the video data, further judging whether the video statistical information and/or the account statistical information of the video data meet the adding condition, and adding the watermark information to the video data when the video statistical information and/or the account statistical information meet the adding condition.
According to the embodiment of the disclosure, the adding condition is set when judging whether the video data can be added with the watermark information, the precondition for adding the watermark information to the video data is limited from the aspect of application scenes (such as sharing, downloading and the like), and the safety of adding the watermark information to the video data is further enhanced.
In an exemplary embodiment of the present disclosure, during the execution of the step S12, a watermarking process of the server may be invoked to add watermarking information to the video data, and then the video data added with the watermarking information is stored to the storage device.
In an exemplary embodiment of the present disclosure, a Query Per Second (QPS) of the watermarking process, that is, a QPS of the video data to which the watermark information is added, and/or a storage limit value of the storage device may also be detected according to a preset period. At least one of the video statistics threshold and the account statistics threshold is then adjusted according to the QPS of the watermarking process and/or the storage limit of the storage device.
In practical application, a QPS comparison result can be obtained by comparing a QPS of the watermarking process in the current cycle with a QPS of the watermarking process in the previous cycle. When the QPS comparison result indicates that the QPS of the watermarking process of the current cycle is greater than the QPS of the watermarking process of the previous cycle, the value of at least one of the video statistics threshold and the account statistics threshold may be decreased. When the QPS comparison result indicates that the QPS of the watermarking process of the current cycle is smaller than the QPS of the watermarking process of the previous cycle, the value of at least one of the video statistics threshold and the account statistics threshold may be increased. Or comparing the storage limit value of the storage device of the current period with the storage limit value of the storage device of the previous period to obtain a storage limit value comparison result. The value of at least one of the video statistics threshold and the account statistics threshold may be decreased when the storage limit comparison indicates that the storage limit of the storage device of the current cycle is greater than the storage limit of the storage device of the previous cycle. The value of at least one of the video statistics threshold and the account statistics threshold may be increased when the storage limit comparison indicates that the storage limit of the storage device of the current cycle is less than the storage limit of the storage device of the previous cycle.
Or, comparing the QPS of the watermarking process of the current cycle with the QPS of the watermarking process of the previous cycle to obtain a QPS comparison result, and comparing the storage limit value of the storage device of the current cycle with the storage limit value of the storage device of the previous cycle to obtain a storage limit value comparison result. When the QPS comparison result indicates that the QPS of the watermarking process of the current cycle is greater than the QPS of the watermarking process of the previous cycle, and the storage limit value comparison result indicates that the storage limit value of the storage device of the current cycle is greater than the storage limit value of the storage device of the previous cycle, the value of at least one of the video statistics threshold and the account statistics threshold may be decreased. When the QPS comparison result indicates that the QPS of the watermarking process of the current cycle is less than the QPS of the watermarking process of the previous cycle, and the storage limit value comparison result indicates that the storage limit value of the storage device of the current cycle is less than the storage limit value of the storage device of the previous cycle, the value of at least one of the video statistics threshold and the account statistics threshold may be increased.
Embodiments of the present disclosure may dynamically adjust the video statistics threshold and/or the account statistics threshold in conjunction with system resources of the server of the video data (e.g., QPS of the watermarking process, storage limits of the storage device). When the system resources are relatively sufficient, the numerical value of the video counting threshold value and/or the account counting threshold value can be properly reduced, so that the number of video data meeting the adding condition is increased, watermark information is added to more video data, and the resource utilization rate of the server is improved. When the system resources are relatively short, the value of the video statistical threshold and/or the account statistical threshold can be properly increased, so that the number of video data meeting the adding condition is reduced, watermark information is added to fewer video data, and the processing pressure of a server is relieved.
Based on the above description about an embodiment of a method for processing video data, a watermarking scheme for video data is described below. When video data is propagated from a home platform to other platforms or downloaded, watermark information is usually added to the video data, so that the copyright of an author of the video data is protected by the watermark information, or the influence of the home platform is expanded. As shown in fig. 2, the watermarking scheme for video data may involve a third party platform (including a download terminal), a home platform host process, a home platform watermarking process, and a watermarked video storage device.
When an account requests to share video data to a third-party platform or download the video data by using a terminal logging in the account, the home platform main process can search whether watermark video data corresponding to the video data exist. And if the watermark video data corresponding to the video data exist, returning the watermark video data to the terminal where the account is located. If the watermark video data corresponding to the video data does not exist, judging whether the frequency of sharing the video data to the third-party platform is greater than or equal to a sharing frequency threshold value or not, or judging whether the playing frequency of the video data is greater than or equal to a playing frequency threshold value or not, or judging whether the number of fans of an author of the video data is greater than or equal to a fan number threshold value or not. And when all judgment conditions or part of judgment conditions are met, calling a home platform watermark adding process to add watermark information to the video data to obtain watermark video data, and then storing the watermark video data to a watermark video storage device.
Moreover, the values of the sharing time threshold, the playing time threshold, the fan number threshold, and the like can be adjusted according to the change condition of the resource amount (such as QPS of the watermark adding process and the storage limit value of the storage device) of the home platform. For example, if the QPS of today's watermarking process is increased by 30% compared to the QPS of yesterday's watermarking process, and the storage limit value of today's storage device is also increased by 30% compared to yesterday's storage limit value, the values of the sharing number threshold, the playing number threshold, and the fan number threshold may be modified proportionally. The purpose of modifying the values of the sharing time threshold, the playing time threshold and the fan number threshold is to make the QPS of the watermark adding process reach 130% of yesterday, or the storage limit value of the storage device reach 130% of yesterday. It should be noted that, in the process of modifying the values of the sharing time threshold, the playing time threshold, and the fan number threshold, a smaller proportion, for example, 5%, may be reduced each time, and the values of the sharing time threshold, the playing time threshold, and the fan number threshold are modified in a manner of multiple times of small proportions, so as to finally achieve the desired effect.
Fig. 3 is a block diagram illustrating a video data processing apparatus according to an example embodiment. The device can be applied to a server of video data, and particularly comprises the following modules.
The acquiring module 31 is configured to perform acquiring video data, and video statistical information of the video data and/or account statistical information of a home account of the video data, where the video statistical information represents a popularity of the video data, and the account statistical information represents a popularity of the home account;
an adding module 32 configured to add watermark information to the video data when the video statistical information and/or the account statistical information satisfy a preset adding condition.
In an exemplary embodiment of the disclosure, the adding module 32 is configured to add watermark information to the video data when the video statistic information is greater than or equal to a video statistic threshold and/or when the account statistic information is greater than or equal to an account statistic threshold.
In an exemplary embodiment of the present disclosure, the video statistics information includes at least one of sharing times, playing times, and downloading times; the video counting threshold comprises a sharing time threshold, a playing time threshold and a downloading time threshold;
the adding module 32 is configured to add watermark information to the video data when the sharing time is greater than or equal to the sharing time threshold, and/or when the playing time is greater than or equal to the playing time threshold, and/or when the downloading time is greater than or equal to the downloading time threshold.
In an exemplary embodiment of the present disclosure, the account statistics include an associated account number of the home account; the account statistics threshold comprises an associated account quantity threshold;
the adding module 32 is configured to add watermark information to the video data when the number of associated accounts is greater than or equal to the threshold number of associated accounts.
In an exemplary embodiment of the disclosure, the obtaining module 31 is configured to obtain the video data when determining that the video data is transmitted.
In an exemplary embodiment of the disclosure, the obtaining module 31 is configured to obtain the video data when determining that the video data is shared or downloaded.
In an exemplary embodiment of the disclosure, the obtaining module 31 is configured to perform, when it is determined that the video data is shared or downloaded and video data corresponding to the video data and to which the watermark information is added is not searched for, obtaining the video data.
In an exemplary embodiment of the present disclosure, the apparatus further includes:
a storage module configured to store the video data added with the watermark information to a storage device after the adding module 32 adds the watermark information to the video data.
In an exemplary embodiment of the present disclosure, the apparatus further includes:
a detection module configured to perform detection of a query rate per second QPS at which the watermark information is added to the video data and/or a storage limit value of the storage device according to a preset period;
an adjustment module configured to perform an adjustment of at least one of the video statistics threshold and the account statistics threshold according to the QPS and/or the storage limit.
In an exemplary embodiment of the disclosure, the adjusting module is configured to perform decreasing a value of at least one of the video statistics threshold and the account statistics threshold when the QPS of a current cycle is greater than the QPS of a last cycle; increasing a numerical value of at least one of the video statistics threshold and the account statistics threshold when the QPS of a current cycle is less than the QPS of a previous cycle; and/or, when the storage limit value of the current period is greater than the storage limit value of the last period, decreasing the value of at least one of the video statistics threshold and the account statistics threshold; increasing a value of at least one of the video statistics threshold and the account statistics threshold when the stored limit value for a current cycle is less than the stored limit value for a previous cycle.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 4 is a block diagram illustrating an electronic device 400 for processing video data in accordance with an exemplary embodiment. For example, the electronic device 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 4, electronic device 400 may include one or more of the following components: a processing component 402, a memory 404, a power component 406, a multimedia component 408, an audio component 410, an interface for input/output (I/O) 412, a sensor component 414, and a communication component 416.
The processing component 402 generally controls overall operation of the electronic device 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to perform all or part of the steps of the above-described video data processing method. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 can include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
The memory 404 is configured to perform operations to store various types of data to support operations at the electronic device 400. Examples of such data include instructions for any application or method operating on the electronic device 400, contact data, phonebook data, messages, images, videos, and so forth. The memory 404 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 406 provides power to the various components of the electronic device 400. Power components 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for electronic device 400.
The multimedia component 408 comprises a screen providing an output interface between the electronic device 400 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 400 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 410 is configured to perform outputting and/or inputting audio signals. For example, the audio component 410 may include a Microphone (MIC) configured to perform receiving an external audio signal when the electronic device 400 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 404 or transmitted via the communication component 416. In some embodiments, audio component 410 also includes a speaker for outputting audio signals.
The I/O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 414 includes one or more sensors for providing various aspects of status assessment for the electronic device 400. For example, the sensor assembly 414 may detect an open/closed state of the electronic device 400, the relative positioning of components, such as a display and keypad of the electronic device 400, the sensor assembly 414 may also detect a change in the position of the electronic device 400 or a component of the electronic device 400, the presence or absence of user contact with the electronic device 400, orientation or acceleration/deceleration of the electronic device 400, and a change in the temperature of the electronic device 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 416 is configured to perform communications that facilitate wired or wireless means between the electronic device 400 and other devices. The electronic device 400 may access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described video data processing methods.
In an exemplary embodiment, a computer-readable storage medium comprising instructions, such as the memory 404 comprising instructions, executable by the processor 420 of the electronic device 400 to perform the above-described video data processing method is also provided. Alternatively, the computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product is also provided, which comprises a computer program executable by the processor 420 of the electronic device 400 to perform the above-described method of processing video data. Alternatively, the computer program may be stored in a computer readable storage medium of the electronic device 400, which may be a non-transitory computer readable storage medium, for example, ROM, Random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
Fig. 5 is a block diagram illustrating an electronic device 500 for processing video data according to an example embodiment. For example, the electronic device 500 may be provided as a server. Referring to fig. 5, electronic device 500 includes a processing component 522 that further includes one or more processors and memory resources, represented by memory 532, for storing instructions, such as applications, that are executable by processing component 522. The application programs stored in memory 532 may include one or more modules that each correspond to a set of instructions. Further, the processing component 522 is configured to execute instructions to perform the above-described video data processing method.
The electronic device 500 may also include a power component 526 configured to perform power management of the electronic device 500, a wired or wireless network interface 550 configured to perform connecting the electronic device 500 to a network, and an input/output (I/O) interface 558. The electronic device 500 may operate based on an operating system stored in memory 532, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method for processing video data, comprising:
acquiring video data and video statistical information of the video data and/or account statistical information of a home account of the video data, wherein the video statistical information represents the popularity of the video data, and the account statistical information represents the popularity of the home account;
and adding watermark information to the video data when the video statistical information and/or the account statistical information meet a preset adding condition.
2. The method according to claim 1, wherein adding watermark information to the video data when the video statistics information and/or the account statistics information satisfy a preset adding condition comprises:
and adding watermark information to the video data when the video statistical information is greater than or equal to a video statistical threshold value and/or when the account statistical information is greater than or equal to an account statistical threshold value.
3. The method of claim 2, wherein the video statistics information includes at least one of sharing times, playing times, and downloading times; the video counting threshold comprises a sharing time threshold, a playing time threshold and a downloading time threshold;
when the video statistic information is greater than or equal to a video statistic threshold, adding watermark information to the video data, including:
adding watermark information to the video data when the sharing times are larger than or equal to the sharing time threshold, and/or when the playing times are larger than or equal to the playing time threshold, and/or when the downloading times are larger than or equal to the downloading time threshold.
4. The method of claim 2, wherein the account statistics include an associated account number for the home account; the account statistics threshold comprises an associated account quantity threshold;
when the account statistical information is greater than or equal to an account statistical threshold, adding watermark information to the video data, including:
and adding watermark information to the video data when the number of the associated accounts is larger than or equal to the threshold value of the number of the associated accounts.
5. The method of claim 1, wherein the obtaining video data comprises:
and acquiring the video data when the video data is transmitted.
6. The method of claim 5, wherein obtaining the video data when the video data is determined to be transmitted comprises:
and when the video data is determined to be shared or downloaded, acquiring the video data.
7. An apparatus for processing video data, comprising:
the acquisition module is configured to execute acquisition of video data, and video statistical information of the video data and/or account statistical information of a home account of the video data, wherein the video statistical information represents the popularity of the video data, and the account statistical information represents the popularity of the home account;
the adding module is configured to add watermark information to the video data when the video statistical information and/or the account statistical information meet a preset adding condition.
8. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of processing video data according to any one of claims 1 to 6.
9. A computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method of processing video data of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the method of processing video data according to any one of claims 1 to 6.
CN202110134589.4A 2021-01-29 2021-01-29 Video data processing method, device, equipment, storage medium and program product Pending CN112911409A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110134589.4A CN112911409A (en) 2021-01-29 2021-01-29 Video data processing method, device, equipment, storage medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110134589.4A CN112911409A (en) 2021-01-29 2021-01-29 Video data processing method, device, equipment, storage medium and program product

Publications (1)

Publication Number Publication Date
CN112911409A true CN112911409A (en) 2021-06-04

Family

ID=76122189

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110134589.4A Pending CN112911409A (en) 2021-01-29 2021-01-29 Video data processing method, device, equipment, storage medium and program product

Country Status (1)

Country Link
CN (1) CN112911409A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080085031A1 (en) * 2006-10-10 2008-04-10 Texas Instruments, Inc. Methods and Systems For Watermarking Digital Media
CN106604127A (en) * 2016-12-26 2017-04-26 乐蜜科技有限公司 Multimedia information sharing method, device and terminal device
CN110099239A (en) * 2019-05-09 2019-08-06 浙江大华技术股份有限公司 Video marker method, video source tracing method, video process apparatus and storage medium
CN110418153A (en) * 2019-07-30 2019-11-05 北京达佳互联信息技术有限公司 Watermark adding method, device, equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080085031A1 (en) * 2006-10-10 2008-04-10 Texas Instruments, Inc. Methods and Systems For Watermarking Digital Media
CN106604127A (en) * 2016-12-26 2017-04-26 乐蜜科技有限公司 Multimedia information sharing method, device and terminal device
CN110099239A (en) * 2019-05-09 2019-08-06 浙江大华技术股份有限公司 Video marker method, video source tracing method, video process apparatus and storage medium
CN110418153A (en) * 2019-07-30 2019-11-05 北京达佳互联信息技术有限公司 Watermark adding method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110611829B (en) Video preloading method and device, electronic equipment and storage medium
CN104219092B (en) The compatibility method of a kind of router administration application and router firmware and device
EP3188066A1 (en) A method and an apparatus for managing an application
CN106033397B (en) Memory buffer area adjusting method, device and terminal
CN109670632B (en) Advertisement click rate estimation method, advertisement click rate estimation device, electronic device and storage medium
CN110536168B (en) Video uploading method and device, electronic equipment and storage medium
CN111601377B (en) Temperature control method, device and storage medium
CN110798726A (en) Bullet screen display method and device, electronic equipment and storage medium
CN116166359A (en) A data processing method, device, electronic device and storage medium
CN106454413A (en) Live broadcast coding switching method and device, and live broadcast terminal equipment
CN107995676A (en) terminal control method and device
CN105631803A (en) Method and device for filter processing
CN111526380B (en) Video processing method, video processing device, server, electronic equipment and storage medium
CN108984098B (en) Information display control method and device based on social software
US11600300B2 (en) Method and device for generating dynamic image
CN112188091B (en) Face information identification method and device, electronic equipment and storage medium
CN106447747B (en) Image processing method and device
CN112685269A (en) Data acquisition method and device, electronic equipment and storage medium
CN105653623B (en) Picture collection method and device
CN105227426B (en) Application interface switching method and device and terminal equipment
CN108600503B (en) Control method and device for voice call
CN110764847A (en) User information processing method and device, electronic equipment and storage medium
CN106572003A (en) User information recommendation method and device
CN112230982B (en) Material processing method, device, electronic equipment and storage medium
CN110913276B (en) Data processing method, device, server, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210604