Video distribution method and apparatus, electronic device, and storage medium

By introducing the signature reference summary in the video distribution process and utilizing image invariants and publisher identity information, the problem of difficulty in distinguishing the authenticity of video content is solved, and the reliability and efficiency of video distribution are improved.

CN115695942BActive Publication Date: 2025-10-17SUZHOU KEDA TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211181373.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-27
Publication Date
2025-10-17
Estimated Expiration
2042-09-27

AI Technical Summary

Technical Problem

Existing technologies have difficulty in effectively distinguishing and verifying the authenticity of video content, resulting in low reliability of distributed videos of different qualities.

Method used

By introducing a signed reference digest into the video distribution process, the signed reference digest includes the content summary of the original video and the publisher's identity information, uses the image invariant for digest calculation, and encodes the signed reference digest into the video to ensure the reliability and anti-counterfeiting ability of the video.

Benefits of technology

It improves the reliability and anti-counterfeiting ability of video distribution, ensures the authenticity of video content and the identity of the publisher, reduces the increase in data volume, and improves the efficiency of video publishing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115695942B_ABST
    Figure CN115695942B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of video processing, and in particular to a video distribution method and device, electronic equipment and storage medium, the method comprising: obtaining a target published video, the target published video comprising a signature reference digest and a compressed and encoded video stream, the signature reference digest comprising a reference digest and a signature of the reference digest, the reference digest being obtained by splicing a digest calculation result of content of an original video in the compressed and encoded video stream and a publisher identity information of the target published video; separating the signature reference digest and the compressed and encoded video stream from the target published video based on an identifier of the signature reference digest; performing a preset quality of service processing on the compressed and encoded video stream to obtain a preset quality of service to-be-distributed video; and encoding the signature reference digest into the to-be-distributed video, determining and distributing a preset quality of service target distribution video. The method has good anti-counterfeiting capability, thereby ensuring that the obtained preset quality of service target distribution video has high reliability.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of video processing, and in particular to a video distribution method and device, an electronic device, and a storage medium. BACKGROUND

[0002] With the gradual widespread application of intelligent technology in the video field, current intelligent video editing technology can already edit videos, and it is very difficult to distinguish the authenticity of video content by naked eye. For example, by obtaining several photos and a reference video, a person in the photos can perform imitation according to a predetermined role in the reference video to generate content in the reference video, thereby generating untrustworthy video content about the person in the photos, and obtaining a published video. According to different service quality requirements, the published video is made into distribution videos of different service qualities, thereby resulting in low reliability of the distribution videos of different qualities. SUMMARY

[0003] Therefore, the embodiments of the present application provide a video distribution method and device, an electronic device, and a storage medium to improve the reliability of distribution videos of different qualities.

[0004] According to a first aspect, the embodiments of the present application provide a video distribution method, comprising:

[0005] obtaining a target published video, wherein the target published video comprises a signature reference digest and a compressed and encoded video stream, the signature reference digest comprises a reference digest and a signature of the reference digest, and the reference digest is obtained by splicing a digest calculation result of content of an original video in the compressed and encoded video stream and publisher identity information of the target published video;

[0006] based on an identifier of the signature reference digest, separating the signature reference digest and the compressed and encoded video stream from the target published video;

[0007] performing a preset service quality processing on the compressed and encoded video stream to obtain a target distribution video of the preset service quality;

[0008] encoding the signature reference digest into the target distribution video of the preset service quality, and determining and distributing the target distribution video of the preset service quality.

[0009] The video distribution method provided by the embodiment of the present application carries a signature reference digest in the target distribution video, and the signature reference digest is obtained by digest calculation based on the content of the original video in the compressed and encoded video stream, because the image has its own unique content, i.e., the image has an invariant related thereto, and the reliability of the signature reference digest calculated based on the invariant; meanwhile, the identity information of the publisher is also included in the signature reference digest, so that the target distribution video obtained finally has the identity mark of the publisher and has good anti-fake capability, thereby ensuring that the target distribution video obtained with the preset service quality has high reliability.

[0010] In some embodiments, the signature reference digest includes a first signature reference digest and a second signature reference digest, the first signature reference digest includes the identity information of the publisher and a calculation description for the digest calculation, and the second signature reference digest includes the calculation result of the digest of the content of the original video in the compressed and encoded video stream; the to-be-distributed video includes to-be-distributed sub-videos corresponding to the compressed and encoded video stream one by one; and the encoding of the signature reference digest into the to-be-distributed video, the determination and distribution of the target distribution video with the preset service quality include:

[0011] encoding the second signature reference digest into the corresponding to-be-distributed sub-video to obtain the target distribution sub-video with the preset service quality;

[0012] splicing the target distribution sub-video with the preset service quality and encoding the first signature reference digest into the splicing result to determine and distribute the target distribution video with the preset service quality.

[0013] The video distribution method provided by the embodiment of the present application, the first signature reference digest represents some description information, which does not change with time; and the second signature reference digest is closely related to the video content, therefore, different encoding methods are adopted for different signature reference digests, which can reduce the data amount of the target distribution video increased due to the encoding of the signature reference digest on the basis of ensuring the reliability of the target distribution video.

[0014] In some embodiments, before the step of performing the preset service quality processing on the compressed and encoded video stream to obtain the to-be-distributed sub-video with the preset service quality, the method further includes:

[0015] verifying the identity information of the publisher based on the signature reference digest, and / or scanning the image in the compressed and encoded video stream to verify whether the preset distribution condition is met;

[0016] When the verification passes, a step of performing a preset quality of service processing on the compressed encoded video stream to obtain a preset quality of service sub-video to be distributed is performed.

[0017] The video distribution method provided by the embodiment of the present application verifies the identity information of the publisher before video distribution, and can prevent further distribution of untrusted video streams.

[0018] In some embodiments, the target published video is generated in the following manner:

[0019] The original video of the compressed encoded video stream and the identity information of the publisher are obtained.

[0020] A video summary index is determined by performing summary calculation on the content of the original video.

[0021] A reference summary is determined based on the identity information of the publisher and the video summary index, and a digital signature is obtained by signing the reference summary.

[0022] The reference summary and the digital signature are spliced to determine a signed reference summary.

[0023] The signed reference summary is encoded into the compressed encoded video stream to determine the target published video.

[0024] The video distribution method provided by the embodiment of the present application can ensure the reliability of the video summary index by performing summary calculation based on the invariants related to the image, because the image has its own unique content, and the invariants related to the image are not affected by the outside world. In addition, the identity information of the publisher is combined to carry the identity mark of the publisher in the published video, and the published video has good anti-counterfeiting capability. In addition, the video content of the published video is publicly accessible, and the non-encryption of the public domain is maintained. The reliability of the target published video can be ensured without affecting the public access to the published video.

[0025] In some embodiments, the reference summary is determined based on the identity information of the publisher and the video summary index, and the reference summary is signed to obtain a digital signature, including:

[0026] A first reference summary is obtained, and the first reference summary includes the identity information of the publisher and a calculation description used for the summary calculation.

[0027] The first reference summary is signed to determine a first signature.

[0028] The video summary index is determined as a second reference summary, and the second reference summary is signed to determine a second signature.

[0029] The video distribution method provided by the embodiment of the present application can be used in a video distribution process, and thus, the efficiency of video distribution can be improved.

[0030] In some embodiments, the obtaining the first reference digest comprises:

[0031] obtaining a video description of the video to be distributed;

[0032] splicing the publisher identity information, the video description and the calculation description to determine the first reference digest.

[0033] The video distribution method provided by the embodiment of the present application can be used in a video distribution process, and thus, the efficiency of video distribution can be improved.

[0034] In some embodiments, the encoding the signature reference digest into the compressed and encoded video stream to determine the target distribution video comprises:

[0035] encoding a second signature reference digest into a target position of each of the compressed and encoded video streams to obtain a video code stream, the second signature reference digest being obtained by splicing the second reference digest and a second signature;

[0036] encoding the first signature reference digest into a target position of the video code stream to determine the target distribution video, the first signature reference digest being obtained by splicing the first reference digest and a first signature.

[0037] The video distribution method provided by the embodiment of the present application can be used in a video distribution process, and thus, the efficiency of video distribution can be improved.

[0038] According to a second aspect, the embodiment of the present application further provides a video distribution device, comprising:

[0039] The acquisition module is configured to acquire a target published video, the target published video comprising a signature reference digest and a compressed and encoded video stream, the signature reference digest comprising a reference digest and a signature of the reference digest, the reference digest being a result of digest calculation of content of an original video in the compressed and encoded video stream spliced with publisher identity information of the target published video;

[0040] The separation module is configured to separate the signature reference digest and the compressed and encoded video stream from the target published video based on the identification of the signature reference digest;

[0041] The processing module is configured to perform preset quality of service processing on the compressed and encoded video stream to obtain a preset quality of service to-be-distributed video;

[0042] The determination module is configured to encode the signature reference digest into the to-be-distributed video, and determine and distribute a target distributed video of the preset quality of service.

[0043] According to a third aspect, an electronic device is provided, comprising a memory and a processor, which are in communication connection with each other, the memory stores computer instructions, and the processor executes the computer instructions to perform the video distribution method in the first aspect or any one of the implementation manners of the first aspect.

[0044] According to a fourth aspect, a computer readable storage medium is provided, which stores computer instructions for causing the computer to perform the video distribution method in the first aspect or any one of the implementation manners of the first aspect.

[0045] It should be noted that the corresponding beneficial effects of the video distribution apparatus, the electronic device and the computer readable storage medium provided by the embodiments of the present application are described above in the description of the beneficial effects of the video distribution method, and will not be described here again. BRIEF DESCRIPTION OF DRAWINGS

[0046] In order to more clearly illustrate the specific embodiments of the present application or the technical solutions in the prior art, the following will briefly introduce the drawings needed to be used in the specific embodiments or prior art description. Obviously, the drawings in the following description are some embodiments of the present application, and those skilled in the art can obtain other drawings according to these drawings without creative labor.

[0047] Figure 1 is a flow chart of a target published video generation method according to an embodiment of the present application;

[0048] Figure 2is a flow chart of a target published video generation method according to an embodiment of the present application;

[0049] Figure 3 is a flow chart of a target published video generation method according to an embodiment of the present application;

[0050] Figure 4 is a flow chart of a video distribution method according to an embodiment of the present application;

[0051] Figure 5 is a flow chart of a video playing method according to an embodiment of the present application;

[0052] Figure 6 is a structural block diagram of a video distribution apparatus according to an embodiment of the present application;

[0053] Figure 7 is a hardware structure schematic diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0054] To make the objects, technical solutions and advantages of embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present application.

[0055] In the whole process from video generation to video playing, the process can mainly be divided into video publishing, video distribution and video playing. The video publishing, i.e. a video publishing server and the like, performs video publishing processing on the obtained to-be-published video, obtains a target published video, and sends the target published video to a video distribution server and the like. Taking the video distribution server as an example, the target published video is made into target distribution videos of different preset qualities of service, and the target distribution videos of different preset qualities of service are sent to corresponding terminals for playing; after the terminal receives the target distribution video of the corresponding quality of service, the terminal performs decoding and the like on the target distribution video, and the target video of the corresponding quality of service can be played.

[0056] It should be noted that the video publishing, video distribution and video playing are not necessarily processed in the above-mentioned order. For example, for the video distribution server, the obtained video can be published by the video publishing server, or processed by the video distribution server of the upper level, and the like; for the terminal playing the video, the played video can be sent by the video distribution server, or sent by the video publishing server, and the like. The terminal playing the video does not know whether the received target video is from the video distribution or from the video publishing.

[0057] In the video publishing method, a signature reference digest is formed based on the video digest index determined by performing digest calculation on the original video in the video to be published, and the signature reference digest is encoded into the code stream of the compressed and encoded video to be published to obtain the target published video. The original video includes original video images, which are large blocks of data stacked by pixel points. The video code stream is the media data stream after compression and encoding, including the data stream of audio media and video media, which is usually obtained by using lossy compression to greatly compress the original media, has small data volume and is suitable for transmission but not suitable for media content analysis and processing. Therefore, in the embodiment, the reference digest is for the original video, not the compressed and encoded video media code stream.

[0058] The original video image can be regarded as a sequence of images on continuous video points, and each image can be obtained by mathematical calculation to obtain an invariant, which describes the data that does not change or is not sensitive to change within a certain range when the video image is deformed or adjusted. The invariant of the image is that as long as the content of the image does not change greatly, a good invariant will not change significantly due to the change in the quality of the image. However, as long as the content of the image changes greatly, the invariant should change sensitively. The invariant of the image reflects the content described by the image. The invariant obtained by dividing the video into images and arranging and counting in time sequence can be regarded as a kind of invariant of the video content, which reflects the video content in a period of time. Therefore, the processing object for generating the video digest index is the content of the original video.

[0059] For example, the average brightness of all pixels of an image can be regarded as an invariant, which will not change significantly when the image is enlarged or reduced without adjusting the brightness of the image. For another example, the center of gravity of an image can be calculated as another invariant, which remains basically unchanged when the image is enlarged or reduced or the brightness is adjusted. For another example, the N-order central moment of the image can also be calculated as a kind of geometric invariant similar to the center of gravity. For another example, the eigenvalue / singular value of the normalized numerical matrix of the image will not change significantly after many treatments of the image. For another example, the spectrum of the image can be calculated, and the features of the high-frequency and low-frequency positions can be extracted as an invariant. For another example, a plurality of representative key points in the image and their appearance similar feature descriptors can be selected and arranged as an invariant.

[0060] Therefore, the summary calculation based on the content of the original video can be considered as an invariant summary calculation. By encoding the signature reference summary in the code stream of the compressed and encoded video to be published, the target published video is obtained, so that the target published video carries the identity information of the publisher and has good anti-fake capability.

[0061] According to the embodiment of the present application, a video distribution method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0062] As described above, the video distribution method provided by the embodiment of the present application is processed based on the target published video. In order to better describe the video distribution method described in the embodiment of the present application, the process of obtaining the target published video is described in detail. The target published video is sent to the video distribution server by the video publishing server and the like, so the target published video is processed in the video publishing server and the like. For example, as shown in Figure 1 The generation method of the target published video includes:

[0063] S11, obtaining the original video of the compressed and encoded video stream and the identity information of the publisher.

[0064] The compressed and encoded video stream is obtained by compressing and encoding the to-be-published video obtained by the video publishing server, for example, after the video publishing server obtains the to-be-published video, the to-be-published video is compressed and encoded to obtain the compressed and encoded video stream. Based on this, the original video of the compressed and encoded video stream is the original video of the to-be-published video.

[0065] The original video of the to-be-published video can be a target time length video in the to-be-published video, for example, a target time length video is extracted from the to-be-published video every preset time length, which is used as the original video for subsequent video summary index calculation.

[0066] The target time length can be as small as 0 seconds, that is, the target time length video does not include any original video image at this time, and the corresponding video summary index is empty, which can be represented by the corresponding data length of 0. The length of 0 indicates that the content is empty, that is, there is no content. As can be seen from the description of the subsequent steps, the reference summary contains not only the video summary index, but also can form a reasonable reference summary in the case that the result of the video summary index is empty, which can be used for functional or identification purposes.

[0067] Alternatively, the target duration can be a time length of 1-10 seconds, etc. The specific length of the target duration is not limited herein and can be set according to actual needs.

[0068] For example, the video to be published is 30 minutes, the preset duration is 5 minutes, and the target duration is 1 second. That is, 1s of the original video is extracted from 0-5 minutes of the video to be published for the calculation of the video summary index, and the 0-5 minutes of the video to be published is compressed and encoded to obtain a compressed and encoded video stream; 1s of the original video is extracted from 6-10 minutes of the video to be published for the calculation of the video summary index, and the 6-10 minutes of the video to be published is compressed and encoded to obtain a compressed and encoded video stream; and so on.

[0069] The publisher identity information of the video to be published can include a publisher general name, a publisher unit name, a publisher address, an author name, an author contact method, a publisher digital certificate, a publisher digital certificate access descriptor, a publisher identity public key, a publisher identity public key access descriptor, a publisher identity description number, and can also include business-related general description extension data added due to a special requirement, which is used to submit to a specific business system or access descriptor to obtain a digital certificate or identity public key. The specific publisher identity information included is set according to actual needs, which is not limited herein.

[0070] S12, performing summary calculation on the content of the original video to determine a video summary index.

[0071] As described above, the summary calculation of the content of the original video is the construction of an invariant of the video. The video is an image arranged in time, and the invariant is a summary data description of the image and the video content. The same video content can be observed from multiple perspectives to obtain an invariant data description, i.e., an invariant. The use of the invariant has the advantage that the video summary index calculation is concerned not with the data of the video but with the content of the video.

[0072] In the summary calculation, the brightness or picture of the original video image in the original video can be analyzed, or the original video image in the original video can be numerically calculated, etc. Alternatively, the video summary index includes at least one video summary sub-index, and the video summary sub-index includes but is not limited to brightness, chroma, etc.

[0073] S13, determining a reference summary based on the publisher identity information and the video summary index, and signing the reference summary to obtain a digital signature.

[0074] The reference abstract includes the publisher identity information and the video abstract index, or other information such as video description information, etc. After the reference abstract is determined, it is signed to obtain a digital signature.

[0075] The signing manner includes but is not limited to digital certificate and private key, quantum entanglement technology or other technologies, etc. Taking the signing of the reference abstract by using the digital certificate and the private key as an example, the digital certificate is signed by a widely recognized authority or a digital certificate center, or is signed by a small range accepted digital certificate center, or is a self-signed digital certificate not widely accepted, or is only an asymmetric public key not widely recognized. Of course, the form and source of the digital certificate selected by the publisher will have a corresponding indirect impact on the reliability of the published video stream.

[0076] S14, the reference abstract and the digital signature are spliced to determine the signed reference abstract.

[0077] The signed reference abstract is obtained by splicing the reference abstract and the corresponding digital signature, wherein the splicing of the two can be placing the reference abstract before or after the digital signature.

[0078] S15, the signed reference abstract is encoded into the compressed video stream to determine the target published video.

[0079] The signed reference abstract can be encoded before or after the compressed video stream, etc. The specific position of the encoding is not limited herein. After the signed reference abstract is encoded into the compressed video stream, the target published video is obtained.

[0080] Since the reference abstract and the digital signature included in the signed reference abstract are related to the original video, they change with the change of the video content. Therefore, when the signed reference abstract is encoded, the position of the original video in the video to be published can be combined to process.

[0081] The target published video generation method provided by the embodiment can regard the original video as a sequence of images on continuous video points. Each image has its own unique content, and each image can obtain an invariant through mathematical calculation in terms of its content, that is, the image has an associated invariant. The video can be divided into images to obtain the invariant of the images. The invariant is used for abstract calculation to ensure that the result of the video abstract index is not affected by the outside world and the reliability of the video abstract index is ensured. Meanwhile, the identity information of the publisher is combined to make the published video carry the identity mark of the publisher and have good anti-counterfeiting capability. Since the video content of the published video is publicly accessible and non-encrypted in the public domain, the reliability of the target published video can be ensured without affecting the public access of the published video.

