CN115209224A - TS section checking method, device, equipment and storage medium - Google Patents

TS section checking method, device, equipment and storage medium Download PDF

Info

Publication number
CN115209224A
CN115209224A CN202210760334.3A CN202210760334A CN115209224A CN 115209224 A CN115209224 A CN 115209224A CN 202210760334 A CN202210760334 A CN 202210760334A CN 115209224 A CN115209224 A CN 115209224A
Authority
CN
China
Prior art keywords
section
check value
slicing
video file
target video
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210760334.3A
Other languages
Chinese (zh)
Other versions
CN115209224B (en
Inventor
赵忠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Letv Cloud Network Technology Beijing Co ltd
Original Assignee
LeCloud Computing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by LeCloud Computing Co Ltd filed Critical LeCloud Computing Co Ltd
Priority to CN202210760334.3A priority Critical patent/CN115209224B/en
Publication of CN115209224A publication Critical patent/CN115209224A/en
Application granted granted Critical
Publication of CN115209224B publication Critical patent/CN115209224B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/462Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions

Abstract

The embodiment of the disclosure provides a method, a device, equipment and a storage medium for TS section verification. The method comprises the following steps: the video preprocessing server performs TS slicing on the target video file according to a preset slicing rule, calculates standard check values of all TS sections obtained by slicing, and sends the target video file and the standard check values of all TS sections to the HLS on-demand platform; the HLS on-demand platform receives a target video file and the standard check value of each TS section, TS slicing is conducted on the target video file according to a preset slicing rule adopted by a video preprocessing server, a playing request of a client side is responded, the TS section and the standard check value of the TS section are sent to the client side, so that the client side can calculate the local check value of the received TS section, and the received TS section is checked according to the calculated local check value and the standard check value of the received TS section. In this way, TS section verification can be realized on the premise of not influencing the response speed of the HLS on-demand platform and the second-on effect of the client.

Description

TS section checking method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of media stream technologies, and in particular, to a TS segment verification method, apparatus, device, and storage medium.
Background
With the development of computers, media streaming technology is more and more widely applied to video on demand. The media Stream file transmitted by the vod platform is sent in a Transport Stream (TS) format, where the Transport Stream includes a plurality of TS segments.
Research shows that the conventional video-on-demand service basically has no verification mechanism for the TS segment, so that the client often cannot verify the accuracy of the TS segment, and once the TS segment acquired by the client is tampered, for example, a Trojan virus, a worm virus and the like are maliciously implanted in the TS segment, the problems of poisoning, network paralysis and the like of the client can be caused. Therefore, how to implement TS segment verification becomes a technical problem to be solved urgently at present.
Disclosure of Invention
The present disclosure provides a TS segment verification method, device, equipment, and storage medium, which can implement TS segment verification without affecting response speed of HLS on-demand platform and second-on effect of client.
In a first aspect, an embodiment of the present disclosure provides a TS segment checking method, where the method includes:
the video preprocessing server performs TS slicing on the target video file according to a preset slicing rule, calculates standard check values of all TS sections obtained by slicing, and sends the target video file and the standard check values of all TS sections to the HLS on-demand platform;
the HLS on-demand platform receives a target video file and the standard check value of each TS section, TS slicing is conducted on the target video file according to a preset slicing rule adopted by a video preprocessing server, a playing request of a client side is responded, the TS section and the standard check value of the TS section are sent to the client side, so that the client side can calculate the local check value of the received TS section, and the received TS section is checked according to the calculated local check value and the standard check value of the received TS section.
In some implementations of the first aspect, before the video pre-processing server TS slices the target video file according to the preset slicing rule, the method further includes:
and the video preprocessing server transcodes the source video file to obtain a target video file.
In some implementations of the first aspect, the video pre-processing server performs TS slicing on the target video file according to a preset slicing rule, including:
and the video preprocessing server performs TS slicing on the target video file according to the specified slicing time length.
In some implementations of the first aspect, the video pre-processing server performs TS slicing on the target video file according to a preset slicing rule, including:
and the video preprocessing server detects key frames of the target video file and performs TS slicing on the target video file according to the detected key frames and transition frames attached to the key frames.
In some implementation manners of the first aspect, the sending, by the HLS on-demand platform, the TS segment and the standard check value of the TS segment to the client in response to the play request of the client includes:
and the HLS on-demand platform responds to the playing request through an edge cache server corresponding to the playing request in the CDN to which the HLS on-demand platform belongs, and sends the TS section and the standard check value of the TS section to the client.
In some implementation manners of the first aspect, the verifying, by the client, the received TS segment according to the calculated local verification value and the standard verification value of the received TS segment includes:
the client compares whether the local check value obtained by calculation is the same as the standard check value of the received TS section;
if the local check value is the same as the standard check value, determining that the received TS segment passes the check, and playing the content of the TS segment;
and if the local check value is different from the standard check value, determining that the received TS section is not checked, and re-downloading the TS section which is not checked from the HLS on-demand platform.
In some implementations of the first aspect, the video preprocessing server and the client use the same check algorithm to calculate the corresponding check value, where the check algorithm is a CRC algorithm, an MD5 algorithm, or an SHA256 algorithm.
In a second aspect, an embodiment of the present disclosure provides a TS segment checking device, where the device includes:
the calculation module is used for the video preprocessing server to perform TS slicing on the target video file according to a preset slicing rule, calculate the standard check value of each TS section obtained by slicing, and send the target video file and the standard check value of each TS section to the HLS on-demand platform;
and the determining module is used for receiving the target video file and the standard check value of each TS section by the HLS on-demand platform, performing TS slicing on the target video file according to a preset slicing rule adopted by the video preprocessing server, responding to a playing request of the client, sending the TS section and the standard check value of the TS section to the client so that the client can calculate the local check value of the received TS section, and checking the received TS section according to the calculated local check value and the standard check value of the received TS section.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method as described above.
In a fourth aspect, the disclosed embodiments provide a non-transitory computer-readable storage medium having stored thereon computer instructions for causing a computer to perform the method as described above.
In the method, the video preprocessing server can calculate the standard check value of each TS section, so that the standard check value of each TS section can be determined without calculation on the HLS on-demand platform side, the TS section check is realized on the premise of not influencing the response speed of the HLS on-demand platform, and whether the TS section is abnormal or not is accurately found.
It should be understood that the statements herein reciting aspects are not intended to limit the critical or essential features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. The accompanying drawings are included to provide a further understanding of the present disclosure, and are not incorporated in or constitute a part of this specification, wherein like reference numerals refer to like or similar elements throughout the several views and wherein:
FIG. 1 illustrates a schematic diagram of an exemplary operating environment in which embodiments of the present disclosure can be implemented;
fig. 2 shows a flowchart of a TS segment checking method provided by an embodiment of the present disclosure;
FIG. 3 illustrates a schematic diagram of another exemplary operating environment in which embodiments of the present disclosure can be implemented;
fig. 4 is a block diagram illustrating a TS segment checking apparatus according to an embodiment of the present disclosure;
FIG. 5 sets forth a block diagram of an exemplary electronic device capable of implementing embodiments of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are some, but not all embodiments of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
In addition, the term "and/or" herein is only one kind of association relationship describing an associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
To solve the problems in the background art, embodiments of the present disclosure provide a TS segment verification method, apparatus, device, and storage medium. Specifically, the video preprocessing server may perform TS slicing on the target video file according to a preset slicing rule, calculate a standard check value of each TS segment obtained by slicing, and send the target video file and the standard check value of each TS segment to the HLS on-demand platform; the HLS on-demand platform can receive a target video file and standard check values of the TS sections, perform TS slicing on the target video file according to a preset slicing rule adopted by a video preprocessing server, respond to a playing request of a client, send the TS sections and the standard check values of the TS sections to the client so that the client can calculate local check values of the received TS sections, and check the received TS sections according to the calculated local check values and the standard check values of the received TS sections.
Therefore, the standard check value of each TS section can be calculated by the video preprocessing server, the standard check value of each TS section can be determined without calculation at the HLS on-demand platform side, the TS section check is realized on the premise of not influencing the response speed of the HLS on-demand platform, and whether the TS section is abnormal or not is accurately found.
The TS segment verification method, apparatus, device and storage medium provided in the embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
FIG. 1 illustrates a schematic diagram of an exemplary operating environment in which embodiments of the present disclosure can be implemented, as shown in FIG. 1, operating environment 100 may include: the video on-demand system comprises a video preprocessing server, an HLS on-demand platform and a client, wherein the HLS on-demand platform is connected with the video preprocessing server and the client through a communication network respectively.
The video preprocessing server can be a single server, a server cluster or a cloud server and has high hardware configuration and high computing capability.
The HLS on-demand platform corresponds to the video APP and provides video on-demand service for the video APP, and the HLS on-demand platform can be realized by a server based on an HLS protocol.
The client is an electronic device installed with the video APP, such as a mobile phone, a tablet Computer, a notebook Computer, a Personal Computer (PC), a Television (TV), a projector, a vehicle-mounted host, and the like.
As an example, the video preprocessing server may receive a target video uploaded by a user, such as a recorded television program, a shot short video, and a produced animation, then perform TS slicing on a target video file according to a preset slicing rule to obtain a plurality of TS segments, calculate a standard check value of each TS segment, and further send the target video file and the standard check value of each TS segment to the HLS on-demand platform.
The HLS on-demand platform receives the target video file and the standard check value of each TS section, then performs the same TS slicing on the target video file according to a preset slicing rule adopted by the video preprocessing server, and further determines the standard check value of the TS section obtained by current slicing according to the received standard check value of each TS section.
And under the condition of receiving a playing request sent by the client, the HLS on-demand platform sends the TS section and the standard check value of the TS section to the client so that the client can calculate the local check value of the received TS section, and the received TS section is checked according to the calculated local check value and the standard check value of the received TS section, so as to accurately find whether the TS section is abnormal or not.
The TS segment verification method provided in the embodiment of the present disclosure will be described in detail below, where the TS segment verification method may be applied to the operating environment 100 shown in fig. 1.
Fig. 2 shows a flowchart of a TS segment verification method provided in an embodiment of the present disclosure, and as shown in fig. 2, the TS segment verification method 200 may include the following steps:
s210, the video preprocessing server performs TS slicing on the target video file according to a preset slicing rule, and calculates standard check values of TS sections obtained through slicing.
In some embodiments, the video preprocessing server may receive a source video file uploaded by a user, such as a recorded television program, a shot short video, and a produced animation, and transcode the source video file to obtain a target video file with a specified resolution, so that a subsequent user can select to view pictures with different resolutions according to a display requirement.
Optionally, the video preprocessing server may perform TS slicing on the target video file according to the specified slicing duration to obtain a TS segment with a corresponding duration. That is to say, TS slicing can be implemented quickly only by specifying the slicing duration, and TS slicing efficiency is improved.
For example: the target video file is about 10 minutes long, and the video preprocessing server can perform TS slicing on the target video file according to a rule of one section in one minute to obtain 10 TS sections with a duration of 1 minute.
Meanwhile, the video preprocessing server can also detect key frames of the target video file, and perform TS slicing on the target video file according to the detected key frames and transition frames attached to the key frames to obtain TS sections corresponding to the key frames, so that pictures corresponding to the TS sections are smoother.
For example: the target video file has 10 frames, wherein the first frame and the sixth frame are key frames, the second frame to the fifth frame are transition frames attached to the first frame, the seventh frame to the tenth frame are transition frames attached to the sixth frame, and the video preprocessing server can perform TS slicing on the target video file according to the key frames and the transition frames attached to the key frames to obtain TS segments to which the first frame to the fifth frame belong and TS segments to which the sixth frame to the tenth frame belong.
S220, the video preprocessing server sends the target video file and the standard check value of each TS section to the HLS on-demand platform.
Specifically, the video preprocessing server may encapsulate the standard check value of each TS segment into an extended data format of the target video file, and then send the encapsulated target video file to the HLS on-demand platform.
And S230, the HLS on-demand platform receives the target video file and the standard check value of each TS section, and TS slicing is carried out on the target video file according to a preset slicing rule adopted by the video preprocessing server.
As an example, the HLS on-demand platform may decapsulate the encapsulated target video file, extract the target video file and the standard check value of each TS segment therein, perform the same TS slicing on the target video file according to a preset slicing rule adopted by the video preprocessing server, and determine the standard check value of each TS segment obtained by current slicing according to the standard check value of each TS segment.
S240, the client sends a play request to the HLS on-demand platform.
The playing request is used for requesting the TS section and the standard check value of the TS section.
And S250, the HLS on-demand platform responds to the playing request of the client and sends the TS section and the standard check value of the TS section to the client.
In some embodiments, the HLS on-demand platform may respond to the play request through an edge cache server corresponding to the play request in a Content Delivery Network (CDN) to which the HLS on-demand platform belongs, and send the TS segment and a standard check value of the TS segment to the client.
In this way, the client can acquire the required content nearby, network congestion is reduced, and the fluency of video playing is improved.
And S260, the client receives the TS section and the standard check value of the TS section, calculates the local check value of the received TS section, and checks the received TS section according to the calculated local check value and the standard check value of the received TS section.
In some embodiments, the client may compare whether the calculated local check value is the same as the standard check value of the received TS segment.
If the local check value is the same as the standard check value, determining that the received TS section passes the check, namely that the TS section is not abnormal in the transmission process, and further playing the content of the TS section;
if the local check value is different from the standard check value, the received TS section is determined not to pass the check, namely the TS section is abnormal in the transmission process, at the moment, the TS section which does not pass the check can be downloaded again from the HLS on-demand platform, and then the newly downloaded TS section is checked, so that screen-lost blocking is avoided, and the downloading flow is saved.
According to the embodiment of the disclosure, the video preprocessing server can calculate the standard check value of each TS section, so that the standard check value of each TS section can be determined without calculation on the HLS on-demand platform side, the TS section check is realized on the premise of not influencing the response speed of the HLS on-demand platform, and whether the TS section is abnormal or not is accurately found.
It should be noted that the video preprocessing server and the client use the same check algorithm to calculate the corresponding check value. The check algorithm may be a CRC algorithm, an MD5 algorithm, or an SHA256 algorithm, and the like, which is not limited herein.
The following may describe the TS segment verification method provided in the present disclosure in detail with reference to the operating environment 300 shown in fig. 3, specifically as follows:
as shown in fig. 3, the runtime environment 300 may include: the system comprises a transcoding module, an MP42Lemp4 module, an upload module, an HLS on-demand platform, a CDN (content delivery network) and a client side which belong to the HLS on-demand platform. The transcoding module, the MP42Lemp4 module, and the upload module may be part of the video preprocessing server.
Illustratively, the transcoding module may receive an MP4 source video file uploaded by a user, and transcode the MP4 source video file to obtain target video files with different resolutions, that is, MP4-1080P, MP4-720P, MP4-360P, and the like.
The MP42Lemp4 module can perform TS slicing on the files such as MP4-1080P, MP4-720P, MP4-360P and the like in a key frame slicing mode, calculate the standard check value of each TS section corresponding to each file, and package the standard check value of each TS section in the extended data format of the corresponding file to obtain the files such as LeMP4-1080P, leMP4-720P, leMP4-360P and the like.
The upload module can upload files of LeMP4-1080P, leMP4-720P, leMP4-360P and the like to the HLS on-demand platform.
The HLS on-demand platform receives files such as LeMP4-1080P, leMP4-720P, leMP4-360P and the like, decapsulates the files, namely extracts the files, obtains the files such as MP4-1080P, MP4-720P, MP4-360P and the like, and standard check values of TS sections corresponding to the files, performs TS slicing on the files such as MP4-1080P, MP4-720P, MP4-360P and the like in a key frame slicing mode, distributes standard check values to the TS sections corresponding to the files, and then sends the TS sections corresponding to the files and the standard check values to an edge cache server in the CDN.
And the edge cache server in the CDN responds to a playing request sent by the client and sends the TS segment and the standard check value of the TS segment to the client.
The client receives the TS section and the standard check value of the TS section, calculates the local check value of the received TS section, compares whether the local check value is the same as the standard check value, and if the local check value is the same as the standard check value, determines that the received TS section passes the check, and then plays the content of the TS section; if the local check value is different from the standard check value, the received TS section is determined not to pass the check, at the moment, the TS section which does not pass the check can be downloaded again, and then the newly downloaded TS section is checked.
It is noted that while for simplicity of explanation, the foregoing method embodiments have been described as a series of acts or combination of acts, it will be appreciated by those skilled in the art that the present disclosure is not limited by the order of acts, as some steps may, in accordance with the present disclosure, occur in other orders and concurrently. Further, those skilled in the art should also appreciate that the embodiments described in the specification are exemplary embodiments and that acts and modules referred to are not necessarily required by the disclosure.
The above is a description of embodiments of the method, and the embodiments of the apparatus are further described below.
Fig. 4 shows a structural diagram of a TS segment checking apparatus according to an embodiment of the present disclosure, and as shown in fig. 4, the TS segment checking apparatus 400 may include:
the calculating module 410 is configured to perform TS slicing on the target video file by the video preprocessing server according to a preset slicing rule, calculate a standard check value of each TS segment obtained by slicing, and send the target video file and the standard check value of each TS segment to the HLS on-demand platform.
The determining module 420 is configured to receive the target video file and the standard check value of each TS segment by the HLS on-demand platform, perform TS slicing on the target video file according to a preset slicing rule adopted by the video preprocessing server, respond to the play request of the client, and send the TS segment and the standard check value of the TS segment to the client, so that the client calculates a local check value of the received TS segment, and check the received TS segment according to the calculated local check value and the standard check value of the received TS segment.
In some embodiments, the TS segment checking device 400 further includes:
and the transcoding module is used for transcoding the source video file by the video preprocessing server to obtain the target video file.
In some embodiments, the calculation module 410 is specifically configured to:
and the video preprocessing server performs TS slicing on the target video file according to the specified slicing time length.
In some embodiments, the determining module 420 is specifically configured to:
and the video preprocessing server detects key frames of the target video file and performs TS slicing on the target video file according to the detected key frames and transition frames attached to the key frames.
In some embodiments, the determining module 420 is specifically configured to:
and the HLS on-demand platform responds to the playing request through an edge cache server corresponding to the playing request in the CDN to which the HLS on-demand platform belongs, and sends the TS section and the standard check value of the TS section to the client.
In some embodiments, the determining module 420 is specifically configured to:
and the client compares whether the calculated local check value is the same as the standard check value of the received TS section.
And if the local check value is the same as the standard check value, determining that the received TS section passes the check, and playing the content of the TS section.
If the local check value is different from the standard check value, the received TS section is determined to be not checked, and the TS section which is not checked is downloaded from the HLS on-demand platform again.
In some embodiments, the video preprocessing server and the client use the same checking algorithm to calculate the corresponding checking value, where the checking algorithm is a CRC algorithm, an MD5 algorithm, or an SHA256 algorithm.
It can be understood that each module/unit in the TS segment checking apparatus 400 shown in fig. 4 has a function of implementing each step in the TS segment checking method 200 provided by the embodiment of the present disclosure, and can achieve the corresponding technical effect, and for brevity, no further description is provided herein.
FIG. 5 illustrates a block diagram of an electronic device that may be used to implement embodiments of the present disclosure. The electronic device 500 is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device 500 may also represent various forms of mobile devices, such as personal digital assistants, cellular telephones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 5, the electronic device 500 may include a computing unit 501 that may perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 502 or a computer program loaded from a storage unit 508 into a Random Access Memory (RAM) 503. In the RAM503, various programs and data necessary for the operation of the electronic apparatus 500 can be stored. The computing unit 501, the ROM502, and the RAM503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
A number of components in the electronic device 500 are connected to the I/O interface 505, including: an input unit 506 such as a keyboard, a mouse, or the like; an output unit 507 such as various types of displays, speakers, and the like; a storage unit 508, such as a magnetic disk, optical disk, or the like; and a communication unit 509 such as a network card, modem, wireless communication transceiver, etc. The communication unit 509 allows the electronic device 500 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunication networks.
The computing unit 501 may be a variety of general and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The computing unit 501 performs the various methods and processes described above, such as the method 200. For example, in some embodiments, the method 200 may be implemented as a computer program product, including a computer program, tangibly embodied in a computer-readable medium, such as the storage unit 508. In some embodiments, part or all of the computer program may be loaded and/or installed onto device 500 via ROM502 and/or communications unit 509. When the computer program is loaded into the RAM503 and executed by the computing unit 501, one or more steps of the method 200 described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform the method 200 by any other suitable means (e.g., by means of firmware).
The various embodiments described above herein may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a computer-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a computer-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
It should be noted that the present disclosure also provides a non-transitory computer readable storage medium storing computer instructions, where the computer instructions are used to enable a computer to execute the method 200 and achieve the corresponding technical effects achieved by the method according to the embodiments of the present disclosure, and for brevity, the detailed description is omitted here.
Additionally, the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor, implements the method 200.
To provide for interaction with a user, the above-described embodiments may be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
The embodiments described above may be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user may interact with an implementation of the systems and techniques described herein), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server with a combined blockchain.
It should be understood that various forms of the flows shown above, reordering, adding or deleting steps, may be used. For example, the steps described in the present disclosure may be executed in parallel, sequentially or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the protection scope of the present disclosure.

Claims (10)

1. A TS segment verification method, the method comprising:
the video preprocessing server performs TS slicing on the target video file according to a preset slicing rule, calculates a standard check value of each TS section obtained by slicing, and sends the target video file and the standard check value of each TS section to the HLS on-demand platform;
and the HLS video-on-demand platform receives the target video file and the standard check value of each TS section, performs TS slicing on the target video file according to a preset slicing rule adopted by the video preprocessing server, responds to a playing request of a client, sends the TS section and the standard check value of the TS section to the client so that the client can calculate the local check value of the received TS section, and checks the received TS section according to the calculated local check value and the standard check value of the received TS section.
2. The method according to claim 1, wherein before the video pre-processing server TS slices the target video file according to the preset slicing rule, the method further comprises:
and the video preprocessing server transcodes the source video file to obtain a target video file.
3. The method according to claim 1, wherein the video pre-processing server performs TS slicing on the target video file according to a preset slicing rule, and the method comprises:
and the video preprocessing server performs TS slicing on the target video file according to the specified slicing duration.
4. The method according to claim 1, wherein the video pre-processing server performs TS slicing on the target video file according to a preset slicing rule, and the method comprises:
and the video preprocessing server detects key frames of the target video file and performs TS slicing on the target video file according to the detected key frames and transition frames attached to the key frames.
5. The method as claimed in claim 1, wherein the HLS on-demand platform sends the TS segment and the standard verification value of the TS segment to the client in response to a play request from the client, and includes:
and the HLS on-demand platform responds to the playing request through an edge cache server corresponding to the playing request in the CDN to which the HLS on-demand platform belongs, and sends a TS section and a standard check value of the TS section to the client.
6. The method of claim 1, wherein the client checks the received TS segment according to the calculated local check value and a standard check value of the received TS segment, and comprises:
the client compares whether the local check value obtained by calculation is the same as the standard check value of the received TS section;
if the local check value is the same as the standard check value, determining that the received TS segment passes the check, and playing the content of the TS segment;
and if the local check value is different from the standard check value, determining that the received TS section is not checked, and re-downloading the TS section which is not checked from the HLS on-demand platform.
7. The method according to any one of claims 1-6, wherein the video pre-processing server and the client use the same checking algorithm to calculate the corresponding checking value, and the checking algorithm is CRC algorithm, MD5 algorithm or SHA256 algorithm.
8. A TS segment verification apparatus, comprising:
the calculation module is used for the video preprocessing server to perform TS slicing on the target video file according to a preset slicing rule, calculate the standard check value of each TS section obtained by slicing, and send the target video file and the standard check value of each TS section to the HLS on-demand platform;
and the determining module is used for receiving the target video file and the standard check value of each TS section by the HLS on-demand platform, performing TS slicing on the target video file according to a preset slicing rule adopted by the video preprocessing server, responding to a playing request of a client, sending the TS section and the standard check value of the TS section to the client so that the client can calculate the local check value of the received TS section, and checking the received TS section according to the calculated local check value and the standard check value of the received TS section.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
10. A non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method of any one of claims 1-7.
CN202210760334.3A 2022-06-29 2022-06-29 Transport stream segment verification method, device, equipment and storage medium Active CN115209224B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210760334.3A CN115209224B (en) 2022-06-29 2022-06-29 Transport stream segment verification method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210760334.3A CN115209224B (en) 2022-06-29 2022-06-29 Transport stream segment verification method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115209224A true CN115209224A (en) 2022-10-18
CN115209224B CN115209224B (en) 2024-03-22

Family

ID=83578662

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210760334.3A Active CN115209224B (en) 2022-06-29 2022-06-29 Transport stream segment verification method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115209224B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104661043A (en) * 2013-11-25 2015-05-27 乐视网信息技术(北京)股份有限公司 Method, device and system for transmitting transport stream
CN104661042A (en) * 2013-11-25 2015-05-27 乐视网信息技术(北京)股份有限公司 Method, device and system for transmitting transport stream
US20180131742A1 (en) * 2016-11-04 2018-05-10 Verizon Patent And Licensing Inc. Mpeg-dash delivery over multicast
CN110809191A (en) * 2019-10-08 2020-02-18 烽火通信科技股份有限公司 Video tamper-proofing method and system based on index verification and real-time package conversion
CN111181989A (en) * 2020-01-02 2020-05-19 烽火通信科技股份有限公司 Method and system for realizing HLS distribution tamper resistance
CN112839003A (en) * 2019-11-22 2021-05-25 上海哔哩哔哩科技有限公司 Data verification method and system
CN113411638A (en) * 2020-12-24 2021-09-17 腾讯科技(深圳)有限公司 Video file playing processing method and device, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104661043A (en) * 2013-11-25 2015-05-27 乐视网信息技术(北京)股份有限公司 Method, device and system for transmitting transport stream
CN104661042A (en) * 2013-11-25 2015-05-27 乐视网信息技术(北京)股份有限公司 Method, device and system for transmitting transport stream
US20180131742A1 (en) * 2016-11-04 2018-05-10 Verizon Patent And Licensing Inc. Mpeg-dash delivery over multicast
CN110809191A (en) * 2019-10-08 2020-02-18 烽火通信科技股份有限公司 Video tamper-proofing method and system based on index verification and real-time package conversion
CN112839003A (en) * 2019-11-22 2021-05-25 上海哔哩哔哩科技有限公司 Data verification method and system
CN111181989A (en) * 2020-01-02 2020-05-19 烽火通信科技股份有限公司 Method and system for realizing HLS distribution tamper resistance
CN113411638A (en) * 2020-12-24 2021-09-17 腾讯科技(深圳)有限公司 Video file playing processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN115209224B (en) 2024-03-22

Similar Documents

Publication Publication Date Title
CN109753207B (en) Information processing method and device and storage medium
CN107483401B (en) Multimedia data transmission method and equipment, storage medium and server thereof
CN111093094A (en) Video transcoding method, device and system, electronic equipment and readable storage medium
US10419798B2 (en) Method and apparatus for just-in-time transcoding
CN115103210B (en) Information processing method, device, terminal and storage medium
CN108809943B (en) Website monitoring method and device
CN111327921A (en) Video data processing method and device
CN114245175A (en) Video transcoding method and device, electronic equipment and storage medium
CN117542543A (en) Video file processing method, device, electronic equipment and computer readable medium
CN115209224B (en) Transport stream segment verification method, device, equipment and storage medium
CN113365140B (en) MP4 online playing method, device, equipment, storage medium and program product
CN111369591A (en) Method, device and equipment for tracking moving object
CN113824689B (en) Edge computing network, data transmission method, device, equipment and storage medium
CN113079386B (en) Video online playing method and device, electronic equipment and storage medium
CN115190180A (en) Method and device for scheduling network resource request during sudden increase of network resource request
CN113873318A (en) Video playing method, device, equipment and storage medium
CN113905248A (en) Live video data transmission method, device, equipment and storage medium
CN113556575A (en) Method, apparatus, device, medium and product for compressing data
US10931959B2 (en) Systems and methods for real-time video transcoding of streaming image data
CN113645214B (en) Data detection method, device, electronic equipment and readable storage medium
CN114222073B (en) Video output method, video output device, electronic equipment and storage medium
CN113473179B (en) Video processing method, device, electronic equipment and medium
CN117176962B (en) Video encoding and decoding method and device and related equipment
WO2023207360A1 (en) Image segmentation method and apparatus, electronic device, and storage medium
CN112804312B (en) File uploading method, equipment and computer readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20230511

Address after: Room 07, Room 42301, 23rd Floor (23), Building 4, Yard 7, Qingnian Road, Chaoyang District, Beijing, 100123

Applicant after: LeTV Cloud Network Technology (Beijing) Co.,Ltd.

Address before: 100025 1508, 12 / F, building 3, 105 yaojiayuan Road, Chaoyang District, Beijing

Applicant before: LECLOUD COMPUTING Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant