CN116567353B - Video delivery method and device, storage medium and electronic equipment - Google Patents

Video delivery method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN116567353B
CN116567353B CN202310838543.XA CN202310838543A CN116567353B CN 116567353 B CN116567353 B CN 116567353B CN 202310838543 A CN202310838543 A CN 202310838543A CN 116567353 B CN116567353 B CN 116567353B
Authority
CN
China
Prior art keywords
video
sequence
copyright information
index
frequency domain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310838543.XA
Other languages
Chinese (zh)
Other versions
CN116567353A (en
Inventor
彭斌斌
周红丽
李东
熊爱平
关捷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan Happly Sunshine Interactive Entertainment Media Co Ltd
Original Assignee
Hunan Happly Sunshine Interactive Entertainment Media Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hunan Happly Sunshine Interactive Entertainment Media Co Ltd filed Critical Hunan Happly Sunshine Interactive Entertainment Media Co Ltd
Priority to CN202310838543.XA priority Critical patent/CN116567353B/en
Publication of CN116567353A publication Critical patent/CN116567353A/en
Application granted granted Critical
Publication of CN116567353B publication Critical patent/CN116567353B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440218Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/835Generation of protective data, e.g. certificates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Abstract

The application provides a video delivery method and device, a storage medium and electronic equipment, wherein N slice sets of videos to be delivered are generated in advance, copyright information carried by video slices of different slice sets is located at different spatial positions of a preset frequency domain segment, so that when a video delivery request is received, a mixed index sequence comprising N indexes is generated according to channel identification, then the video slices are sequentially acquired from the N slice sets of the videos to be delivered, which are generated in advance, according to the mixed index sequence, then video synthesis is carried out on the acquired video slices according to the order of acquiring the video slices, a target video with a specific position sequence in the preset frequency domain segment is obtained, and finally the target video is delivered to a first channel. Therefore, under the condition that the video is leaked, the channel to which the leaked video belongs can be determined by identifying the position sequence of the leaked video because the generated target video has the specific position sequence in the preset frequency domain.

Description

Video delivery method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of video processing technologies, and in particular, to a video delivery method and apparatus, a storage medium, and an electronic device.
Background
In the video delivery process, the situation that the video is repeatedly transcoded for many times and illegally transmitted to other platforms to be shared or sold may exist due to video leakage.
In the prior art video delivery scheme, different copyright information is directly embedded into videos aiming at different channels, and then the videos carrying the copyright information are delivered to the corresponding channels. However, the re-transcoded video cannot identify specific copyright information, so that a channel for leaking the video cannot be determined, and thus, the copyright is difficult to maintain, and the benefit of the copyright is seriously impaired.
Disclosure of Invention
The inventor researches and discovers that the re-transcoding only causes the blurring of the plate right information and does not affect the position of the plate right information in the video, and based on the method and the device, the storage medium and the electronic equipment, the application aims to solve the problems that the video after being re-transcoded cannot identify specific copyright information in the prior art, so that a channel for leaking the video cannot be determined, rights are difficult to maintain and interests of copyright parties are seriously damaged.
In order to achieve the above object, the present application provides the following technical solutions:
a video delivery method comprising:
responding to a video delivery request of any first type channel, and acquiring a channel identifier of the first type channel; the first type of channels are channels meeting specific requirements;
generating a mixed index sequence of the first type of channels according to the channel identification; the mixed index sequence comprises N types of indexes, each type of index corresponds to one slice set in N slice sets of video to be put in, N is a positive integer, each slice set comprises all video slices of the video to be put in, video slices in each slice set are obtained by slicing according to the same slicing rule, copyright information carried by video slices of different slice sets is located in different spatial positions of a preset frequency domain, and copyright information carried by video slices of the same slice set is located in the same spatial position of the preset frequency domain;
according to the mixed index sequence, video slices are sequentially obtained from N slice sets of the video to be put in, which are generated in advance;
according to the sequence of obtaining video slices, video synthesis is carried out on each obtained video slice, and the target video of the first channel is obtained; the spatial positions of the copyright information included in the target video in the preset frequency domain section form a position sequence;
And putting the target video into the first type channel.
The method, optionally, includes a pre-generating process of N slice sets of the video to be delivered, including:
repeatedly executing the first operation for N times on the video to be launched to obtain N videos to be launched carrying copyright information; the N is a positive integer;
according to a preset segmentation rule, respectively carrying out video segmentation on N videos to be delivered, which carry copyright information, to obtain a segmentation set and an index file of each video to be delivered, which carry copyright information; the index included in the index file is used for indicating the position of the corresponding video slice in the slice set;
wherein the first operation includes:
decoding the video to be released to obtain each frame of image included in the video to be released;
converting each frame of image from a spatial domain to a frequency domain;
determining the spatial position of copyright information to be superimposed in each frame of image included in the video to be placed;
superposing preset copyright information on the space position of the preset frequency domain segment of each frame of image to obtain a superposition result of each frame of image;
converting the superposition result of each frame of image from a frequency domain to a space domain to obtain each frame of image carrying copyright information;
And encoding each frame of image carrying the copyright information to obtain the video to be released carrying the copyright information.
In the above method, optionally, the overlapping the preset copyright information on the spatial position of the preset frequency domain segment of each frame of image to obtain an overlapping result of each frame of image includes:
superposing preset identical copyright information on the space position of the preset frequency domain segment of each frame of image to obtain a superposition result of each frame of image;
or alternatively, the first and second heat exchangers may be,
selecting one piece of unselected copyright information from a preset copyright information set; the copyright information set at least comprises N pieces of different copyright information;
and superposing the currently selected copyright information on the space position of the preset frequency domain segment of each frame of image to obtain a superposition result of each frame of image.
In the above method, optionally, the generating, according to the channel identifier, a mixed index sequence of the first type of channels includes:
converting the channel identifier into a multi-system sequence; the number of the decimal numbers of the multilevel sequence is the same as the number of the slice sets of the video to be launched, which are generated in advance;
sequentially writing each character included in the multi-system sequence into a first sequence until the total number of characters in the first sequence reaches a target value; the target value is the number of video slices included in the segmentation set;
Sequentially obtaining indexes corresponding to the characters included in the second sequence from each index file of the video to be launched and writing the indexes into a third sequence; the second sequence is a first sequence for stopping writing characters;
and taking the third sequence of which the index writing is completed as a mixed index sequence of the first-type channels.
According to the above method, optionally, according to the mixed index sequence, the obtaining video slices sequentially from the N slice sets of the video to be delivered, which are generated in advance, includes:
taking a first index in the mixed index sequence as a target index;
positioning a video slice corresponding to a current target index in video slices included in the target slice set; the target slice set is a slice set corresponding to a current target index in N slice sets of the video to be put in, which are generated in advance;
acquiring a currently positioned video slice;
and if the current target index is not the last index in the mixed index sequence, taking the next index of the target indexes in the mixed index sequence as a new target index, and returning to the step of executing the video slice corresponding to the current target index in the video slices included in the positioning target slice set according to the new target index until the current target index is the last index in the mixed index sequence.
In the above method, optionally, after the delivering the target video to the first type of channel, the method further includes:
acquiring a leakage video; the leakage video is transmitted to a second type channel through any first type channel, and the second type channel is a channel which does not meet specific requirements;
decoding the leakage video to obtain each frame image of the leakage video;
sequentially executing a second operation on each frame of image of the leaked video to obtain the spatial position of copyright information of each frame of image included in the leaked video in a preset frequency domain;
obtaining a position sequence of the leakage video according to the spatial position of the copyright information of each frame image included in the leakage video in a preset frequency domain;
determining a first channel to which the leakage video belongs according to the position sequence of the leakage video;
wherein the second operation includes:
converting the frame image from a spatial domain to a frequency domain;
extracting frequency domain information of the frame image in the preset frequency domain;
converting the extracted frequency domain information from a frequency domain to a spatial domain to obtain an image to be compared of the frame of image;
and identifying the spatial position of the copyright information in the image to be compared in the preset frequency domain to obtain the spatial position of the copyright information of the image to be compared in the preset frequency domain.
In the above method, optionally, the identifying the spatial position of the copyright information in the image to be compared in the preset frequency domain includes:
and comparing gray values of the images to be compared with the copyright information, and determining the spatial position of the copyright information in each image to be compared of the leaked video.
A video delivery device, comprising:
the first acquisition unit is used for responding to a video delivery request of any first type channel and acquiring channel identification of the first type channel; the first type of channels are channels meeting specific requirements;
the generation unit is used for generating a mixed index sequence of the first type of channels according to the channel identification; the mixed index sequence comprises N types of indexes, each type of index corresponds to one slice set in N slice sets of video to be put in, N is a positive integer, each slice set comprises all video slices of the video to be put in, video slices in each slice set are obtained by slicing according to the same slicing rule, copyright information carried by video slices of different slice sets is located in different spatial positions of a preset frequency domain, and copyright information carried by video slices of the same slice set is located in the same spatial position of the preset frequency domain;
The second acquisition unit is used for sequentially acquiring video slices from N slice sets of the video to be put in, which are generated in advance, according to the mixed index sequence;
the synthesizing unit is used for synthesizing the video of each obtained video slice according to the order of obtaining the video slices to obtain the target video of the first channel; the spatial positions of the copyright information included in the target video in the preset frequency domain section form a position sequence;
and the delivering unit is used for delivering the target video to the first type channel.
A storage medium having stored thereon a set of instructions which when executed by a processor implement a video delivery method as described above.
An electronic device, comprising:
a memory for storing at least one set of instructions;
and the processor is used for executing the instruction set stored in the memory, and realizing the video delivery method by executing the instruction set.
Compared with the prior art, the application has the following advantages:
the application provides a video delivery method and device, a storage medium and electronic equipment, wherein the method comprises the following steps: generating N slice sets of videos to be put in advance, wherein copyright information carried by video slices of different slice sets is located on different spatial positions of a preset frequency domain, the copyright information carried by video slices of the same slice set is located on the same spatial position of the preset frequency domain, so that channel identifiers of any first type of channels are obtained in response to video putting requests of the first type of channels, a mixed index sequence comprising N indexes is generated according to the channel identifiers, each type of index corresponds to one slice set of the N slice sets of the videos to be put in, then video slices are sequentially obtained from the N slice sets of the videos to be put in which the mixed index sequence is generated in advance, video synthesis is carried out on each obtained video slice according to the sequence of obtaining the video slices, and finally target videos with specific position sequences in the preset frequency domain are put in the first type of channels. Therefore, in the scheme of the application, the spatial position of the copyright information included in the generated target video in the preset frequency domain forms a specific position sequence, namely the generated target video has the specific position sequence in the preset frequency domain, so that under the condition of video leakage, the channel to which the leaked video belongs can be determined by identifying the position sequence of the leaked video.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a method flow chart of a video delivery method provided by the application;
FIG. 2 is a flowchart of a video delivery method according to another embodiment of the present application;
FIG. 3 is a flowchart of a video delivery method according to another embodiment of the present application;
FIG. 4 is a flowchart of a video delivery method according to another embodiment of the present application;
FIG. 5 is a flowchart of a video delivery method according to another embodiment of the present application;
FIG. 6 is an exemplary diagram of a video delivery method provided by the present application;
FIG. 7 is a diagram illustrating another embodiment of a video delivery method according to the present application;
fig. 8 is a schematic structural diagram of a video delivery device provided by the present application;
fig. 9 is a schematic structural diagram of an electronic device according to the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used for distinguishing between different devices, modules, or units and not for limiting the order or interdependence of the functions performed by these devices, modules, or units.
It should be noted that references to "one" or "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be interpreted as "one or more" unless the context clearly indicates otherwise.
In this embodiment, for convenience of understanding, the following description will be given of the related terms related to the present application:
1. FFmpeg is a very powerful multimedia processing tool, can conveniently perform operations such as HLS stream conversion and m3u8 file conversion into MP4 file, and provides great convenience for streaming media transmission and processing.
2. The video blind watermarking technology decodes the time domain of the video into a space domain, and converts the space domain into a frequency domain; and finishing watermark information superposition on the frequency domain; and then the superimposed frequency domain is forwarded to a spatial domain through inverse transformation, and then the spatial domain is converted to a video marked with a blind watermark through an encoder.
3. The video slicing technology, HLS (HTTP Live Streaming) protocol is a streaming media communication protocol based on HTTP, the video file is a slice based on the MPEG2 file, and each slice is separately stored on a server. In a streaming media file slicing process, the transcoder reads a continuous input stream and cuts it into slices of equal length (set to 1 s). At the same time, an m3u8 format list file is generated, wherein the list file contains a slice list and specific information of each slice.
4. And the video synthesis technology sequentially acquires TS small fragments for temporary storage according to the index file, and then utilizes a merge instruction of a ffmpeg tool to merge the temporarily stored TS small fragments into a complete video.
The embodiment of the application provides a video delivery method, and a method flow chart of the method is shown in fig. 1, and specifically comprises the following steps:
s101, responding to a video delivery request of any first type channel, and acquiring a channel identifier of the first type channel.
In this embodiment, a video delivery request of any first type channel is received, and the video delivery request is responded to obtain a channel identifier of the first type channel, where the first type channel is a channel meeting a specific requirement.
Illustratively, the channel identification may be a channel ID.
It should be noted that the channel identifier is used for uniquely identifying the channel, and different channel identifiers corresponding to different channels.
S102, generating a mixed index sequence of the first type of channels according to the channel identification.
In this embodiment, N slice sets of videos to be put are generated in advance, where N is a positive integer, each slice set includes all video slices of the videos to be put, that is, all video slices of the videos to be put in each slice set, that is, each video slice included in each slice set may be combined into a complete video to be put, the video slices in each slice set are obtained by slicing according to the same slicing rule, copyright information carried by video slices of different slice sets is located at different spatial positions in a preset frequency domain, and copyright information carried by video slices of the same slice set is located at the same spatial position in the preset frequency domain.
The preset frequency domain is a manually selected frequency domain and can be modified according to requirements.
In this embodiment, a mixed index sequence of the first type of channels is generated according to the channel identifier, where the mixed index sequence includes N types of indexes, and each type of index corresponds to one of N slice sets of the video to be put. Each index included in the sequence of hybrid indices is used to indicate the position of the video slice in the corresponding set of slices that corresponds to the index.
Referring to fig. 2, the pre-generation process of the N slice sets of the video to be delivered includes the following steps:
and S201, repeatedly executing the first operation for N times on the video to be launched to obtain N videos to be launched carrying copyright information.
In this embodiment, the first operation is repeatedly performed N times on the video to be released, so as to obtain N videos to be released carrying copyright information. Preferably, the copyright information may be a blind watermark. The first operation is a copyright information embedding operation.
Preferably, N is 2.
Referring to fig. 3, a first operation includes:
s301, decoding the video to be released to obtain each frame of image included in the video to be released.
In this embodiment, the video to be released is decoded to obtain each frame image included in the video to be released, and specifically, the video to be released is decoded by using a decoder, so as to obtain each frame image included in the video to be released.
And converting the video to be released into a spatial domain through decoding the video to be released.
S302, converting each frame of image from a space domain to a frequency domain.
In this embodiment, each frame of image is converted from a spatial domain to a frequency domain, and specifically, two-dimensional fourier transform is performed on each frame of image, so as to convert each frame of image from the spatial domain to the frequency domain.
S303, determining the spatial position of copyright information to be superimposed in each frame of image included in the video to be delivered.
The method comprises the steps of determining the spatial position of copyright information to be superimposed in each frame of image included in video to be placed, specifically, determining the spatial position of the copyright information to be superimposed in each frame of image included in the video to be placed according to a preset strategy, wherein when N is 2, the preset strategy can be that the determined spatial position is the position in the left angle deviation aiming at the 1 st first operation, and the determined spatial position is the position in the right angle deviation aiming at the 2 nd first operation.
It should be noted that, the main content of the video is generally in an area formed by the positions in the left and right corners, and the copyright information is superimposed to the determined spatial position by determining the spatial position of the copyright information to be superimposed as the position in the left and right corners, so as to ensure that the subsequent video is cut and the copyright information is not cut.
It should be noted that the determined spatial positions are different for the first operations of different batches.
S304, overlapping preset copyright information on the space position of the preset frequency domain segment of each frame of image to obtain an overlapping result of each frame of image.
In this embodiment, preset copyright information is superimposed on a spatial position of a preset frequency domain segment of each frame image, so as to obtain a superposition result of each frame image.
Preferably, the preset copyright information may be a blind watermark.
Specifically, the same preset copyright information is overlapped on the space position of the preset frequency domain of each frame of image, so that an overlapped result of each frame of image is obtained; or selecting one piece of unselected copyright information from a preset copyright information set; the copyright information set at least comprises N pieces of different copyright information; and superposing the currently selected copyright information on the spatial position of the preset frequency domain segment of each frame of image to obtain a superposition result of each frame of image.
In this embodiment, for the first operations of different batches, the same copyright information may be superimposed, or different copyright information may be superimposed.
S305, converting the superposition result of each frame image from the frequency domain to the space domain to obtain each frame image carrying copyright information.
In this embodiment, the superposition result of each frame image is converted from the frequency domain to the spatial domain, so as to obtain each frame image carrying copyright information, specifically, discrete fourier transform is performed on the superposition result of each frame image, so that the superposition result of each frame image is converted from the frequency domain to the spatial domain, so as to obtain each frame image carrying copyright information.
S306, encoding each frame of image carrying copyright information to obtain video to be released carrying copyright information.
In this embodiment, each frame of image carrying copyright information is encoded, specifically, each frame of image carrying copyright information is encoded by using an encoder, so as to obtain a video to be released carrying copyright information.
S202, video segmentation is carried out on N videos to be delivered, which carry copyright information, according to preset segmentation rules, and segmentation sets and index files of each video to be delivered, which carry copyright information, are obtained.
In this embodiment, according to a preset splitting rule, video splitting is performed on N videos to be put in, where the N videos carry copyright information, so as to obtain a splitting set and an index file of each video to be put in, where the index file includes a plurality of indexes, and the indexes included in the index file are used to indicate positions of corresponding video slices in the slicing set. It should be noted that, the preset splitting rule is the same splitting rule, alternatively, the preset splitting rule may be equal-length splitting, for example, 1S is taken as the splitting length, and video splitting is performed on the video to be put in, which carries the copyright information, so as to obtain a plurality of equal-length video slices.
Specifically, for each video to be released carrying copyright information, generating a segmentation command of the video to be released, and carrying out video segmentation on the video to be released carrying the copyright information by using the segmentation command to obtain a segmentation set and an index file of the video to be released carrying the copyright.
Illustratively, the cut command may be a hls instruction of ffmpeg: ffmpeg-i input A.mp4-c: v copy-hls _time1-hls _segment_filename% d.ts_fhls output/playlistA.m3u8.
The parameter descriptions of the cut hits are shown in table 1:
in the present embodiment of the present invention, the% d in the cut command means that the cut ts file is named 1.Ts,2.Ts,3.Ts,4. Ts..n. Ts in slice order [1,2,3, 4..n ].
fhls output/playista.m3u8 represents the output of the slice set and index file of the video a to be delivered carrying copyright information. Wherein the slice set includes video slices ordered by slice.
Referring to fig. 4, the process of generating a mixed index sequence of a first type of channels according to channel identifiers specifically includes the following steps:
s401, converting the channel identification into a multi-system sequence.
In this embodiment, the channel identifier is converted into a multilevel sequence, specifically, the channel identifier is subjected to multilevel conversion to obtain a multilevel sequence, where the number of the multilevel sequence is the same as the number of the slice sets of the video to be put generated in advance, for example, the number of the slice sets of the video to be put generated in advance is 2, and the number of the binary sequence is 2, that is, the channel identifier is subjected to binary conversion to obtain a binary sequence.
For example, if the channel identifier is 101 (decimal number), the binary conversion is performed on the channel identifier, and the binary sequence obtained is 1100101.
And S402, sequentially writing each character included in the multi-system sequence into the first sequence until the total number of characters in the first sequence reaches a target value.
In this embodiment, writing each character included in the multi-system sequence into the first sequence in turn is repeated until the total number of characters in the first sequence reaches a target value, where the target value is the number of video slices included in the slice set. For example, the slice set includes a number of video slices of 20, which target value is also 20.
In this embodiment, an implementation process of sequentially writing each character included in the multilevel sequence into the first sequence until the total number of characters in the first sequence reaches a target value is repeated, including: the method comprises the steps of starting to count a counter to be zero, taking a first character in a multi-system sequence as a target character, writing the target character into the first sequence, adding one process to the counting result of the counter, judging whether the current counting result of the counter is smaller than a target value, if the current counting result of the counter is not smaller than the target value, taking the next character of the target character in the multi-system sequence as a new target character when the target character is not the last character in the multi-system sequence, and returning to execute the step of writing the target character into the first sequence according to the new target character; returning to execute the step of taking the first character of the multi-system sequence as the target character when the target character is the last character in the multi-system sequence; if the current technical result of the counter is not smaller than the target value, stopping writing characters into the first sequence.
For example, if the multilevel sequence is 1100101 and the target value is 20, the characters included in the multilevel sequence are repeatedly written into the first sequence in turn until the total number of characters in the first sequence reaches the target value, and the resulting final first sequence is 11001011100101110010.
S403, sequentially obtaining indexes corresponding to the characters included in the second sequence from each index file of the video to be launched, and writing the indexes into the third sequence.
In this embodiment, indexes corresponding to each character included in the second sequence are sequentially obtained from each index file of the video to be delivered, and written into the third sequence, where the second sequence is a first sequence in which writing of characters is stopped, that is, a first sequence in which writing of characters is completed. Exemplary, as depicted in step S402, 11001011100101110010.
Specifically, each type of character in the second sequence corresponds to one of the N slice sets and corresponds to one of the N index files. For example, for the second sequence 11001011100101110010, where character 1 corresponds to the slice set a and index file a, character 0 corresponds to the slice set B and index file B.
The process of sequentially obtaining the indexes corresponding to the characters included in the second sequence from the index files of the video to be delivered and writing the indexes into the third sequence is illustrated as follows:
If the index file a= { A1, A2, A3, A4, A5, A6, A7, A8, A9, a10}, the index file b= { B1, B2, B3, B4, B5, B6, B7, B8, B9, B10}, the channel identifier is 2, the binary sequence corresponding to the channel identifier is 10, and the second sequence is 1010101010, the indexes A1, B2, A3, B4, A5, B6, A7, B8, A9, B10 are sequentially written into the third sequence.
S404, taking the third sequence with the written index as a mixed index sequence of the first channel.
In this embodiment, the third sequence of completing the index writing is used as the mixed index sequence of the first-class channel.
It should be noted that, since the channel identifier has uniqueness, the mixing index sequence corresponding to the channel identifier also has uniqueness.
In the method provided by the embodiment of the application, the mixed index sequence with uniqueness is generated according to the channel identifier with uniqueness.
And S103, acquiring video slices from N slice sets of the video to be put in, which are generated in advance, in sequence according to the mixed index sequence.
In this embodiment, according to the hybrid index sequence, video slices are sequentially obtained from N slice sets of the video to be put in, which are generated in advance, specifically, a first index in the hybrid index sequence is taken as a target index, and a video slice corresponding to a current target index in the video slices included in the target slice set is located, where the target slice set is a slice set corresponding to the current target index in the N slice sets of the video to be put in, which are generated in advance, and the current located video slice is obtained, if the current target index is not the last index in the hybrid index sequence, a next index of the target index in the hybrid index sequence is taken as a new target index, and according to the new target index, the step of locating the video slice corresponding to the current target index in the video slice set is performed back until the current target index is the last index in the hybrid index sequence.
It should be noted that the number of video slices obtained is the same as the number of indexes included in the mixed index sequence.
In this embodiment, after each video slice is acquired, the acquired video slice may be temporarily stored, which may be, for example, stored in a buffer.
S104, video synthesis is carried out on all the acquired video slices according to the sequence of acquiring the video slices, and target videos of the first type of channels are obtained.
In this embodiment, video synthesis is performed on each acquired video slice according to the order of acquiring video slices, so as to obtain a target video of the first channel, that is, video synthesis is performed on each acquired video slice according to the order of acquiring video slices in step S103, so as to obtain a target video of the first channel.
Specifically, the temporarily stored video slices may be combined into a complete video using a combining instruction. Illustratively, the temporarily stored video slices may be merged into one complete video at the merge instruction of the ffmpeg tool.
It should be noted that, since the copyright information carried by the video slices of the different slice sets are located at different spatial positions in the preset frequency domain, the copyright information carried by the video slices of the same slice set is located at the same spatial position in the preset frequency domain, so that the spatial positions of the copyright information included in the synthesized target video in the preset frequency domain form a position sequence, for example, a mixed index sequence = { A1, B2, A3, B4, A5, B6, A7, B8, A9, B10}, the copyright information carried by each video slice included in the slice set a is located at a spatial position in the left corner bias of the preset frequency domain, jian Jicheng is left, the copyright information carried by each video slice included in the slice set B is located at a spatial position in the right corner bias of the preset frequency domain, and is abbreviated as right, and the position sequence formed by the spatial positions of the copyright information included in the target video in the preset frequency domain is: left and right and left and right.
The position sequence is a sequence formed by arranging positions of copyright information in video slices in a preset frequency domain according to each video slice included in the target video.
It should be noted that, after repeated transcoding, the copyright information carried in the target video may be blurred, but the position sequence formed by the positions of the copyright information included in the target video in the preset frequency domain is kept unchanged.
S105, delivering the target video to the first channel.
In this embodiment, the target video is launched to the first type channel.
According to the video delivery method provided by the embodiment of the application, N slice sets of videos to be delivered are generated in advance, copyright information carried by video slices of different slice sets is located on different spatial positions of a preset frequency domain, the copyright information carried by video slices of the same slice set is located on the same spatial position of the preset frequency domain, so that channel identification of any first type channel is obtained in response to a video delivery request of the first type channel, a mixed index sequence comprising N indexes is generated according to the channel identification, each type of index corresponds to one slice set of the N slice sets of the videos to be delivered, then the video slices are sequentially obtained from the N slice sets of the videos to be delivered which are generated in advance according to the mixed index sequence, then video synthesis is carried out on each obtained video slice according to the sequence of obtaining the video slices, and finally the target video is delivered to the first type channel. Therefore, in the case of video leakage, the channel to which the leaked video belongs can be determined by identifying the position sequence of the leaked video, so that the subsequent maintenance is facilitated.
Preferably, N is 2, and in the case of N being 2, only twice the transcoding and storage costs are required to achieve adequate channel marking and tracking.
Referring to fig. 5, in the video delivery method provided by the embodiment of the present application, after step S105, the method may further include the following steps:
s501, acquiring a leakage video; the leaky video propagates through any of the first type channels to the second type channels.
Target video that propagates into the first type of channel may be distributed or sold after being illegally propagated to other platforms, resulting in video leakage.
In this embodiment, if a video leakage condition exists, a leakage video is acquired, where the leakage video is propagated to a second type channel through any first type channel, and the second type channel is a channel that does not meet a specific requirement.
In this embodiment, a leakage video, that is, an illegally propagated video is obtained, where the illegally propagated video may be a target video, or may be a target video obtained by re-transcoding at least once.
S502, decoding the leakage video to obtain each frame image of the leakage video.
In this embodiment, the leaked video is decoded to obtain each frame image of the leaked video, and specifically, the leaked video is decoded by a decoder, so as to obtain each frame image of the leaked video.
S503, sequentially executing a second operation on each frame image of the leaked video to obtain the spatial position of copyright information of each frame image included in the leaked video in a preset frequency domain.
In this embodiment, a second operation is sequentially performed on each frame image of the leaked video, so as to obtain a spatial position of copyright information of each frame image included in the leaked video in a preset frequency domain.
It should be noted that the execution order of executing the second operation is determined according to the play order of each frame image in the leaked video. That is, the execution order in which the second operation is executed is the play order of each frame image in the leaked video. For example, a total of 5 frame images a1, a2, a3, a4, a5, the order of playing the respective frame images in the leaked video is a1 to a2 to a3 to a4 to a5, and the order of executing the second operation is also a1 to a2 to a3 to a4 to a5.
Wherein, the second operation specifically includes:
converting the frame image from a spatial domain to a frequency domain;
extracting frequency domain information of the frame image in a preset frequency domain;
converting the extracted frequency domain information from a frequency domain to a spatial domain to obtain an image to be compared of the frame of image;
and identifying the spatial position of the copyright information in the image to be compared in a preset frequency domain to obtain the spatial position of the copyright information of the image to be compared in the preset frequency domain.
In this embodiment, for each frame image of the leaked video, the frame image is converted from the spatial domain to the frequency domain, specifically, the frame image is converted from the spatial domain to the frequency domain by two-dimensional fourier transform.
In this embodiment, for each frame image of the leaked video, frequency domain information of the frame image in a preset frequency domain is extracted, and specifically, frequency domain information of the frame image in the preset frequency domain is extracted through a frequency domain filter.
In this embodiment, for each frame image of the leaked video, the extracted frequency domain information is converted from the frequency domain to the spatial domain, specifically, the extracted frequency domain information is processed through two-dimensional inverse fourier transform, so as to convert the extracted frequency domain information from the frequency domain to the spatial domain, thereby obtaining an image to be compared of the frame image.
In this embodiment, for each frame image of the leaked video, the spatial position of the copyright information in the image to be compared in the frame image in the preset frequency domain is identified, specifically, gray value comparison is performed on the image to be compared and the copyright information, so as to obtain the spatial position of the copyright information in the image to be compared in the preset frequency domain.
S504, obtaining a spatial position sequence of the leakage video according to the spatial position of the copyright information of each frame image included in the leakage video in a preset frequency domain.
In this embodiment, according to the spatial position of the copyright information of each frame image included in the leaked video in the preset frequency domain, a spatial position sequence of the leaked video is obtained, specifically, according to the playing sequence of each frame image in the leaked video, the spatial positions of the copyright information of each frame image included in the leaked video in the preset frequency domain are arranged, so as to obtain the spatial position sequence of the leaked video.
S505, determining a first channel to which the leakage video belongs according to the position sequence of the leakage video.
In this embodiment, a first type of channel to which a leaky video belongs is determined according to a position sequence of the leaky video, specifically, a mixed index sequence corresponding to the leaky video is obtained according to a spatial position sequence of the leaky video, a second sequence corresponding to the leaky video is obtained according to the mixed index sequence, and a multi-system sequence corresponding to the leaky video is obtained according to the second sequence, so that a channel identifier of the first type of channel to which the leaky video belongs is obtained according to the multi-system sequence, and further the first type of channel to which the leaky video belongs is determined.
By way of example only, and not by way of limitation, if the position sequence of the leaked video is left and right, the corresponding mixing index sequence of the leaked video is { A1, A2, B3, B4, A5, B6, A7, A8, A9, B10, B11, A12, B13, A14, a15, a16, B17, B18, a19, B20}, the second sequence corresponding to the leaked video is {11001011100101110010}, the multi-system sequence corresponding to the leaked video is 1100101, and the leaked video is converted into 10-system 101, that is, the channel identifier of the first type channel to which the leaked video belongs is 101.
According to the method provided by the embodiment of the application, the frequency domain information of each frame of image included in the leakage video in the preset frequency domain is obtained, so that the spatial position of the plate weight information of each frame of image included in the leakage video in the preset frequency domain can be determined, the position sequence of the leakage video can be further obtained, the first channel to which the leakage video belongs is determined according to the position sequence, and the tracing of the leakage channel is realized, so that the follow-up maintenance of the weight is facilitated.
Referring to fig. 6, the specific implementation procedure of the video delivery method mentioned above is illustrated as follows:
and (one) generating a blind watermark video copy.
1. Video converting domain: and sequentially converting the video to be released into video frames (spatial domain) through a decoder, thereby obtaining each frame image included in the video to be released.
2. Spatial domain to frequency domain: converting each frame of image from a spatial domain to a frequency domain through two-dimensional Fourier transform;
3. frequency domain superposition: and superposing the copyrighted frequency domain with each frame frequency domain in the previous step, namely superposing the copyrighted information on the first space position of the preset frequency domain segment of each frame image.
4. Converting the frequency domain into the space domain: and converting each frame of superimposed frequency domain obtained in the previous step into a space domain through two-dimensional inverse Fourier transform, namely converting each frame of image superimposed with copyright information into the space domain through two-dimensional inverse Fourier transform, and obtaining each frame of image carrying the copyright information.
5. Spatial domain transfer video: and sequentially recoding and compressing each video frame converted by the encoder into a video, namely encoding each frame of image written with copyright information, and obtaining a video A to be released, which carries the copyright information.
And repeatedly executing the steps 1-5 again to superimpose the copyright information on the second space position of the preset frequency domain segment of each frame of image, thereby obtaining the video B to be released carrying the copyright information. Namely, the following are performed:
video converting domain: sequentially converting the video to be released into video frames (spatial domain) through a decoder, thereby obtaining each frame image included in the video to be released;
spatial domain to frequency domain: converting each frame of image from a spatial domain to a frequency domain through two-dimensional Fourier transform;
frequency domain superposition: and superposing the copyrighted frequency domain with each frame frequency domain in the previous step, namely superposing the copyrighted information on a second space position of a preset frequency domain segment of each frame image.
Converting the frequency domain into the space domain: and converting each frame of superimposed frequency domain obtained in the previous step into a space domain through two-dimensional inverse Fourier transform, namely converting each frame of image superimposed with copyright information into the space domain through two-dimensional inverse Fourier transform, and obtaining each frame of image carrying the copyright information.
Spatial domain transfer video: and sequentially recoding and compressing each video frame converted by the encoder into a video, namely encoding each frame of image written with copyright information to obtain a video B to be released, wherein the video B carries the copyright information.
In this embodiment, two video copies with blind watermarks (copyright information) are obtained through the steps respectively.
And (II) watermark copy video slice.
Slicing the two blind watermark video copies obtained in the last step respectively through a hls instruction of ffmpeg, wherein the instruction is as follows:
ffmpeg – i inputA.mp4 – c:v copy – hls_time 1 –hls_segment_filename %d.ts _ f hls output/playlistA.m3u8。
and (3) obtaining two slice sets with blind watermarks and an index file (m 3u 8) of the slice sets. Namely, a slice set A and an index file A, and a slice set B and an index file B are obtained.
Referring to fig. 7, for an original video (i.e., a video to be delivered) including n seconds(s), a video to be delivered a carrying copyright information and a video to be delivered B carrying copyright information are generated, the video to be delivered a carrying the copyright information is sliced according to a slicing duration of 1s, a slice set a including ns is obtained, and the video to be delivered a carrying the copyright information is sliced according to a slicing duration of 1s, so as to obtain a slice set B including ns.
It should be noted that, the copyright information carried by the video slices included in the slice set a and the slice set B are located at different spatial positions in the preset frequency domain, so, for ease of understanding, fig. 7 shows each video slice included in the slice set a by a right oblique line, and each video slice included in the slice set B by a left oblique line.
And (III) creating an AB sequence index file.
According to the channel ID of the request channel, the unique AB index file (namely the above-mentioned mixed index sequence) of the channel is obtained by recombining the two index files obtained in the previous step through a certain rule (converting the channel ID into binary, wherein 0 and 1 respectively represent the index file B and the index file A).
For example, the conversion of ID (101) into binary is followed by: because the index file a and the index file B respectively comprise n video slices, each character contained in 1100101 is repeatedly written into the first sequence in sequence until the total number of characters in the first sequence reaches n, the first sequence of the characters which are stopped from being written is taken as the second sequence, indexes corresponding to each character contained in the second sequence are acquired from each index file of the video to be put in sequence and written into the third sequence, and the mixed index sequences A1, A2, B3, B4, A5, B6, A7, A8 and … … are obtained.
And (IV) synthesizing the AB sequence video.
And acquiring corresponding video slices in the slice set A and the slice set B based on the AB index file, and synthesizing the video slices into the target video through a "-c: v copy" instruction of the ffmpeg.
In this embodiment, since the channel IDs have uniqueness, the target videos corresponding to the generated channel IDs also have uniqueness, that is, different target videos are generated for different channels.
Referring also to fig. 7, since the channel identifications of the channel 1 and the channel 2 are different, the generated channel 1 sequence and the channel 2 sequence are different, that is, the generated target video corresponding to the channel 1 and the target video corresponding to the channel 2 are different.
It should be noted that although instructions are depicted in a particular order, this should not be understood as requiring that such instructions be executed in the particular order presented, or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
Corresponding to the method shown in fig. 1, the embodiment of the present application further provides a video delivery device, which is used for implementing the method shown in fig. 1, and the device is applied to a server, and the structural schematic diagram of the device is shown in fig. 8, and specifically includes:
a first obtaining unit 801, configured to obtain a channel identifier of a first type channel in response to a video delivery request of any first type channel; the first type of channels are channels meeting specific requirements;
A generating unit 802, configured to generate a mixed index sequence of the first type of channels according to the channel identifier; the mixed index sequence comprises N types of indexes, each type of index corresponds to one slice set in N slice sets of video to be put in, N is a positive integer, each slice set comprises all video slices of the video to be put in, video slices in each slice set are obtained by slicing according to the same slicing rule, copyright information carried by video slices of different slice sets is located in different spatial positions of a preset frequency domain, and copyright information carried by video slices of the same slice set is located in the same spatial position of the preset frequency domain;
a second obtaining unit 803, configured to sequentially obtain video slices from N slice sets of the video to be delivered, which are generated in advance, according to the mixed index sequence;
a synthesizing unit 804, configured to perform video synthesis on each acquired video slice according to the order of acquiring video slices, so as to obtain a target video of the first channel; the spatial positions of the copyright information included in the target video in the preset frequency domain section form a position sequence;
And the delivering unit 805 is configured to deliver the target video to the first type channel.
According to the video delivery device provided by the embodiment of the application, the generated target video has the specific position sequence in the preset frequency domain, so that under the condition of video leakage, the channel to which the leaked video belongs can be determined by identifying the position sequence of the leaked video.
In one embodiment of the present application, based on the foregoing solution, the generating unit 802 is specifically configured to:
repeatedly executing the first operation for N times on the video to be launched to obtain N videos to be launched carrying copyright information; the N is a positive integer;
according to a preset segmentation rule, respectively carrying out video segmentation on N videos to be delivered, which carry copyright information, to obtain a segmentation set and an index file of each video to be delivered, which carry copyright information; the index included in the index file is used for indicating the position of the corresponding video slice in the slice set;
wherein the first operation includes:
decoding the video to be released to obtain each frame of image included in the video to be released;
converting each frame of image from a spatial domain to a frequency domain;
Determining the spatial position of copyright information to be superimposed in each frame of image included in the video to be placed;
superposing preset copyright information on the space position of the preset frequency domain segment of each frame of image to obtain a superposition result of each frame of image;
converting the superposition result of each frame of image from a frequency domain to a space domain to obtain each frame of image carrying copyright information;
and encoding each frame of image carrying the copyright information to obtain the video to be released carrying the copyright information.
In one embodiment of the present application, based on the foregoing scheme, the generating unit 802 is specifically configured to, when superimposing preset copyright information on the spatial position of the preset frequency domain segment of each frame image to obtain a superimposing result of each frame image:
superposing preset identical copyright information on the space position of the preset frequency domain segment of each frame of image to obtain a superposition result of each frame of image;
or alternatively, the first and second heat exchangers may be,
selecting one piece of unselected copyright information from a preset copyright information set; the copyright information set at least comprises N pieces of different copyright information;
and superposing the currently selected copyright information on the space position of the preset frequency domain segment of each frame of image to obtain a superposition result of each frame of image.
In one embodiment of the present application, based on the foregoing scheme, when generating the mixed index sequence of the first type of channels according to the channel identifier, the generating unit 802 is specifically configured to:
converting the channel identifier into a multi-system sequence; the number of the decimal numbers of the multilevel sequence is the same as the number of the slice sets of the video to be launched, which are generated in advance;
sequentially writing each character included in the multi-system sequence into a first sequence until the total number of characters in the first sequence reaches a target value; the target value is the number of video slices included in the segmentation set;
sequentially obtaining indexes corresponding to the characters included in the second sequence from each index file of the video to be launched and writing the indexes into a third sequence; the second sequence is a first sequence for stopping writing characters;
and taking the third sequence of which the index writing is completed as a mixed index sequence of the first-type channels.
In one embodiment of the present application, based on the foregoing scheme, the second obtaining unit 803 is specifically configured to:
taking a first index in the mixed index sequence as a target index;
positioning a video slice corresponding to a current target index in video slices included in the target slice set; the target slice set is a slice set corresponding to a current target index in N slice sets of the video to be put in, which are generated in advance;
Acquiring a currently positioned video slice;
and if the current target index is not the last index in the mixed index sequence, taking the next index of the target indexes in the mixed index sequence as a new target index, and returning to the step of executing the video slice corresponding to the current target index in the video slices included in the positioning target slice set according to the new target index until the current target index is the last index in the mixed index sequence.
In one embodiment of the present application, based on the foregoing scheme, it may be further configured to:
a third acquisition unit configured to acquire a leakage video; the leakage video is transmitted to a second type channel through any first type channel, and the second type channel is a channel which does not meet specific requirements;
the decoding unit is used for decoding the leakage video to obtain each frame image of the leakage video;
the execution unit is used for executing a second operation on each frame of image of the leaked video in sequence to obtain the spatial position of copyright information of each frame of image included in the leaked video in a preset frequency domain;
the acquisition unit is used for acquiring a position sequence of the leaked video according to the spatial position of the copyright information of each frame image included in the leaked video in a preset frequency domain;
The determining unit is used for determining a first channel to which the leakage video belongs according to the position sequence of the leakage video;
wherein the second operation includes:
converting the frame image from a spatial domain to a frequency domain;
extracting frequency domain information of the frame image in the preset frequency domain;
converting the extracted frequency domain information from a frequency domain to a spatial domain to obtain an image to be compared of the frame of image;
and identifying the spatial position of the copyright information in the image to be compared in the preset frequency domain to obtain the spatial position of the copyright information of the image to be compared in the preset frequency domain.
In one embodiment of the present application, based on the foregoing scheme, the execution unit is specifically configured to, when identifying a spatial position of the copyright information in the image to be compared in the preset frequency domain segment:
and comparing gray values of the images to be compared with the copyright information, and determining the spatial position of the copyright information in each image to be compared of the leaked video.
The embodiment of the application also provides a storage medium, which stores an instruction set, wherein the video delivery method disclosed in any embodiment above is executed when the instruction set runs.
The embodiment of the application also provides an electronic device, the structure of which is shown in fig. 9, specifically including a memory 901 for storing at least one group of instruction sets; a processor 902 for executing the set of instructions stored in the memory by performing the video delivery method as disclosed in any of the embodiments above.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.
While several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
The above description is only illustrative of the presently disclosed preferred embodiments and of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be made by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as the above-described features, are mutually replaced with the technical features having similar functions disclosed in the disclosure (but not limited to the disclosure).

Claims (9)

1. A video delivery method, comprising:
responding to a video delivery request of any first type channel, and acquiring a channel identifier of the first type channel; the first type of channels are channels meeting specific requirements;
generating a mixed index sequence of the first type of channels according to the channel identification; the mixed index sequence comprises N types of indexes, each type of index corresponds to one slice set in N slice sets of video to be put in, N is a positive integer, each slice set comprises all video slices of the video to be put in, video slices in each slice set are obtained by slicing according to the same slicing rule, copyright information carried by video slices of different slice sets is located in different spatial positions of a preset frequency domain, and copyright information carried by video slices of the same slice set is located in the same spatial position of the preset frequency domain;
according to the mixed index sequence, video slices are sequentially obtained from N slice sets of the video to be put in, which are generated in advance;
according to the sequence of obtaining video slices, video synthesis is carried out on each obtained video slice, and the target video of the first channel is obtained; the spatial positions of the copyright information included in the target video in the preset frequency domain section form a position sequence;
The target video is put into the first type channel;
generating a mixed index sequence of the first type channel according to the channel identifier, including:
converting the channel identifier into a multi-system sequence; the number of the decimal numbers of the multilevel sequence is the same as the number of the slice sets of the video to be launched, which are generated in advance;
sequentially writing each character included in the multi-system sequence into a first sequence until the total number of characters in the first sequence reaches a target value; the target value is the number of video slices included in the segmentation set;
sequentially obtaining indexes corresponding to the characters included in the second sequence from each index file of the video to be launched and writing the indexes into a third sequence; the second sequence is a first sequence for stopping writing characters;
and taking the third sequence of which the index writing is completed as a mixed index sequence of the first-type channels.
2. The method according to claim 1, wherein the pre-generation process of the N slice sets of the video to be delivered comprises:
repeatedly executing the first operation for N times on the video to be launched to obtain N videos to be launched carrying copyright information; the N is a positive integer;
According to a preset segmentation rule, respectively carrying out video segmentation on N videos to be delivered, which carry copyright information, to obtain a segmentation set and an index file of each video to be delivered, which carry copyright information; the index included in the index file is used for indicating the position of the corresponding video slice in the slice set;
wherein the first operation includes:
decoding the video to be released to obtain each frame of image included in the video to be released;
converting each frame of image from a spatial domain to a frequency domain;
determining the spatial position of copyright information to be superimposed in each frame of image included in the video to be placed;
superposing preset copyright information on the space position of the preset frequency domain segment of each frame of image to obtain a superposition result of each frame of image;
converting the superposition result of each frame of image from a frequency domain to a space domain to obtain each frame of image carrying copyright information;
and encoding each frame of image carrying the copyright information to obtain the video to be released carrying the copyright information.
3. The method according to claim 2, wherein the superimposing the preset copyright information on the spatial position of the preset frequency domain segment of each frame image to obtain a superimposed result of each frame image includes:
Superposing preset identical copyright information on the space position of the preset frequency domain segment of each frame of image to obtain a superposition result of each frame of image;
or alternatively, the first and second heat exchangers may be,
selecting one piece of unselected copyright information from a preset copyright information set; the copyright information set at least comprises N pieces of different copyright information;
and superposing the currently selected copyright information on the space position of the preset frequency domain segment of each frame of image to obtain a superposition result of each frame of image.
4. The method according to claim 1, wherein the sequentially obtaining video slices from a pre-generated N slice sets of video to be delivered according to the mixing index sequence includes:
taking a first index in the mixed index sequence as a target index;
positioning a video slice corresponding to a current target index in video slices included in the target slice set; the target slice set is a slice set corresponding to a current target index in N slice sets of the video to be put in, which are generated in advance;
acquiring a currently positioned video slice;
and if the current target index is not the last index in the mixed index sequence, taking the next index of the target indexes in the mixed index sequence as a new target index, and returning to the step of executing the video slice corresponding to the current target index in the video slices included in the positioning target slice set according to the new target index until the current target index is the last index in the mixed index sequence.
5. The method of claim 1, wherein after delivering the target video to the first type of channel, further comprising:
acquiring a leakage video; the leakage video is transmitted to a second type channel through any first type channel, and the second type channel is a channel which does not meet specific requirements;
decoding the leakage video to obtain each frame image of the leakage video;
sequentially executing a second operation on each frame of image of the leaked video to obtain the spatial position of copyright information of each frame of image included in the leaked video in a preset frequency domain;
obtaining a position sequence of the leakage video according to the spatial position of the copyright information of each frame image included in the leakage video in a preset frequency domain;
determining a first channel to which the leakage video belongs according to the position sequence of the leakage video;
wherein the second operation includes:
converting the frame image from a spatial domain to a frequency domain;
extracting frequency domain information of the frame image in the preset frequency domain;
converting the extracted frequency domain information from a frequency domain to a spatial domain to obtain an image to be compared of the frame of image;
and identifying the spatial position of the copyright information in the image to be compared in the preset frequency domain to obtain the spatial position of the copyright information of the image to be compared in the preset frequency domain.
6. The method of claim 5, wherein the identifying the spatial location of the copyright information in the image to be compared in the preset frequency domain segment comprises:
and comparing gray values of the images to be compared and the copyright information, and determining the spatial position of the copyright information in each image to be compared of the leaked video.
7. A video delivery apparatus, comprising:
the first acquisition unit is used for responding to a video delivery request of any first type channel and acquiring channel identification of the first type channel; the first type of channels are channels meeting specific requirements;
the generation unit is used for generating a mixed index sequence of the first type of channels according to the channel identification; the mixed index sequence comprises N types of indexes, each type of index corresponds to one slice set in N slice sets of video to be put in, N is a positive integer, each slice set comprises all video slices of the video to be put in, video slices in each slice set are obtained by slicing according to the same slicing rule, copyright information carried by video slices of different slice sets is located in different spatial positions of a preset frequency domain, and copyright information carried by video slices of the same slice set is located in the same spatial position of the preset frequency domain;
The second acquisition unit is used for sequentially acquiring video slices from N slice sets of the video to be put in, which are generated in advance, according to the mixed index sequence;
the synthesizing unit is used for synthesizing the video of each obtained video slice according to the order of obtaining the video slices to obtain the target video of the first channel; the spatial positions of the copyright information included in the target video in the preset frequency domain section form a position sequence;
the delivery unit is used for delivering the target video to the first type channel;
the generating unit is specifically configured to:
generating a mixed index sequence of the first type channel according to the channel identifier, including:
converting the channel identifier into a multi-system sequence; the number of the decimal numbers of the multilevel sequence is the same as the number of the slice sets of the video to be launched, which are generated in advance;
sequentially writing each character included in the multi-system sequence into a first sequence until the total number of characters in the first sequence reaches a target value; the target value is the number of video slices included in the segmentation set;
sequentially obtaining indexes corresponding to the characters included in the second sequence from each index file of the video to be launched and writing the indexes into a third sequence; the second sequence is a first sequence for stopping writing characters;
And taking the third sequence of which the index writing is completed as a mixed index sequence of the first-type channels.
8. A storage medium storing a set of instructions, wherein the set of instructions when executed by a processor implement the video delivery method of any one of claims 1-6.
9. An electronic device, comprising:
a memory for storing at least one set of instructions;
a processor for executing a set of instructions stored in said memory, by executing said set of instructions, implementing a video delivery method as claimed in any one of claims 1-6.
CN202310838543.XA 2023-07-10 2023-07-10 Video delivery method and device, storage medium and electronic equipment Active CN116567353B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310838543.XA CN116567353B (en) 2023-07-10 2023-07-10 Video delivery method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310838543.XA CN116567353B (en) 2023-07-10 2023-07-10 Video delivery method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN116567353A CN116567353A (en) 2023-08-08
CN116567353B true CN116567353B (en) 2023-09-12

Family

ID=87488381

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310838543.XA Active CN116567353B (en) 2023-07-10 2023-07-10 Video delivery method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN116567353B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117528154B (en) * 2024-01-04 2024-03-29 湖南快乐阳光互动娱乐传媒有限公司 Video delivery method and device, electronic equipment and storage medium

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350917A (en) * 2007-12-14 2009-01-21 北京中企开源信息技术有限公司 Method and system for managing digital video copyright
EP2530948A1 (en) * 2011-06-03 2012-12-05 Samsung Electronics Co., Ltd. Method and device for demultiplexing audio & video data of multimedia file
CN103069823A (en) * 2010-04-14 2013-04-24 斯文·里思米勒 Platform-independent interactivity with media broadcasts
CN107153794A (en) * 2016-03-03 2017-09-12 腾讯科技(深圳)有限公司 File encrypting method and device, file decryption method and apparatus
CN110557689A (en) * 2019-09-29 2019-12-10 湖南快乐阳光互动娱乐传媒有限公司 Video playing method and device
CN110933464A (en) * 2019-11-13 2020-03-27 北京思维造物信息科技股份有限公司 Method and system for adding digital watermark to multimedia file
CN111741377A (en) * 2020-05-19 2020-10-02 北京奥鹏远程教育中心有限公司 Video processing method
CN111836054A (en) * 2020-07-24 2020-10-27 上海连尚网络科技有限公司 Video piracy prevention method, electronic device and computer readable storage medium
CN112543353A (en) * 2020-11-20 2021-03-23 湖南快乐阳光互动娱乐传媒有限公司 Video playing request processing method and related device
WO2021120685A1 (en) * 2019-12-20 2021-06-24 苏宁云计算有限公司 Video generation method and apparatus, and computer system
CN113313316A (en) * 2021-06-11 2021-08-27 北京明略昭辉科技有限公司 Method and device for outputting prediction data, storage medium and electronic equipment
CN113810781A (en) * 2021-11-17 2021-12-17 三节课信息咨询(北京)有限公司 Video processing method, video processing device, video tracking method, video tracking device and storage medium
WO2022033485A1 (en) * 2020-08-13 2022-02-17 北京达佳互联信息技术有限公司 Video processing method and electronic device
WO2022142757A1 (en) * 2020-12-30 2022-07-07 北京金山云网络技术有限公司 Video processing method and apparatus, electronic device, and computer readable storage medium
CN114915806A (en) * 2021-02-08 2022-08-16 华为技术有限公司 Video playing method, device and system
CN115633190A (en) * 2022-10-17 2023-01-20 湖南快乐阳光互动娱乐传媒有限公司 Video copyright processing method, device, storage medium and equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8224087B2 (en) * 2007-07-16 2012-07-17 Michael Bronstein Method and apparatus for video digest generation
US10694231B2 (en) * 2016-12-31 2020-06-23 Turner Broadcasting System, Inc. Dynamic channel versioning in a broadcast air chain based on user preferences
CN110248219A (en) * 2018-03-08 2019-09-17 腾讯科技(深圳)有限公司 Video broadcasting method, device and equipment
CN110381384A (en) * 2019-07-25 2019-10-25 网宿科技股份有限公司 A kind of method and device that interactive audiovisual plays

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350917A (en) * 2007-12-14 2009-01-21 北京中企开源信息技术有限公司 Method and system for managing digital video copyright
CN103069823A (en) * 2010-04-14 2013-04-24 斯文·里思米勒 Platform-independent interactivity with media broadcasts
EP2530948A1 (en) * 2011-06-03 2012-12-05 Samsung Electronics Co., Ltd. Method and device for demultiplexing audio & video data of multimedia file
CN107153794A (en) * 2016-03-03 2017-09-12 腾讯科技(深圳)有限公司 File encrypting method and device, file decryption method and apparatus
CN110557689A (en) * 2019-09-29 2019-12-10 湖南快乐阳光互动娱乐传媒有限公司 Video playing method and device
CN110933464A (en) * 2019-11-13 2020-03-27 北京思维造物信息科技股份有限公司 Method and system for adding digital watermark to multimedia file
WO2021120685A1 (en) * 2019-12-20 2021-06-24 苏宁云计算有限公司 Video generation method and apparatus, and computer system
CN111741377A (en) * 2020-05-19 2020-10-02 北京奥鹏远程教育中心有限公司 Video processing method
CN111836054A (en) * 2020-07-24 2020-10-27 上海连尚网络科技有限公司 Video piracy prevention method, electronic device and computer readable storage medium
WO2022033485A1 (en) * 2020-08-13 2022-02-17 北京达佳互联信息技术有限公司 Video processing method and electronic device
CN112543353A (en) * 2020-11-20 2021-03-23 湖南快乐阳光互动娱乐传媒有限公司 Video playing request processing method and related device
WO2022142757A1 (en) * 2020-12-30 2022-07-07 北京金山云网络技术有限公司 Video processing method and apparatus, electronic device, and computer readable storage medium
CN114915806A (en) * 2021-02-08 2022-08-16 华为技术有限公司 Video playing method, device and system
CN113313316A (en) * 2021-06-11 2021-08-27 北京明略昭辉科技有限公司 Method and device for outputting prediction data, storage medium and electronic equipment
CN113810781A (en) * 2021-11-17 2021-12-17 三节课信息咨询(北京)有限公司 Video processing method, video processing device, video tracking method, video tracking device and storage medium
CN115633190A (en) * 2022-10-17 2023-01-20 湖南快乐阳光互动娱乐传媒有限公司 Video copyright processing method, device, storage medium and equipment

Also Published As

Publication number Publication date
CN116567353A (en) 2023-08-08

Similar Documents

Publication Publication Date Title
US20140270337A1 (en) Transactional video marking system
US11023618B2 (en) Systems and methods for detecting modifications in a video clip
US10972807B2 (en) Dynamic watermarking of digital media content at point of transmission
Lin et al. Advances in digital video content protection
US20070003102A1 (en) Electronic watermark-containing moving picture transmission system, electronic watermark-containing moving picture transmission method, information processing device, communication control device, electronic watermark-containing moving picture processing program, and storage medium containing electronic watermark-containing
Al-Frajat et al. Hiding data in video file: An overview
CN116567353B (en) Video delivery method and device, storage medium and electronic equipment
US20140086445A1 (en) Watermarking of digital video
US20130042100A1 (en) Method and apparatus for forced playback in http streaming
JP2011172232A (en) Digital content marking method, method for detecting fingerprint in digital content, digital content, apparatus for watermarking digital content, apparatus for fingerprinting watermarked digital content, apparatus for detecting fingerprint in digital content, and memory for storing information including instruction
CA2952486A1 (en) Providing advanced playback and control functionality to video client
CN112040336A (en) Method, device and equipment for adding and extracting video watermark
CN110288504A (en) It is a kind of to automatically add water impression method towards block chain digital education platform
WO2020080956A1 (en) Media production system and method
CN105704124A (en) Video value regenerating system and method based on Internet
JP3917395B2 (en) Content distribution method, content distribution device, content illegal copy inspection method, content illegal copy inspection device, content distribution program, content illegal copy inspection program, and computer-readable recording medium recording these programs
CN107613365A (en) A kind of video broadcasting method and device
EP3172678A1 (en) Method and apparatus for delocalized management of video data
US10154275B2 (en) Systems and methods for embedding metadata into video contents
Thanh et al. A proposal of digital rights management based on incomplete cryptography using invariant Huffman code length feature
KR20130043563A (en) Method and system for forensic marking of digital contents
CN113141542B (en) Video stream safe playing system, method, medium and server based on block chain
Wang et al. Detecting the fingerprint of video data hiding tool OpenPuff
EP2414979A2 (en) Watermarking method and system
Zolfaghari et al. A Survey on Piracy Protection Techniques in Digital Cinema Watermarking Schemes

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant