A video splicing and aggregation system

Through the video out-of-order splicing and watermarking technology of the video stitching aggregation system, the problem of protection of splicing video rights is solved, the encrypted transmission of videos and the identification of original authors is realized, and unauthorized dissemination is avoided.

CN118590715BActive Publication Date: 2024-11-29SHAANXI GUANGXIN NEW MEDIA CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

After the splicing video is uploaded to the platform, the splicing video is uploaded to other platforms as an original work, and the rights and interests of the original author cannot be protected.

Method used

A video stitching aggregation system was designed to ensure that the stitching video is randomly out of order when uploading, and a creator information watermark is inserted into the video to prevent unauthorized dissemination and identification of original authors.

Benefits of technology

It effectively avoids the unauthorized dissemination of spliced ​​videos, protects the copyright of creators to the greatest extent, and ensures that the identity of the original author can be identified and protected.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118590715B_ABST
    Figure CN118590715B_ABST
Patent Text Reader

Abstract

The present invention is applicable to the field of video processing technology, and in particular to a video splicing aggregation system, the system comprising: a video splicing module, used to determine the splicing order of videos to be processed, perform splicing, and obtain a video splicing video; a function construction module, used to count the number of picture frames, and construct a video random splicing function; a picture arrangement module, used to import a first preset independent variable sequence, 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 video; a watermark adding module, used to import a second preset independent variable sequence, obtain a second dependent variable sequence, insert a preset watermark, and store the random video and the video random splicing function. By constructing a secret watermark, the present invention can identify the watermark 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.
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 existing technology, 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 protected. Summary of the Invention

[0004] The purpose of the present invention is to provide a video splicing and aggregation system, which aims to solve the problem that after spliced ​​videos are uploaded to a platform, they are often uploaded to other platforms as original works, and the rights and interests of the original authors cannot be protected.

[0005] The present invention is implemented as follows: a video splicing and aggregation system, the system comprising:

[0006] The 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;

[0007] A function construction module is used to count the number of frames contained in each video to be processed and to construct a video out-of-order splicing function based on the number of frames;

[0008] a picture arrangement module, configured to import a first preset independent variable sequence into the video shuffle splicing function to obtain a first dependent variable sequence, and determine the order of each picture frame in the spliced ​​video based on the first dependent variable sequence to obtain a shuffled video;

[0009] The watermark adding module 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.

[0010] Preferably, the function building module includes:

[0011] The video segment numbering unit is used to number each video to be processed, and when numbering, the video to be processed is numbered consecutively according to the splicing order of the video to be processed;

[0012] A coordinate construction unit is 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;

[0013] 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.

[0014] Preferably, the picture arrangement module includes:

[0015] A data acquisition unit is used to retrieve a preset first 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;

[0016] A frame numbering unit is used to consecutively number each frame in the spliced ​​video, and to introduce a first preset independent variable sequence into the video shuffle splicing function to generate a first dependent variable sequence;

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

[0018] Preferably, the watermark adding module includes:

[0019] a data retrieving unit, configured 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;

[0020] A picture frame selection unit 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;

[0021] 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.

[0022] 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.

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

[0024] Preferably, 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.

[0025] Preferably, the watermark consists of a plurality of monochrome pixels.

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

[0027] Figure 1 A flowchart of a video splicing and aggregation method provided by an embodiment of the present invention;

[0028] 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;

[0029] 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 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;

[0030] 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 the shuffled video, and the video shuffle splicing function provided in an embodiment of the present invention;

[0031] Figure 5 An architectural diagram of a video splicing and aggregation system provided by an embodiment of the present invention;

[0032] Figure 6 An architectural diagram of a function building module provided by an embodiment of the present invention;

[0033] Figure 7 This is an architectural diagram of a picture arrangement module provided by an embodiment of the present invention;

[0034] Figure 8 This is an architectural diagram of a watermark adding module provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0035] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention will be further described in detail below with reference to 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.

[0036] It is understood that the terms "first," "second," etc., used herein may be used 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, 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 without departing from the scope of this application.

[0037] like Figure 1 As shown, a video splicing and aggregation method provided by an embodiment of the present invention includes:

[0038] 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.

[0039] In this step, obtain the videos to be processed, and obtain all the videos to be processed that need to be spliced ​​and aggregated. If the 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 process, it is necessary to first adjust the resolution and frame rate of each video to be processed to be consistent.

[0040] 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.

[0041] 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. 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. Function fitting is performed based on the series of coordinates to obtain a set of functions, which are used as the video shuffle splicing function. All the pictures in the entire spliced ​​video are shuffled according to the video shuffle splicing function.

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