[0082] In some embodiments, Figure 2 A flowchart of another optional embodiment of the target published video generation method is shown in FIG. 6. As shown in FIG. 6, the flow includes the following steps: Figure 2

[0083] S21, obtaining an original video of a compressed encoded video stream and publisher identity information.

[0084] For details, refer to S11 of the embodiment shown in FIG. 1, which will not be repeated here. Figure 1

[0085] S22, performing abstract calculation on the content of the original video to determine a video abstract index.

[0086] Specifically, the above S22 includes:

[0087] S221, performing feature processing on the original video image in the original video to determine a feature processing result.

[0088] S222, determining the feature processing result as the video abstract index.

[0089] In the abstract calculation, the original video image in the original video is processed. The original video includes at least one original video image. When the original video includes at least two original video images, the feature processing can be performed on each original video image, and the feature processing results of the at least two original video images are fused to obtain the feature processing result of the original video. The fusion method includes but is not limited to mean, weighted sum, etc. Alternatively, when the original video includes at least two original video images, only one of them can be extracted as the original video image for feature processing.

[0090] In some embodiments, the above S221 includes: reducing the size of the original video image to a preset size to obtain a thumbnail of the original video to determine the feature processing result.​​

[0091] For example, the first video image in the original video is determined as the original video image for feature processing, the size of the original video image is reduced to a preset size, for example, reduced to a 64*32 thumbnail, thereby obtaining the feature processing result.

[0092] Alternatively, a preset number of original video images are extracted from the original video, the size of each original video image is reduced to a preset size, and then an average thumbnail is obtained by pixel superposition and averaging, and the average thumbnail is determined as the feature processing result. For example, the video images near the 1 / 3 time point, the 2 / 3 time point, and the 3 / 3 time point in the original video are taken as three original video images, the three original video images are respectively made into thumbnails, and then an average thumbnail is obtained by pixel superposition and averaging, thereby determining the feature processing result.

[0093] In some embodiments, the S221 comprises: performing color feature and / or light and dark feature analysis on the original video image, and determining the feature processing result.

[0094] The color feature and / or light and dark feature can be obtained based on part of the area in the original video image, or obtained based on the entire area in the original video image, etc.

[0095] For example, for each original video image, the average division is performed according to 16 horizontal blocks and 9 vertical blocks, the average brightness value of the pixels in the central part of each divided small block is counted to represent the small block, and thus each original video image can be represented by a 16*9 brightness vector; the brightness vectors of all original video images are superimposed and then averaged to obtain a 16*9 brightness vector, thereby determining the feature processing result.

[0096] In some embodiments, the S22 comprises:

[0097] (1) Obtain data of a preset length.

[0098] (2) Perform numerical calculation on the original video image in the original video and the data of the preset length, and determine the video summary index.

[0099] The data of the preset length is auxiliary configuration data, and different configuration data of corresponding length needs to be input for different summary index calculation programs. These configuration data arranged constitute a finite length data column, and the arrangement of one data is a vector. The data of the preset length can be generated by pre-configured data or generated by user selection. The data of the preset length is different with different user selection modes, programs, etc.

[0100] For example, all original video images in the original video are taken as input factors, and data of a preset length is taken as an additional input factor. A fixed operation program is composed by a limited number of data sampling, a limited number of data comparison operations, a limited number of data lookup operations, a limited number of logical operations, a limited number of elementary mathematical calculations, a limited number of linear operations, a limited number of convolution operations, a limited number of spectral analysis operations, a limited number of matrix transformations, a limited number of data block transformations, a limited number of matrix decomposition operations, a limited number of Euclidean space operations such as distance / rotation / similarity, a limited number of Lie algebra operations, a limited number of Riemannian geometry operations, a limited number of hash calculations, a limited number of encryption and decryption operations, a limited number of image encoding and decoding operations, and a limited number of combinations of the above-mentioned calculations / operations, to obtain a limited-dimensional numerical vector, i.e. a group of numbers composed of several numerical values, to obtain a video summary index obtained by numerical calculation of the original video images and data of a preset length.

[0101] It should be noted that the specific manner of numerical calculation is not limited to the above, and other manners can also be used, and the specific manner of data calculation is not limited herein.

[0102] In the calculation process, the data of a preset length can be different according to different use scenarios, so that the calculation of the video summary index can be applied to different use scenarios.

[0103] It should be noted that the above-mentioned manner of determining the video summary index in S22 can be obtained based on one or more of the feature processing results, or can be obtained based on numerical calculation, or can be obtained based on the combination of feature processing results and numerical calculation, etc. Herein, it is not limited, and is set according to actual needs.

[0104] S23, determining a reference summary based on the publisher identity information and the video summary index, and signing the reference summary to obtain a digital signature.

[0105] For details, please refer to Figure 1 S13 of the embodiment shown in the figure, which will not be repeated here.

[0106] S24, splicing the reference summary and the digital signature to determine a signed reference summary.

[0107] For details, please refer to Figure 1 S14 of the embodiment shown in the figure, which will not be repeated here.

[0108] S25, encoding the signed reference summary into a compressed and encoded video stream to determine a target published video.

[0109] For details, please refer to Figure 1 S15 of the embodiment shown in the figure, which will not be repeated here.

[0110] The method for generating a target published video provided by the embodiment determines the feature processing result through the analysis result of the size, color feature or light and dark feature, is simple, fast and effective in calculation, and improves the real-time performance of video publishing.

[0111] Figure 3 is a flowchart illustrating another alternative embodiment of the method for generating a target published video, which includes the following steps as shown in Figure 3 .

[0112] S31, obtaining original video of a compressed and encoded video stream and publisher identity information.

[0113] For details, please refer to S11 of the embodiment shown in Figure 1 , which will not be repeated here.

[0114] S32, performing summary calculation on the content of the original video to determine a video summary index.

[0115] For details, please refer to S22 of the embodiment shown in Figure 2 , which will not be repeated here.

[0116] S33, determining a reference summary based on the publisher identity information and the video summary index, and signing the reference summary to obtain a digital signature.

[0117] Specifically, the above S33 includes:

[0118] S331, obtaining a first reference summary.

[0119] The first reference summary includes the publisher identity information and the calculation description for summary calculation.

[0120] The calculation description for summary calculation includes but is not limited to the name of the calculation program used, the number of original video images used to generate the first reference summary, and the list of configuration parameters required when using the specified calculation program for calculation, etc.

[0121] In some embodiments, the above S331 includes:

[0122] (1) obtaining a video description of the video to be published.

[0123] (2) concatenating the publisher identity information, the video description and the calculation description to determine the first reference summary.

[0124] When the first reference digest is generated, the video description of the video to be published also needs to be combined. The video description includes but is not limited to program title, program duration, program content text introduction, program cover picture, program classification, program related participants, program related contributors, etc. By splicing the publisher identity information, the video description and the calculation description, the first reference digest is obtained. As can be seen, the first reference digest includes some description information, which will not change with the change of the video content without external modification. Therefore, the first reference digest can be stored as a common backup, and when it is needed to be included in the video code stream of the video to be published, the first signature reference digest is obtained by signing it.

[0125] The video description is used to represent some accompanying information of the video, such as video usage range, etc., so as to facilitate the subsequent distribution of the video, etc.

[0126] S332, signing the first reference digest to determine the first signature.

[0127] In this embodiment, the specific way of signing is not limited, for example, the digital certificate and private key are used for signing, and the first signature is obtained after signing the first reference digest.

[0128] S333, determining the video digest index as the second reference digest, and signing the second reference digest to determine the second signature.

[0129] Since the video digest index is obtained by digest calculation using the original video image of the original video, it changes with the change of the original video image. Therefore, it needs to be calculated for each extracted original video image. The video digest index is determined as the second reference digest, and the second signature is determined by signing the second reference digest using the corresponding signature method.

[0130] S34, splicing the reference digest and the digital signature to determine the signature reference digest.

[0131] The first reference digest and the first signature are spliced to obtain the first signature reference digest; the second reference digest and the second signature are spliced to obtain the second signature reference digest.

[0132] S35, including the signature reference digest in the video code stream of the video to be published to determine the target published video.

[0133] The video code stream is the code stream after the video to be published is compressed and encoded.

[0134] Specifically, the above S35 includes:

[0135] S351, encode the second signature reference digest into the target position of each compressed and encoded video stream to obtain a video code stream.

[0136] Each compressed and encoded video stream is the original video used to generate the video digest index, and since the second signature reference digest changes with the original video, i.e., changes over time. Therefore, when encoding the second signature reference digest, the position of the original video from which the second signature reference digest is generated in the video to be published needs to be combined. After determining the position, the second signature reference digest can be encoded into the first frame or the last frame of the compressed and encoded video stream corresponding to the original video to obtain a video code stream.

[0137] S352, encode the first signature reference digest into the target position of the video code stream to determine the target published video.

[0138] As described above, the first reference digest is a common backup, and the first signature reference digest obtained therefrom can be encoded into the first frame or before of the video code stream, etc. For example, the first signature reference digest is encoded into the video code stream every odd time or every N integer remainder 1 time.

