Video tamper-proofing method, device, electronic device and readable storage medium
By deploying multi-level network segments and tamper-proof devices in the IPTV live video broadcast system, using video feature information and device identification authentication information for parallel verification, the problem that serial verification cannot quickly locate the tamper-by-tamper location is solved, and the tamper-of-film of video streams is improved Risk response ability and speed of response.
Patent Information
- Application Number
- CN202211624209.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-15
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2042-12-15
AI Technical Summary
In the existing IPTV live video broadcast anti-tampering technology, the serial signature information verification method cannot quickly locate the tampered location when the transmission line is invaded, and cannot truthfully feedback information and results, resulting in difficulties for operators in maintenance and monitoring.
Deploy multiple-level network segments in the business platform, and deploy tamper-proof devices on each network segment. Video sampling is used to obtain video feature information, generate verification information, and combine device identification authentication information and positioning information to adopt parallel verification method Report to the next level of transmission and service platform to ensure the reliability of verification information and the ability to quickly locate.
Through the parallel checksum multi-level positioning mechanism, the video stream's ability to respond to tampering risks is improved, and the tampering location is quickly positioned, the detection time is reduced, the reflection speed and calibration accuracy are improved, and the operator's business platform is enhanced monitoring and maintenance capabilities.
Smart Images

Figure CN116170635B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the technical field of video anti-tampering, and in particular to a video anti-tampering method, a video anti-tampering device, an electronic device, and a computer-readable storage medium. Background Art
[0002] As for IPTV (Internet Protocol Television) video live broadcast anti-tampering technology, the most widely used method is to directly use signature information generation and verification, that is, insert signature information into the video stream and report or broadcast it, and then perform signature and verification step by step. However, the method of simply using signature information and verification has the following problems: when the existing transmission line is controlled or stolen by the "invader", the information and results cannot be fed back truthfully.
[0003] At the same time, the current step-by-step signature and verification method is equivalent to a serial verification method. When an existing transmission line is controlled or stolen by an "invader", the serial verification method cannot quickly locate the location where the tampering occurred, and cannot truthfully feedback information and results. There is room for optimization. Therefore, quickly locating the location where the tampering occurred is beneficial to the operation and maintenance of IPTV video live broadcast operators. In the event of tampering, if the location of the tampering can be located in one round of detection, the speed at which the equipment reflects the tampering information to the control platform can be saved. Summary of the invention
[0004] The embodiments of the present invention provide a video anti-tampering method, device, electronic device and computer-readable storage medium to solve or partially solve the problem that when the existing transmission line of the video stream is controlled or stolen by the "invader", the serial verification method cannot quickly locate the location where the tampering occurs and cannot truthfully feedback information and results.
[0005] The embodiment of the present invention discloses a video anti-tampering method, which is applied to a service platform, wherein the service platform includes network segments at multiple levels, and anti-tampering devices are respectively deployed on the network segments at different levels, wherein the anti-tampering devices include at least device identification authentication information and positioning information, and the method includes:
[0006] Performing video sampling on the video stream to obtain video feature information for the video stream;
[0007] Generate verification information according to the video feature information, and insert the verification information into the video stream to obtain a target video stream;
[0008] Determine the device identification authentication information and location information of the tamper-proof device at this level;
[0009] The target video stream, the device identification and authentication information, the positioning information and the verification information of the tamper-proof device at this level are reported to the tamper-proof device corresponding to the network segment of the next level and the business platform; the business platform is used to determine the location where the tampering of the video stream occurs according to the device identification and authentication information and the positioning information of the target tamper-proof device when it is confirmed that the verification information of the target video stream is inconsistent with the verification information reported by the target tamper-proof device.
[0010] Optionally, the performing video sampling on the video stream to obtain video feature information for the video stream includes:
[0011] Performing video sampling on the video stream to obtain a video stream PES packet, a video interval frame number and a video timestamp for the video stream;
[0012] Using the field value corresponding to the specified field in the PES packet of the video stream as the video stream characteristic value of the video stream;
[0013] The video frame interval, the video timestamp and the video stream feature value are used as video feature information.
[0014] Optionally, after reporting the target video stream, the device identification and authentication information, the positioning information and the verification information of the tamper-proof device at the current level to the tamper-proof device corresponding to the network segment at the next level and the service platform, the method further includes:
[0015] When the verification information of the target video stream of the anti-tampering device at this level is inconsistent with the verification information reported by the anti-tampering device at the previous level, the location where the tampering of the video stream of the network segment at this level occurs is determined according to the device identification authentication information and positioning information of the anti-tampering device at the previous level;
[0016] Generate error information according to the location where the tampering of the video stream occurs, and upload the error information to the business platform.
[0017] Optionally, the service platform stores original video images and original video segments. After generating error information according to the location where the tampering of the video stream occurs and uploading the error information to the service platform, the method further includes:
[0018] The problematic video stream corresponding to the error message is transmitted back to the service platform, and the service platform is used to compare the video image of the problematic video stream with the original video image to determine the tampered video image of the problematic video stream;
[0019] The problematic video stream corresponding to the error message is transmitted back to the service platform, and the service platform is used to compare the video segment of the problematic video stream with the original video segment to determine the tampered video segment of the problematic video stream.
[0020] The embodiment of the present invention further discloses a video anti-tampering method, which is applied to a service platform, wherein the service platform includes network segments at multiple levels, and anti-tampering devices are respectively deployed on the network segments at different levels, wherein the anti-tampering devices include at least device identification authentication information and positioning information, and the method includes:
[0021] Receiving a target video stream, the device identification and authentication information, the positioning information and verification information reported by the anti-tampering device; the target video stream includes the verification information generated by the anti-tampering device sampling the video stream and obtaining the video feature information of the video stream;
[0022] When it is confirmed that the verification information of the target video stream is inconsistent with the verification information reported by the target anti-tampering device, the tampering location of the video stream is determined according to the device identification authentication information and positioning information of the target anti-tampering device.
[0023] Optionally, the method further comprises:
[0024] After the service platform receives the error message from the first tamper-proof device, it determines a second tamper-proof device that is operating normally and has a network segment adjacent to the network segment of the first tamper-proof device;
[0025] Re-establishing a link between the second tamper-proof device and the first tamper-proof device; the link is used to transmit the video stream.
[0026] The embodiment of the present invention further discloses a video anti-tampering device, which is applied to a business platform. The business platform includes network segments at multiple levels. Anti-tampering devices are respectively deployed on the network segments at different levels. The anti-tampering devices include at least device identification authentication information and positioning information. The device includes:
[0027] A video sampling module, used for sampling a video stream to obtain video feature information for the video stream;
[0028] A verification information generation module, used to generate verification information according to the video feature information, and insert the verification information into the video stream to obtain a target video stream;
[0029] This level of information determination module is used to determine the device identification authentication information and positioning information of the anti-tampering device of this level;
[0030] The first tampering location determination module is used to report the target video stream, the device identification and authentication information, the positioning information and the verification information of the anti-tampering device at this level to the anti-tampering device corresponding to the network segment of the next level and the business platform; the business platform is used to determine the tampering location of the video stream according to the device identification and authentication information and the positioning information of the target anti-tampering device when it is confirmed that the verification information of the target video stream is inconsistent with the verification information reported by the target anti-tampering device.
[0031] Optionally, the video sampling module is specifically used for:
[0032] Performing video sampling on the video stream to obtain a video stream PES packet, a video interval frame number and a video timestamp for the video stream;
[0033] Using the field value corresponding to the specified field in the PES packet of the video stream as the video stream characteristic value of the video stream;
[0034] The video frame interval, the video timestamp and the video stream feature value are used as video feature information.
[0035] Optionally, the device further comprises:
[0036] A module for determining the location where tampering has occurred at this level, for determining the location where tampering has occurred at the network segment at this level according to the device identification authentication information and positioning information of the tampering-proof device at the previous level, when the verification information of the target video stream of the tampering-proof device at this level is inconsistent with the verification information reported by the tampering-proof device at the previous level;
[0037] The error information reporting module is used to generate error information according to the location where the tampering of the video stream occurs, and upload the error information to the business platform.
[0038] Optionally, the device further comprises:
[0039] A video image determination module, used to transmit the problem video stream corresponding to the error information back to the service platform, and the service platform is used to compare the video image of the problem video stream with the original video image to determine the tampered video image of the problem video stream;
[0040] The video segment determination module is used to transmit the problem video stream corresponding to the error information back to the business platform, and the business platform is used to compare the video segment of the problem video stream with the original video segment to determine the tampered video segment of the problem video stream.
[0041] The embodiment of the present invention further discloses a video anti-tampering device, which is applied to a business platform. The business platform includes network segments at multiple levels. Anti-tampering devices are respectively deployed on the network segments at different levels. The anti-tampering devices include at least device identification authentication information and positioning information. The device includes:
[0042] An information receiving module, used to receive the target video stream, the device identification and authentication information, the positioning information and the verification information reported by the anti-tampering device; the target video stream includes the verification information generated by the anti-tampering device sampling the video stream and obtaining the video feature information of the video stream;
[0043] The second tampering location determination module is used to determine the tampering location of the video stream according to the device identification authentication information and positioning information of the target anti-tampering device when it is confirmed that the verification information of the target video stream is inconsistent with the verification information reported by the target anti-tampering device.
[0044] Optionally, the device further comprises:
[0045] A second tamper-proof device determination module, configured to determine a second tamper-proof device that is operating normally and has a network segment adjacent to the network segment of the first tamper-proof device after the service platform receives the error message of the first tamper-proof device;
[0046] A link resetting module is used to reestablish a link between the second tamper-proof device and the first tamper-proof device; the link is used to transmit the video stream.
[0047] The embodiment of the present invention further discloses an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0048] The memory is used to store computer programs;
[0049] The processor is used to implement the method described in the embodiment of the present invention when executing the program stored in the memory.
[0050] The embodiment of the present invention further discloses a computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, enables the processors to execute the method described in the embodiment of the present invention.
[0051] The embodiments of the present invention include the following advantages:
[0052] In an embodiment of the present invention, the anti-tampering of video streams is mainly applied to business platforms. The business platform includes network segments of multiple levels. Anti-tampering devices are deployed on network segments of different levels. The anti-tampering devices include at least device identification and authentication information and positioning information. First, the video stream is sampled to obtain video feature information for the video stream, and then verification information is generated according to the video feature information. The verification information is inserted into the video stream to obtain the target video stream, and the device identification and authentication information and positioning information of the anti-tampering device at this level are determined. The target video stream, device identification and authentication information, positioning information and verification information of the anti-tampering device at this level are reported to the anti-tampering device and business platform corresponding to the network segment of the next level. The business platform is used to determine the location where the video stream is tampered according to the device identification and authentication information and positioning information of the target anti-tampering device when it is confirmed that the verification information of the target video stream is inconsistent with the verification information reported by the target anti-tampering device. By adopting a parallel verification method, using anti-tampering equipment to verify and transmit the video stream, and reporting the verification information to the business platform, not only can the video stream be verified in each network segment, but the video stream can also be verified again on the business platform, ensuring the reliability of the verification and improving the ability of the video stream to respond to the risk of tampering; and, through the device identification authentication information and positioning information, the location where the video stream has been tampered with can be quickly located, which is beneficial for the operator to monitor and maintain the operation of the business platform, and improves the speed at which the anti-tampering device reflects the tampering information to the business platform. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 is a flowchart of a video anti-tampering method provided in an embodiment of the present invention;
[0054] Figure 2 is a schematic diagram of the structure of a service platform provided in an embodiment of the present invention;
[0055] Figure 3 is a schematic structural diagram of an anti-tampering device provided in an embodiment of the present invention;
[0056] Figure 4 It is a schematic diagram of extracting stream ID and PES packet length bytes provided in an embodiment of the present invention;
[0057] Figure 5 It is a schematic diagram of extracting PTS and pre-PES CRC bytes provided in an embodiment of the present invention;
[0058] Figure 6 is a flowchart of a video anti-tampering method provided in an embodiment of the present invention;
[0059] Figure 7 is a schematic diagram of a tamper recovery process provided in an embodiment of the present invention;
[0060] Figure 8 is a structural block diagram of a video anti-tampering device provided in an embodiment of the present invention;
[0061] Fig. 9 is a structural block diagram of a video anti-tampering device provided in an embodiment of the present invention;
[0062] Fig.10 It is a schematic diagram of the hardware structure of an electronic device for implementing various embodiments of the present invention. DETAILED DESCRIPTION
[0063] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0064] As an example, for IPTV (Internet Protocol Television) video live broadcast anti-tampering technology, the current application is the method of directly using signature information generation and verification, that is, inserting signature information into the video stream and reporting or broadcasting, and then signing and verifying step by step. However, the method of simply using signature information and verification has the following problems: when the existing transmission line is controlled or misappropriated by the "invader", it cannot truthfully feedback information and results. At the same time, the current step-by-step signature and verification method is equivalent to using a serial verification method. When the existing transmission line is controlled or misappropriated by the "invader", the serial verification method cannot quickly locate the location where the tampering occurred, and cannot truthfully feedback information and results. There is still room for optimization. Therefore, quickly locating the location where the tampering occurred is beneficial to the operation and maintenance of IPTV video live broadcast operators. In the case of tampering, if the tampering location can be located in one round of detection, it can save the speed of the equipment reflecting the tampering information to the control platform.
[0065] In this regard, one of the core invention points of the present invention is that the business platform includes multiple levels of network segments, and anti-tampering devices are deployed in network segments at different levels. The anti-tampering devices include at least device identification and authentication information and positioning information. First, video sampling is performed on the video stream to obtain video feature information for the video stream, and then verification information is generated according to the video feature information, and the verification information is inserted into the video stream to obtain the target video stream, and the device identification and authentication information and positioning information of the anti-tampering device at this level are determined. The target video stream, device identification and authentication information, positioning information and verification information of the anti-tampering device at this level are reported to the anti-tampering device and business platform corresponding to the network segment of the next level, wherein the business platform is used to determine the location where the video stream is tampered according to the device identification and authentication information and positioning information of the target anti-tampering device when it is confirmed that the verification information of the target video stream is inconsistent with the verification information reported by the target anti-tampering device. By adopting a parallel verification method, using anti-tampering equipment to verify and transmit the video stream, and reporting the verification information to the business platform, not only can the video stream be verified in each network segment, but the video stream can also be verified again on the business platform, ensuring the reliability of the verification and improving the ability of the video stream to respond to the risk of tampering; and, through the device identification authentication information and positioning information, the location where the video stream has been tampered with can be quickly located, which is beneficial for the operator to monitor and maintain the operation of the business platform, and improves the speed at which the anti-tampering device reflects the tampering information to the business platform.
[0066] Reference Figure 1 , shows a flowchart of a video anti-tampering method provided in an embodiment of the present invention, which is applied to a business platform, wherein the business platform includes network segments at multiple levels, and anti-tampering devices are deployed on the network segments at different levels, respectively, and the anti-tampering devices include at least device identification authentication information and positioning information, and specifically may include the following steps:
[0067] Step 101, sampling a video stream to obtain video feature information of the video stream;
[0068] Among them, the service platform can be an IPTV service platform; for IPTV, it can be an interactive network television, which can use broadband network (broadband) as a medium to transmit television information. That is, a new technology that uses broadband cable TV network, integrates Internet, multimedia, communication and other technologies, and provides home users with a variety of interactive services including digital television. Users can enjoy IPTV services at home, which improves the user experience.
[0069] Reference Figure 2 , shows a schematic diagram of the structure of a service platform provided in an embodiment of the present invention. As can be seen from the figure, the video anti-tampering method provided in an embodiment of the present invention can be applied to Figure 2In the application environment shown. Specifically, the service platform can be divided into five network segments, which are respectively program content source, IPTV backbone network, metropolitan area network, access network and home terminal according to the transmission level, that is, IPTV video is transmitted from the program content source to the home terminal through the backbone network, metropolitan area network and access network for users to watch. Among them, for IPTV video, in the embodiment of the present invention, it is mainly for provincial IPTV video. It can be understood that the program content source can be a provincial program content source.
[0070] It should be noted that, with respect to the scope of program content sources, those skilled in the art may adjust it according to actual conditions, and the embodiments of the present invention do not limit this.
[0071] Depend on Figure 2 It can be seen that anti-tampering devices can be deployed in the network segments of provincial program content sources, IPTV backbone networks, metropolitan area networks, access networks, and home terminals (such as set-top boxes for random inspection). Specifically, anti-tampering devices can be deployed at various interfaces of transmission and processing devices in various network segments. For example, multiple redundant interfaces reserved in IPTV backbone networks and access networks can be used to access anti-tampering devices. Figure 2 As shown in , the device deployment point is the location where the tamper-proof device is connected.
[0072] The anti-tampering device may be a movable device that can be flexibly and concealedly arranged, thereby facilitating installation by users and saving space in the device.
[0073] Reference Figure 3, shows a schematic diagram of the structure of an anti-tampering device provided in an embodiment of the present invention. It can be seen from the figure that the anti-tampering device may include a signature information generation module, a signature information verification module, a positioning module, a device authentication and identification module, a video extraction module and a 5G (5th-Generation Mobile Communication Technology) wireless transmission module. Among them, the signature information generation module can be used to generate signature information; the signature information verification module can be used to verify signature information; the video extraction module can be used to abstract the feature values of the output video image; the 5G wireless transmission module can be used to transmit image features, signature information, positioning information and device identification and authentication information, as well as to transmit IPTV video back; for the positioning module, it can be built-in with Beidou satellite positioning chip or GPS (Global Positioning System) positioning chip, and can locate the location where the IPTV video is tampered with and generate positioning information through the Beidou satellite positioning chip or GPS positioning chip, and then report the positioning information to the IPTV service platform through the 5G wireless transmission module; for the device authentication and identification module, it can store the MAC (Media Access Control) address, international mobile equipment identity code IMEI (International Mobile Equipment Identity), product serial number SN (Serial Number product serial number / machine code), the device authentication identification information in the device authentication identification module can be used for identity identification and authentication before transmitting signature information and signature verification information, and the exact location where the tampering occurred can be located through the unique device authentication identification information, that is, the tampering location located by the positioning module may have errors, but the device authentication identification information in the device authentication identification module can accurately locate the location where the tampering occurred, which is beneficial for IPTV video operators to monitor and maintain the operation of the service platform, and improves the speed at which the anti-tampering device reflects the tampering information to the service platform.
[0074] Among them, the video stream can be understood as a video. Since the video appears in the form of a video stream, the video and the video stream can represent each other. The video stream in the embodiment of the present invention is an IPTV video stream, which can be targeted at a provincial IPTV video stream.
[0075] For video sampling, it can use the video extraction module in the anti-tampering device to sample the provincial program content source, IPTV backbone network, metropolitan area network, access network and home terminal, and then obtain video feature information.
[0076] It should be noted that the video sampling period may be performed according to a fixed period or at an artificially set sampling time, and those skilled in the art may set this according to actual conditions, and the embodiments of the present invention do not limit this.
[0077] In a specific implementation, the IPTV service platform may include network segments of multiple levels. The network segments may be program content sources, IPTV backbone networks, metropolitan area networks, access networks and home terminals according to the transmission levels. Anti-tampering devices are deployed on network segments of different levels. The anti-tampering devices may include a signature information generation module, a signature information verification module, a positioning module, a device authentication and identification module, a video extraction module and a 5G wireless transmission module. The video extraction module in the anti-tampering device may perform video sampling on provincial program content sources, IPTV backbone networks, metropolitan area networks, access networks and home terminals to obtain video feature information.
[0078] In an optional embodiment, the video extraction module can be used to perform video sampling on the video stream to obtain a video stream PES (Packet Elementary Stream) packet, video interval frame number and video timestamp for the video stream. Specifically, the field value corresponding to the specified field in the video stream PES packet is used as the video stream characteristic value of the video stream, so that the video interval frame number, video timestamp and video stream characteristic value can be used as video characteristic information. In one example, the video extraction module in the anti-tampering device can perform video sampling on provincial program content sources, IPTV backbone networks, metropolitan area networks, access networks and home terminals, wherein video sampling of each network segment can be performed simultaneously. Refer to Figure 4 , shows a schematic diagram of extracting stream ID and PES packet length bytes provided in an embodiment of the present invention. As can be seen from the figure, the stream ID (Stream ID in the figure) field and the PES packet length (PES packet length in the figure) field can be extracted from each PES packet by decomposing the sampled video stream PES packets, wherein the number of bytes extracted is 4 bytes; Figure 5, shows a schematic diagram of extracting PTS and pre-PES CRC bytes provided in an embodiment of the present invention. As can be seen from the figure, the PES packet of the video stream obtained by sampling can also be decomposed to extract the stream PTS field from each PES packet, wherein the number of bytes extracted is 8 bytes, and also includes extracting the pre-PES CRC (Privious PES CRC in the figure), wherein the number of bytes extracted is also 8 bytes. Therefore, the field value corresponding to the above-mentioned specified field extracted from the PES packet of the video stream can be used as the video stream feature value of the video stream, so that the video interval frame number, video timestamp and video stream feature value can be used as video feature information. In an example, assuming that there are currently 25 frames of video images per second, 25 groups of video stream feature values and verification information corresponding to the video stream feature values can be abstracted.
[0079] Among them, for the video stream PES packet, it can also be a packaged basic code stream, which is to divide the basic code stream ES (Elementary Stream) stream into data packets of varying lengths as needed, and add a header to form a packaged basic code stream PES stream, where the ES stream is also called the basic code stream, which contains a continuous code stream of video, audio or data; for the stream ID (Identity), it can be Figure 4 Stream ID in, Stream ID is the unique ID of the audio and video stream. If a stream has both audio packets and video packets, then the StreamID of the audio packet of this stream is the same as the StreamID of its video packet. For the stream PTS (Presentation Time Stamp), it can be a display timestamp, which can be used to guide the behavior of the player. For PES CRC, it can be used to check or verify multi-bit errors.
[0080] In an embodiment of the present invention, an IPTV service platform may include network segments of multiple levels. The network segments may be program content sources, IPTV backbone networks, metropolitan area networks, access networks and home terminals according to the transmission levels. Anti-tampering devices are deployed on network segments of different levels. The anti-tampering devices may include a signature information generation module, a signature information verification module, a positioning module, a device authentication and identification module, a video extraction module and a 5G wireless transmission module. The video extraction module in the anti-tampering device may perform video sampling on provincial program content sources, IPTV backbone networks, metropolitan area networks, access networks and home terminals to obtain video stream PES packets, video interval frame numbers and video timestamps for video streams. Specifically, the field value corresponding to the specified field in the video stream PES packet is used as the video stream feature value of the video stream, so that the video interval frame number, video timestamp and video stream feature value can be used as video feature information.
[0081] Step 102, generating verification information according to the video feature information, and inserting the verification information into the video stream to obtain a target video stream;
[0082] For the verification information, it may include signature information and signature verification information. The verification information is information generated based on the video feature information and is used to verify whether the signature information is correct. For example, assuming that the signature information and the signature verification information are inconsistent in the access network, it can be considered that tampering has occurred at that location; wherein, the verification information can be obtained by the signature information generation module in the anti-tampering device; for the target video stream, it can be a video stream containing the verification information.
[0083] In a specific implementation, verification information may be generated according to the video frame interval, video timestamp, and video stream feature value, and the verification information may be inserted into the video stream to obtain a target video stream.
[0084] Step 103, determining device identification authentication information and location information of the tamper-proof device at this level;
[0085] Among them, for the device identification and authentication information, it can include the MAC address, international mobile equipment identity code IMEI, product serial number SN code of all legal devices. The device identification and authentication information is stored in the device identification and authentication module. The device authentication and identification information can be used for identity identification and authentication before transmitting signature information and signature verification information. At the same time, the exact location where the tampering occurred can be located through the unique device authentication and identification information; for the positioning information, it can be the Beidou satellite positioning chip or GPS positioning chip built into the positioning module to locate the location where the IPTV video is tampered and generate positioning information. The location where the tampering occurred can be accurately located through the device identification and authentication information and the positioning information, which is conducive to the IPTV video operator to monitor and maintain the operation of the service platform, and improves the speed at which the anti-tampering device reflects the tampering information to the service platform.
[0086] In one example, assuming that the current network is located in the IPTV backbone network, the device identification and authentication information of this level can be determined by connecting to the device identification and authentication module of the anti-tampering device in the IPTV backbone network. Similarly, the positioning information of this level can be determined by the positioning module of the anti-tampering device. Specifically, when the signature verification information module in the IPTV backbone network detects that the verification information in the video stream sent by the program content source to the IPTV backbone network is inconsistent, it can be considered that the video stream has been tampered with. At the same time, the positioning module can locate the position where the IPTV video has been tampered with through the built-in Beidou satellite positioning chip or GPS positioning chip and generate positioning information. Furthermore, the tampered position can be further located through the device identification and authentication information in the device identification and authentication module.
[0087] Step 104, the target video stream, the device identification and authentication information, the positioning information and the verification information of the anti-tampering device at this level are reported to the anti-tampering device corresponding to the network segment of the next level and the business platform; the business platform is used to determine the location where the tampering of the video stream occurs according to the device identification and authentication information and positioning information of the target anti-tampering device when it is confirmed that the verification information of the target video stream is inconsistent with the verification information reported by the target anti-tampering device.
[0088] In a specific implementation, after the target video stream, device identification and authentication information, positioning information and verification information of the anti-tampering device at this level are reported to the anti-tampering device corresponding to the network segment at the next level, the anti-tampering device at the next level can verify whether the video stream has been tampered with. Specifically, when the verification information of the target video stream of the anti-tampering device at this level is inconsistent with the verification information reported by the anti-tampering device at the previous level, the location where the tampering of the video stream of the network segment at this level has occurred is determined based on the device identification and authentication information and positioning information of the anti-tampering device at the previous level, thereby generating error information based on the location where the tampering of the video stream has occurred, and uploading the error information to the IPTV service platform.
[0089] Furthermore, after the target video stream, device identification and authentication information, positioning information and verification information of the anti-tampering device at this level are reported to the IPTV service platform, the service platform can be used to determine the location where the video stream is tampered with based on the device identification and authentication information and positioning information of the target anti-tampering device when it is confirmed that the verification information of the target video stream is inconsistent with the verification information reported by the target anti-tampering device. At the same time, the IPTV service platform can re-verify whether the video stream has been tampered with. Specifically, after the 5G wireless transmission module of the anti-tampering device generates an error message based on the location where the video stream is tampered with and uploads the error message to the IPTV service platform, the IPTV service platform can further detect the video stream based on the verification information, device identification and authentication information and positioning information previously stored to improve the accuracy of the verification.
[0090] In one example, assuming that the current video stream has reached the access network, the access network can receive the target video stream, verification information, device identification and authentication information, and positioning information from the metropolitan area network. At the same time, the video extraction module of the anti-tampering device in the access network can extract the video feature value of the target video stream, and then generate verification information including signature information and signature verification information. When the verification information of the target video stream of the anti-tampering device at the access network level is inconsistent with the verification information reported by the anti-tampering device of the metropolitan area network at the upper level, the location where the target video stream of the access network at this level has been tampered with can be determined based on the device identification and authentication information and positioning information of the anti-tampering device of the metropolitan area network at the upper level, so that the tampering location of the target video stream of the access network at this level can be determined based on the video stream. An error message is generated at the location where the tampering occurred, and the error message is uploaded to the IPTV service platform. At the same time, the IPTV service platform can re-verify whether the video stream has been tampered with. Specifically, since the verification information, device identification and authentication information, and positioning information of each network segment can be uploaded to the IPTV service platform through the 5G wireless transmission module of the anti-tampering device, the IPTV service platform can further verify the video stream according to the stored verification information, device identification and authentication information, and positioning information, and re-locate the location where the video stream has been tampered with. Through the dual verification of the anti-tampering device and the IPTV service platform, a parallel verification method is formed, which saves detection time and improves the accuracy of verification.
[0091] In an embodiment of the present invention, the anti-tampering of video streams is mainly applied to business platforms. The business platform includes network segments of multiple levels. Anti-tampering devices are deployed on network segments of different levels. The anti-tampering devices include at least device identification and authentication information and positioning information. First, the video stream is sampled to obtain video feature information for the video stream, and then verification information is generated according to the video feature information. The verification information is inserted into the video stream to obtain the target video stream, and the device identification and authentication information and positioning information of the anti-tampering device at this level are determined. The target video stream, device identification and authentication information, positioning information and verification information of the anti-tampering device at this level are reported to the anti-tampering device and business platform corresponding to the network segment of the next level. The business platform is used to determine the location where the video stream is tampered according to the device identification and authentication information and positioning information of the target anti-tampering device when it is confirmed that the verification information of the target video stream is inconsistent with the verification information reported by the target anti-tampering device. By adopting a parallel verification method, using anti-tampering equipment to verify and transmit the video stream, and reporting the verification information to the business platform, not only can the video stream be verified in each network segment, but the video stream can also be verified again on the business platform, ensuring the reliability of the verification and improving the ability of the video stream to respond to the risk of tampering; and, through the device identification authentication information and positioning information, the location where the video stream has been tampered with can be quickly located, which is beneficial for the operator to monitor and maintain the operation of the business platform, and improves the speed at which the anti-tampering device reflects the tampering information to the business platform.
[0092] In an optional embodiment, the service platform stores the original video image and the original video segment. After generating error information according to the location where the tampering of the video stream occurs and uploading the error information to the service platform, the method further includes:
[0093] The problematic video stream corresponding to the error message is transmitted back to the service platform, and the service platform is used to compare the video image of the problematic video stream with the original video image to determine the tampered video image of the problematic video stream;
[0094] The problematic video stream corresponding to the error message is transmitted back to the service platform, and the service platform is used to compare the video segment of the problematic video stream with the original video segment to determine the tampered video segment of the problematic video stream.
[0095] For the video image, it can be the video image corresponding to the video timestamp in the video stream, wherein the original video image is the video image of the video stream extracted by the IPTV service platform at the program content source; for the video segment, it can be the video segment corresponding to the video interval frame number in the video stream, and similarly, the original video segment is the video segment of the video stream extracted by the IPTV service platform at the program content source. Since the video stream of the program content source is difficult to be tampered with, it can also be understood that the video stream stored in the IPTV service platform is difficult to be tampered with. It is usually easy to be tampered with during the process of network transmission of the video stream. Therefore, the original video stream of the program content source can be used as the verification standard.
[0096] The problematic video stream may be a tampered video stream.
[0097] In a specific implementation, after the anti-tampering device generates error information according to the location where the video stream is tampered, and uploads the error information to the IPTV service platform, it can also transmit the problem video stream corresponding to the error information back to the IPTV service platform, and the IPTV service platform can be used to compare the video image of the problem video stream with the original video image stored in the IPTV service platform to determine the tampered video image of the problem video stream; similarly, the IPTV service platform can also be used to compare the video segment of the problem video stream with the original video segment to determine the tampered video segment of the problem video stream. By determining the tampered video image and video segment of the problem video stream, the location where the IPTV video is tampered can be accurately located.
[0098] It should be noted that the return duration of the problematic video stream can be 3 seconds to 3 minutes, wherein the return of the problematic video stream can be set at a fixed period or be considered to be carried out at a designated spot check time. Those skilled in the art can adjust it according to actual conditions, and the embodiments of the present invention do not limit this. For the comparison of video images and video segments, special tool software can be used for comparison. In actual application, those skilled in the art can use appropriate special tool software for comparison, and the embodiments of the present invention do not limit this.
[0099] In addition, during the comparison process, clock synchronization is also required. The comparison period (for example, 5 seconds) is flexibly set according to timeliness. Each set of comparison information needs to carry a sampling time (such as: x year x month x day x hour x minute x second). In actual applications, there may be multiple levels of network delays, resulting in clock errors. In an embodiment of the present invention, the comparison can be performed according to a duration of 5 seconds, and a certain degree of matching failure rate can be allowed. In this regard, technical personnel in this field can make adjustments according to actual conditions, and the embodiment of the present invention does not limit this.
[0100] In an embodiment of the present invention, the anti-tampering of video streams is mainly applied to business platforms. The business platform includes network segments of multiple levels. Anti-tampering devices are deployed on network segments of different levels. The anti-tampering devices include at least device identification and authentication information and positioning information. First, the video stream is sampled to obtain video feature information for the video stream, and then verification information is generated according to the video feature information. The verification information is inserted into the video stream to obtain the target video stream, and the device identification and authentication information and positioning information of the anti-tampering device at this level are determined. The target video stream, device identification and authentication information, positioning information and verification information of the anti-tampering device at this level are reported to the anti-tampering device and business platform corresponding to the network segment of the next level. The business platform is used to determine the location where the video stream is tampered according to the device identification and authentication information and positioning information of the target anti-tampering device when it is confirmed that the verification information of the target video stream is inconsistent with the verification information reported by the target anti-tampering device. By adopting a parallel verification method, using anti-tampering equipment to verify and transmit the video stream, and reporting the verification information to the business platform, not only can the video stream be verified in each network segment, but the video stream can also be verified again on the business platform, ensuring the reliability of the verification and improving the ability of the video stream to respond to the risk of tampering; and, through the device identification authentication information and positioning information, the location where the video stream has been tampered with can be quickly located, which is beneficial for the operator to monitor and maintain the operation of the business platform, and improves the speed at which the anti-tampering device reflects the tampering information to the business platform.
[0101] In addition, in the embodiment of the present invention, the signature and verification information of each key node, that is, the verification information, the device identification and authentication information, and the positioning information are transmitted back to the IPTV service platform through the 5G wireless network channel. At the same time, the problematic video stream is also transmitted back and compared. Through this wireless transmission mechanism, the overall response capability of the IPTV system to the risk of tampering is improved.
[0102] Reference Figure 6 , shows a flowchart of a video anti-tampering method provided in an embodiment of the present invention, which is applied to a business platform, wherein the business platform includes network segments at multiple levels, and anti-tampering devices are deployed on the network segments at different levels, respectively, and the anti-tampering devices include at least device identification authentication information and positioning information, and specifically may include the following steps:
[0103] Step 601, receiving a target video stream, the device identification and authentication information, the positioning information and verification information reported by the anti-tampering device; the target video stream includes the verification information generated by the anti-tampering device sampling the video stream and obtaining the video feature information of the video stream;
[0104] In a specific implementation, the business platform receives the target video stream, device identification and authentication information, positioning information and verification information reported by the anti-tampering device, wherein the target video stream includes the verification information generated by the anti-tampering device through video sampling of the video stream and the verification information is used to determine whether the target video stream has been tampered with.
[0105] Step 602: When it is confirmed that the verification information of the target video stream is inconsistent with the verification information reported by the target anti-tampering device, the tampering location of the video stream is determined according to the device identification authentication information and positioning information of the target anti-tampering device.
[0106] In a specific implementation, when it is confirmed that the verification information of the target video stream is inconsistent with the verification information reported by the target anti-tampering device, the location where the video stream is tampered is determined based on the device identification authentication information and positioning information of the target anti-tampering device.
[0107] In one example, assuming that the current video stream has reached the access network, the access network can receive the target video stream, verification information, device identification and authentication information, and positioning information from the metropolitan area network. At the same time, the video extraction module of the anti-tampering device in the access network can extract the video feature value of the target video stream, and then generate verification information including signature information and signature verification information. When the verification information of the target video stream of the anti-tampering device at the access network level is inconsistent with the verification information reported by the anti-tampering device of the metropolitan area network at the upper level, the location where the target video stream of the access network at this level has been tampered with can be determined based on the device identification and authentication information and positioning information of the anti-tampering device of the metropolitan area network at the upper level, so that the tampering location of the target video stream of the access network at this level can be determined based on the video stream. An error message is generated at the location where the tampering occurred, and the error message is uploaded to the IPTV service platform. At the same time, the IPTV service platform can re-verify whether the video stream has been tampered with. Specifically, since the verification information, device identification and authentication information, and positioning information of each network segment can be uploaded to the IPTV service platform through the 5G wireless transmission module of the anti-tampering device, the IPTV service platform can further verify the video stream according to the stored verification information, device identification and authentication information, and positioning information, and re-locate the location where the video stream has been tampered with. Through the dual verification of the anti-tampering device and the IPTV service platform, a parallel verification method is formed, which saves detection time and improves the accuracy of verification.
[0108] In an optional embodiment, it also includes:
[0109] After the service platform receives the error message from the first tamper-proof device, it determines a second tamper-proof device that is operating normally and has a network segment adjacent to the network segment of the first tamper-proof device;
[0110] Re-establishing a link between the second tamper-proof device and the first tamper-proof device; the link is used to transmit the video stream.
[0111] The first tamper-proof device is a device that generates error information when tampered with, and the second tamper-proof device is a device that has not been tampered with and is a superior device of the first tamper-proof device. As for the link, it can be used to transmit video streams.
[0112] In the specific implementation, when the business platform receives the error information of the first anti-tampering device, it determines a second anti-tampering device that is operating normally and has a network segment adjacent to the network segment of the first anti-tampering device, and re-establishes the link between the second anti-tampering device and the first anti-tampering device, thereby restoring the normal playback of the video and improving the user experience.
[0113] In one example, referring to Figure 7 , which shows a flow chart of tampering recovery provided in an embodiment of the present invention. Assuming that after the IPTV service platform receives the video stream error information of the home terminal, it can traverse and retrieve the link nodes corresponding to the normal operation information stored in the IPTV service platform in the order of the adjacent access network, the adjacent metropolitan area network, and the adjacent IPTV backbone network, and report it to the IPTV service platform. Then, the IPTV service platform re-establishes a new path between the home terminal that reports the data stream abnormality and the normal video stream to ensure playback.
[0114] In an embodiment of the present invention, the anti-tampering of video streams is mainly applied to business platforms. The business platform includes network segments of multiple levels. Anti-tampering devices are deployed on network segments of different levels. The anti-tampering devices include at least device identification and authentication information and positioning information. First, the video stream is sampled to obtain video feature information for the video stream, and then verification information is generated according to the video feature information. The verification information is inserted into the video stream to obtain the target video stream, and the device identification and authentication information and positioning information of the anti-tampering device at this level are determined. The target video stream, device identification and authentication information, positioning information and verification information of the anti-tampering device at this level are reported to the anti-tampering device and business platform corresponding to the network segment of the next level. The business platform is used to determine the location where the video stream is tampered according to the device identification and authentication information and positioning information of the target anti-tampering device when it is confirmed that the verification information of the target video stream is inconsistent with the verification information reported by the target anti-tampering device. By adopting a parallel verification method, using anti-tampering equipment to verify and transmit the video stream, and reporting the verification information to the business platform, not only can the video stream be verified in each network segment, but the video stream can also be verified again on the business platform, ensuring the reliability of the verification and improving the ability of the video stream to respond to the risk of tampering; and, through the device identification authentication information and positioning information, the location where the video stream has been tampered with can be quickly located, which is beneficial for the operator to monitor and maintain the operation of the business platform, and improves the speed at which the anti-tampering device reflects the tampering information to the business platform.
[0115] In addition, the embodiment of the present invention also provides a tampering recovery mechanism, which is beneficial to improving the experience of IPTV users.
[0116] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0117] Reference Figure 8 , shows a structural block diagram of a video anti-tampering device provided in an embodiment of the present invention, which is applied to a business platform, wherein the business platform includes network segments at multiple levels, and anti-tampering devices are deployed on the network segments at different levels, respectively. The anti-tampering devices include at least device identification authentication information and positioning information, and may specifically include the following modules:
[0118] The video sampling module 801 is used to perform video sampling on the video stream to obtain video feature information for the video stream;
[0119] A verification information generating module 802, configured to generate verification information according to the video feature information, and insert the verification information into the video stream to obtain a target video stream;
[0120] The current level information determination module 803 is used to determine the device identification authentication information and location information of the current level of tamper-proof devices;
[0121] The first tampering location determination module 804 is used to report the target video stream, the device identification and authentication information, the positioning information and the verification information of the anti-tampering device at this level to the anti-tampering device corresponding to the network segment of the next level and the business platform; the business platform is used to determine the tampering location of the video stream according to the device identification and authentication information and the positioning information of the target anti-tampering device when it is confirmed that the verification information of the target video stream is inconsistent with the verification information reported by the target anti-tampering device.
[0122] In an optional embodiment, the video sampling module 801 is specifically used for:
[0123] Performing video sampling on the video stream to obtain a video stream PES packet, a video interval frame number and a video timestamp for the video stream;
[0124] Using the field value corresponding to the specified field in the PES packet of the video stream as the video stream characteristic value of the video stream;
[0125] The video frame interval, the video timestamp and the video stream feature value are used as video feature information.
[0126] In an optional embodiment, the device further includes:
[0127] A module for determining the location where tampering has occurred at this level, for determining the location where tampering has occurred at the network segment at this level according to the device identification authentication information and positioning information of the tampering-proof device at the previous level, when the verification information of the target video stream of the tampering-proof device at this level is inconsistent with the verification information reported by the tampering-proof device at the previous level;
[0128] The error information reporting module is used to generate error information according to the location where the tampering of the video stream occurs, and upload the error information to the business platform.
[0129] In an optional embodiment, the device further includes:
[0130] A video image determination module, used to transmit the problem video stream corresponding to the error information back to the service platform, and the service platform is used to compare the video image of the problem video stream with the original video image to determine the tampered video image of the problem video stream;
[0131] The video segment determination module is used to transmit the problem video stream corresponding to the error information back to the business platform, and the business platform is used to compare the video segment of the problem video stream with the original video segment to determine the tampered video segment of the problem video stream.
[0132] Reference Fig. 9 , shows a structural block diagram of a video anti-tampering device provided in an embodiment of the present invention, which is applied to a business platform, wherein the business platform includes network segments at multiple levels, and anti-tampering devices are deployed on the network segments at different levels, respectively. The anti-tampering devices include at least device identification authentication information and positioning information, and may specifically include the following modules:
[0133] The information receiving module 901 is used to receive the target video stream, the device identification and authentication information, the positioning information and the verification information reported by the anti-tampering device; the target video stream includes the verification information generated by the anti-tampering device sampling the video stream and obtaining the video feature information of the video stream;
[0134] The second tampering location determination module 902 is used to determine the tampering location of the video stream according to the device identification authentication information and positioning information of the target anti-tampering device when confirming that the verification information of the target video stream is inconsistent with the verification information reported by the target anti-tampering device.
[0135] In an optional embodiment, the device further includes:
[0136] A second tamper-proof device determination module, configured to determine a second tamper-proof device that is operating normally and has a network segment adjacent to the network segment of the first tamper-proof device after the service platform receives the error message of the first tamper-proof device;
[0137] A link resetting module is used to reestablish a link between the second tamper-proof device and the first tamper-proof device; the link is used to transmit the video stream.
[0138] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0139] In addition, an embodiment of the present invention further provides an electronic device, including: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the various processes of the above-mentioned video anti-tampering method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0140] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned video anti-tampering method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0141] An embodiment of the present invention also provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned video anti-tampering method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0142] Fig.10 A schematic diagram of the hardware structure of an electronic device for implementing various embodiments of the present invention.
[0143] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, a processor 1010, and a power supply 1011. Those skilled in the art will appreciate that Fig.10 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. In the embodiments of the present invention, the electronic device includes but is not limited to a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted terminal, a wearable device, and a pedometer.
[0144] It should be understood that in the embodiment of the present invention, the radio frequency unit 1001 can be used for receiving and sending signals during information transmission or communication. Specifically, after receiving downlink data from the base station, it is sent to the processor 1010 for processing; in addition, uplink data is sent to the base station. Generally, the radio frequency unit 1001 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc. In addition, the radio frequency unit 1001 can also communicate with the network and other devices through a wireless communication system.
[0145] The electronic device provides users with wireless broadband Internet access through the network module 1002, such as helping users to send and receive emails, browse web pages, and access streaming media.
[0146] The audio output unit 1003 can convert the audio data received by the RF unit 1001 or the network module 1002 or stored in the memory 1009 into an audio signal and output it as sound. Moreover, the audio output unit 1003 can also provide audio output related to a specific function performed by the electronic device 1000 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 1003 includes a speaker, a buzzer, a receiver, etc.
[0147] The input unit 1004 is used to receive audio or video signals. The input unit 1004 may include a graphics processor (GPU) 10041 and a microphone 10042. The graphics processor 10041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 1006. The image frame processed by the graphics processor 10041 can be stored in the memory 1009 (or other storage medium) or sent via the radio frequency unit 1001 or the network module 1002. The microphone 10042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format output that can be sent to a mobile communication base station via the radio frequency unit 1001 in the case of a telephone call mode.
[0148] The electronic device 1000 also includes at least one sensor 1005, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 10061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 10061 and / or the backlight when the electronic device 1000 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary, which can be used to identify the posture of the electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; the sensor 1005 can also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be repeated here.
[0149] The display unit 1006 is used to display information input by the user or information provided to the user. The display unit 1006 may include a display panel 10061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
[0150] The user input unit 1007 can be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the electronic device. Specifically, the user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 10071 or near the touch panel 10071 using any suitable object or accessory such as a finger, stylus, etc.). The touch panel 10071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the coordinates of the contact point, and then sends it to the processor 1010, receives the command sent by the processor 1010 and executes it. In addition, the touch panel 10071 can be implemented in various types such as resistive, capacitive, infrared and surface acoustic waves. In addition to the touch panel 10071, the user input unit 1007 may also include other input devices 10072. Specifically, other input devices 10072 may include but are not limited to physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
[0151] Furthermore, the touch panel 10071 may be overlaid on the display panel 10061. When the touch panel 10071 detects a touch operation on or near it, it is transmitted to the processor 1010 to determine the type of touch event. Then, the processor 1010 provides corresponding visual output on the display panel 10061 according to the type of touch event. Fig.10 In the figure, the touch panel 10071 and the display panel 10061 are two independent components to realize the input and output functions of the electronic device. However, in some embodiments, the touch panel 10071 and the display panel 10061 can be integrated to realize the input and output functions of the electronic device, which is not limited here.
[0152] The interface unit 1008 is an interface for connecting an external device to the electronic device 1000. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 1008 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic device 1000 or may be used to transmit data between the electronic device 1000 and an external device.
[0153] The memory 1009 can be used to store software programs and various data. The memory 1009 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 1009 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0154] The processor 1010 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 1009 and calling data stored in the memory 1009, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. The processor 1010 may include one or more processing units; preferably, the processor 1010 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 1010.
[0155] The electronic device 1000 may also include a power supply 1011 (such as a battery) for supplying power to each component. Preferably, the power supply 1011 may be logically connected to the processor 1010 via a power management system, thereby managing functions such as charging, discharging, and power consumption through the power management system.
[0156] In addition, the electronic device 1000 includes some functional modules not shown, which will not be described in detail here.
[0157] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0158] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0159] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.
[0160] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the embodiments of the present invention can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0161] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0162] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0163] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0164] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0165] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for 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 invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.
[0166] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A video anti-tampering method, characterized in that: Applied to a business platform, the business platform includes network segments at multiple levels, and anti-tampering devices are respectively deployed on the network segments at different levels, and the anti-tampering devices include at least device identification authentication information and positioning information. The method includes: Performing video sampling on the video stream to obtain video feature information for the video stream; Generate verification information according to the video feature information, and insert the verification information into the video stream to obtain a target video stream; Determine the device identification authentication information and location information of the tamper-proof device at this level; The target video stream, the device identification and authentication information, the positioning information and the verification information of the tamper-proof device at this level are reported to the tamper-proof device corresponding to the network segment of the next level and the business platform; the business platform is used to determine the location where the tampering of the video stream occurs according to the device identification and authentication information and the positioning information of the target tamper-proof device when it is confirmed that the verification information of the target video stream is inconsistent with the verification information reported by the target tamper-proof device.
2. The method according to claim 1, characterized in that The performing video sampling on the video stream to obtain video feature information for the video stream includes: Performing video sampling on the video stream to obtain a video stream PES packet, a video interval frame number and a video timestamp for the video stream; Using the field value corresponding to the specified field in the PES packet of the video stream as the video stream characteristic value of the video stream; The video frame interval, the video timestamp and the video stream feature value are used as video feature information.
3. The method according to claim 1, characterized in that: After reporting the target video stream, the device identification and authentication information, the positioning information and the verification information of the tamper-proof device at the current level to the tamper-proof device corresponding to the network segment at the next level and the service platform, it includes: When the verification information of the target video stream of the anti-tampering device at this level is inconsistent with the verification information reported by the anti-tampering device at the previous level, the location where the tampering of the video stream of the network segment at this level occurs is determined according to the device identification authentication information and positioning information of the anti-tampering device at the previous level; Generate error information according to the location where the tampering of the video stream occurs, and upload the error information to the business platform.
4. The method according to claim 3, characterized in that The service platform stores original video images and original video segments. After generating error information according to the location where the video stream is tampered with and uploading the error information to the service platform, the method further includes: The problematic video stream corresponding to the error message is transmitted back to the service platform, and the service platform is used to compare the video image of the problematic video stream with the original video image to determine the tampered video image of the problematic video stream; The problematic video stream corresponding to the error message is transmitted back to the service platform, and the service platform is used to compare the video segment of the problematic video stream with the original video segment to determine the tampered video segment of the problematic video stream.
5. A video anti-tampering method, characterized in that: Applied to a business platform, the business platform includes network segments at multiple levels, and anti-tampering devices are respectively deployed on the network segments at different levels, and the anti-tampering devices include at least device identification authentication information and positioning information. The method includes: Receiving a target video stream, the device identification and authentication information, the positioning information and verification information reported by the anti-tampering device; the target video stream includes the verification information generated by the anti-tampering device sampling the video stream and obtaining the video feature information of the video stream; When it is confirmed that the verification information of the target video stream is inconsistent with the verification information reported by the target anti-tampering device, the tampering location of the video stream is determined according to the device identification authentication information and positioning information of the target anti-tampering device.
6. The method according to claim 5, characterized in that The method further comprises: After the service platform receives the error message from the first tamper-proof device, it determines a second tamper-proof device that is operating normally and has a network segment adjacent to the network segment of the first tamper-proof device; Re-establishing a link between the second tamper-proof device and the first tamper-proof device; the link is used to transmit the video stream.
7. A video anti-tampering device, characterized in that: Applied to a business platform, the business platform includes network segments at multiple levels, and anti-tampering devices are respectively deployed on the network segments at different levels, and the anti-tampering devices include at least device identification authentication information and positioning information. The device includes: A video sampling module, used for sampling a video stream to obtain video feature information for the video stream; A verification information generation module, used to generate verification information according to the video feature information, and insert the verification information into the video stream to obtain a target video stream; This level of information determination module is used to determine the device identification authentication information and positioning information of the anti-tampering device of this level; The first tampering location determination module is used to report the target video stream, the device identification and authentication information, the positioning information and the verification information of the anti-tampering device at this level to the anti-tampering device corresponding to the network segment of the next level and the business platform; the business platform is used to determine the tampering location of the video stream according to the device identification and authentication information and the positioning information of the target anti-tampering device when it is confirmed that the verification information of the target video stream is inconsistent with the verification information reported by the target anti-tampering device.
8. A video anti-tampering device, characterized in that: Applied to a business platform, the business platform includes network segments at multiple levels, and anti-tampering devices are respectively deployed on the network segments at different levels, and the anti-tampering devices include at least device identification authentication information and positioning information. The device includes: An information receiving module, used to receive the target video stream, the device identification and authentication information, the positioning information and the verification information reported by the anti-tampering device; the target video stream includes the verification information generated by the anti-tampering device sampling the video stream and obtaining the video feature information of the video stream; The second tampering location determination module is used to determine the tampering location of the video stream according to the device identification authentication information and positioning information of the target anti-tampering device when it is confirmed that the verification information of the target video stream is inconsistent with the verification information reported by the target anti-tampering device.
9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; The memory is used to store computer programs; The processor is used to implement the method according to any one of claims 1 to 6 when executing the program stored in the memory.
10. A computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, cause the processors to perform the method according to any one of claims 1 to 6.