[0043] In this step, a first preset independent variable sequence is imported into the video shuffled splicing function. The first preset independent variable sequence is a preset natural number sequence, which contains 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 the 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.

[0044] 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.

[0045] 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 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 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.

[0046] 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 out-of-order splicing function based on the number of picture frames includes:

[0047] S201: Number each video to be processed. When numbering, number them consecutively according to the splicing order of the videos to be processed.

[0048] In this step, each video to be processed is numbered. Specifically, the numbering is based on the order in which the videos are spliced ​​together. For example, if four edited videos to be processed, A, B, C, and D, are spliced ​​together in the order of BDCA, then the numbers of the four videos to be processed, B, D, C, and A, are 1, 2, 3, and 4, respectively.

[0049] 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, where the horizontal coordinate of the video information coordinate is the number of the video to be processed and the vertical coordinate is the corresponding number of picture frames.

[0050] In this step, the number of picture frames contained in each video to be processed is determined, and each video to be processed is counted 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), 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.

[0051] S203 , performing function fitting according to a preset function type, selecting a fitting result with the highest fitting accuracy, and obtaining a video out-of-order splicing function.

[0052] 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 functions, trigonometric functions, power functions, and exponential functions. Fitting is performed according to the above preset function types to obtain multiple fitting results. The least squares method can also be used for fitting to obtain a fitting result. The accuracy of each fitting result is verified, and the fitting result with the highest fitting accuracy is selected as the video random 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 fitting is performed through Matlab, the fitting code example is as follows:

[0053] % Define coordinate data

[0054] x = [1, 2, 3, 4];

[0055] y = [2500, 4800, 3500, 4200];

[0056] % Use polyfit for quadratic fitting

[0057] p = polyfit(x, y, 2);

[0058] % Calculate the y value of the fitting curve

[0059] y_fit = polyval(p, x);

[0060] % Display the coefficients of the fitting curve

[0061] disp(['The equation of the fitting curve is: y = ', num2str(p(1)), 'x^2 + ', num2str(p(2)), 'x + ', num2str(p(3))]);

[0062] % Calculate and display the fitting error for each point

[0063] errors = abs(y - y_fit);

[0064] disp('Fitting error of each point:');

[0065] disp(errors');

[0066] % Draw the original data points and the fitted curve

[0067] figure;

[0068] plot(x, y, 'o', 'MarkerSize', 10, 'LineWidth', 2, 'DisplayName', 'Data Points');

[0069] hold on;

[0070] x_fit = linspace(min(x), max(x), 100); % Generate more x points to smooth the curve

[0071] y_fit_smooth = polyval(p, x_fit);

[0072] plot(x_fit, y_fit_smooth, '-', 'Color', 'r', 'LineWidth', 2, 'DisplayName', 'Quadratic Fit');

[0073] xlabel('X');

[0074] ylabel('Y');

[0075] title('Quadratic Fit using Least Squares Method');

[0076] legend('show');

[0077] grid on;

[0078] By fitting, icons of various fitting results and corresponding expressions can be obtained. By performing precision verification, the most matching video shuffle splicing function can be determined.

[0079] 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, and determining the order of each frame in the spliced ​​video based on the first dependent variable sequence to obtain the shuffled video includes:

[0080] S301 , calling 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.

[0081] 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.

[0082] S302 , consecutively numbering each 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.

[0083] S303 : Generate a picture sequence mapping table according to the first dependent variable sequence, and rearrange each picture frame based on the picture sequence mapping table to obtain a disordered video.

[0084] 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 splicing function, the number of odd natural numbers imported into the video random 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 calculated value can be generated by the video random splicing function, and the calculated 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, for example, 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 shuffle 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 frame into it, and get the calculated value 2504.3481. Remove the decimal point, add the preset number, and fill it to 10 digits to get 2225043481, that is, the mapping value corresponding to the frame numbered 1 is 2225043481. Based on this, determine the mapping value corresponding to each frame, sort the mapping values ​​by size, and thus determine the size code of each mapping value. For example, if there are 10,000 frames in total, the size code of the mapping value corresponding to the frame numbered 1 is 7892. Based on this, determine the size code of each mapping value and generate a frame sequence mapping table. The frame sequence mapping table records the number, mapping value and size code of each frame. Sort the frames according to the size code, and arrange the frames in ascending order based on the size code. Then, reorganize the video according to the arrangement order, and obtain a disordered video. In this disordered video, the frames in each video to be processed overlap with each other. Although it can be played, the displayed images are disordered, and the video content cannot be obtained normally.

[0085] 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:

[0086] S401 , calling a second preset independent variable sequence, and importing the second preset independent variable sequence into a video shuffle splicing function to obtain a second dependent variable sequence.

[0087] 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, if consecutive even natural numbers such as 2, 4, 6 and 8 are imported into the video shuffle splicing function, a series of calculated values ​​will be generated. 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 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.

[0088] S402 , extracting multiple dependent variables from the second dependent variable sequence, determining the picture frame number where the watermark is to be inserted based on the dependent variables, generating a watermark based on the real-time time value, and retrieving the picture frame where the watermark needs to be inserted.

[0089] In this step, multiple dependent variables are extracted from the second dependent variable sequence, and the sum value 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 of each dependent variable is Dn / D, so 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.

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

[0091] 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 all determined by the corresponding channel values. For example, the R channel value of a certain pixel is 100, and the G channel value is 0. 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 to which the watermark is inserted is limited. For example, every 60 frames contain only one watermark, thus ensuring the video playback effect. After performing the above operation on the picture frames that need to be watermarked, the disordered video and the video disordered splicing function are stored. Then, when submitting to the platform, the disordered video and the video disordered splicing function can be sent synchronously, and the original author also saves the above data synchronously. The video and the video random splicing function can be played normally on the video platform, ensuring 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 video and the video random 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 video and a new video random splicing function based on the recorded video, then there will be a double watermark in the random video, and only the original author's video contains a single watermark, which prevents the screen recorder from transcribing it.

[0092] like Figure 5 As shown, a video splicing and aggregation system provided by an embodiment of the present invention includes:

[0093] The video splicing module 100 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.

[0094] In this system, the video stitching module 100 obtains the video to be processed, and obtains all the videos to be processed that need to be stitched and aggregated. For example, 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 splicing 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 process, the resolution and frame rate of each video to be processed need to be adjusted to be consistent.

[0095] 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.

[0096] 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, thereby constructing a series of coordinates, and function fitting is performed based on the series of coordinates to obtain a set of functions, which are used as the video shuffle splicing function. According to the video shuffle splicing function, all the pictures in the entire spliced ​​video are shuffled.

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

[0098] 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 contains multiple natural numbers. By substituting the natural numbers one by one into the video shuffled splicing function, 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 the 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.

[0099] 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.

[0100] 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 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.

[0101] like Figure 6 As shown, as a preferred embodiment of the present invention, the function construction module 200 includes:

[0102] The video segment numbering unit 201 is used to number each video to be processed. When numbering, the video to be processed is numbered consecutively according to the splicing order of the videos to be processed.

[0103] 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 ​​together. For example, if four edited videos to be processed, such as A, B, C, and D, are spliced ​​together in the order of BDCA, then the numbers of the four videos to be processed, such as B, D, C, and A, are 1, 2, 3, and 4, respectively.

[0104] 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. 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.

[0105] 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), 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.

[0106] The function fitting unit 203 is configured to perform function fitting according to a preset function type, select a fitting result with the highest fitting accuracy, and obtain a video out-of-order splicing function.

[0107] 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 functions, trigonometric functions, power functions, and exponential functions. Fitting is performed according to the above preset function types to obtain multiple fitting results. The least squares method can also be used for fitting to obtain a fitting result. The accuracy of each fitting result is verified, and the fitting result with the highest fitting accuracy is selected as the video random 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 fitting is performed through Matlab, the fitting code example is as follows:

[0108] % Define coordinate data

[0109] x = [1, 2, 3, 4];

[0110] y = [2500, 4800, 3500, 4200];

[0111] % Use polyfit for quadratic fitting

[0112] p = polyfit(x, y, 2);

[0113] % Calculate the y value of the fitting curve

[0114] y_fit = polyval(p, x);

[0115] % Display the coefficients of the fitting curve

[0116] disp(['The equation of the fitting curve is: y = ', num2str(p(1)), 'x^2 + ', num2str(p(2)), 'x + ', num2str(p(3))]);

[0117] % Calculate and display the fitting error for each point

[0118] errors = abs(y - y_fit);

[0119] disp('Fitting error of each point:');

[0120] disp(errors');

[0121] % Draw the original data points and the fitted curve

[0122] figure;

[0123] plot(x, y, 'o', 'MarkerSize', 10, 'LineWidth', 2, 'DisplayName', 'Data Points');

[0124] hold on;

[0125] x_fit = linspace(min(x), max(x), 100); % Generate more x points to smooth the curve

[0126] y_fit_smooth = polyval(p, x_fit);

[0127] plot(x_fit, y_fit_smooth, '-', 'Color', 'r', 'LineWidth', 2, 'DisplayName', 'Quadratic Fit');

[0128] xlabel('X');

[0129] ylabel('Y');

[0130] title('Quadratic Fit using Least Squares Method');

[0131] legend('show');

[0132] grid on;

[0133] By fitting, icons of various fitting results and corresponding expressions can be obtained. By performing precision verification, the most matching video shuffle splicing function can be determined.

[0134] like Figure 7 As shown, as a preferred embodiment of the present invention, the picture arrangement module 300 includes:

[0135] The data acquisition unit 301 is configured to retrieve a 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.

[0136] 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.

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

[0138] The picture reassembly unit 303 is configured 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.

[0139] 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 splicing function. The number of odd natural numbers imported into the video random 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 calculated value can be generated through the video random splicing function, and the calculated 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, for example, 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 shuffle 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 frame into it, and get the calculated value 2504.3481. Remove the decimal point, add the preset number, and fill it to 10 digits to get 2225043481, that is, the mapping value corresponding to the frame numbered 1 is 2225043481. Based on this, determine the mapping value corresponding to each frame, sort the mapping values ​​by size, and thus determine the size code of each mapping value. For example, if there are 10,000 frames in total, the size code of the mapping value corresponding to the frame numbered 1 is 7892. Based on this, determine the size code of each mapping value and generate a frame sequence mapping table. The frame sequence mapping table records the number, mapping value and size code of each frame. Sort the frames according to the size code, and arrange the frames in ascending order based on the size code. Then, reorganize the video according to the arrangement order, and obtain a disordered video. In this disordered video, the frames in each video to be processed overlap with each other. Although it can be played, the displayed images are disordered, and the video content cannot be obtained normally.

[0140] like Figure 8 As shown, as a preferred embodiment of the present invention, the watermark adding module 400 includes:

[0141] 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.

[0142] 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. For example, if consecutive even natural numbers such as 2, 4, 6 and 8 are imported into the video shuffle splicing function, a series of calculated values ​​will be generated. 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 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 a second dependent variable sequence, and the dependent variables in the second dependent variable sequence are arranged in the order of generation.

[0143] 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 watermarked based on the dependent variables, generate a watermark based on the real-time time value, and retrieve the picture frame to be watermarked.

[0144] 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 the (pM)th dependent variable 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.

[0145] 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.

[0146] 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, and each pixel contains R channel color, G channel color and B channel color. The three channel colors are all determined by the corresponding channel values. For example, the R channel value of a certain pixel is 10. 0, the G channel value is 150, the B channel value is 200, through the sum of all R channel values, the sum of G channel values, the sum of 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, such as the sum of G channel values ​​is the largest, then the watermark color only contains G channel color, R channel color and B channel color values ​​are 0, calculate the average value G1 of the G channel value in the picture frame, then the watermark color is (0, G1, 0), according to the preset transparency, generate a watermark, the watermark is a PNG image 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 to which the watermark is inserted is limited, such as every 60 frames contains only one watermark, thus ensuring the video playback effect. After performing the above operation on the picture frames that need to be watermarked, store the disordered video and the video disordered splicing function, then when submitting to the platform, you can send the disordered video and the video disordered splicing function synchronously, and the original author also saves the above data synchronously. The out-of-order video and the out-of-order video splicing function allow the video platform to play the video normally, ensuring 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 out-of-order video and the out-of-order video 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 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.

[0147] It should be understood that, although the various steps in the flow chart of each embodiment of the present invention are shown in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence according to the order indicated by the arrows. Unless otherwise specified herein, the execution of these steps is not strictly limited in order, 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.

[0148] Those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by instructing the relevant hardware through a computer program. The program can be stored in a non-volatile computer-readable storage medium. When executed, the program can include the processes of the above-described method embodiments. Any reference to memory, storage, database, or other media used in the various embodiments provided herein 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. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct RAMbus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM).

[0149] The technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above-mentioned 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.

[0150] The above-described embodiments merely illustrate several embodiments of the present invention, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art would be able to make various modifications and improvements without departing from the spirit of the present invention, all of which fall within the scope of the present invention. Therefore, the scope of the present invention shall be determined by the appended claims.

[0151] 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 scope of protection of the present invention.

Claims

1. A video splicing and aggregation system, 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 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; A watermark adding module 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; The watermark adding module comprises: 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; A 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; 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.

2. The video splicing and aggregation system according to claim 1, 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.

3. The video splicing and aggregation system according to claim 1, 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.

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

5. The video splicing and aggregation system according to claim 1, 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.

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

Citation Information

Patent Citations

  • Safe playing method

    CN110035327A

  • Video watermark processing method

    CN117014625A