Video transport stream processing method and device, electronic equipment, medium and product

By matching the masking template and the index file, the client decodes and obtains the transport stream that matches the masking template, which solves the problem of low efficiency in video transport stream mask processing in the existing technology, realizes hierarchical protection of multiple users and image areas, and improves Improve processing efficiency and application applicability.

CN119342244APending Publication Date: 2025-01-21CHINA MOBILE GROUP ZHEJIANG +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411500078.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-25
Publication Date
2025-01-21

AI Technical Summary

Technical Problem

The mask processing efficiency of existing video transmission streams is inefficient, and it is impossible to achieve layered protection for multiple users, and it is impossible to distinguish the protection requirements of different image areas.

Method used

By obtaining the client's playback request, matching the masking template and index file, sending the scrambled transport stream fragments and matching index file to the client, the client decodes the index file to obtain the transport stream matching the masking template, realizing the control of different clients and images. Layered protection of areas.

Benefits of technology

The mask processing efficiency of multi -user video transmission flow has been improved, independent protection of different clients and image areas, and enhancing the flexibility and applicability of application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119342244A_ABST
    Figure CN119342244A_ABST
Patent Text Reader

Abstract

The invention provides a video transmission stream processing method and apparatus, an electronic device, a medium and a product, relates to the technical field of data processing, and realizes shielding of different sensitive areas for different clients by applying different matching shielding templates to different clients. According to the method, the matching index file is obtained according to the matching shielding template, and then the transport stream corresponding to the matching shielding template is obtained, so that the sensitive area is shielded by using different matching shielding templates aiming at different clients, the video of the transport stream corresponding to the matching shielding template is played, and independent playing of scrambled videos of different clients is realized. According to multiple shielding templates, shielding of different sensitive areas of video transport stream fragments is realized, and the efficiency of independent playing of scrambled videos of multiple clients is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method, device, electronic device, medium and product for processing a video transmission stream. Background Art

[0002] In the configuration of sensitive information mosaics in the existing video transmission stream, it is necessary to divide the original video surveillance image into macroblocks. According to the size of the encoded macroblock division, the image with a width of W and a height of H is normally divided into N=(W×H) / (8x8) macroblocks according to the minimum encoding unit of 8x8 during encoding. In the entire image, each 8x8 macroblock is marked with a sensitive information macroblock index from top to bottom and from left to right. The marking index range is {0, N-1}, and the macroblock index of the sensitive information in the entire original image is obtained.

[0003] The disadvantage of the mask processing of the video transmission stream is that it can only realize rectangular mosaic images in a similar fixed rectangular video surveillance image area. Secondly, this technical solution cannot distinguish users to decrypt the same video surveillance image, nor can it subdivide it into different areas of the video surveillance image. Therefore, it is impossible to realize layered protection for different users and different image areas on the same video surveillance media stream.

[0004] Therefore, if the same video surveillance media stream with different masking templates is obtained, different scrambled video streams need to be marked for a large number of different clients. It is impossible to decouple the client and the video surveillance media stream, which has certain limitations in application scenarios and applicability. Summary of the invention

[0005] The present application provides a method, device, electronic device, medium and product for processing a video transmission stream, so as to solve the defect of low efficiency of mask processing of video transmission streams for multiple users in the prior art, and to improve the efficiency of mask processing of video transmission streams for multiple users.

[0006] In the first aspect, the present application provides a method for processing a video transmission stream, which is applied to a video surveillance platform, including: based on a playback request sent by a client, obtaining a matching shielding template of a playback loop queue, and obtaining a matching index file of the playback loop queue based on the shielding template; sending a fixed number of scrambled transmission stream fragments and a matching index file corresponding to the playback loop queue to the client, so that the client can decode the fixed number of scrambled transmission stream fragments based on the matching index file to obtain a transmission stream corresponding to the matching shielding template, so as to play the video of the transmission stream corresponding to the matching shielding template, wherein the scrambled transmission stream fragment is a video transmission stream fragment loaded with multiple shielding templates, and a shielding template is used to block a sensitive area of ​​the video transmission stream fragment; updating the playback loop queue and the matching index file in real time, so that the client can obtain the transmission stream corresponding to the matching shielding template updated in real time.

[0007] In one embodiment, a method for obtaining a playback loop queue includes: obtaining an original video transmission stream based on an intelligent video terminal; based on the sensitive needs of different clients, using multiple shielding templates to perform masking processing on the original video transmission stream to obtain a scrambled transmission stream loaded with multiple shielding templates; encrypting the scrambled transmission stream based on the level of the client and the confidentiality level of the scrambled transmission stream to obtain an encrypted scrambled transmission stream; format converting and slicing the encrypted scrambled transmission stream to obtain a scrambled transmission stream fragment sequence, the scrambled transmission stream fragment sequence including multiple scrambled transmission stream fragments arranged consecutively in time; based on a sliding window of a fixed length, obtaining a fixed number of scrambled transmission stream fragments arranged consecutively in time from the scrambled transmission stream fragment sequence to obtain a playback loop queue.

[0008] In one embodiment, a matching index file of a playback loop queue is obtained based on a shielding template, including: generating an initial index information sequence of a scrambled transport stream fragment sequence based on a time position of each scrambled transport stream fragment and a structural attribute of each scrambled transport stream fragment; obtaining an index information queue corresponding to the playback loop queue in the initial index information sequence based on a sliding window; obtaining an encryption key of the playback loop queue; and obtaining a matching index file based on a matching shielding template, the index information queue corresponding to the playback loop queue, the encryption key, and a source-end start switch.

[0009] In one embodiment, the starting point and the end point of the playback loop queue are the same, and the playback loop queue and the matching index file are updated in real time, including: when a newly added scrambled transport stream segment is identified, the newly added scrambled transport stream segment is added to the playback loop queue from the starting point of the playback loop queue, and the last scrambled transport stream segment of the playback loop queue is deleted from the starting point of the playback loop queue to obtain an updated playback loop queue; an updated index information queue corresponding to the updated playback loop queue is obtained; and an updated matching index file is obtained based on the matching shielding template, the updated index information queue, the encryption key and the source end start switch.

[0010] In the second aspect, the present application provides a method for processing a video transmission stream, which is applied to a client, including: receiving a fixed number of scrambled transmission stream fragments corresponding to a playback loop queue sent by a video surveillance platform and a matching index file of the playback loop queue, the scrambled transmission stream fragments being video transmission stream fragments loaded with multiple shielding templates, a shielding template being used to block a sensitive area of ​​the video transmission stream fragment, and the matching index file being obtained by the video surveillance platform based on a matching shielding template of a playback request sent by a client; based on the matching index file, decoding a fixed number of scrambled transmission stream fragments to obtain a transmission stream corresponding to the matching shielding template to play the video of the transmission stream corresponding to the matching shielding template; when the video surveillance platform updates the playback loop queue and the matching index file in real time, obtaining the transmission stream corresponding to the matching shielding template updated in real time.

[0011] In one embodiment, based on a matching index file, a fixed number of scrambled transport stream fragments are decoded to obtain a transport stream corresponding to a matching shielding template, including: obtaining an encryption key of a playback loop queue, an index information queue corresponding to the playback loop queue, a source-end start switch, and a matching shielding template based on the matching index file; decrypting the playback loop queue and the index information queue corresponding to the playback loop queue based on the encryption key to obtain a decrypted video transport stream loaded with a plurality of shielding templates; based on the source-end start switch, releasing the use of other shielding templates of the decrypted video transport stream, retaining the use of the matching shielding template, to obtain a transport stream corresponding to the matching shielding template, wherein the other shielding templates are shielding templates other than the matching shielding template.

[0012] In a third aspect, the present application provides a video transmission stream processing device, including: a matching index file determination module, a sending module and a first update module, wherein: the matching index file determination module is used to obtain a matching shielding template of a playback loop queue based on a playback request sent by a client, and obtain a matching index file of the playback loop queue based on the shielding template; the sending module is used to send a fixed number of scrambled transmission stream fragments and a matching index file corresponding to the playback loop queue to a client, so that the client can decode the fixed number of scrambled transmission stream fragments based on the matching index file to obtain a transmission stream corresponding to the matching shielding template, so as to play the video of the transmission stream corresponding to the matching shielding template, the scrambled transmission stream fragment is a video transmission stream fragment loaded with multiple shielding templates, and a shielding template is used to cover a sensitive area of ​​a video transmission stream fragment; the first update module is used to update the playback loop queue and the matching index file in real time, so that the client can obtain the transmission stream corresponding to the matching shielding template after real-time update; In a fourth aspect, the present application provides a video transmission stream processing device including a receiving module, a decryption module and a second updating module, wherein: the receiving module is used to receive a fixed number of scrambled transmission stream fragments and a matching index file of the playback cycle queue corresponding to the playback cycle queue sent by the video monitoring platform, the scrambled transmission stream fragments are video transmission stream fragments loaded with multiple shielding templates, a shielding template is used to cover a sensitive area of ​​the video transmission stream fragments, and the matching index file is obtained by the video monitoring platform based on the matching shielding template of the playback request sent by the client; the decryption module is used to decode the fixed number of scrambled transmission stream fragments based on the matching index file to obtain the transmission stream corresponding to the matching shielding template to play the video of the transmission stream corresponding to the matching shielding template; the second updating module is used to obtain the transmission stream corresponding to the matching shielding template after real-time update when the video monitoring platform updates the playback cycle queue and the matching index file in real time. , including the following steps.

[0013] In a fifth aspect, the present application also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, it implements any of the above-mentioned methods for processing a video transmission stream.

[0014] In a sixth aspect, the present application further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-mentioned methods for processing a video transmission stream.

[0015] In a seventh aspect, the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements any of the above-mentioned methods for processing a video transmission stream.

[0016] The processing method, device, electronic device, medium and product of the video transmission stream provided by the present application realize the shielding of different sensitive areas for different clients by applying different matching shielding templates to different clients. The matching index file is obtained according to the matching shielding template, and then the transmission stream corresponding to the matching shielding template is obtained, so that different matching shielding templates are used to shield sensitive areas for different clients, and then the video of the transmission stream corresponding to the matching shielding template is played, so that the independent playback of scrambled videos of different clients is realized. The shielding of different sensitive areas of the video transmission stream fragments is realized according to a plurality of shielding templates, which is conducive to improving the efficiency of independent playback of scrambled videos for multiple clients. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0018] Figure 1 This is one of the flow charts of the method for processing the video transmission stream provided by this application.

[0019] Figure 2 It is a schematic diagram of the process of obtaining the scrambled transmission stream provided by this application.

[0020] Figure 3 The process of determining the shielding template provided in this application is shown as follows.

[0021] Figure 4 It is a schematic diagram of the process of generating scrambled transport stream fragments provided by this application.

[0022] Figure 5 This is the second flowchart of the method for processing the video transmission stream provided by this application.

[0023] Figure 6 This is the third flow chart of the method for processing video transmission stream provided by this application.

[0024] Figure 7 This is the fourth flow chart of the method for processing the video transmission stream provided by this application.

[0025] Figure 8 This is one of the structural schematic diagrams of the video transmission stream processing device provided by this application.

[0026] Fig. 9 This is the second structural schematic diagram of the video transmission stream processing device provided by this application.

[0027] Fig.10 It is a schematic diagram of the structure of the electronic device provided by this application. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0029] Combine the following Figure 1-Figure 10The present invention describes a method, device and electronic device for processing a video transmission stream.

[0030] Figure 1 This is one of the flow charts of the method for processing a video transmission stream provided by the present application, such as Figure 1 As shown, the method for processing a video transmission stream is applied to a video monitoring platform and includes S100 to S400, and each step is specifically as follows.

[0031] S100: Based on the play request sent by the client, a matching shielding template of the play loop queue is obtained, and based on the shielding template, a matching index file of the play loop queue is obtained.

[0032] The video surveillance platform connects the video content source and the client. The video surveillance platform obtains the original video transmission stream from the video content source, and obtains sensitive areas and shielding templates of sensitive areas of multiple original video transmission streams according to the sensitive requirements of different clients. One sensitive area corresponds to one shielding template. Multiple sensitive areas of the original video transmission stream are shielded according to multiple shielding templates. The original video transmission stream after shielding is transcoded, encrypted and sliced ​​to obtain a scrambled transmission stream fragment sequence. According to the fixed sliding window and the play request, the play loop queue is obtained from the scrambled transmission stream fragment sequence.

[0033] The play request includes the play time (play progress) and the play definition. The scrambled transport stream fragment sequence includes scrambled transport stream fragments of multiple play definitions. The sliding window is moved to the position corresponding to the play time to obtain a fixed number of scrambled transport stream fragments corresponding to the client's play definition from the scrambled transport stream fragment sequence to obtain a play loop queue.

[0034] The play request also includes a matching mask template. The matching index file of the play request is obtained according to the matching mask template.

[0035] S200: Send a fixed number of scrambled transport stream segments and a matching index file corresponding to the playback loop queue to the client, so that the client can decode the fixed number of scrambled transport stream segments based on the matching index file to obtain the transport stream corresponding to the matching shielding template, so as to play the video of the transport stream corresponding to the matching shielding template.

[0036] The scrambled transport stream fragment is a video transport stream fragment loaded with a plurality of shielding templates, wherein a shielding template is used to shield a sensitive area of ​​the video transport stream fragment.

[0037] The video surveillance platform responds to the playback request and sends a fixed number of scrambled transport stream segments and matching index files corresponding to the playback request to the client in accordance with the hypertext transfer (http) protocol.

[0038] The client receives a fixed number of scrambled transport stream fragments and a matching index file. The client decrypts the fixed number of scrambled transport stream fragments according to the matching index file. The client unmasks other masking templates (except the matching masking template) of the decrypted scrambled transport stream fragments, retains only the matching masking template, and obtains the transport stream corresponding to the matching masking template. The client plays the video of the transport stream corresponding to the matching masking template.

[0039] Furthermore, in response to playback requests from different clients, the video surveillance platform can obtain different playback loop queues, different matching masking templates, and different matching index files from the scrambled transport stream fragment sequence. Each client obtains a fixed number of scrambled transport stream fragments and corresponding matching index files corresponding to the corresponding playback loop queue, and then obtains the transport stream corresponding to the corresponding matching masking template, thereby realizing different playback requirements of different clients.

[0040] S300: updating the playback loop queue and the matching index file in real time, so that the client can obtain the transmission stream corresponding to the matching masking template updated in real time.

[0041] If a new video transport stream is obtained from the video content source, the new video transport stream is added to the original video transport stream to update the original video transport stream, thereby updating the scrambled transport stream fragment sequence. According to the progress requirement of the client's playback request, a real-time updated playback loop queue is obtained in the scrambled transport stream fragment sequence or the updated scrambled transport stream fragment sequence. The matching index file is updated according to the updated playback loop queue.

[0042] The updated playback loop queue and the updated matching index file are sent to the client. The client decodes the fixed number of scrambled transport stream segments of the updated playback loop queue according to the updated matching index file to obtain the transport stream corresponding to the updated matching masking template. The client plays the video of the transport stream corresponding to the updated matching masking template, thereby realizing continuous playback of the client video.

[0043] The processing method of the video transmission stream provided in the embodiment of the present application realizes the shielding of different sensitive areas for different clients by applying different matching shielding templates to different clients. The matching index file is obtained according to the matching shielding template, and then the transmission stream corresponding to the matching shielding template is obtained, so that different matching shielding templates are used to shield sensitive areas for different clients, and then the video of the transmission stream corresponding to the matching shielding template is played, so that the independent playback of scrambled videos of different clients is realized. The shielding of different sensitive areas of the video transmission stream fragments is realized according to a plurality of shielding templates, which is conducive to improving the efficiency of independent playback of scrambled videos for multiple clients.

[0044] The method for obtaining the playback cycle queue includes S110 to S150, and each step is specifically as follows.

[0045] S110: Acquire an original video transmission stream based on the intelligent video terminal.

[0046] S120: Based on the sensitive requirements of different clients, a plurality of shielding templates are used to perform shielding processing on the original video transmission stream, so as to obtain an encrypted transmission stream loaded with the plurality of shielding templates.

[0047] S130: Encrypting the scrambled transport stream based on the level of the client and the confidentiality level of the scrambled transport stream to obtain an encrypted scrambled transport stream.

[0048] S140: Perform format conversion and slicing on the encrypted scrambled transport stream to obtain a scrambled transport stream fragment sequence, where the scrambled transport stream fragment sequence includes a plurality of scrambled transport stream fragments that are sequentially arranged in time.

[0049] S150: Based on a sliding window of fixed length, a fixed number of scrambled transport stream fragments arranged continuously in time are obtained from the scrambled transport stream fragment sequence to obtain a playback loop queue.

[0050] Smart video terminals include home smart hardware (e.g., home cameras) and industry smart hardware (e.g., public cameras). Smart video terminals obtain original video transmission streams, such as Rapid Spanning Tree Protocol (RSTP) data streams. RSTP data streams are connected to the video surveillance platform through dedicated lines or the public network. The video surveillance platform obtains sensitive areas and corresponding shielding templates based on the sensitivity requirements of different clients.

[0051] For example, in the video surveillance of a factory workshop, multiple workstations are associated with different sensitive areas of multiple customers. In schools and training classrooms, the status of multiple students and their tutors are associated with different sensitive areas of multiple customers.

[0052] First, the controller or client of the video surveillance defines the sensitive area of ​​the video surveillance content (original video transmission stream). For relatively static video surveillance images, the sending controller selects the sensitive area of ​​the video surveillance content roughly according to the prior agreement. For the sensitive area of ​​the video surveillance that moves and follows, the automatic recognition and following algorithm of the video surveillance target is superimposed to automatically define the sensitive area of ​​the video surveillance. Figure 3 As shown, the sensitive area is then binarized to form a preliminary shielding template. The preliminary shielding template has many holes and burrs inside, and needs to be processed by image corrosion, expansion and black-and-white inversion. Further, the preliminary shielding template after black-and-white inversion is scaled, translated and rotated to obtain a shielding template.

[0053] like Figure 2 As shown in the figure, based on the sensitive needs of different clients, multiple shielding templates (for example, shielding template A, shielding template B, etc.) are used to block the original video transmission stream, and an encrypted transmission stream loaded with multiple shielding templates is obtained. For relatively static video surveillance images (original video transmission streams), the sensitive areas covering the original video transmission stream are matched by scaling, translating, and rotating the shielding templates, and an encrypted transmission stream loaded with the shielding template is obtained. For another type of mobile following video surveillance sensitive areas (original video transmission streams), the display tracking area is automatically matched by superimposing the video surveillance target following algorithm, and an encrypted transmission stream loaded with the shielding template is obtained.

[0054] In actual application scenarios, some clients require complete shielding, and the sensitive areas are completely invisible. Some video surveillance content controllers do not want the client to deny the determination of the main feature values ​​of the sensitive areas of the video surveillance image, or do not want to provide completely clear and sensitive video surveillance images in public.

[0055] Different clients use their own shielding templates. Therefore, when each client uses the shielding template, it only affects its own sensitive area and does not affect other clients. Use multiple shielding templates to block the original video transmission stream to obtain an encrypted transmission stream. At the same time, during the deshielding process of the playback loop queue, each client also obtains the transmission stream corresponding to the matching shielding template that they have reached an agreement on. Between different clients, due to different matching shielding templates, the transmission streams corresponding to the matching shielding templates will not be confused with each other.

[0056] According to the client level and the confidentiality level of the scrambled transmission stream, the scrambled transmission stream is encrypted to obtain the encrypted scrambled transmission stream and encryption key. The encryption method includes Advanced Encryption Standard 128-bit (AES-128).

[0057] The encrypted scrambled transport stream is format-converted and sliced ​​to obtain a plurality of scrambled transport stream fragments that are arranged continuously in time, and then a scrambled transport stream fragment sequence is obtained.

[0058] The video surveillance platform performs format conversion on the scrambled transport stream. For example, the scrambled transport stream is transcoded using the MPEG-2 protocol to obtain a scrambled transport stream of the Hypertext Transfer Protocol Real-time Streaming (HTTP Live Streaming, HLS) protocol that meets the protocol requirements. In MPEG-2 protocol transcoding, the video surveillance media stream (scrambled transport stream) is multiplexed, encapsulated, and compressed within and between frames. The video frames of the scrambled transport stream after format conversion include I frames, P frames, and B frames. I frames are instantaneous decoder refresh (IDR) frames. P frames are prediction frames. B frames are bi-prediction frames.

[0059] The scrambled transport stream after format conversion includes multiple frames of images, each of which has its own timestamp, and the difference between the timestamps of multiple frames is the decoding timestamp (Decoding Time Stamp, DTS). Figure 4 As shown, the configuration DTS of the scrambled transport stream fragment is set. When a new scrambled transport stream fragment is generated, the timestamp of the corresponding first frame image is used as the start time of the new scrambled transport stream fragment. When the DTS corresponding to multiple frames of images reaches the configured value of DTS, a new scrambled transport stream fragment is generated. The configuration DTS is used to ensure that the playback time length of the scrambled transport stream fragments is equal.

[0060] At the same time, each scrambled transport stream fragment includes an I frame. I frame is a key frame, and each scrambled transport stream fragment (TS file) must contain an I frame. During the generation of scrambled transport stream fragments, if the DTS of the I frame reaches or nearly exceeds the configured DTS that can restore the normal video stream, the scrambled transport stream fragment must be regenerated, otherwise the scrambled transport stream fragment cannot be decoded normally and restored to a normal video image.

[0061] Furthermore, it is also possible to choose not to encrypt the scrambled transport stream.

[0062] According to a sliding window of fixed length, a fixed number of scrambled transport stream fragments arranged continuously in time are obtained from the scrambled transport stream fragment sequence to obtain a playback circular queue.

[0063] Furthermore, multiple scrambled transport stream fragment sequences are obtained, and different scrambled transport stream fragment sequences correspond to different playback clarity. The playback clarity required by the client is obtained, and the corresponding scrambled transport stream fragment sequence is selected, and then the playback cycle queue corresponding to the playback clarity is obtained according to a sliding window of a fixed length.

[0064] The length of the sliding window is determined based on the client's playback requirements and real-time performance.

[0065] This application realizes the sensitive needs of different clients through multiple shielding templates. The scrambled transport stream fragment sequence is obtained through format conversion, slicing and encryption, and the format of the scrambled transport stream fragment is unified. The playback loop queue is obtained according to the sliding window, which improves the efficiency of obtaining the real-time playback loop queue.

[0066] Based on the above embodiment, the matching index file of the playback loop queue is obtained based on the masking template, including S160 to S180, and each step is specifically as follows.

[0067] S160: Based on the time position of each scrambled transport stream fragment and the structural attribute of each scrambled transport stream fragment, generate an initial index information sequence of the scrambled transport stream fragment sequence, and based on the sliding window, obtain the index information queue corresponding to the playback loop queue in the initial index information sequence.

[0068] S170: Obtain the encryption key of the playback loop queue.

[0069] S180: Obtain a matching index file based on the matching shielding template, the index information queue corresponding to the playback loop queue, the encryption key, and the source-end start switch.

[0070] Generate initial index information corresponding to each scrambled transport stream fragment, and then obtain the initial index information sequence of the scrambled transport stream fragment sequence. Obtain the index information queue corresponding to the playback loop queue.

[0071] Get the encryption key of the playback loop queue. For the same playback loop queue, start different matching mask templates for different clients and set different matching index files. Figure 5 As shown, according to the matching shielding template (for example, shielding template A or shielding template A), the index information queue corresponding to the playback loop queue, the encryption key and the source start switch, the matching index file (for example, index file A or index file B) of the playback loop queue is obtained.

[0072] Furthermore, outdated scrambled transport stream segments and their corresponding initial index information and encryption keys are periodically cancelled and removed.

[0073] Each newly generated scrambled transport stream fragment corresponds to a new initial index information and encryption key. Furthermore, the initial index information includes the intermediate sub-directory structure of the scrambled transport stream fragment. Usually, the newly generated scrambled transport stream fragment self-increments the file name of the initial index information, and the file name of the initial index information will not conflict. When a file name conflict occurs, directly exit the initial index information adding process and feedback an error. Get the intermediate sub-directory structure of the scrambled transport stream fragment. For example, the intermediate sub-directory structure includes organization 1, customer 1, lens A, business process A-1, business process A-2, etc. If the intermediate sub-directory structure of the scrambled transport stream fragment exists, get it directly. If the intermediate sub-directory structure of the scrambled transport stream fragment does not exist, rebuild it.

[0074] During retrieval, in order to avoid accidentally modifying the content of the original file in the virtual file system and to ensure the response to multiple client retrieval requests, the module does not directly deliver the location index information of the retrieval result file in the virtual file system to the client. Instead, it first creates a copy file and delivers the location index information of the copy file to the client.

[0075] After the client has finished using the file, the video surveillance platform is responsible for clearing the copy file. When the intermediate directory of the file or the file itself does not exist, the file retrieval process is exited and the caller is informed of the error.

[0076] Furthermore, the video surveillance platform also deletes obsolete scrambled transport stream fragments and corresponding index information. A playback loop queue generally exists in the same file directory. When a scrambled transport stream fragment is deleted, another scrambled transport stream fragment will be created. If the file directory is empty, it means that the playback loop queue corresponding to the file directory has been terminated, and the memory occupied by the file directory can be safely released. When a file directory is deleted, the memory space it occupies is not actually released.

[0077] The present application sets a matching index file corresponding to each client by matching a mask template, thereby improving the efficiency of performing different mask processing on different clients at the same time.

[0078] Based on the above embodiment, the starting point and the end point of the play loop queue are the same, and the play loop queue and the matching index file are updated in real time, including S310 to S330, and each step is specifically as follows.

[0079] S310: When a newly added scrambled transport stream fragment is identified, the newly added scrambled transport stream fragment is added to the play loop queue from the starting point of the play loop queue, and the last scrambled transport stream fragment of the play loop queue is deleted from the starting point of the play loop queue to obtain an updated play loop queue.

[0080] S320: Obtain an updated index information queue corresponding to the updated playback loop queue.

[0081] S330: Based on the matching shielding template, the updated index information queue, the encryption key and the source start switch, an updated matching index file is obtained.

[0082] If the size of the sliding window is N-1, the size of the play loop queue is N. The starting point and the end point of the play loop queue are the same. When the newly added scrambled transport stream fragment is added to the starting point of the play loop queue, the oldest scrambled transport stream fragment (the last scrambled transport stream fragment) is deleted at the starting point of the play loop queue, thereby obtaining the updated play loop queue.

[0083] When updating the playback loop queue, the index information queue is updated synchronously. Based on the matching mask template, the updated index information queue, the encryption key and the source start switch, the updated matching index file is obtained.

[0084] The starting point and end point of the play loop queue of the present application are the same, which simplifies the update process of the play loop queue. The index information queue is updated synchronously according to the updated play loop queue, and then the matching index file is updated, which improves the real-time performance of the matching index file.

[0085] like Figure 7 As shown, the present application also provides a method for processing a video transmission stream, which is applied to a client, and includes S400 to S600, and each step is specifically as follows.

[0086] S400: Receive a fixed number of scrambled transport stream segments corresponding to a playback loop queue and a matching index file of the playback loop queue sent by a video surveillance platform.

[0087] The scrambled transport stream fragment is a video transport stream fragment loaded with multiple shielding templates, one shielding template is used to cover a sensitive area of ​​the video transport stream fragment, and the matching index file is obtained by the video surveillance platform based on the matching shielding template of the playback request sent by the client.

[0088] The client sends a play request to the video monitoring platform. After the play request is authenticated by the video monitoring platform, the client receives a fixed number of scrambled transport stream segments corresponding to the play loop queue and a matching index file of the play loop queue sent by the video monitoring platform.

[0089] S500: Based on the matching index file, a fixed number of scrambled transport stream segments are decoded to obtain a transport stream corresponding to the matching masking template, so as to play a video of the transport stream corresponding to the matching masking template.

[0090] Based on the matching index file, a fixed number of scrambled transport stream fragments are decoded to obtain the transport stream corresponding to the matching shielding template. Specifically, the encryption key of the playback loop queue, the index information queue corresponding to the playback loop queue, the source-end start switch and the matching shielding template are obtained based on the matching index file; the playback loop queue and the index information queue corresponding to the playback loop queue are decrypted based on the encryption key to obtain a decrypted video transport stream loaded with multiple shielding templates; based on the source-end start switch, the use of other shielding templates of the decrypted video transport stream is released, and the use of the matching shielding template is retained to obtain the transport stream corresponding to the matching shielding template, and other shielding templates are shielding templates other than the matching shielding template.

[0091] like Figure 6 As shown, the client decrypts the playback loop queue and the index information queue corresponding to the playback loop queue according to the encryption key, and obtains a decrypted video transmission stream loaded with multiple shielding templates.

[0092] Different clients decode a fixed number of scrambled transport stream segments based on the matching index file to obtain the transport stream corresponding to the matching shielding template, so as to play the video of the transport stream corresponding to the matching shielding template.

[0093] S600: When the video monitoring platform updates the playback loop queue and the matching index file in real time, a transmission stream corresponding to the matching masking template updated in real time is obtained.

[0094] When the video monitoring platform sends the real-time updated playback loop queue and the real-time updated matching index file to the client, the client obtains the transmission stream corresponding to the real-time updated matching shielding template.

[0095] The client turns on the switch according to the source end, releases the use of other shielding templates, retains the use of the matching shielding template, obtains the transmission stream corresponding to the matching shielding template, and then plays the transmission stream corresponding to the matching shielding template.

[0096] The client periodically sends a playback request to the video surveillance platform. The sending period of the playback request is the length of the playback time of a scrambled transport stream segment. In fact, the video of the transport stream corresponding to the matching mask template is not truly real-time. There is a potential delay in the size and playback time of the scrambled transport stream segment. In client playback, at least one scrambled transport stream segment must be completely downloaded before playback can begin. For the sake of safety, it is usually required to start playback after two scrambled transport stream segments are downloaded. This ensures seamless connection between different scrambled transport stream segments.

[0097] Furthermore, the video surveillance platform provides a plurality of replacement streams with different bit rates and encoding qualities for a playback loop queue. Each replacement stream generates a sub-matching index file of the corresponding matching index file. The matching index file contains a series of addresses pointing to the sub-matching index files to find the corresponding replacement stream. The first-level matching index file only stores the path information of the second-level sub-matching index file of the replacement stream, and the specific index information of the replacement stream is stored in the second-level sub-matching index file.

[0098] During playback, the matching index file and sub-matching index file are accessed, replacement streams of different bit rates are parsed, the playback environment is estimated, the most appropriate replacement stream is selected for playback, and automatic switching is possible.

[0099] Matching index files can be processed in different levels, and the video surveillance platform uses the same segment file size. The client switches and jumps to play in different replacement streams based on the timestamp.

[0100] The processing method of the video transmission stream provided in the embodiment of the present application realizes the shielding of different sensitive areas for different clients by applying different matching shielding templates to different clients. The matching index file is obtained according to the matching shielding template, and then the transmission stream corresponding to the matching shielding template is obtained, so that different matching shielding templates are used to shield sensitive areas for different clients, and then the video of the transmission stream corresponding to the matching shielding template is played, so that the independent playback of scrambled videos of different clients is realized. The shielding of different sensitive areas of the video transmission stream fragments is realized according to a plurality of shielding templates, which is conducive to improving the efficiency of independent playback of scrambled videos for multiple clients.

[0101] The video transmission stream processing device provided by the present application is described below. The video transmission stream processing device described below and the video transmission stream processing method described above can refer to each other.

[0102] like Figure 8 As shown, a processing device for a video transmission stream includes: a matching index file determination module 801, a sending module 802 and a first update module 803, wherein: the matching index file determination module 801 is used to obtain a matching shielding template of a playback loop queue based on a playback request sent by a client, and obtain a matching index file of the playback loop queue based on the shielding template.

[0103] The sending module 802 is used to send a fixed number of scrambled transport stream fragments and a matching index file corresponding to the playback loop queue to the client, so that the client can decode the fixed number of scrambled transport stream fragments based on the matching index file to obtain the transport stream corresponding to the matching shielding template, so as to play the video of the transport stream corresponding to the matching shielding template. The scrambled transport stream fragments are video transport stream fragments loaded with multiple shielding templates, and a shielding template is used to block a sensitive area of ​​the video transport stream fragment.

[0104] The first updating module 803 is used to update the playback loop queue and the matching index file in real time, so that the client can obtain the transmission stream corresponding to the matching masking template after the real-time update.

[0105] The video transmission stream processing device provided in the embodiment of the present application realizes the shielding of different sensitive areas for different clients by applying different matching shielding templates to different clients. The matching index file is obtained according to the matching shielding template, and then the transmission stream corresponding to the matching shielding template is obtained, so that different matching shielding templates are used to shield sensitive areas for different clients, and then the video of the transmission stream corresponding to the matching shielding template is played, so that the scrambled video of different clients can be played independently. The shielding of different sensitive areas of the video transmission stream fragments can be realized according to multiple shielding templates, which is conducive to improving the efficiency of independent playback of scrambled videos for multiple clients.

[0106] In one embodiment, the matching index file determination module 801 is also used to: obtain the original video transmission stream based on the intelligent video terminal; based on the sensitive needs of different clients, use multiple shielding templates to block the original video transmission stream to obtain a scrambled transmission stream loaded with multiple shielding templates; encrypt the scrambled transmission stream based on the client level and the confidentiality level of the scrambled transmission stream to obtain an encrypted scrambled transmission stream; perform format conversion and slicing on the encrypted scrambled transmission stream to obtain a scrambled transmission stream fragment sequence, the scrambled transmission stream fragment sequence includes multiple scrambled transmission stream fragments arranged continuously in time; based on a sliding window of fixed length, obtain a fixed number of scrambled transmission stream fragments arranged continuously in time from the scrambled transmission stream fragment sequence to obtain a playback loop queue.

[0107] In one embodiment, the matching index file determination module 801 is used to: generate an initial index information sequence of the scrambled transport stream fragment sequence based on the time position of each scrambled transport stream fragment and the structural attributes of each scrambled transport stream fragment, and based on the sliding window, obtain the index information queue corresponding to the playback loop queue in the initial index information sequence; obtain the encryption key of the playback loop queue; and obtain the matching index file based on the matching masking template, the index information queue corresponding to the playback loop queue, the encryption key and the source start switch.

[0108] In one embodiment, the starting point and the end point of the playback loop queue are the same, and the first update module 803 is used to: when a newly added scrambled transport stream fragment is identified, add the newly added scrambled transport stream fragment to the playback loop queue from the starting point of the playback loop queue, delete the last scrambled transport stream fragment of the playback loop queue from the starting point of the playback loop queue, and obtain an updated playback loop queue; obtain an updated index information queue corresponding to the updated playback loop queue; and obtain an updated matching index file based on the matching masking template, the updated index information queue, the encryption key, and the source start switch.

[0109] like Fig. 9 As shown, a processing of a video transmission stream includes a receiving module 901, a decryption module 902 and a second update module 903, wherein: the receiving module 901 is used to receive a fixed number of scrambled transmission stream fragments corresponding to the playback loop queue sent by the video monitoring platform and a matching index file of the playback loop queue, the scrambled transmission stream fragments are video transmission stream fragments loaded with multiple shielding templates, a shielding template is used to block a sensitive area of ​​the video transmission stream fragment, and the matching index file is obtained by the video monitoring platform based on the matching shielding template of the playback request sent by the client.

[0110] The decryption module 902 is used to decode a fixed number of scrambled transport stream segments based on the matching index file to obtain the transport stream corresponding to the matching masking template, so as to play the video of the transport stream corresponding to the matching masking template.

[0111] The second updating module 903 is used to obtain the transmission stream corresponding to the matching masking template updated in real time when the video monitoring platform updates the playback loop queue and the matching index file in real time.

[0112] The video transmission stream processing device provided in the embodiment of the present application realizes the shielding of different sensitive areas for different clients by applying different matching shielding templates to different clients. The matching index file is obtained according to the matching shielding template, and then the transmission stream corresponding to the matching shielding template is obtained, so that different matching shielding templates are used to shield sensitive areas for different clients, and then the video of the transmission stream corresponding to the matching shielding template is played, so that the scrambled video of different clients can be played independently. The shielding of different sensitive areas of the video transmission stream fragments can be realized according to multiple shielding templates, which is conducive to improving the efficiency of independent playback of scrambled videos for multiple clients.

[0113] In one embodiment, the decryption module 902 is used to: obtain the encryption key of the playback loop queue, the index information queue corresponding to the playback loop queue, the source-end start switch and the matching shielding template based on the matching index file; decrypt the playback loop queue and the index information queue corresponding to the playback loop queue based on the encryption key to obtain a decrypted video transmission stream loaded with multiple shielding templates; based on the source-end start switch, release the use of other shielding templates of the decrypted video transmission stream, retain the use of the matching shielding template, so as to obtain the transmission stream corresponding to the matching shielding template, and the other shielding templates are shielding templates other than the matching shielding template.

[0114] Fig.10 An example of a physical structure diagram of an electronic device is shown in FIG. Fig.10 As shown, the electronic device may include: a processor (processor) 1010 , a communication interface (Communications Interface) 1020 , a memory (memory) 1030 and a communication bus 1040 , wherein the processor 1010 , the communication interface 1020 , and the memory 1030 communicate with each other via the communication bus 1040 . The processor 1010 can call the logic instructions in the memory 1030 to execute a method for processing a video transport stream, the method comprising: obtaining a matching masking template of a play loop queue based on a play request sent by a client, and obtaining a matching index file of the play loop queue based on the masking template; sending a fixed number of scrambled transport stream fragments and a matching index file corresponding to the play loop queue to the client, so that the client can decode the fixed number of scrambled transport stream fragments based on the matching index file to obtain a transport stream corresponding to the matching masking template, so as to play a video of the transport stream corresponding to the matching masking template, wherein the scrambled transport stream fragment is a video transport stream fragment loaded with multiple masking templates, and a masking template is used to block a sensitive area of ​​a video transport stream fragment; and updating the play loop queue and the matching index file in real time, so that the client can obtain the transport stream corresponding to the matching masking template updated in real time.

[0115] Alternatively, the method for processing a video transmission stream includes: receiving a fixed number of scrambled transmission stream fragments corresponding to a playback loop queue sent by a video surveillance platform and a matching index file of the playback loop queue, the scrambled transmission stream fragments being video transmission stream fragments loaded with multiple shielding templates, a shielding template being used to block a sensitive area of ​​the video transmission stream fragment, and the matching index file being obtained by the video surveillance platform based on a matching shielding template of a playback request sent by a client; based on the matching index file, decoding a fixed number of scrambled transmission stream fragments to obtain a transmission stream corresponding to the matching shielding template to play the video of the transmission stream corresponding to the matching shielding template; when the video surveillance platform updates the playback loop queue and the matching index file in real time, obtaining the transmission stream corresponding to the matching shielding template updated in real time.

[0116] In addition, the logic instructions in the above-mentioned memory 1030 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0117] On the other hand, the present application also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the video transmission stream processing method provided by the above-mentioned methods, the method including: based on the playback request sent by the client, obtaining the matching masking template of the playback loop queue, and obtaining the matching index file of the playback loop queue based on the masking template; sending a fixed number of scrambled transmission stream fragments and matching index files corresponding to the playback loop queue to the client, so that the client can decode the fixed number of scrambled transmission stream fragments based on the matching index file to obtain the transmission stream corresponding to the matching masking template, so as to play the video of the transmission stream corresponding to the matching masking template, the scrambled transmission stream fragment is a video transmission stream fragment loaded with multiple masking templates, and a masking template is used to block a sensitive area of ​​the video transmission stream fragment; updating the playback loop queue and the matching index file in real time, so that the client can obtain the transmission stream corresponding to the matching masking template updated in real time.

[0118] Alternatively, the method for processing a video transmission stream includes: receiving a fixed number of scrambled transmission stream fragments corresponding to a playback loop queue sent by a video surveillance platform and a matching index file of the playback loop queue, the scrambled transmission stream fragments being video transmission stream fragments loaded with multiple shielding templates, a shielding template being used to block a sensitive area of ​​the video transmission stream fragment, and the matching index file being obtained by the video surveillance platform based on a matching shielding template of a playback request sent by a client; based on the matching index file, decoding a fixed number of scrambled transmission stream fragments to obtain a transmission stream corresponding to the matching shielding template to play the video of the transmission stream corresponding to the matching shielding template; when the video surveillance platform updates the playback loop queue and the matching index file in real time, obtaining the transmission stream corresponding to the matching shielding template updated in real time.

[0119] On the other hand, the present application also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a method for processing a video transport stream provided by the above-mentioned methods, the method comprising: obtaining a matching masking template of a playback loop queue based on a playback request sent by a client, and obtaining a matching index file of the playback loop queue based on the masking template; sending a fixed number of scrambled transport stream fragments and a matching index file corresponding to the playback loop queue to a client, so that the client can decode a fixed number of scrambled transport stream fragments based on the matching index file to obtain a transport stream corresponding to the matching masking template, so as to play a video of the transport stream corresponding to the matching masking template, wherein the scrambled transport stream fragment is a video transport stream fragment loaded with a plurality of masking templates, and a masking template is used to block a sensitive area of ​​a video transport stream fragment; updating the playback loop queue and the matching index file in real time, so that the client can obtain the transport stream corresponding to the matching masking template updated in real time.

[0120] Alternatively, the method for processing a video transmission stream includes: receiving a fixed number of scrambled transmission stream fragments corresponding to a playback loop queue sent by a video surveillance platform and a matching index file of the playback loop queue, the scrambled transmission stream fragments being video transmission stream fragments loaded with multiple shielding templates, a shielding template being used to block a sensitive area of ​​the video transmission stream fragment, and the matching index file being obtained by the video surveillance platform based on a matching shielding template of a playback request sent by a client; based on the matching index file, decoding a fixed number of scrambled transmission stream fragments to obtain a transmission stream corresponding to the matching shielding template to play the video of the transmission stream corresponding to the matching shielding template; when the video surveillance platform updates the playback loop queue and the matching index file in real time, obtaining the transmission stream corresponding to the matching shielding template updated in real time.

[0121] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0122] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0123] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for processing a video transmission stream, characterized in that: Applied to video surveillance platforms, including: Based on the play request sent by the client, a matching shielding template of the play loop queue is obtained, and based on the shielding template, a matching index file of the play loop queue is obtained; Sending a fixed number of scrambled transport stream fragments corresponding to the playback loop queue and the matching index file to the client, so that the client can decode the fixed number of scrambled transport stream fragments based on the matching index file to obtain the transport stream corresponding to the matching shielding template, so as to play the video of the transport stream corresponding to the matching shielding template, wherein the scrambled transport stream fragments are video transport stream fragments loaded with multiple shielding templates, and one of the shielding templates is used to cover a sensitive area of ​​the video transport stream fragments; The play loop queue and the matching index file are updated in real time, so that the client can obtain the transmission stream corresponding to the matching masking template updated in real time.

