Video stitching and aggregating system

Through the video out-of-order splicing function and watermark technology of the video splicing aggregation system, the problem of rights protection for spliced ​​videos is solved, the encrypted transmission of videos and the identification of the original author are realized, ensuring the security of original works.

CN118590715AActive Publication Date: 2024-09-03SHAANXI GUANGXIN NEW MEDIA CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411060694.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-05
Publication Date
2024-09-03
Estimated Expiration
2044-08-05

AI Technical Summary

Technical Problem

After the spliced ​​video is uploaded to the platform, the spliced ​​video is regarded as an original work and uploaded to other platforms, and the rights and interests of the original author are difficult to protect.

Method used

Design a video splicing aggregation system. By constructing a video out-of-order splicing function and a hidden watermark, it ensures that the spliced ​​video is accompanied by a video out-of-order splicing function when uploaded, and inserts the creator information watermark into the video to prevent unauthorized dissemination and identify the original author. .

Benefits of technology

It effectively avoids unauthorized dissemination of spliced ​​videos, protects the copyright of creators to the greatest extent, ensures that the identity of the original author can be identified, and realizes encrypted transmission of videos during the video dissemination process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118590715A
    Figure CN118590715A
Patent Text Reader

Abstract

The invention is applicable to the technical field of video processing, and particularly relates to a video stitching and aggregating system, which comprises a video stitching module for determining a stitching sequence of videos to be processed and performing stitching to obtain a video stitching video; the function construction module is used for counting the number of picture frames and constructing a video out-of-order splicing function; the picture arrangement module is used for importing a first preset independent variable sequence to obtain a first dependent variable sequence, and determining the sequence of each picture frame in the spliced video based on the first dependent variable sequence to obtain an out-of-order video; and the watermark adding module is used for importing a second preset independent variable sequence to obtain a second dependent variable sequence, inserting a preset watermark and storing an out-of-order video and a video out-of-order splicing function. According to the method, the hidden watermark is constructed, and the watermark can be identified under the condition that the spliced video is edited or edited, so that the identity of the creator is determined, and the copyright of the creator is protected to the greatest extent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of video processing, and in particular relates to a video splicing and aggregation system. Background Art

[0002] Video stitching is the process of combining two or more video clips into one continuous video. This process can be done using a variety of video editing software or online tools.

[0003] In the prior art, many creators aggregate multiple video works into a spliced ​​video by editing and splicing. However, after the spliced ​​video is uploaded to the platform, it is often uploaded to other platforms as an original work, and the rights and interests of the original creators cannot be guaranteed. Summary of the invention

[0004] The purpose of the present invention is to provide a video splicing aggregation system, which aims to solve the problem that after the spliced ​​video is uploaded to the platform, the spliced ​​video is often uploaded to other platforms as an original work, and the rights and interests of the original author cannot be guaranteed.

[0005] The present invention is implemented as follows: a video splicing and aggregation system, the system comprising: A video splicing module is used to obtain the videos to be processed, determine the splicing order of the videos to be processed, and splice the videos to be processed based on the splicing order to obtain a spliced ​​video; A function construction module is used to count the number of picture frames contained in each video to be processed, and to construct a video random sequence splicing function based on the number of picture frames; A picture arrangement module, used for importing a first preset independent variable sequence into the video random order splicing function to obtain a first dependent variable sequence, and determining the order of each picture frame in the spliced ​​video based on the first dependent variable sequence to obtain a random order video; The watermark adding module is used to import a second preset independent variable sequence into the video random sequence splicing function to obtain a second dependent variable sequence, insert a preset watermark based on the second dependent variable sequence, and store the random sequence video and the video random sequence splicing function.

[0006] Preferably, the function building module includes: The video segment numbering unit is used to number each video to be processed, and when numbering, the videos to be processed are numbered consecutively according to the splicing order of the videos to be processed; A coordinate construction unit, used to determine the number of picture frames contained in each video to be processed, and to construct video information coordinates according to the number of the video to be processed and the corresponding number of picture frames, wherein the horizontal coordinate of the video information coordinate is the number of the video to be processed, and the vertical coordinate of the video information coordinate is the corresponding number of picture frames; The function fitting unit is used to perform function fitting according to a preset function type, select a fitting result with the highest fitting accuracy, and obtain a video random sequence splicing function.

[0007] Preferably, the picture arrangement module includes: A data acquisition unit, used to retrieve a preset first preset independent variable sequence, wherein the first preset independent variable sequence is a natural number sequence, and the natural numbers contained in the natural number sequence are arranged in ascending order; A picture frame numbering unit, used for serially numbering each picture frame in the spliced ​​video, importing a first preset independent variable sequence into the video random splicing function, and generating a first dependent variable sequence; The picture reorganization unit is used to generate a picture order mapping table according to the first dependent variable sequence, and rearrange each picture frame based on the picture order mapping table to obtain a disordered video.

[0008] Preferably, the watermark adding module includes: A data retrieving unit, used to retrieve a second preset independent variable sequence, and import the second preset independent variable sequence into the video shuffle splicing function to obtain a second dependent variable sequence; A picture frame selection unit, used to extract multiple dependent variables from the second dependent variable sequence, determine the picture frame number to be inserted with the watermark based on the dependent variables, generate the watermark based on the real-time time value, and retrieve the picture frame to be inserted with the watermark; The watermark processing unit is used to identify the pixel information contained in each channel of the picture frame, determine the color information of the watermark, insert it into the corresponding picture frame, and store the disordered video and the video disordered splicing function.

[0009] Preferably, when the out-of-order video is used, a video out-of-order splicing function is first imported, and the out-of-order video is restored to a spliced ​​video based on the video out-of-order splicing function.

[0010] Preferably, the watermark includes time information and creator information.

[0011] Preferably, the frame rate and resolution of the videos to be processed are the same. If the frame rate or resolution of the videos to be processed are inconsistent, frame rate alignment processing and resolution alignment processing are performed on them.

[0012] Preferably, the watermark is composed of a plurality of monochrome pixels.

[0013] The present invention provides a video splicing aggregation system, which converts the spliced ​​video into a random video by constructing a randomly generated video random splicing function. When uploading the spliced ​​video to a video platform, the video random splicing function is uploaded together to avoid unauthorized dissemination of the spliced ​​video. In addition, by constructing a secret watermark, the watermark can be identified when the spliced ​​video is edited or edited, thereby determining the identity of the creator and protecting the creator's copyright to the greatest extent. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 A flowchart of a video splicing and aggregation method provided by an embodiment of the present invention; Figure 2 A flowchart of the steps of counting the number of picture frames contained in each video to be processed and constructing a video out-of-order splicing function based on the number of picture frames provided by an embodiment of the present invention; Figure 3 A flowchart of the steps of importing a first preset independent variable sequence into a video shuffle splicing function to obtain a first dependent variable sequence, determining the order of each picture frame in the spliced ​​video based on the first dependent variable sequence, and obtaining a shuffled video provided by an embodiment of the present invention; Figure 4 A flowchart of the steps of importing a second preset independent variable sequence into a video shuffle splicing function to obtain a second dependent variable sequence, inserting a preset watermark based on the second dependent variable sequence, storing shuffled videos and a video shuffle splicing function provided by an embodiment of the present invention; Figure 5 An architecture diagram of a video splicing and aggregation system provided by an embodiment of the present invention; Figure 6 An architecture diagram of a function building module provided by an embodiment of the present invention; Figure 7 An architectural diagram of a picture arrangement module provided by an embodiment of the present invention; Figure 8 An architectural diagram of a watermark adding module provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0015] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0016] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but unless otherwise specified, these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first xx script may be referred to as a second xx script, and similarly, a second xx script may be referred to as a first xx script.

[0017] like Figure 1 As shown, a video splicing and aggregation method provided by an embodiment of the present invention includes: S100, obtaining videos to be processed, determining a splicing order of the videos to be processed, and splicing the videos to be processed based on the splicing order to obtain a spliced ​​video.

[0018] In this step, obtain the video to be processed, obtain all the videos to be processed that need to be spliced ​​and aggregated. For example, if four edited videos to be processed, such as A, B, C and D, need to be spliced ​​into one, then import the above four videos to be processed, and determine the splicing order of the multiple videos to be processed according to the editing order. If the splicing order is BDCA, then according to the above splicing order, use the editing software to merge the above videos to be spliced ​​into a whole to obtain a spliced ​​video. During the processing, it is necessary to first adjust the resolution and frame rate of each video to be processed to be consistent.

[0019] S200, counting the number of picture frames contained in each video to be processed, and constructing a video out-of-order splicing function based on the number of picture frames.

[0020] In this step, the number of picture frames contained in each video to be processed is counted, and each video to be processed is traversed, and the number of picture frames contained in each video to be processed is counted frame by frame. For example, the number of picture frames contained in video A to be processed is 1000, and the number of picture frames contained in video B to be processed is 2000. The number of each video to be processed and the corresponding number of picture frames are determined, so as to construct a series of coordinates, and function fitting is performed according to the series of coordinates to obtain a set of functions, which are used as the video random splicing function, and all the pictures in the entire spliced ​​video are shuffled according to the video random splicing function.

[0021] S300, importing a first preset independent variable sequence into a video random sequence splicing function to obtain a first dependent variable sequence, and determining the order of each picture frame in the spliced ​​video based on the first dependent variable sequence to obtain a random sequence video.

[0022] In this step, a first preset independent variable sequence is imported into the video shuffle splicing function. The first preset independent variable sequence is a preset natural number sequence, which includes a plurality of natural numbers. A large number of calculated values ​​can be generated by substituting the natural numbers into the video shuffle splicing function one by one. All calculated values ​​generated based on natural numbers lower than the preset independent variable sequence constitute a first dependent variable sequence. The calculated values ​​in the first dependent variable sequence are converted into a plurality of sets of picture sequence mapping tables based on preset data conversion rules. The arrangement order of each picture frame in the spliced ​​video can be determined according to the picture sequence mapping table, thereby completing the reorganization of each picture frame to obtain a shuffled video.

[0023] S400, importing a second preset independent variable sequence into the video shuffle splicing function to obtain a second dependent variable sequence, inserting a preset watermark based on the second dependent variable sequence, and storing the shuffled video and the video shuffle splicing function.

[0024] In this step, a second preset independent variable sequence is imported into the video shuffle splicing function. Both the second preset independent variable sequence and the first preset independent variable sequence contain multiple natural numbers, but the natural numbers contained in the two are different. The second dependent variable sequence can be obtained based on the second preset independent variable sequence and the video shuffle splicing function. The picture frames where watermarks need to be inserted are selected according to the second dependent variable sequence, so that the watermarks containing time information and creator information are added to the corresponding picture frames, thereby obtaining a shuffled video with a watermark added. The shuffled video and the video shuffled splicing function are stored at the same time. When the creator uploads the video, the shuffled video and the video shuffled splicing function are uploaded to the video platform synchronously. The video platform restores the shuffled video to a spliced ​​video based on the video shuffled splicing function for playback. In this process, encrypted transmission of the video is realized, and the arbitrary dissemination of the video is avoided. Due to the hidden watermark added to the video, the identity of the original author can be determined by using the hidden watermark during the video dissemination process.

[0025] like Figure 2 As shown, as a preferred embodiment of the present invention, the step of counting the number of picture frames contained in each video to be processed and constructing a video random order splicing function based on the number of picture frames includes: S201, numbering each to-be-processed video, and when numbering, numbering them consecutively according to the splicing order of the to-be-processed videos.

[0026] In this step, each video to be processed is numbered. Specifically, the numbering is performed according to the order in which the videos are spliced. For example, if four edited videos to be processed, A, B, C and D, are spliced ​​into one, and the splicing order is BDCA, then the four videos to be processed, B, D, C and A, are numbered 1, 2, 3 and 4 respectively.

[0027] S202, determine the number of picture frames contained in each video to be processed, and construct video information coordinates according to the number of the video to be processed and the corresponding number of picture frames, wherein the horizontal coordinate of the video information coordinate is the number of the video to be processed, and the vertical coordinate of the video information coordinate is the corresponding number of picture frames.

[0028] In this step, the number of picture frames contained in each video to be processed is determined. By counting each video to be processed frame by frame, the number of picture frames contained in each video to be processed can be determined. For example, the number of picture frames contained in the video to be processed numbered 1 is W1, the number of picture frames contained in the video to be processed numbered 2 is W2, and the number of picture frames of the nth video to be processed is Wn. Then, the constructed video information coordinates are (n, Wn), where n is the number of the video to be processed, and Wn is the number of picture frames. Then, there are as many groups of video information coordinates as there are groups of videos to be processed.

[0029] S203, performing function fitting according to a preset function type, selecting a fitting result with the highest fitting accuracy, and obtaining a video random sequence splicing function.

[0030] In this step, function fitting is performed according to a preset function type. Function fitting is performed based on multiple preset function types, including polynomial function, trigonometric function, power function and exponential function, etc. Fitting is performed according to the above preset function types to obtain multiple fitting results. Least squares method can also be used for fitting to obtain fitting results. The accuracy of each fitting result is verified to select a fitting result with the highest fitting accuracy as the video random order splicing function. Specifically, taking the video information coordinates (1, 2500), (2, 4800), (3, 3500) and (4, 4200) as an example, a fifth-order polynomial function fitting is performed, and the fitting result is y=-3366.5+6931.79x-613.167x 2 -434.721x 3 -40.1541x 4 +27.1002x 5 If the fitting is performed through Matlab, the fitting code example is as follows: % Define coordinate data x = [1, 2, 3, 4]; y = [2500, 4800, 3500, 4200]; % Use polyfit for quadratic fitting p = polyfit(x, y, 2); % Calculate the y value of the fitting curve y_fit = polyval(p, x); % Display the coefficients of the fitting curve disp(['The equation of the fitting curve is: y = ', num2str(p(1)), 'x^2 + ', num2str(p(2)), 'x + ', num2str(p(3))]); % Calculate and display the fitting error for each point errors = abs(y - y_fit); disp('Fitting error at each point:'); disp(errors'); % Draw the original data points and the fitted curve figure; plot(x, y, 'o', 'MarkerSize', 10, 'LineWidth', 2, 'DisplayName', 'Data Points'); hold on; x_fit = linspace(min(x), max(x), 100); % Generate more x points to smooth the curve y_fit_smooth = polyval(p, x_fit); plot(x_fit, y_fit_smooth, '-', 'Color', 'r', 'LineWidth', 2, 'DisplayName', 'Quadratic Fit'); xlabel('X'); ylabel('Y'); title('Quadratic Fit using Least Squares Method'); legend('show'); grid on; By fitting, icons of various fitting results and corresponding expressions can be obtained, and by performing precision verification, the most matching video shuffle splicing function can be determined.

[0031] like Figure 3 As shown, as a preferred embodiment of the present invention, the step of importing a first preset independent variable sequence into the video shuffle splicing function to obtain a first dependent variable sequence, determining the order of each picture frame in the spliced ​​video based on the first dependent variable sequence, and obtaining the shuffled video comprises: S301, calling a preset first preset independent variable sequence, wherein the first preset independent variable sequence is a natural number sequence, and the natural numbers contained in the natural number sequence are arranged in ascending order.

[0032] In this step, the preset first preset independent variable sequence is called. In fact, the first preset independent variable sequence and the second preset independent variable sequence are both natural number sequences, but the natural numbers contained in the two are different. Specifically, the first preset natural number sequence can be an odd natural number starting from 1, that is, 1, 3, 5, 7 and other natural numbers, and the second preset natural number sequence can be an even natural number starting from 2, that is, 2, 4, 6, 8 and other natural numbers. The natural numbers contained in the first preset independent variable sequence and the second preset independent variable sequence are both arranged in ascending order.

[0033] S302, consecutively numbering each picture frame in the spliced ​​video, importing a first preset independent variable sequence into a video random sequence splicing function, and generating a first dependent variable sequence.

[0034] S303, generating a picture order mapping table according to the first dependent variable sequence, and rearranging each picture frame based on the picture order mapping table to obtain a disordered video.

[0035] In this embodiment, each picture frame in the spliced ​​video is numbered consecutively, starting from the first picture frame, the first picture frame is numbered 1, the second picture frame is numbered 2, the third picture frame is numbered 3, the fourth picture frame is numbered 4, and so on, to obtain the original picture frame coding sequence, the first preset independent variable sequence is imported into the video random order splicing function, the number of odd natural numbers imported into the video random order splicing function is the same as the total number of picture frames contained in the spliced ​​video, each time an odd natural number is imported, a calculation value can be generated through the video random order splicing function, and the calculation value feature is intercepted. The numbers at a certain position, such as processing the calculated values ​​so that the number of numbers contained in each calculated value is the same, such as the number of numbers contained in each calculated value is 10, the numbers exceeding the number are deleted, and the positions less than the number are added with preset numbers, such as 283124528823, delete 28, 23129848, then add 2223129848, where 2 is the preset number. By processing, each calculated value can be converted into a mapping value. Taking the video random splicing function as an example, y=-3366.5+6931.79x-613.167x 2 -434.721x 3 -40.1541x 4 +27.1002x 5, substitute the number 1 of the first picture frame into it, get the calculated value 2504.3481, remove the decimal point, add the preset number, supplement to 10 digits, get 2225043481, that is, the mapping value corresponding to the picture frame numbered 1 is 2225043481, and determine the mapping value corresponding to each picture frame accordingly, sort the mapping values ​​by size, and thus determine the size code of each mapping value. For example, there are 10,000 picture frames in total, and the size code of the mapping value corresponding to the picture frame numbered 1 is 7892. Based on this, determine the size code of each mapping value, and generate a picture sequence mapping table. The picture sequence mapping table records the number, mapping value and size code of each picture frame, sort each picture frame according to the size code, and arrange the picture frames in ascending order based on the size code, so as to reorganize the video according to the arrangement order, and obtain a disordered video. In this disordered video, the picture frames in each video to be processed are intertwined with each other. Although it can be played, the displayed picture is disordered, and the video content cannot be obtained normally.

[0036] like Figure 4 As shown, as a preferred embodiment of the present invention, the steps of importing a second preset independent variable sequence into the video shuffle splicing function to obtain a second dependent variable sequence, inserting a preset watermark based on the second dependent variable sequence, and storing the shuffled video and the video shuffle splicing function include: S401, retrieve a second preset independent variable sequence, and import the second preset independent variable sequence into a video shuffle splicing function to obtain a second dependent variable sequence.

[0037] In this step, the second preset independent variable sequence is called, and the second preset independent variable sequence is an even natural number. It is directly imported into the video shuffle splicing function. For example, continuous even natural numbers such as 2, 4, 6 and 8 are imported into the video shuffle splicing function, which will generate a series of calculated values. The number of imported even natural numbers is determined according to the total number M of picture frames contained in the spliced ​​video. Specifically, the number of imported even natural numbers is pM, wherein p is the preset ratio of picture frames to which watermarks are added. Importing pM even natural numbers into the video shuffle splicing function will generate pM dependent variables (calculated values). All dependent variables together constitute the second dependent variable sequence, and the dependent variables in the second dependent variable sequence are arranged in the order of generation.

[0038] S402, extracting multiple dependent variables from the second dependent variable sequence, determining the picture frame number for inserting watermark based on the dependent variables, generating a watermark based on the real-time time value, and retrieving the picture frame for inserting watermark.

[0039] In this step, multiple dependent variables are extracted from the second dependent variable sequence, and the sum D of all dependent variables is calculated. The value of each dependent variable is Dn, where n is the number of the dependent variable, and the number of the first dependent variable is 1. The ratio Dn / D of each dependent variable is calculated. Then, the first (pM) is selected. Dn) / D frames are used as frames to be watermarked. When inserting the watermark, the current time value is read and used as part of the watermark. At the same time, preset creator information is added as part of the watermark. The creator information can be the name or nickname of the creator.

[0040] S403, identifying the pixel information contained in each channel of the picture frame, determining the color information of the watermark, inserting it into the corresponding picture frame, and storing the disordered video and the video disordered splicing function.

[0041] In this step, the pixel information contained in each channel of the picture frame is identified. When a watermark is added to a certain picture frame, the color information of each pixel in the picture frame is extracted, and each picture frame is converted into three channel colors, that is, the picture frame is converted into three RGB layers, and the total channel color value contained in each RGB layer is counted. For example, the picture frame contains H pixels, and each pixel contains R channel color, G channel color and B channel color. The three channel colors are determined by the corresponding channel values. For example, the R channel value of a pixel is 100, and the G channel value is 100. The value of the R channel is 150, and the value of the B channel is 200. By comparing the sum of all R channel values, the sum of G channel values, and the sum of B channel values, the color channel corresponding to the largest channel value sum is selected as the color information of the watermark. For example, if the sum of the G channel values ​​is the largest, the color of the watermark only contains the G channel color, and the values ​​of the R channel color and the B channel color are 0. The average value G1 of the G channel value in the picture frame is calculated, then the color of the watermark is (0, G1, 0). According to the preset transparency, a watermark is generated. The watermark is in PNG image format. The watermark is superimposed on a random position in the picture frame. Since the watermark is not added to all the picture frames and it is transparent, it will not affect the viewing effect when the RGB channels are turned on. Secondly, the number of picture frames with watermarks is limited. For example, every 60 frames contain only one watermark, so the video playback effect is guaranteed. After performing the above operation on the picture frames that need to be watermarked, the random video and the video random splicing function are stored. Then, when submitting to the platform, the random video and the video random splicing function can be sent synchronously, and the original author also saves the above data synchronously. The video and the video random order splicing function can be played normally by the video platform, which ensures the security of the original work. If the spliced ​​video is recorded and transferred to other video platforms during playback, the original author can provide the random order video and the video random order splicing function to the video platform to determine the original author of the video, which is convenient for the original author to protect his rights. At the same time, if the screen recorder regenerates a new random order video and a new video random order splicing function based on the recorded video, then there will be a double watermark in the random order video, and only the original author's video contains a single watermark, which prevents the screen recorder from transcribing.

[0042] like Figure 5 As shown, a video splicing and aggregation system provided by an embodiment of the present invention includes: The video stitching module 100 is used to obtain the videos to be processed, determine the stitching order of the videos to be processed, and stitch the videos to be processed based on the stitching order to obtain a stitched video.

[0043] In this system, the video stitching module 100 obtains the video to be processed, obtains all the videos to be processed that need to be stitched and aggregated, such as if four edited videos to be processed, such as A, B, C and D, need to be stitched together into one, then the above four videos to be processed are imported, and the stitching order of the multiple videos to be processed that need to be stitched is determined according to the editing order. If the stitching order is BDCA, then according to the above stitching order, the editing software is used to merge the above videos to be stitched into a whole to obtain a stitched video. During the processing, the resolution and frame rate of each video to be processed need to be adjusted to be consistent.

[0044] The function construction module 200 is used to count the number of picture frames contained in each video to be processed, and to construct a video out-of-order splicing function based on the number of picture frames.

[0045] In this system, the function construction module 200 counts the number of picture frames contained in each video to be processed, traverses each video to be processed, and counts the number of picture frames contained in each video to be processed frame by frame. For example, the number of picture frames contained in video A to be processed is 1000, and the number of picture frames contained in video B to be processed is 2000. The number of each video to be processed and the corresponding number of picture frames are determined, so as to construct a series of coordinates, and function fitting is performed according to the series of coordinates to obtain a set of functions, which are used as the video random splicing function, and all the pictures in the entire spliced ​​video are shuffled according to the video random splicing function.

[0046] The picture arrangement module 300 is used to import a first preset independent variable sequence into the video random sequence splicing function to obtain a first dependent variable sequence, determine the order of each picture frame in the spliced ​​video based on the first dependent variable sequence, and obtain a random sequence video.

[0047] In this system, the picture arrangement module 300 imports a first preset independent variable sequence into the video shuffled splicing function. The first preset independent variable sequence is a preset natural number sequence, which includes multiple natural numbers. By substituting the natural numbers into the video shuffled splicing function one by one, a large number of calculated values ​​can be generated. All calculated values ​​generated based on natural numbers lower than the preset independent variable sequence constitute a first dependent variable sequence. Based on preset data conversion rules, the calculated values ​​in the first dependent variable sequence are converted into multiple groups of picture sequence mapping tables. According to the picture sequence mapping tables, the arrangement order of each picture frame in the spliced ​​video can be determined, thereby completing the reorganization of each picture frame to obtain a shuffled video.

[0048] The watermark adding module 400 is used to import a second preset independent variable sequence into the video shuffle splicing function to obtain a second dependent variable sequence, insert a preset watermark based on the second dependent variable sequence, and store the shuffled video and the video shuffle splicing function.

[0049] In this system, the watermark adding module 400 imports a second preset independent variable sequence into the video shuffle splicing function. Both the second preset independent variable sequence and the first preset independent variable sequence contain multiple natural numbers, but the natural numbers contained in the two are different. The second dependent variable sequence can be obtained based on the second preset independent variable sequence and the video shuffle splicing function. The picture frame where the watermark needs to be inserted is selected according to the second dependent variable sequence, so that the watermark containing time information and creator information is added to the corresponding picture frame, thereby obtaining a shuffled video with a watermark added. The shuffled video and the video shuffle splicing function are stored at the same time. When the creator uploads the video, the shuffled video and the video shuffle splicing function are uploaded to the video platform synchronously. The video platform restores the shuffled video to a spliced ​​video based on the video shuffle splicing function for playback. In this process, encrypted transmission of the video is realized, and the arbitrary dissemination of the video is avoided. Due to the hidden watermark added to the video, the identity of the original author can be determined by using the hidden watermark during the video dissemination process.

[0050] like Figure 6 As shown, as a preferred embodiment of the present invention, the function building module 200 includes: The video segment numbering unit 201 is used to number each video to be processed, and when numbering, the videos to be processed are numbered consecutively according to the splicing order of the videos to be processed.

[0051] In this module, the video segment numbering unit 201 numbers each video to be processed. Specifically, the numbering is performed according to the order in which the videos are spliced. For example, if four edited videos to be processed, A, B, C and D, are spliced ​​together in the order of BDCA, then the four videos to be processed, B, D, C and A, are numbered 1, 2, 3 and 4 respectively.

[0052] The coordinate construction unit 202 is used to determine the number of picture frames contained in each video to be processed, and construct video information coordinates according to the number of the video to be processed and the corresponding number of picture frames, wherein the horizontal coordinate of the video information coordinate is the number of the video to be processed, and the vertical coordinate of the video information coordinate is the corresponding number of picture frames.

[0053] In this module, the coordinate construction unit 202 determines the number of picture frames contained in each video to be processed, and counts each video to be processed frame by frame to determine the number of picture frames contained in each video to be processed. For example, the number of picture frames contained in the video to be processed numbered 1 is W1, the number of picture frames contained in the video to be processed numbered 2 is W2, and the number of picture frames of the nth video to be processed is Wn. Then, the constructed video information coordinates are (n, Wn), wherein n is the number of the video to be processed, and Wn is the number of picture frames. Then, there are as many groups of video information coordinates as there are groups of videos to be processed.

[0054] The function fitting unit 203 is used to perform function fitting according to a preset function type, select a fitting result with the highest fitting accuracy, and obtain a video random sequence splicing function.

[0055] In this module, the function fitting unit 203 performs function fitting according to a preset function type. Function fitting is performed based on multiple preset function types, including polynomial function, trigonometric function, power function and exponential function, etc. Fitting is performed according to the above preset function type to obtain multiple fitting results. Least square method can also be used for fitting to obtain fitting results. The accuracy of each fitting result is verified to select a fitting result with the highest fitting accuracy as the video random order splicing function. Specifically, taking the video information coordinates (1, 2500), (2, 4800), (3, 3500) and (4, 4200) as an example, a fifth-order polynomial function fitting is performed, and the fitting result is y=-3366.5+6931.79x-613.167x 2 -434.721x 3 -40.1541x 4 +27.1002x 5 If the fitting is performed through Matlab, the fitting code example is as follows: % Define coordinate data x = [1, 2, 3, 4]; y = [2500, 4800, 3500, 4200]; % Use polyfit for quadratic fitting p = polyfit(x, y, 2); % Calculate the y value of the fitting curve y_fit = polyval(p, x); % Display the coefficients of the fitting curve disp(['The equation of the fitting curve is: y = ', num2str(p(1)), 'x^2 + ', num2str(p(2)), 'x + ', num2str(p(3))]); % Calculate and display the fitting error for each point errors = abs(y - y_fit); disp('Fitting error at each point:'); disp(errors'); % Draw the original data points and the fitted curve figure; plot(x, y, 'o', 'MarkerSize', 10, 'LineWidth', 2, 'DisplayName', 'Data Points'); hold on; x_fit = linspace(min(x), max(x), 100); % Generate more x points to smooth the curve y_fit_smooth = polyval(p, x_fit); plot(x_fit, y_fit_smooth, '-', 'Color', 'r', 'LineWidth', 2, 'DisplayName', 'Quadratic Fit'); xlabel('X'); ylabel('Y'); title('Quadratic Fit using Least Squares Method'); legend('show'); grid on; By fitting, icons of various fitting results and corresponding expressions can be obtained, and by performing precision verification, the most matching video shuffle splicing function can be determined.

[0056] like Figure 7 As shown, as a preferred embodiment of the present invention, the picture arrangement module 300 includes: The data acquisition unit 301 is used to retrieve a preset first preset independent variable sequence, where the first preset independent variable sequence is a natural number sequence, and the natural numbers contained in the natural number sequence are arranged in ascending order.

[0057] In this module, the data acquisition unit 301 calls the preset first preset independent variable sequence. In fact, the first preset independent variable sequence and the second preset independent variable sequence are both natural number sequences, but the natural numbers contained in the two are different. Specifically, the first preset natural number sequence can be an odd natural number starting from 1, that is, 1, 3, 5, 7 and other natural numbers, and the second preset natural number sequence can be an even natural number starting from 2, that is, 2, 4, 6, 8 and other natural numbers. The natural numbers contained in the first preset independent variable sequence and the second preset independent variable sequence are both arranged in ascending order.

[0058] The picture frame numbering unit 302 is used to continuously number each picture frame in the spliced ​​video, import the first preset independent variable sequence into the video random splicing function, and generate a first dependent variable sequence.

[0059] The picture reorganization unit 303 is used to generate a picture order mapping table according to the first dependent variable sequence, and rearrange each picture frame based on the picture order mapping table to obtain a disordered video.

[0060] In this module, the frames in the spliced ​​video are numbered consecutively, starting from the first frame. The first frame is numbered 1, the second frame is numbered 2, the third frame is numbered 3, the fourth frame is numbered 4, and so on, to obtain the original frame coding sequence, and the first preset independent variable sequence is imported into the video random order splicing function. The number of odd natural numbers imported into the video random order splicing function is the same as the total number of frames contained in the spliced ​​video. Each time an odd natural number is imported, a calculation value can be generated through the video random order splicing function, and the calculation value feature is intercepted. The numbers at a certain position, such as processing the calculated values ​​so that the number of numbers contained in each calculated value is the same, such as the number of numbers contained in each calculated value is 10, the numbers exceeding the number are deleted, and the positions less than the number are added with preset numbers, such as 283124528823, delete 28, 23129848, then add 2223129848, where 2 is the preset number. By processing, each calculated value can be converted into a mapping value. Taking the video random splicing function as an example, y=-3366.5+6931.79x-613.167x 2 -434.721x 3 -40.1541x 4 +27.1002x 5 , substitute the number 1 of the first picture frame into it, get the calculated value 2504.3481, remove the decimal point, add the preset number, supplement to 10 digits, get 2225043481, that is, the mapping value corresponding to the picture frame numbered 1 is 2225043481, and determine the mapping value corresponding to each picture frame accordingly, sort the mapping values ​​by size, and thus determine the size code of each mapping value. For example, there are 10,000 picture frames in total, and the size code of the mapping value corresponding to the picture frame numbered 1 is 7892. Based on this, determine the size code of each mapping value, and generate a picture sequence mapping table. The picture sequence mapping table records the number, mapping value and size code of each picture frame, sort each picture frame according to the size code, and arrange the picture frames in ascending order based on the size code, so as to reorganize the video according to the arrangement order, and obtain a disordered video. In this disordered video, the picture frames in each video to be processed are intertwined with each other. Although it can be played, the displayed picture is disordered, and the video content cannot be obtained normally.

[0061] like Figure 8As shown, as a preferred embodiment of the present invention, the watermark adding module 400 includes: The data retrieving unit 401 is used to retrieve a second preset independent variable sequence, and import the second preset independent variable sequence into the video shuffle splicing function to obtain a second dependent variable sequence.

[0062] In this module, the data retrieval unit 401 retrieves the second preset independent variable sequence, which is an even natural number. It is directly imported into the video shuffle splicing function, such as importing consecutive even natural numbers such as 2, 4, 6 and 8 into the video shuffle splicing function, which will generate a series of calculated values. The number of imported even natural numbers is determined according to the total number M of picture frames contained in the spliced ​​video. Specifically, the number of imported even natural numbers is pM, where p is the preset ratio of picture frames with watermarks. Importing pM even natural numbers into the video shuffle splicing function will generate pM dependent variables (calculated values). All dependent variables together constitute a second dependent variable sequence, and the dependent variables in the second dependent variable sequence are arranged in the order of generation.

[0063] The picture frame selection unit 402 is used to extract multiple dependent variables from the second dependent variable sequence, determine the picture frame number to be inserted with the watermark based on the dependent variables, generate the watermark based on the real-time time value, and retrieve the picture frame to be inserted with the watermark.

[0064] In this module, the picture frame selection unit 402 extracts multiple dependent variables from the second dependent variable sequence, calculates the sum value D of all dependent variables, and the value of each dependent variable is Dn, where n is the number of the dependent variable, and the number of the first dependent variable is 1. The ratio Dn / D of each dependent variable is calculated, and then the first (pM) is selected. Dn) / D frames are used as frames to be watermarked. When inserting the watermark, the current time value is read and used as part of the watermark. At the same time, preset creator information is added as part of the watermark. The creator information can be the name or nickname of the creator.

[0065] The watermark processing unit 403 is used to identify the pixel information contained in each channel of the picture frame, determine the color information of the watermark, insert it into the corresponding picture frame, and store the out-of-order video and the video out-of-order splicing function.

[0066] In this module, the watermark processing unit 403 identifies the pixel information contained in each channel of the picture frame. When adding a watermark to a certain picture frame, the color information of each pixel in the picture frame is extracted, and each picture frame is converted into three channel colors, that is, the picture frame is converted into three RGB layers, and the total channel color value contained in each RGB layer is counted. For example, the picture frame contains H pixels, each pixel contains R channel color, G channel color and B channel color, and the three channel colors are determined by the corresponding channel values. For example, the R channel value of a certain pixel is 10. 0, G channel value is 150, B channel value is 200, through the sum of all R channel values, G channel values, B channel values, compare the sum of channel values, select the color channel corresponding to the largest channel value sum as the color information of the watermark, if the sum of G channel values ​​is the largest, then the color of the watermark only contains G channel color, R channel color and B channel color values ​​are 0, calculate the average value G1 of G channel value in the picture frame, then the color of the watermark is (0, G1, 0), according to the preset transparency, generate the watermark, the watermark is a PNG picture format, superimpose the watermark at a random position in the picture frame. Since the watermark is not added to all the picture frames and it is transparent, it will not affect the viewing effect when the RGB channels are turned on. Secondly, the number of picture frames with watermarks is limited, such as only one watermark per 60 frames, thus ensuring the video playback effect. After performing the above operation on the picture frames that need to be watermarked, store the random video and the video random splicing function, then when submitting to the platform, you can send the random video and the video random splicing function synchronously, and the original author also saves the above data synchronously. The video platform can play the video normally with the out-of-order video and the out-of-order video splicing function, which ensures the security of the original work. If the spliced ​​video is recorded and transferred to other video platforms during playback, the original author can provide the video platform with the out-of-order video and the out-of-order video splicing function to determine the original author of the video, which is convenient for the original author to protect his rights. At the same time, if the screen recorder regenerates a new out-of-order video and a new out-of-order video splicing function based on the recorded video, then there will be a double-layer watermark in the out-of-order video, and only the original author's video contains a single-layer watermark, which prevents the screen recorder from transcribing it.

[0067] It should be understood that, although each step in the flow chart of each embodiment of the present invention is shown in sequence according to the indication of the arrow, these steps are not necessarily performed in sequence according to the order indicated by the arrow. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in each embodiment may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.

[0068] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0069] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0070] The above-described embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the present invention. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the attached claims.

[0071] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A video splicing and aggregation system, It is characterized in that The system comprises: A video splicing module is used to obtain the videos to be processed, determine the splicing order of the videos to be processed, and splice the videos to be processed based on the splicing order to obtain a spliced ​​video; A function construction module is used to count the number of picture frames contained in each video to be processed, and to construct a video random sequence splicing function based on the number of picture frames; A picture arrangement module, used for importing a first preset independent variable sequence into the video random order splicing function to obtain a first dependent variable sequence, and determining the order of each picture frame in the spliced ​​video based on the first dependent variable sequence to obtain a random order video; The watermark adding module is used to import a second preset independent variable sequence into the video random sequence splicing function to obtain a second dependent variable sequence, insert a preset watermark based on the second dependent variable sequence, and store the random sequence video and the video random sequence splicing function.

2. The video splicing and aggregation system according to claim 1, It is characterized in that The function building block includes: The video segment numbering unit is used to number each video to be processed, and when numbering, the videos to be processed are numbered consecutively according to the splicing order of the videos to be processed; A coordinate construction unit, used to determine the number of picture frames contained in each video to be processed, and to construct video information coordinates according to the number of the video to be processed and the corresponding number of picture frames, wherein the horizontal coordinate of the video information coordinate is the number of the video to be processed, and the vertical coordinate of the video information coordinate is the corresponding number of picture frames; The function fitting unit is used to perform function fitting according to a preset function type, select a fitting result with the highest fitting accuracy, and obtain a video random sequence splicing function.

3. The video splicing and aggregation system according to claim 1, It is characterized in that The picture arrangement module comprises: A data acquisition unit, used to retrieve a preset first preset independent variable sequence, wherein the first preset independent variable sequence is a natural number sequence, and the natural numbers contained in the natural number sequence are arranged in ascending order; A picture frame numbering unit, used for serially numbering each picture frame in the spliced ​​video, importing a first preset independent variable sequence into the video random splicing function, and generating a first dependent variable sequence; The picture reorganization unit is used to generate a picture order mapping table according to the first dependent variable sequence, and rearrange each picture frame based on the picture order mapping table to obtain a disordered video.

4. The video splicing and aggregation system according to claim 1, It is characterized in that The watermark adding module comprises: A data retrieving unit, used for retrieving a second preset independent variable sequence, and importing the second preset independent variable sequence into the video shuffle splicing function to obtain a second dependent variable sequence; A picture frame selection unit, used to extract multiple dependent variables from the second dependent variable sequence, determine the picture frame number to be inserted with the watermark based on the dependent variables, generate the watermark based on the real-time time value, and retrieve the picture frame to be inserted with the watermark; The watermark processing unit is used to identify the pixel information contained in each channel of the picture frame, determine the color information of the watermark, insert it into the corresponding picture frame, and store the disordered video and the video disordered splicing function.

5. The video splicing and aggregation system according to claim 1, It is characterized in that When the out-of-order video is used, the video out-of-order splicing function is first imported, and the out-of-order video is restored to a spliced ​​video based on the video out-of-order splicing function.

6. The video splicing and aggregation system according to claim 1, It is characterized in that The watermark includes time information and creator information.

7. The video splicing and aggregation system according to claim 1, It is characterized in that The frame rates and resolutions of the videos to be processed are the same. If the frame rates or resolutions of the videos to be processed are inconsistent, frame rate alignment processing and resolution alignment processing are performed on them.

8. The video splicing and aggregation system according to claim 1, It is characterized in that A watermark consists of multiple monochrome pixels.

Citation Information

Patent Citations

  • Method for processing video frame stream, video server and terminal equipment

    CN103024449A

  • Safe playing method

    CN110035327A

  • Video watermark processing method

    CN117014625A

  • Artificial intelligence data encryption storage method and system

    CN117521113A

  • Digital watermarking insertion / extraction apparatusand method, digital rights management system andmethod using it

    KR1020060017420A