[0139] Since it is a common backup, it should not be included in every compressed and encoded video stream, but only once every few compressed and encoded video streams. But it's not just the beginning once, but inserted in the middle or redundantly several times. The advantage of this is that if the total content is very long, it does not need to go back a long time to find this data, but only needs to go back a short time to find it. Since the publisher's identity information and the calculation description used for the digest calculation do not change with the change of the video content, it can be used in the video publishing process, therefore, storing it directly for use when needed can avoid repeated calculation, improving the efficiency of video publishing. Since the first reference digest is a data that remains unchanged for a long time, it is only used for this publishing process, and it is encoded into the target position of the video code stream rather than in every compressed and encoded video stream, which can shorten the data amount of the published video. When all the necessary information is conveyed, the less the data amount is, the better. And since the second signature reference digest changes over time, it is encoded into each compressed and encoded video stream, which improves the reliability of the published video on the basis of shortening the data amount of the published video.

[0140] It should be noted that the encoding time of the first signature reference digest and the second signature reference digest is not limited to the above order, and can be set according to actual needs.

[0141] As a specific application example of the embodiments of the present application, the generated signature reference digest is divided into two categories, one is the first signature reference digest, hereinafter referred to as RA, and the other is the second signature reference digest, hereinafter referred to as RB. Among them, the first reference digest forming RA contains publisher identity information, video description and calculation description for digest calculation; the second reference digest forming RB only contains video digest index.

[0142] For example, JSON is used to organize information and encode into data blocks in RA, or other forms such as XML, or protobuf, or ISOBMFF Box structure, etc. can also be used to organize information and encode into data blocks.

[0143] Taking JSON as an example, the structure of RA is as follows:

[0144]

[0145] As shown in the above structure code, author represents the publisher identity information, in which sn, cn and cert represent the display name, common name and digital certificate respectively, and these three items must be provided and are not allowed to be provided anonymously. Other data items in author are optional. And other data items not conflicting with the above table definition are allowed to be added.

[0146] Video represents video description, and each data item of video description is an optional item. Video description item is allowed to be empty. Other data items not conflicting with the above table definition are allowed to be added.

[0147] Feature represents the calculation description of video digest index, in which program represents the calculation program name used, length represents the image number of a small section of video, and init represents the configuration parameter list needed to be used when using the specified calculation program to calculate. Program must be provided, and length and init are allowed to be empty, and other data items are allowed to be added, which depends on the selected calculation program name.

[0148] An array of feature objects can also be included in RA, and when multiple video digest sub-indices are included in the video digest index, a unique id is needed to be used for each feature object to indicate which video digest sub-index is currently described. When multiple feature objects appear in array form, id is a data item that cannot be omitted.

[0149] sign represents the RA's digital signature, where digest represents the hash algorithm used to calculate the digital signature, and signature represents the calculated digital signature, encoded in Base64. Both digest and signature are required, and sign is mandatory. Available hash algorithms include SHA-256 and SM3.

[0150] Since it is not convenient to store binary data directly in JSON format, all places involving binary data values ​​are encoded using Base64 or any other suitable encoding.

[0151] When calculating the signature, the hash algorithm described in digest is used to calculate the hash code of the RA-encoded data block that has not yet been added to the sign object / data block, or after removing the sign object / data block from the RA-encoded data block. The calculated hash code is then signed using the private key associated with the digital certificate cert in the publisher's identity description and encoded using the Base64 algorithm to form the signature value.

[0152] The private key associated with the cert is confidential and crucial to the publisher's identity, requiring it to be kept securely. According to the X.509 public key cryptography system, because the publisher possesses this private key, which no one else possesses, it is believed that no one other than the publisher can forge a digital signature with consistent encryption within a practically short period of time.

[0153] In RB, JSON, XML, protobuf, or ISOBMFF Box structures are used to organize information and encode it into data blocks. Taking JSON as an example, the specific structure of RB is as follows:

[0154]

[0155] In RB, only feature objects and sign objects are required. The calculation method of sign object is the same as that of RA, and the private key associated with the cert described in RA needs to be used.

[0156] In RB, feature object has id, program, length, init data items as RA does, but program, length and init data items are ignorable. When RB with ignored program, length and init data items is encountered, the feature object in RA can be used to fill in. The biggest difference between feature object in RB and RA is that there is a data item result, which is the video summary index, and the specific calculation method is described in program and init.

[0157] Since the id, program, length, init and other data items of feature object in RA and RB are essentially identical, the following description can be treated without distinction, and the same applies to sign object.

[0158] In this embodiment, the feature object provided can select the calculation model, i.e. the calculation model for summary calculation, and the name program has two selectable models / programs, thumbnail and blocks.

[0159] The index calculation model / program thumbnail calculates the index result by enumerating the picture image to average thumbnail. The configuration parameters of this model are: "init":["thumbnail width", "thumbnail height", "sampling mode"]. Here, thumbnail width is used to configure the pixel width of the thumbnail generated by program thumbnail, thumbnail height is used to configure the final pixel height, and sampling mode can take...-2, -1, 0, 1, 2,... integers to represent the mode of which images are extracted.

[0160] The sampling mode n of the index calculation model / program thumbnail, when n<=0, indicates that the first-n image is taken to generate a thumbnail; when n>0, it indicates that every n-1 original video image is taken to generate a thumbnail, and then an average thumbnail is obtained. For example, when n=1, it indicates that all original video images are taken; when n=2, it indicates that the first one and every other original video image is taken; when n=3, it indicates that the first one and every two original video images are taken. When making an average thumbnail, each thumbnail is added pixel by pixel and then divided by the number of added image frames. The thumbnail is encoded in jpeg to make a data block, and then encoded in Base64 to make the value of the result data item.

[0161] The index calculation model / program blocks divides the picture image into equal blocks by enumeration, and then divides each block into a nine-square grid to take the average brightness of the central small block as the representative. Each picture gets a set of representative brightness of the blocks, and these brightness matrixes are combined into a brightness tensor to make the value of the result data item.

[0162] The index calculation model / program blocks has the following model configuration parameters: "init":["the number of columns of the equal blocks", "the number of rows of the equal blocks", "the sampling mode"]. The "sampling mode" here has the same meaning as that of thumbnail, and is used to describe the mode of extracting the image for calculation from the image group.

[0163] As a specific application example of the above embodiment, the video publishing method includes: shooting 30 color raw images of BT.71 specification with a width of 1920 pixels and a height of 1080 pixels per second, and the data format of the image is YUV420P, which is referred to as a video to be published. The image compression encoding operation is performed on the video to be published. Specifically, for each input YUV420P image of 1920*1080, compression encoding is performed to obtain compressed and encoded frame data. By default, the image frame Slice compressed data block of H.264 is obtained, such as I-Slice frame data block, B-Slice frame data block, P-Slice frame data block, etc.

[0164] When encoding an image, the key image I-Slice compressed data block of H.264 can be specified to obtain the SPS data block and the PPS data block, and the SPS data block, the PPS data block, and the I-Slice compressed data block are spliced together to form a key frame image data block IDR frame data block. For the encoding of the image, the above-mentioned image shooting corresponds, for example, 30 YUV420P color images of 1920*1080 are received per second, and 30 H.264 frame data blocks are output. When the image is encoded, an IDR frame is output every 300th frame data block after outputting a key frame IDR frame.

[0165] When calculating the summary of the raw video image in the raw video, the summary index is calculated according to the index calculation model / program of the above-mentioned blocks. The image is divided into 16 columns and 9 rows of blocks, and the sampling mode is configured as 6, that is, every 6th YUV420 image is taken after every YUV420 image. The length is configured as 30, that is, a video summary index is output after 30 images are input. When calculating the summary, the video summary index is made into an RB.

[0166] When an IDR frame is received, a RA is obtained and the calculation of the digest index module is reset. When a RA or RB digest is obtained, the RA or RB digest is made into a supplemental data block (SEI), and according to the Annex B of the IEC / ISO-14496-10 standard, an SEI NAL Unit containing the signature reference digest is made and output to the data interface of the video stream.

[0167] In particular, in order to prevent the signature reference digest from being semantically confused with any other SEI data block generated by other applications in the made SEI data block, the SEI PayloadType 5, i.e., user_data_unregistered, is used, and a UUID is particularly introduced to be assigned to the signature reference digest for use, which is placed at the first 16 bytes of the SEI data block to guide a signature reference digest.

[0168] For example, the above UUID is defined as le2bc68c-33d2-5ca2-af3b-0b5e5469c7b8.

[0169] When an IDR frame or Slice frame is obtained, a NAL Unit is made according to the Annex B, and output to the data interface of the video stream. When the digest SEI NAL Unit and the IDR frame or Slice frame arrive at the same time, the SEI NAL Unit containing the RA digest is placed in front of the frame NAL Unit, and the SEI NAL Unit containing the RB digest is placed behind the frame NAL Unit.

[0170] The generation method of the target published video provided by the embodiment allows the publisher of the video to publish a signature reference digest-based trusted video to the public domain, which has anti-counterfeiting features and carries the identity mark of the publisher, but at the same time maintains the non-encryption of the public domain, and the video content is publicly accessible. The anti-counterfeiting features of the video mainly include three aspects: first, the video digest index can be calculated from the video content and compared with the index in the signature reference digest; second, the signature reference digest is a reference digest plus its signature, and a person without a private key cannot calculate a new reference digest from a counterfeit video content to generate a qualified signature; and third, the signature reference digest carries a digital certificate indicating the identity of the publisher, and the digital certificate can be managed by an authority. Therefore, the digital certificate is verified to be true, the signature of the reference digest is verified to be true, and the calculated and compared digest indexes have high consistency, so the video must be published by a person holding the valid digital certificate.

[0171] In the embodiment, a video distribution method is provided, which can be used for a video distribution server, a mobile terminal, etc.Figure 4 is a flowchart of a video distribution method according to an embodiment of the present application, as shown in Figure 4 , the flowchart comprises the following steps:

[0172] S41, obtaining a target published video.

[0173] The target published video comprises a signature reference digest and a compressed encoded video stream, the signature reference digest comprises a reference digest and a signature of the reference digest, the reference digest is obtained by splicing a digest calculation result of content of an original video in the compressed encoded video stream and an identity information of a publisher of the published video.

[0174] It should be noted that the target published video here does not particularly refer to a video issued from a video publishing server, but can also be obtained from a video distribution server at a higher level, etc.

[0175] For the generation process of the target published video, please refer to the description above, which will not be repeated here.

[0176] S42, separating the signature reference digest and the compressed encoded video stream from the target published video based on the identification of the signature reference digest.

[0177] The signature reference digest is encoded into the compressed encoded video stream, and the signature reference digest and the compressed encoded video stream are distinguished by using the corresponding identification. For example, the signature reference digest is encoded into the compressed encoded video stream as an SEI field. Therefore, the signature reference digest in the target published video can be determined by using the field.

[0178] The signature reference digest can comprise a plurality of signature reference digests of the same type, or a plurality of signature reference digests of different types. The same type means that the signature reference digests are all obtained based on the content of the original video, for example, the second signature reference digest described above; the different types means that the signature reference digests can be obtained based on the content of the original video, or can be obtained in combination with the identity information of the publisher, for example, the first signature reference digest described above.

[0179] As described above, the signature reference digest can correspond to the compressed encoded video stream, and accordingly, the signature reference digest separated from the target published video has a corresponding relationship with the compressed encoded video stream. For example, for the to-be-published video, according to the requirement of generating the second signature reference digest, the original video of a target duration is extracted from the to-be-published video every preset duration. Continuing with the above example, the to-be-published video is 30 minutes, the preset duration is 5 minutes, and the target duration is 10 seconds, then the to-be-published video is processed as follows:

[0180] To-be-published sub-video 1: represents the video from [0, 5] minutes in the to-be-published video, and after compression encoding, a compressed and encoded video stream 1 is obtained; 10 seconds of original video in the to-be-published sub-video 1 is extracted to generate a second signature reference digest 1;

[0181] To-be-published sub-video 2: represents the video from (5, 10] minutes in the to-be-published video, and after compression encoding, a compressed and encoded video stream 2 is obtained; 10 seconds of original video in the to-be-published sub-video 2 is extracted to generate a second signature reference digest 2;

[0182] To-be-published sub-video 3: represents the video from (10, 15] minutes in the to-be-published video, and after compression encoding, a compressed and encoded video stream 3 is obtained; 10 seconds of original video in the to-be-published sub-video 3 is extracted to generate a second signature reference digest 3;

[0183] By analogy;

[0184] To-be-published sub-video 6: represents the video from (25, 30] minutes in the to-be-published video, and after compression encoding, a compressed and encoded video stream 6 is obtained; 10 seconds of original video in the to-be-published sub-video 6 is extracted to generate a second signature reference digest 6.

[0185] As shown above, the second signature reference digest is one-to-one corresponding to the compressed and encoded video stream, and therefore, the second signature reference digest and the corresponding compressed and encoded video stream can be separated by using the identifier of the second signature reference digest.

[0186] S43, processing the compressed and encoded video stream to obtain a to-be-distributed video with a preset quality of service.

[0187] The preset quality of service includes but is not limited to 8K, 4K, high definition, standard definition, smoothness, etc., and is determined according to actual needs. The compressed and encoded video stream is processed according to the determined preset quality of service to obtain a to-be-distributed video with a preset quality of service. That is, after the processing of this step, for the same compressed and encoded video stream, to-be-distributed videos with different qualities of service can be obtained.

[0188] In some embodiments, the above S43 further includes: verifying the publisher identity information based on the signature reference digest; and when the verification is passed, performing the above S43 step.

[0189] For example, the authenticity of the digital certificate of the publisher identity carried in the signature reference digest can be verified, and a warning can be issued for the false identity digital certificate and a warning information log can be recorded, and further, the further distribution of the untrusted video stream can be prevented.

[0190] Alternatively, the signature in the signature reference digest can be verified, a warning can be issued for a false signature and a warning information log can be recorded, and so on, and further, the further distribution of the untrusted video stream can be prevented.

[0191] In some embodiments, when the video to be distributed at a preset quality of service is obtained, the image of the compressed and encoded video stream can be scanned due to the need to process the compressed and encoded video stream, and the video content can be verified as to whether it meets the preset distribution condition. For the video that does not meet the preset distribution condition, a warning event can be issued and a warning information log can be recorded, and so on. Alternatively, the distribution of the video can be limited, and so on.

[0192] S44, the signature reference digest is incorporated into the video to be distributed, and the target distribution video at a preset quality of service is determined and distributed.

[0193] When the signature reference digest is incorporated into the video to be distributed, reference can be made to the foregoing description of the incorporation of the signature reference digest in the generation of the target distribution video. Alternatively, when the compressed and encoded video stream and the signature reference digest are separated, the position of the signature reference digest is recorded. After the video to be distributed is obtained, the signature reference digest is incorporated into the recorded position, so as to determine the target distribution video. Finally, the target distribution video is distributed to the corresponding terminal.

[0194] In some embodiments, the signature reference digest includes a first signature reference digest and a second signature reference digest, the first signature reference digest includes the identity information of the publisher and the calculation description for the digest calculation, and the second signature reference digest includes the digest calculation result of the content of the original video in the compressed and encoded video stream. The video to be distributed includes a to-be-distributed sub-video corresponding to the compressed and encoded video stream. Based on this, the foregoing S44 includes:

[0195] (1) Incorporate the second signature reference digest into the corresponding to-be-distributed sub-video to obtain the target distribution sub-video at a preset quality of service.

[0196] (2) Splice the target distribution sub-video at a preset quality of service, and incorporate the first signature reference digest into the splicing result to determine and distribute the target distribution video at a preset quality of service.

[0197] It should be noted that the target distribution video includes multiple compressed and encoded video streams, and through the processing of the foregoing steps, each compressed and encoded video stream can obtain a to-be-distributed sub-video at a preset quality of service. Based on the correspondence between the compressed and encoded video stream and the second signature reference digest, the correspondence between the to-be-distributed sub-video and the second signature reference digest can be determined. Based on this, the second signature reference digest is incorporated into the corresponding to-be-distributed sub-video, so as to form the target distribution sub-video at a preset quality of service.

[0198] The target distribution sub-video is spliced to obtain a splicing result; and the first signature reference digest is encoded into the splicing result to obtain the target distribution video. The number of the first signature reference digest to be encoded can be determined according to the length of the splicing result. If the length of the splicing result is relatively long, a plurality of first signature reference digests can be encoded, and the encoding positions of the signature reference digests are distributed in different positions of the splicing result. If the length of the splicing result is relatively short, only one first signature reference digest can be encoded, and so on. The encoding positions of the first signature reference digests are set according to actual requirements, and are not limited herein.

[0199] It should be noted that the first signature reference digest is not limited to being encoded after the splicing result is obtained. The number of the first signature reference digest to be encoded can be determined first, and then the number of the compressed encoded video stream between two adjacent first signature reference digests is determined according to the number of the first signature reference digest to be encoded. Finally, the number of the second signature reference digest to be encoded is counted to determine the encoding position of the first signature reference digest.

[0200] The first signature reference digest represents some description information that does not change with time, and the second signature reference digest is closely related to the video content. Therefore, different encoding methods are adopted for different signature reference digests to reduce the amount of data added to the target distribution video due to the encoding of the signature reference digest while ensuring the reliability of the target distribution video.

[0201] The video distribution method provided in the embodiment carries the signature reference digest in the target distribution video, and the signature reference digest is obtained by digest calculation based on the content of the original video in the compressed encoded video stream. Since an image has its own unique content, i.e., the image has an invariant related thereto, the reliability of the signature reference digest calculated based on the invariant. Meanwhile, the identity information of the publisher is also included in the signature reference digest, which can make the target distribution video obtained finally have the identity mark of the publisher and have good anti-counterfeiting ability, thereby ensuring that the target distribution video obtained with the preset service quality has high reliability.

[0202] As a specific application example of the video distribution method of the embodiment, the video distribution method includes: obtaining a target distribution video of 30 frames per second and a signature reference digest RA or RB, etc., and performing signature reference digest separation processing thereon.

[0203] In the separation processing, by detecting the SEI data block with Payload Type 5 and with the UUID {1e2bc68c-33d2-5ca2-af3b-0b5e5469c7b8} defined in the above embodiment, the signature reference digest is extracted from the SEI data block, and any other video frame data is used for subsequent preset quality of service production.

[0204] In the production of different quality of service videos, each incoming video frame or multiple video frame compressed data needs to be decoded first, and one or more video frame images are output. Thirty decoded 1920x1080 video picture images are obtained per second.

[0205] Each incoming video image is then reduced or enlarged according to the specified configuration and then video compression encoding is performed to output one or more video frame images of different sizes or different video code rates. For example, for an input image size of 1920*1080 video, three small size video compression encodings of 1280*720, 704*576, and 352*288 are obtained after production processing, and then H.264 compression encoding is performed to obtain three compressed video frames.

[0206] After the image is reduced or enlarged, the original video aspect ratio information can be maintained in the encoded video encoding frame or related description information. For example, after a 1920*1080 size image is reduced to a 704*576 size image and encoded, the original video aspect ratio of 16:9 can be described in the encoded frame data.

[0207] In the decoding process, when an IDR frame is received and decoded, the encoding process also synchronously encodes each IDR frame under different sizes / video code rates.