2. The method for processing a video transmission stream according to claim 1, characterized in that: The method for obtaining the playback cycle queue includes: Obtain original video transmission stream based on intelligent video terminal; Based on the sensitive requirements of different clients, a plurality of shielding templates are used to perform shielding processing on the original video transmission stream, so as to obtain an encrypted transmission stream loaded with the plurality of shielding templates; Based on the level of the client and the confidentiality level of the scrambled transport stream, encrypting the scrambled transport stream to obtain an encrypted scrambled transport stream; Performing format conversion and slicing on the encrypted scrambled transport stream to obtain a scrambled transport stream fragment sequence, wherein the scrambled transport stream fragment sequence includes a plurality of scrambled transport stream fragments arranged consecutively in time; Based on a sliding window of fixed length, the fixed number of scrambled transport stream fragments arranged continuously in time are obtained from the scrambled transport stream fragment sequence to obtain the play cycle queue.

3. The method for processing a video transmission stream according to claim 2, characterized in that: The step of obtaining a matching index file of the playback loop queue based on the shielding template includes: Based on the time position of each of the scrambled transport stream fragments and the structural attribute of each of the scrambled transport stream fragments, an initial index information sequence of the scrambled transport stream fragment sequence is generated, and based on the sliding window, an index information queue corresponding to the playback loop queue is obtained in the initial index information sequence; Obtaining the encryption key of the playback loop queue; The matching index file is obtained based on the matching shielding template, the index information queue corresponding to the playback loop queue, the encryption key and the source start switch.

4. The method for processing a video transmission stream according to claim 3, characterized in that: The starting point and the end point of the playback loop queue are the same, and the real-time updating of the playback loop queue and the matching index file includes: When a newly added scrambled transport stream fragment is identified, the newly added scrambled transport stream fragment is added to the play loop queue from the starting point of the play loop queue, and the last scrambled transport stream fragment of the play loop queue is deleted from the starting point of the play loop queue to obtain an updated play loop queue; Obtaining an updated index information queue corresponding to the updated playback loop queue; Based on the matching masking template, the updated index information queue, the encryption key and the source-end enable switch, an updated matching index file is obtained.

5. A method for processing a video transmission stream, characterized in that: Applied to the client, including: Receive a fixed number of scrambled transport stream segments corresponding to a playback loop queue sent by a video surveillance platform and a matching index file of the playback loop queue, wherein the scrambled transport stream segments are video transport stream segments loaded with a plurality of shielding templates, one of the shielding templates being used to shield a sensitive area of ​​the video transport stream segments, and the matching index file is obtained by the video surveillance platform based on the matching shielding template of the playback request sent by the client; Based on the matching index file, the fixed number of scrambled transport stream fragments are decoded to obtain the transport stream corresponding to the matching masking template, so as to play the video of the transport stream corresponding to the matching masking template; When the video monitoring platform updates the playback loop queue and the matching index file in real time, the transmission stream corresponding to the matching masking template updated in real time is obtained.

6. The method for processing a video transmission stream according to claim 5, characterized in that: The step of decoding the fixed number of scrambled transport stream fragments based on the matching index file to obtain the transport stream corresponding to the matching masking template includes: Based on the matching index file, an encryption key of the playback loop queue, an index information queue corresponding to the playback loop queue, a source-end start switch, and the matching shielding template are obtained; Decrypting the playback loop queue and the index information queue corresponding to the playback loop queue based on the encryption key to obtain a decrypted video transmission stream loaded with multiple masking templates; Based on the source end opening switch, the use of other masking templates of the decrypted video transmission stream is released, and the use of the matching masking template is retained to obtain the transmission stream corresponding to the matching masking template, and the other masking templates are masking templates other than the matching masking template.

7. A video transmission stream processing device, characterized in that: include: A matching index file determination module, a sending module and a first updating module, wherein: The matching index file determination module is used to obtain a matching shielding template of the playback loop queue based on a playback request sent by the client, and obtain a matching index file of the playback loop queue based on the shielding template; The sending module is used to send a fixed number of scrambled transport stream fragments corresponding to the playback loop queue and the matching index file to the client, so that the client can decode the fixed number of scrambled transport stream fragments based on the matching index file to obtain the transport stream corresponding to the matching shielding template, so as to play the video of the transport stream corresponding to the matching shielding template, wherein the scrambled transport stream fragments are video transport stream fragments loaded with multiple shielding templates, and one of the shielding templates is used to cover a sensitive area of ​​the video transport stream fragments; The first updating module is used to update the playback loop queue and the matching index file in real time, so that the client can obtain the transmission stream corresponding to the matching masking template updated in real time; Alternatively, the video transmission stream processing device includes a receiving module, a decryption module and a second updating module, wherein: The receiving module is used to receive a fixed number of scrambled transport stream fragments corresponding to the playback loop queue sent by the video monitoring platform and a matching index file of the playback loop queue, wherein the scrambled transport stream fragments are video transport stream fragments loaded with multiple shielding templates, one of which is used to shield a sensitive area of ​​the video transport stream fragment, and the matching index file is obtained by the video monitoring platform based on the matching shielding template of the playback request sent by the client; The decryption module is used to decode the fixed number of scrambled transport stream fragments based on the matching index file to obtain the transport stream corresponding to the matching masking template, so as to play the video of the transport stream corresponding to the matching masking template; The second updating module is used to obtain the transmission stream corresponding to the matching masking template updated in real time when the video monitoring platform updates the playback loop queue and the matching index file in real time.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method for processing a video transmission stream according to any one of claims 1 to 4 is implemented, or, When the processor executes the computer program, the method for processing the video transmission stream according to any one of claims 5 to 6 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for processing a video transmission stream according to any one of claims 1 to 4 is implemented, or, When the computer program is executed by a processor, the method for processing a video transmission stream as claimed in any one of claims 5 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for processing a video transmission stream according to any one of claims 1 to 4 is implemented, or, When the computer program is executed by a processor, the method for processing a video transmission stream as claimed in any one of claims 5 to 6 is implemented.