[0208] When a RA is received from the reference digest separation module, it is temporarily stored until the next signature RA arrives. When an IDR frame is received from the image encoding module, the temporarily stored signature RA is first output to the video stream data interface of the corresponding size, and then the IDR frame of the corresponding size is output to the output interface. For example, when a 704*576 size IDR encoded frame is received from the image encoding module, the temporarily stored RA is first output to the 704*576 size video output data interface, and then the 704*576 video encoded frame is output.

[0209] When a non-IDR frame is received from the image encoding module, the video frame is directly output to the corresponding video stream data output interface.

[0210] When receiving an RB, output the RB to the video stream data output interface of all streams.

[0211] When separating the RA or RB, when receiving an RA, first verify the digital certificate in the RA. If the digital certificate carried in the RA is signed by a local trusted CA certificate for playing, confirm the certificate as true. If no valid certificate can be extracted, issue a warning event, record a log and propose to the system to stop the distribution process.

[0212] Alternatively, the value of the CN data field of the real trusted digital certificate can be extracted and compared with the value of the authorcn data field in the RA. If they are not the same or do not have a certain containing relationship, a warning event is issued, a log is recorded and a potential risk is reported.

[0213] Alternatively, the sign object is taken out of the RA and the sign object is deleted in the RA. Then the public key of the publisher is extracted from the digital certificate, the hash algorithm is obtained from the digest data field of the sign object, the hash value is calculated using the hash algorithm on the reference digest data block after the sign object is deleted, the signature data of the sign is decrypted using the public key of the publisher to obtain another hash value. The two hash values are compared. If they are the same, the original signature reference digest is identified as true. Otherwise, a warning event can be issued, a log is recorded and the system is proposed to stop the distribution process.

[0214] When making a preset quality of service video, the video can also be scanned to screen out the video that does not meet the distribution condition. Specifically, when receiving the RA, the author object is extracted, the video object is extracted and relevant records are made. When receiving the original video image, it is sent to the back-end image intelligent processing. When triggering the event of not meeting the distribution condition, records are made and the system is proposed to stop the distribution process or use the recommended image processing method to properly process the image.

[0215] The video distribution method provided in the embodiment does not need to encrypt the content of the video. The video tool or service has the ability to distribute the video content according to different quality of service without reducing the trustworthiness of the video stream. At the same time, the video tool or service has the ability to scan the video content and take necessary supervision measures without reducing the trustworthiness of the video stream.

[0216] In the embodiment, a video playing method is provided, which can be used for a playing terminal, such as a computer, a mobile terminal and the like, Figure 5 The flowchart of the video playing method according to the embodiment of the application is shown in FIG. 1, which includes the following steps: Figure 5 ​

[0217] S51, obtaining a target video.

[0218] The target video includes a signed reference digest and a compressed encoded video stream, the signed reference digest includes a reference digest and a signature of the reference digest, and the reference digest is obtained by splicing the summary calculation result of the content of the original video in the compressed encoded video stream with the publisher identity information of the target distributed video.

[0219] When the target video is a target distribution video, please refer to the above description for the method of generating the target distribution video, which will not be repeated here. When the target video is a target release video, please refer to the above description for the method of generating the target release video, which will not be repeated here.

[0220] S52 , based on the identifier of the signature reference digest, separating the signature reference digest and the compressed encoded video stream from the target video.

[0221] The method of separating the signature reference digest from the target video and compressing the encoded video stream is the same as above. Figure 4 The method of separating the signature reference digest from the target published video and compressing the encoded video stream as described in S42 in the illustrated embodiment is similar and will not be repeated here.

[0222] In some embodiments, the signature reference digest includes a first signature reference digest and a second signature reference digest. The first signature reference digest includes publisher identity information and a calculation description for digest calculation, and the second signature reference digest includes a digest calculation result of the original video content in the compressed encoded video stream. Based on this, the above S52 includes:

[0223] (1) Using the identifier of the first signature reference digest, the first signature reference digest is separated from the target published video.

[0224] (2) Using the identifier of the second signature reference digest, the second signature reference digest and the compressed encoded video stream corresponding to the second signature reference digest are separated from the target published video.

[0225] For the specific contents of the first signature reference digest and the second signature reference digest, please refer to the above description and will not be repeated here.

[0226] For example, a video frame queue is used to process the received target distribution video. When a compressed encoded frame of a video is found, the video frame is placed in the video frame queue. When a second signature reference digest is found, all video frames in the video frame queue are taken out as a compressed encoded video stream within a short period of time.

[0227] Alternatively, the second signature reference digest may be encountered again when the video frame queue is empty. In this case, the length of the compressed encoded video stream is considered to be 0, that is, an empty video stream is obtained.

[0228] When putting video frames into the above-mentioned video frame queue, you can also first decode the compressed video frame to obtain the video frame image, and put the image instead of the compressed encoded data of the video into the video frame. This has the same effect on verifying the authenticity of the video stream.

[0229] The target release video includes two types of signature reference digests, which can be accurately separated from the target release video using their respective corresponding identifiers.

[0230] S53: Decode the compressed coded video stream to determine the decoded video in the compressed coded video stream.

[0231] The compressed coded video stream is sent to a video decoder for decoding to obtain the decoded video in the compressed coded video stream.

[0232] S54 , determining a decoding summary index based on a summary calculation of the content of the decoded video.

[0233] The digest calculation method is consistent with the digest calculation result calculation method.

[0234] For details on how to calculate the summary results, see above. Figure 2 S22 of the illustrated embodiment is described and will not be repeated here.

[0235] For example, when the calculation method of the summary calculation result is to obtain the first thumbnail of 64*32, the first original video image of the decoded video is reduced to the size of 64*32 and used as the decoding summary indicator.

[0236] For example, when the summary calculation result is obtained as three 64*32 enumeration average thumbnails, the three frames of original video images near the 1 / 3, 2 / 3, and 3 / 3 time points in the decoded video are reduced to a size of 64*32, and then the average image is calculated, that is, the pixel-by-pixel average is obtained to obtain an average thumbnail as the decoding summary indicator.

[0237] For example, when the summary calculation result is obtained by specifying the average brightness of the 16*9 blocks of the enumerated image, several images of the specified sequence are taken, each image is evenly divided into 16 blocks horizontally and 9 blocks vertically, and the average brightness of the pixels in the area of ​​about one-fifth of the central part of each divided image block is statistically calculated to represent this block. Therefore, each image taken can be represented by a 16*9 brightness vector, and then this group of representative vectors are superimposed and averaged to form a 16*9 brightness vector, which is used as a decoding summary indicator.

[0238] For example, when the summary calculation result is obtained by calculating the singular value of the average brightness of the 32*18 blocks of the specified enumerated image, the specified series of images are divided into 32*18 equal blocks and the average brightness of the blocks are calculated to obtain a 32*18 numerical matrix. After accumulating the numerical matrix, singular value decomposition is performed, and non-zero singular values ​​are intercepted to form a variable-length vector as a decoding summary indicator.

[0239] For example, the summary calculation result is obtained by specifying the 16*9 block average brightness joint vector of the enumerated image, taking the specified sequence of images to obtain the 16*9 block average brightness numerical matrix, directly concatenating them into a long numerical vector, and making a decoding summary indicator.

[0240] S55, verifying the target video based on the decoded summary indicator and the signature reference summary.

[0241] When verifying the target video, the calculated decoding summary metrics are compared with the video summary metrics, and the differences are recorded. If the difference is large, a warning or relevant record is issued, indicating that the compressed video stream has a certain degree of authenticity.

[0242] In some embodiments, the first signed reference digest includes a first reference digest and a first signature of the first reference digest, and the first reference digest includes the publisher identity information and a calculation description for calculating the digest. Based on this, the above S54 includes:

[0243] (1) Extract the publisher identity information and / or the first signature from the first signature reference digest.

[0244] (2) Verify the publisher's identity information and / or the first signature to determine a verification result of the target video.

[0245] When verifying using the first signature reference digest, the authenticity of the digital certificate and / or the first signature in the publisher's identity information can be verified. When the publisher's digital certificate is obtained, the authenticity of the digital certificate is verified. If authenticity verification is impossible due to missing information, a warning is issued or a record is made indicating that the publisher's identity is questionable.

[0246] When the publisher's digital certificate is not signed by a trusted organization or CA center, a relevant warning will be given or a relevant record will be made, indicating that there are doubts about the authenticity of the publisher's identity.

[0247] When there is no publisher digital certificate, no trusted publisher digital certificate access descriptor is provided, and no trusted publisher identity public key access descriptor is provided, a relevant warning is given or a relevant record is made, indicating that there are doubts about the authenticity of the publisher's identity.

[0248] When the publisher digital certificate is obtained, a verification failure occurs in the process of verifying the digital certificate, a relevant warning is given or a relevant record is made, indicating that the publisher identity authenticity is false and not worth adopting.

[0249] The authenticity of the digital signature is verified using the obtained publisher public key as input to the reference digest data in the signed reference digest except for the signature part, and if the verification fails, a relevant warning is given or a relevant record is made, indicating that the signed reference digest is not authentic and not worth adopting.

[0250] The first signed reference digest includes some description information that does not change with the changes in the images in the video, therefore, the first signed reference digest can be used to represent the overall situation of the target publishing video.

[0251] In some embodiments, the above S54 includes:

[0252] (1) Extract the reference digest in the second signed reference digest to obtain a video digest index, which is a calculation result of the digest of the content of the original video in the compressed encoded video stream.

[0253] (2) Calculate the similarity of the decoded digest index and the video digest index.

[0254] (3) Determine the verification result of the target video based on the size of the similarity.

[0255] For example, when comparing the vector of the decoded digest index and the vector of the video digest index, the absolute difference can be calculated and then averaged, the cosine of the included angle of the two vectors can be calculated, the covariance can be calculated, the correlation coefficient of the two vectors can be calculated, the structural similarity of the two vectors can be calculated, etc.

[0256] Or, for example, when the cosine of the included angle of the two digest index result vectors is close to 1.0, it means that the authenticity of this compressed encoded video stream is very high; when the cosine is close to 0.0, it means that the authenticity of this compressed encoded video stream is very low; when the cosine is > 0.7, it can be judged as good authenticity; when the cosine is < 0.5, it can be judged as poor authenticity.

[0257] When the calculation method of the video digest index is the average thumbnail, the average thumbnail representing the decoded digest index can be compared with the average thumbnail representing the video digest index pixel by pixel, and then the pixel-by-pixel comparison difference is calculated, and the representative area corresponding to the pixel difference > 30% is dyed and displayed in the play for warning and relevant records are made.

[0258] The second signature reference digest is one-to-one corresponding to the compressed video stream, and thus the second signature reference digest can be used to represent the case of the compressed video stream corresponding thereto, so as to determine the verification result of the target video.

[0259] S56, when the verification is passed, playing the decoded video.

[0260] When the verification is passed, it can be determined that the obtained decoded video is a reliable video, and thus the decoded video is played.

[0261] When the verification is not passed, a warning mark can be made in the video image according to the verification result when the decoded video is rendered, for example, displaying a target image, and the like. Herein, it is not limited thereto.

[0262] The video playing method provided by the embodiment carries a signature reference digest in the target published video, and the signature reference digest is obtained by digest calculation based on the content of the original video in the compressed video stream. Since the image has its own unique content, i.e., the image has an invariant related thereto, the reliability of the signature reference digest calculated based on the invariant; meanwhile, the identity information of the publisher is also included in the signature reference digest, so that the target video finally obtained has the identity mark of the publisher, and has good anti-counterfeiting capability. When the target published video is decoded and played, the target published video is verified based on the signature reference digest, so as to ensure the reliability of the decoded video played.

[0263] As a specific application example of the video playing method, the video playing method comprises: obtaining a target video, and separating a signature reference digest and a compressed video stream without the signature reference digest from the target video. For example, obtaining a video frame of 30 frames per second and a signature reference digest RA or RB, and the like, for subsequent separation processing.

[0264] In the separation processing, the signature reference digest data is extracted from the SEI data block with PayloadType of 5 and with the UUID {1e2bc68c-33d2-5ca2-af3b-0b5e5469c7b8} defined in the specific application example, for signature verification. Any other video frame data is used for decoding.

[0265] In the decoding, each input video frame or multiple video frame compression data is decoded, and one or more video frame images are output. For example, 30 video picture images of 1920*1080 after decoding are obtained per second.

[0266] During verification, each time a signature reference digest data block is received from the reference digest separation module, it is determined whether it contains a feature result to determine whether it is RA or RB.

[0267] When an RA is received, the digital certificate in the RA is first verified. If the digital certificate carried in the RA is signed by a local CA certificate that is trusted for playback purposes, the certificate is confirmed to be authentic. Alternatively, the authenticity of the certificate can be confirmed through some trusted method for playback purposes. If the certificate can be confirmed to be authentic and trustworthy, the certificate is authenticated and further identification and verification operations will be enabled. If a valid certificate cannot be extracted, the potential risk is reported to the image rendering module. The image rendering module will issue a warning about this risk in the video display window.

[0268] Optionally, for a genuine and trusted digital certificate, the value of its CN data field is extracted and compared with the value of the author cn data field in the RA. If they are different or there is no certain inclusion relationship, the potential CN impersonation risk is reported to the image rendering module, and the author information in the RA and the CN data field or more data fields of the actual certificate are displayed in the image rendering module to remind the audience of the possible CN impersonation risk.

[0269] Remove the sign object from the signature reference digest data block and delete the sign object from the signature reference digest data block. Then extract the publisher's public key from the digital certificate, obtain the hash algorithm from the digest data field of the sign object, use the hash algorithm to calculate the hash value of the reference digest data block after deleting the sign object, and use the publisher's public key to decrypt the signature data of the sign to obtain another hash value. Compare the two hash values. If they are the same, the original signature reference digest is authenticated. Otherwise, it is a forged reference digest and should not be accepted. A warning will be issued to the image rendering module, and further indicator verification will be terminated until the next RA is encountered.

[0270] When receiving RA, extract the author object and video object, and inform the image rendering module to display appropriately.

[0271] Every time a key frame (IDR) is received, a configured signature reference digest (RA) is also received. This RA allows us to determine whether the received video stream is a video stream with a signature reference digest. If a video stream is received without a signature reference digest, the video stream does not require signature authentication or verification; it only requires digest separation, decoding, and rendering for playback.

[0272] When performing the abstract index verification, the index calculation model / program described in the above example, thumbnail and blocks are used. After the sign configuration in the RA is completed, every time an image is received from the image decoding module, the thumbnail or blocks program configured is used to calculate the data contribution part of the image in a short period of time.

[0273] For example, taking thumbnail as an example, if the sequence number of the current image since the module is reset does not conform to the sampling mode of thumbnail, the image is directly discarded / ignored. If it conforms to the sampling mode, the image is reduced to a specified width and height in a thumbnail by a faster algorithm such as a bilinear method, and is accumulated on a preset floating-point thumbnail base map. This thumbnail base map is created when the thumbnail program is reset and configured. When the sequence number of the received image is the same as the value of feature::length, it indicates that the current short video has been processed, and at this time, the floating-point value of each pixel on the accumulated floating-point thumbnail base map is averaged according to the number of accumulated images, and an integer thumbnail image is arranged. That is, an index result is calculated according to the thumbnail description, but no jpeg compression is performed.

[0274] When the feature result of the RB is received, the image carried in feature::result is Base64 decoded and JPEG decompressed to obtain an integer thumbnail. At this time, the thumbnail obtained by the above calculation is compared with the current decompressed thumbnail pixel by pixel, and when the pixel difference is greater than 50%, the pixel is marked as not real (value 2), when the pixel difference is greater than 30%, the pixel is marked as possibly not real (value 1), and when the pixel difference is less than 30%, the pixel is marked as acceptable (value 0). In this way, a real score thumbnail is obtained. The abstract index verification module sends the real score thumbnail to the image rendering module to guide the image rendering module to perform dyeing according to the score on the video picture currently being played / rendered. At the same time, all scores are accumulated and then divided by the total number of pixels of the thumbnail to obtain a comprehensive score. When the comprehensive score is 2, it indicates that it is not real, when the comprehensive score is 1, it indicates that it is possibly not real, and when the comprehensive score is 0, it indicates that the real degree is acceptable. The comprehensive score is reported to the image rendering module.

[0275] When a complete index verification is completed, that is, after the feature result of the RB is received and the verification report is completed, the calculation parameters are immediately cleaned up to prepare for the index calculation of the next batch of decoded videos.

[0276] When the blocks program configured is encountered, the calculation is performed in a similar manner to thumbnail, and a dyeing guide map and a comprehensive score are obtained to perform subsequent image rendering and display.

[0277] After the rendering of the obtained authenticity information and the image and the like, the audience of the video can directly learn about the possible untrustworthy behavior of the video during the playing of the video.

[0278] During the rendering, the following image can be drawn on the video drawing window:

[0279] When receiving an author object, the content in the author object is properly displayed, such as the name and unit of the publisher;

[0280] When receiving an author object with a digital certificate warning, the warning is properly displayed in a prominent manner, and optionally, the playing screen is colored with a high-deception warning;

[0281] When receiving an index verification result, that is, a coloring guide and a comprehensive score, the playing video is colored according to the coloring guide, and the comprehensive score is properly recorded, or a deceptive warning sign is pasted on the video.

[0282] The video playing method provided in the embodiment plays a trusted video based on a signed reference digest, traces the publisher of the video during playing, and identifies and warns about the authenticity of the video stream. When playing such a video, the player not only confirms the identity of the publisher of the video, but also confirms the degree to which the video may be tampered with and thus loses the value of the commitment of the publisher. When playing the confirmed high-reliability video content using the method, the real intention of the publisher when publishing the video can be confirmed.

[0283] In the embodiment, a video distribution device is also provided, which is used to implement the above-described embodiments and preferred embodiments, and will not be described again. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, implementation of hardware, or a combination of software and hardware, is also possible and contemplated.

[0284] The embodiment provides a video distribution device, as shown in Figure 6 The device includes:

[0285] The acquisition module 61 is configured to acquire a target published video, wherein the target published video includes a signed reference digest and a compressed and encoded video stream, the signed reference digest includes a reference digest and a signature of the reference digest, and the reference digest is obtained by splicing an authentication information of a publisher of the published video and a result of digest calculation of content of an original video in the compressed and encoded video stream.

[0286] a separating module 62, configured to separate the signature reference digest and the compressed encoded video stream from the target published video based on the identification of the signature reference digest;

[0287] a processing module 63, configured to process the compressed encoded video stream to obtain a preset quality of service (QoS) video to be distributed;

[0288] a determining module 64, configured to encode the signature reference digest into the video to be distributed, and determine and distribute a target distribution video of the preset QoS.

[0289] In some embodiments, the signature reference digest includes a first signature reference digest and a second signature reference digest, the first signature reference digest includes the publisher identity information and a calculation description for the digest calculation, the second signature reference digest includes a digest calculation result of content of an original video in the compressed encoded video stream, and the video to be distributed includes a to-be-distributed sub-video corresponding to the compressed encoded video stream in one-to-one correspondence, and the determining module 64 includes:

[0290] a first encoding unit, configured to encode the second signature reference digest into the corresponding to-be-distributed sub-video to obtain a target distribution sub-video of the preset QoS;

[0291] a second encoding unit, configured to splice the target distribution sub-video of the preset QoS, and encode the first signature reference digest into the splicing result to determine and distribute the target distribution video of the preset QoS.

[0292] In some embodiments, the apparatus further includes:

[0293] a verifying module, configured to verify the publisher identity information based on the signature reference digest;

[0294] a performing module, configured to perform the step of processing the compressed encoded video stream to obtain the to-be-distributed sub-video of the preset QoS when the verification is passed.

[0295] In some embodiments, the target published video generation apparatus includes:

[0296] a video acquisition module, configured to acquire an original video of the compressed encoded video stream and the publisher identity information;

[0297] a calculation module, configured to perform digest calculation on content of the original video to determine a video digest index;

[0298] a signature module, configured to determine a reference digest based on the publisher identity information and the video digest index, and to sign the reference digest to obtain a digital signature;

[0299] splicing module, configured to splice the reference digest and the digital signature to determine a signed reference digest;

[0300] incorporating module, configured to incorporate the signed reference digest into the compressed and encoded video stream to determine the target published video.

[0301] In some embodiments, the signing module comprises:

[0302] a first obtaining unit, configured to obtain a first reference digest, the first reference digest comprising the publisher identity information and a computation description for the digest computation;

[0303] a first signing unit, configured to sign the first reference digest to determine a first signature;

[0304] a second signing unit, configured to determine the video digest indicator as a second reference digest, and sign the second reference digest to determine a second signature.

[0305] In some embodiments, the first obtaining unit comprises:

[0306] an obtaining subunit, configured to obtain a video description of the video to be published;

[0307] a splicing subunit, configured to splice the publisher identity information, the video description and the computation description to determine the first reference digest.

[0308] In some embodiments, the incorporating module comprises:

[0309] a third incorporating unit, configured to incorporate a second signed reference digest into a target position of each of the compressed and encoded video streams to obtain a video code stream, the second signed reference digest being obtained by splicing the second reference digest and the second signature;

[0310] a fourth incorporating unit, configured to incorporate the first signed reference digest into a target position of the video code stream to determine the target published video, the first signed reference digest being obtained by splicing the first reference digest and the first signature.

[0311] The video distribution apparatus in the present embodiment is presented in the form of functional units, where the units refer to ASIC circuits, processors and memories executing one or more software or fixed programs, and / or other devices that can provide the above functions.

[0312] Further function descriptions of the above-mentioned modules are the same as those of the corresponding embodiments, and will not be repeated here.

[0313] The present embodiment also provides an electronic device having the aboveFigure 6 The video distribution apparatus shown.

[0314] Please refer to Figure 7 , Figure 7 is a structural schematic diagram of an electronic device provided by an optional embodiment of the present application, as Figure 7 shown, the electronic device can include at least one processor 71, such as a CPU (Central Processing Unit), at least one communication interface 73, a memory 74, and at least one communication bus 72. The communication bus 72 is used to realize the connection and communication between the components. The communication interface 73 can include a display, a keyboard, and the optional communication interface 73 can also include a standard wired interface and a wireless interface. The memory 74 can be a high-speed RAM memory (Random Access Memory) or a non-volatile memory, such as at least one disk memory. The memory 74 can also be at least one storage device located away from the aforementioned processor 71. The processor 71 can be combined with Figure 6 the apparatus described in the description, the memory 74 stores an application program, and the processor 71 invokes the program code stored in the memory 74 to execute any of the above method steps.

[0315] The communication bus 72 can be a PCI (peripheral component interconnect) bus or an EISA (extended industry standard architecture) bus, etc. The communication bus 72 can be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, Figure 7 only one thick line is used in the figure, but it does not mean that there is only one bus or only one type of bus.

[0316] The memory 74 can include a volatile memory, such as a random-access memory (RAM); the memory can also include a non-volatile memory, such as a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); the memory 74 can also include a combination of the above types of memories.

[0317] The processor 71 can be a central processing unit (CPU), a network processor (NP), or a combination of CPU and NP.

[0318] The processor 71 can further include a hardware chip. The hardware chip can be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD can be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0319] Optionally, the memory 74 is further configured to store program instructions. The processor 71 can invoke the program instructions to implement the video distribution method as shown in any embodiment of the present application.

[0320] The embodiments of the present application further provide a non-transitory computer storage medium storing computer executable instructions. The computer executable instructions can implement the video distribution method in any method embodiment described above. The storage medium can be a disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory, a Hard Disk Drive (HDD), a Solid-State Drive (SSD), or the like. The storage medium can also include a combination of the above-mentioned storage media.

[0321] Although the embodiments of the present application are described in conjunction with the accompanying drawings, various modifications and changes can be made by those skilled in the art without departing from the spirit and scope of the present application, and such modifications and changes are intended to fall within the scope of the appended claims.

Claims

1. A video distribution method, characterized in that: include: Obtain a target published video, the target published video including a signed reference digest and a compressed encoded video stream, the signed reference digest including a reference digest and a signature of the reference digest, the reference digest being obtained by concatenating a digest calculation result of the content of the original video in the compressed encoded video stream with the publisher identity information of the target published video; the signed reference digest including a first signed reference digest and a second signed reference digest, the first signed reference digest including the publisher identity information and a calculation description for calculating the digest, and the second signed reference digest including a digest calculation result of the content of the original video in the compressed encoded video stream; Separating the first signature reference digest, the second signature reference digest, and the compressed encoded video stream from the target published video based on the identifiers of the first signature reference digest and the second signature reference digest; Performing preset quality of service processing on the compressed and encoded video stream to obtain a video to be distributed with the preset quality of service; The first signature reference digest and the second signature reference digest are compiled into the video to be distributed, and the target distribution video with the preset service quality is determined and distributed.

2. The method according to claim 1, characterized in that The video to be distributed includes sub-videos to be distributed corresponding to the compressed encoded video streams one by one, and the step of incorporating the first signature reference digest and the second signature reference digest into the video to be distributed, and determining and distributing the target distribution video with the preset quality of service includes: Incorporating the second signature reference digest into the corresponding sub-video to be distributed to obtain the target distribution sub-video with the preset service quality; The target distribution sub-videos of the preset service quality are spliced ​​together, and the first signature reference digest is incorporated into the splicing result, and the target distribution video of the preset service quality is determined and distributed.

3. The method according to claim 1, characterized in that Before the step of performing the preset service quality processing on the compressed coded video stream to obtain the video to be distributed with the preset service quality, the method further includes: Verifying the publisher identity information based on the signature reference digest, and / or scanning an image in the compressed and encoded video stream to verify whether a preset distribution condition is satisfied; When the verification is passed, the step of performing a preset quality of service processing on the compressed and encoded video stream to obtain a video to be distributed with the preset quality of service is executed.

4. The method according to claim 1, wherein The method for generating the target release video includes: Obtaining the original video of the compressed encoded video stream and the publisher identity information; Performing summary calculation on the content of the original video to determine a video summary index; Determining a reference summary based on the publisher identity information and the video summary indicator, and signing the reference summary to obtain a digital signature; Concatenate the reference digest and the digital signature to determine a signature reference digest; The signed reference digest is encoded into the compressed encoded video stream to determine the target published video.

5. The method according to claim 4, characterized in that The determining a reference summary based on the publisher identity information and the video summary indicator, and signing the reference summary to obtain a digital signature, includes: Obtaining a first reference digest, the first reference digest including the publisher identity information and a calculation description used for calculating the digest; Signing the first reference digest to determine a first signature; The video summary indicator is determined as a second reference summary, and the second reference summary is signed to determine a second signature.

6. The method according to claim 5, characterized in that The obtaining of the first reference digest includes: Get the video description of the video to be published; The publisher identity information, the video description, and the calculation description are concatenated to determine the first reference summary.

7. The method according to claim 5, characterized in that The step of encoding the signature reference digest into the compressed encoded video stream to determine the target published video comprises: Encoding the second signature reference digest into the target position of each compressed and encoded video stream to obtain a video stream, wherein the second signature reference digest is obtained by concatenating the second reference digest and the second signature; The first signature reference digest is encoded into a target position of the video stream to determine a target published video, wherein the first signature reference digest is obtained by concatenating the first reference digest and the first signature.

8. A video distribution device, characterized in that: include: An acquisition module is configured to acquire a target published video, wherein the target published video includes a signed reference digest and a compressed encoded video stream, the signed reference digest including a reference digest and a signature of the reference digest, the reference digest being obtained by concatenating a digest calculation result of the content of the original video in the compressed encoded video stream with the publisher identity information of the target published video; the signed reference digest includes a first signed reference digest and a second signed reference digest, the first signed reference digest including the publisher identity information and a calculation description for calculating the digest, and the second signed reference digest including a digest calculation result of the content of the original video in the compressed encoded video stream; a separation module, configured to separate the first signature reference digest, the second signature reference digest, and the compressed encoded video stream from the target published video based on the identifiers of the first signature reference digest and the second signature reference digest; a processing module, configured to process the compressed and encoded video stream with a preset quality of service to obtain a video to be distributed with the preset quality of service; The determination module is configured to incorporate the first signature reference digest and the second signature reference digest into the video to be distributed, and determine and distribute the target distribution video with the preset quality of service.

9. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the video distribution method according to any one of claims 1 to 7 by executing the computer instructions.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the video distribution method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Verification method, system and device for validity of multimedia contents

    CN101296148A

  • Video file publishing method and device

    CN101420452A