IP (Internet Protocol)-based production and broadcast protocol detection method and device
By receiving and analyzing bitstream data in IP networks, determining data detection configurations to obtain traffic shaping parameters, the problem of data transmission stability in IP networks for existing equipment is solved, adapting to the needs of the broadcast television and multimedia industries.
Patent Information
- Application Number
- CN202511670845.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-13
- Publication Date
- 2026-02-27
AI Technical Summary
Existing protocol analysis equipment based on serial digital interfaces is difficult to perform autonomous traffic shaping, has poor data transmission stability, and cannot meet the needs of IP networks in the broadcast television and multimedia industries.
By receiving the first bitstream data input from the target communication interface, the data detection configuration is determined based on the data type, traffic shaping parameters are obtained, and the analysis equipment with a layered and decoupled architecture is adapted to improve the stability of data transmission.
It achieves autonomous traffic shaping, improves the stability of data transmission, and adapts to the needs of IP networks in the broadcast television and multimedia industries.
Smart Images

Figure CN121585586A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present disclosure relate to the technical field of signal transmission, and more particularly, to an IP-based broadcast protocol detection method and device. BACKGROUND
[0002] With the rapid development of Internet Protocol Network (IP Network), the IP Network can replace the traditional professional hardware structure in the broadcast television and multimedia industry, and reconstruct the processes of content collection, production, editing, transmission and broadcast, to adapt to the needs of media convergence and multi-scenario broadcasting. At present, the existing protocol analysis equipment based on Serial Digital Interface (SDI) is difficult to perform autonomous traffic shaping, and the stability of data transmission is poor. SUMMARY
[0003] An object of embodiments of the present disclosure is to provide a new technical solution for IP-based broadcast protocol detection.
[0004] According to a first aspect of the present disclosure, an IP-based broadcast protocol detection method is provided, comprising: receiving first stream data input by a target communication interface; determining a data detection configuration of second stream data after the first stream data based on a target data type of target to-be-tested data in the first stream data, wherein the first stream data comprises target to-be-tested data of the target data type; obtaining target traffic shaping parameters of the second stream data according to the data detection configuration.
[0005] Optionally, before the determining of the data detection configuration of the second stream data after the first stream data based on the target data type of the target to-be-tested data and the obtaining of the target traffic shaping parameters of the second stream data, the method further comprises: determining a timestamp change amount corresponding to first data packets that are time-continuous in the first stream data, and determining a data packet interval number of second data packets with a set flag bit and adjacent second data packets in the first stream data; in a case where the timestamp change amount of the first data packets in the to-be-tested data meets a set step change condition and the data packet interval number of the second data packets in the to-be-tested data is greater than or equal to a first set number, determining that a data type possessed by the to-be-tested data is a video stream type.
[0006] Optionally, after the determining the time stamp variation corresponding to the first data packet in time sequence in the first code stream data, and determining the second data packet with the set mark bit and the data packet interval number of the adjacent second data packet in the first code stream data, the method further comprises: In a case that the time stamp variation of the first data packet in the to-be-tested data meets the set step variation condition and the data packet interval number of the second data packet in the to-be-tested data is less than or equal to a second set number, it is determined that the data type possessed by the to-be-tested data is an auxiliary data type.
[0007] Optionally, after the determining the time stamp variation corresponding to the first data packet in time sequence in the first code stream data, and determining the second data packet with the set mark bit and the data packet interval number of the adjacent second data packet in the first code stream data, the method further comprises: In a case that the time stamp variation of the first data packet in the to-be-tested data meets the set smooth slope variation condition and the second data packet is not possessed in the to-be-tested data, it is determined that the data type possessed by the to-be-tested data is an audio stream type.
[0008] Optionally, the target data type is a video stream type; and the determining the data detection configuration of the second code stream data after the first code stream data based on the target data type of the target to-be-tested data comprises: acquiring a video stream basic parameter of the target to-be-tested data; determining an associated clock set by a sending object of the target to-be-tested data according to the video stream basic parameter; configuring a data capture device of the target communication interface and a running configuration of the data capture device based on the associated clock, so as to serve as the data detection configuration of the second code stream data after the first code stream data.
[0009] Optionally, the target data type is an audio stream type; and the determining the data detection configuration of the second code stream data after the first code stream data based on the target data type of the target to-be-tested data comprises: acquiring an audio stream basic parameter of the target to-be-tested data; determining a time difference value between a sending time stamp and an arrival time stamp of the target to-be-tested data according to the audio stream basic parameter; in a case that the time difference value is greater than or equal to a set difference value, configuring a measurement window for the second code stream data after the first code stream data, and constructing a constraint condition of each data packet of the measurement window, so as to serve as the data detection configuration.
[0010] Optionally, the target data type is an auxiliary data type; and the determining, based on the target data type of the target to-be-tested data, of the data detection configuration of the second code stream data after the first code stream data comprises: obtaining an auxiliary data basic parameter of the target to-be-tested data; determining, according to the auxiliary data basic parameter, a delay parameter of a protocol timestamp and an arrival timestamp of the target to-be-tested data as the data detection configuration of the second code stream data after the first code stream data.
[0011] According to a second aspect of the present disclosure, an IP-based production and broadcast protocol detection apparatus is also provided, and the apparatus comprises: a receiving module configured to receive first code stream data input by a target communication interface; a determining module configured to determine, based on a target data type of target to-be-tested data, a data detection configuration of second code stream data after the first code stream data; wherein the first code stream data comprises target to-be-tested data of the target data type; a obtaining module configured to obtain, according to the data detection configuration, a target traffic shaping parameter of the second code stream data.
[0012] According to a third aspect of the present disclosure, an electronic device is also provided, which comprises a memory and a processor, the memory being configured to store a computer program, and the processor being configured to execute the computer program to implement the method according to the first aspect of the present disclosure.
[0013] According to a fourth aspect of the present disclosure, a computer readable storage medium is also provided, which stores a computer program, and the computer program, when executed by a processor, implements the method according to the first aspect of the present disclosure.
[0014] According to a fifth aspect of the present disclosure, a computer program product is also provided, which comprises a computer program, and the computer program, when executed by a processor, implements the method according to the first aspect of the present disclosure.
[0015] One beneficial effect of the present disclosure is that the IP-based production and broadcast protocol detection method can receive first code stream data of a communication interface, determine a data detection configuration of second code stream data after the first code stream data based on a data type of to-be-tested data in the first code stream data, and autonomously obtain a target traffic shaping parameter of the second code stream data based on the data detection configuration, so as to adapt to an analysis device of a layered decoupling architecture, thereby effectively improving the stability of data transmission.
[0016] Other features and advantages of the present disclosure will become apparent from the following detailed description of exemplary embodiments thereof, taken in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF DRAWINGS
[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0018] Figure 1 is a flow chart of an IP-based production and broadcasting protocol detection method according to an embodiment; Figure 2 is a block schematic diagram of an IP-based production and broadcasting protocol detection device according to an embodiment; Figure 3 is a hardware structure schematic diagram of an electronic device according to an embodiment. DETAILED DESCRIPTION
[0019] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. Note that the relative arrangement, numerical expressions, and numerical values of the parts and steps set forth in these embodiments are not limiting to the scope of the present disclosure unless otherwise specifically stated.
[0020] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way limiting to the scope of the present disclosure and its applications or uses.
[0021] Techniques, methods, and devices known to those of ordinary skill in the relevant art can not be discussed in detail herein, but should be considered as part of the specification, where appropriate.
[0022] In all of the examples shown and discussed herein, any specific values should be interpreted as merely illustrative and not as a limitation. Thus, other examples of exemplary embodiments can have different values.
[0023] Note that like reference numerals and letters indicate like items in the accompanying drawings and, as such, no further discussion in relation to such items is deemed necessary.
[0024] <Method Embodiment> Figure 1 is a flow chart of an IP-based production and broadcasting protocol detection method according to an embodiment. The implementation subject is a server.
[0025] As shown in Figure 2 , the IP-based production and broadcasting protocol detection method of the present embodiment can include the following steps S110 to S130: Step S110, receiving first stream data input by a target communication interface.
[0026] In the embodiment, the target communication interface can be an IP interface based on ST2110. The first code stream data can include at least one of video, audio, and auxiliary data.
[0027] In step S120, based on a target data type of the target to-be-tested data, a data detection configuration of second code stream data after the first code stream data is determined; wherein the first code stream data includes target to-be-tested data of the target data type.
[0028] In the embodiment, the target data type can be any one of a video stream type, an audio stream type, and an auxiliary data type.
[0029] In the embodiment, a time associated with the second code stream data is after a time associated with the first code stream data. The data detection configuration can include a constraint condition for the second code stream data.
[0030] In some embodiments, before the step S120, the method further includes steps S210 and S220 as follows: In step S210, a timestamp variation amount between time-continuous first data packets in the first code stream data is determined, and a data packet interval number between a second data packet with a set flag bit and a neighboring second data packet in the first code stream data is determined.
[0031] In the embodiment, the timestamp variation amount between the time-continuous first data packets and the data packet interval number between the second data packets with the set flag bit are determined. The set flag bit is set to 1 for the last data packet included for the to-be-tested data of the video stream type and the to-be-tested data of the auxiliary data type, and the set flag bit is set to 0 for the to-be-tested data of the audio stream type.
[0032] In step S220, in a case where the timestamp variation amount of the first data packet in the to-be-tested data meets a set step variation condition and the data packet interval number of the second data packet in the to-be-tested data is greater than or equal to a first set number, it is determined that the to-be-tested data has the data type of the video stream type.
[0033] In the embodiment, the timestamp variation amount of the first data packet meets the set step variation condition, i.e., is in a “step-like” variation, and the data packet interval number of the second data packet in the to-be-tested data is greater than or equal to the first set number, i.e., there are multiple other data packets between the two second data packets with the flag bit, so that the to-be-tested data has the data type of the video stream type, thereby determining the to-be-tested data of the video stream type. The first set number can be 2, 3, or 5, which is not limited herein.
[0034] In some embodiments, after the step S210, the method further includes step S310 as follows: Step S310, in the case that the timestamp change amount of the first data packet in the to-be-tested data meets the set step change condition and the number of data packet intervals of the second data packet in the to-be-tested data is less than or equal to the second set number, it is determined that the data type possessed by the to-be-tested data is the auxiliary data type.
[0035] In the embodiment, in the case that the timestamp change amount of the first data packet changes in a "step shape", i.e., meets the set step change condition, and the number of data packet intervals of the second data packet in the to-be-tested data is less than or equal to the second set number, i.e., there is an individual data packet between the two marker bits of the second data packet, it is determined that the data type possessed by the to-be-tested data is the auxiliary data type, so as to determine the to-be-tested data of the auxiliary data type. The second set number can be 1, 2 or 5, which is not limited herein.
[0036] In some embodiments, after the step S210, the method further includes the following step S410: Step S410, in the case that the timestamp change amount of the first data packet in the to-be-tested data meets the set smooth slope change condition and the to-be-tested data does not possess the second data packet, it is determined that the data type possessed by the to-be-tested data is the audio stream type.
[0037] In the embodiment, in the case that the timestamp change amount of the first data packet changes in a "smooth slope shape", i.e., meets the set smooth slope change condition, and the to-be-tested data does not possess the second data packet, i.e., each data packet in the to-be-tested data does not possess the marker bit, it is determined that the data type possessed by the to-be-tested data is the audio stream type, so as to determine the to-be-tested data of the audio stream type.
[0038] In some embodiments, the target data type is the video stream type; the step S120 can include the following steps S510 to S530: Step S510, acquiring the video stream basic parameters of the target to-be-tested data.
[0039] In some examples, the video sampling format of the target to-be-tested data is YCbCr, the frame / field rate is calculated based on the RTP timestamp, the ST 2110-20 header is analyzed, the field field mark is determined, whether it is an interleaved stream is determined, and the maximum value of the sampling line, the height of the frame, the sampling line offset, the length of the frame width, the frame rate, the scanning mode, the chroma sampling format, etc. are determined as the video stream basic parameters.
[0040] Step S520, determining the associated clock set by the target to-be-tested data sending object according to the video stream basic parameters.
[0041] At step S530, based on the associated clock, the data capture device of the target communication interface and the running configuration of the data capture device are configured as the data detection configuration of the second code stream data after the first code stream data.
[0042] In the embodiment, the sending object can be a sender device, a PTP master locked by the sender device is identified, and the clock of the data capture device is locked to the same PTP master as the sender device, that is, the associated clock set by the sending object of the target to-be-measured data is determined. Whether there is a non-locked capture or sender device is monitored and evaluated again, and if there is, existing adjustment measures are taken to improve the stability of the video traffic shaping parameter acquisition.
[0043] In the embodiment, based on the associated clock, the data capture device of the target communication interface is configured to capture the second code stream data at a nanosecond resolution. Using the nanosecond resolution capture function, the target traffic shaping parameter of the second code stream data can be obtained.
[0044] In some embodiments, the target data type is an audio stream type; the step S120 can include the following steps S610 to S630: At step S610, the audio stream basic parameters of the target to-be-measured data are obtained.
[0045] In some examples, the audio sampling rate is 48 kHz, the data packet time is calculated by measuring the RTP timestamp change, and the data packet size is combined according to common combinations, such as double-channel audio and 24-bit bit depth; more than three-channel audio and 16-bit bit depth, and the number of channels and bit depth are calculated as audio stream basic parameters.
[0046] At step S620, the time difference between the sending timestamp and the arrival timestamp of the target to-be-measured data is determined according to the audio stream basic parameters.
[0047] At step S630, in the case where the time difference is greater than or equal to a set difference value, a measurement window for the second code stream data after the first code stream data is configured, and a constraint condition for each data packet of the measurement window is constructed as a data detection configuration.
[0048] In the embodiment, the time difference Δt between the sending timestamp and the arrival timestamp of the target to-be-measured data is determined according to the audio stream basic parameters, and it is verified whether Δt satisfies Δt≥1ms. If the verification fails, an existing abnormal processing mechanism is triggered. The set difference value is, for example, 1ms.
[0049] In the embodiment, in the case that the time difference value is greater than or equal to the set difference value, a measurement window with a period of 200 ms is set, the first data packet of the current measurement window is determined as a reference data packet, the relative transmission time difference ΔT of the remaining data packets after each first data packet and the reference data packet is determined, and according to the constraint of the AES67 standard, the constraint condition of each data packet of the measurement window includes ΔT≤single data packet time and ΔT<17×single data packet time, so as to realize that the output audio traffic shaping parameter is a transmission stream delay factor parameter (TSDF) satisfying the constraint condition.
[0050] In some embodiments, the target data type is an auxiliary data type; the step S120 can include the following steps S710 and S720: Step S710, obtaining an auxiliary data basic parameter of the target to-be-measured data.
[0051] In the embodiment, the time stamp increment of RTP between the continuous frames of the first code stream data is determined, the rate of the target to-be-measured data is calculated according to the RTP clock frequency 90 kHz, and the auxiliary data basic parameter is obtained.
[0052] Step S720, determining a delay parameter of a protocol time stamp and an arrival time stamp of the target to-be-measured data according to the auxiliary data basic parameter, so as to obtain a data detection configuration of the second code stream data after the first code stream data.
[0053] In the embodiment, for each frame of the target to-be-measured data of the auxiliary data type, it is ensured that there is at least one or more data packets, and it is verified that the one or more data packets have the same RTP time stamp. The frame rate of the target to-be-measured data of the auxiliary data type is kept consistent with the frame rate of the video. A flag bit is set for the last data packet of each frame of the target to-be-measured data of the auxiliary data type. Each new frame of the target to-be-measured data of the auxiliary data type is recorded by the RTP time stamp increment, so as to control the delay between the data packet time and the RTP time stamp of the target to-be-measured data of the auxiliary data type to be in a moderate state, that is, the delay parameter of the protocol time stamp and the arrival time stamp of the target to-be-measured data is in a suitable range. It is ensured that the instantaneous value of the RTP time stamp of the target to-be-measured data of the auxiliary data type is not in the future, the instantaneous value of the RTP time stamp of the target to-be-measured data of the auxiliary data type is guaranteed to be no more than 1 ms in the past, unless there is a reasonable situation, the stable relationship between the RTP time stamp of the target to-be-measured data of the auxiliary data type and the PTP is maintained, and the "drift" phenomenon is avoided.
[0054] Step S130, obtaining the target traffic shaping parameter of the second code stream data according to the data detection configuration.
[0055] In the embodiment, the target traffic shaping parameter can include video stream shaping data, audio stream shaping data and auxiliary stream shaping data.
[0056] In the embodiment, after receiving the first stream data of the communication interface, the data detection configuration of the second stream data after the first stream data is determined based on the data type of the to-be-tested data in the first stream data. The target traffic shaping parameter of the second stream data can be autonomously obtained based on the data detection configuration, so as to adapt to the analysis equipment of the layered decoupling architecture, and the stability of data transmission is effectively improved.
[0057] [Device Embodiment One] Figure 2 is a principle block diagram of an IP-based broadcasting protocol detection device according to an embodiment. As shown in Figure 2 , the IP-based broadcasting protocol detection device 200 can include: The receiving module 210 is configured to receive the first stream data input by the target communication interface. The determining module 220 is configured to determine the data detection configuration of the second stream data after the first stream data based on the target data type of the target to-be-tested data. The first stream data includes the target to-be-tested data of the target data type. The obtaining module 230 is configured to obtain the target traffic shaping parameter of the second stream data according to the data detection configuration.
[0058] Optionally, the IP-based broadcasting protocol detection device 200 includes a video determining module configured to determine the timestamp variation of the first data packet in the to-be-tested data, and determine the data packet interval number of the second data packet with the set flag bit and the adjacent second data packet in the first stream data. In a case where the timestamp variation of the first data packet in the to-be-tested data meets the set step variation condition and the data packet interval number of the second data packet in the to-be-tested data is greater than or equal to the first set number, it is determined that the data type possessed by the to-be-tested data is a video stream type.
[0059] Optionally, the IP-based broadcasting protocol detection device 200 includes an auxiliary data determining module configured to, in a case where the timestamp variation of the first data packet in the to-be-tested data meets the set step variation condition and the data packet interval number of the second data packet in the to-be-tested data is less than or equal to the second set number, determine that the data type possessed by the to-be-tested data is an auxiliary data type.
[0060] Optionally, the IP-based broadcasting protocol detection device 200 includes an audio determining module configured to, in a case where the timestamp variation of the first data packet in the to-be-tested data meets the set smooth slope variation condition and the to-be-tested data does not have the second data packet, determine that the data type possessed by the to-be-tested data is an audio stream type.
[0061] Optionally, the determining module 220 is further configured to acquire a video stream basic parameter of the target to-be-tested data; determine an associated clock set by a sending object of the target to-be-tested data according to the video stream basic parameter; and configure a data capture device of the target communication interface and an operation configuration of the data capture device based on the associated clock, so as to serve as a data detection configuration of the second code stream data after the first code stream data.
[0062] Optionally, the determining module 220 is further configured to acquire an audio stream basic parameter of the target to-be-tested data; determine a time difference value between a sending time stamp and an arrival time stamp of the target to-be-tested data according to the audio stream basic parameter; and configure a measurement window of the second code stream data after the first code stream data and construct a constraint condition of each data packet of the measurement window to serve as the data detection configuration, in a case where the time difference value is greater than or equal to a set difference value.
[0063] Optionally, the determining module 220 is further configured to acquire an auxiliary data basic parameter of the target to-be-tested data; determine a delay parameter of a protocol time stamp and an arrival time stamp of the target to-be-tested data according to the auxiliary data basic parameter, to serve as the data detection configuration of the second code stream data after the first code stream data.
[0064] <Device Embodiment Two> Figure 3 is a hardware structure schematic diagram of an electronic device according to another embodiment.
[0065] As shown in Figure 3 , the electronic device 300 includes a processor 310 and a memory 320 for storing an executable computer program, and the processor 310 is configured to execute a method according to any method embodiment above according to control of the computer program.
[0066] The modules of the above IP-based broadcasting protocol detection device 200 can be implemented by the processor 310 in the embodiment executing the computer program stored in the memory 320, or can be implemented by other structures, which are not limited here.
[0067] The present application can be a system, a method, and / or a computer program product. The computer program product can include a computer readable storage medium having computer readable program instructions stored therein, which are used to cause a processor to implement various aspects of the present application.
[0068] Computer readable storage media can be tangible storage media which can retain and store instructions for use by an instruction execution device. Computer readable storage media can be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of computer readable storage media include the following: 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), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing. A computer readable storage medium is not, however, a transitory signal per se, such as a radio wave or other freely propagating electromagnetic wave, electromagnetic wave propagating through a waveguide or other transmission media (e.g., light pulse passing through a fiber-optic cable), or electrical signals transmitted through a wire.
[0069] Computer readable program instructions described herein can be downloaded to respective computing / processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and / or a wireless network. The network can comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and / or edge servers. A network adapter card or network interface in each computing / processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing / processing device.
[0070] Computer readable program instructions for carrying out operations of the present application can be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++ or the like, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer readable program instructions can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate array (FPGA), or programmable logic array (PLA) can execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present application.
[0071] The computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0072] These computer readable program instructions can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks. These computer readable program instructions can also be stored in a computer readable storage medium that can include random access memory (RAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or nonvolatile memory, or a suitable combination of the different types of computer readable storage media. The computer readable program instructions can also be downloaded to a computer, other programmable data processing apparatus, or other device from a computer readable storage medium or to an external computer or external storage device via a data signal that can be transmitted for example via a wired medium or a wireless medium such as the Internet or Wireless Application Protocol (WAP) signaling.
[0073] The computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus or other device to produce a computer implemented process such that the instructions which execute on the computer, other programmable data processing apparatus, or other device implement the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0074] The computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus or other device to produce a computer implemented process such that the instructions which execute on the computer, other programmable data processing apparatus, or other device implement the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0075] Embodiments of the present application have been described above, and the description is intended to be illustrative, and not restrictive, of the various embodiments of the present application. Many modifications and variations of the described embodiments of the present application are possible, given the benefit of the present disclosure, without departing from the scope and spirit of the described embodiments of the present application. The scope of the present application is defined by the appended claims.
Claims
1. A method for detecting IP-based production and broadcasting protocols, characterized in that, The method includes: Receive the first bitstream data input from the target communication interface; Based on the target data type of the target test data, the data detection configuration of the second bitstream data following the first bitstream data is determined; wherein, the first bitstream data includes target test data of the target data type; Based on the data detection configuration, the target traffic shaping parameters of the second bitstream data are obtained.
2. The method according to claim 1, characterized in that, Before determining the data detection configuration of the second bitstream data following the first bitstream data based on the target data type of the target test data, and before obtaining the target traffic shaping parameters of the second bitstream data, the method further includes: Determine the change in timestamps corresponding to the first data packets that are time-continuous in the first bitstream data, and determine the number of data packet intervals between the second data packets with a set flag bit and adjacent second data packets in the first bitstream data; If the change in the timestamp of the first data packet in the test data meets the set step change condition and the number of data packet intervals of the second data packet in the test data is greater than or equal to a first set number, then the data type of the test data is determined to be video stream type.
3. The method according to claim 2, characterized in that, After determining the timestamp change amount corresponding to the first data packet with continuous time in the first bitstream data, and determining the number of data packet intervals between the second data packet with the set flag bit and adjacent second data packets in the first bitstream data, the method further includes: If the change in the timestamp of the first data packet in the test data meets the set step change conditions and the number of data packet intervals of the second data packet in the test data is less than or equal to a second set number, then the data type of the test data is determined to be an auxiliary data type.
4. The method according to claim 2, characterized in that, After determining the timestamp change amount corresponding to the first data packet with continuous time in the first bitstream data, and determining the number of data packet intervals between the second data packet with the set flag bit and adjacent second data packets in the first bitstream data, the method further includes: If the change in the timestamp of the first data packet in the test data meets the set smooth ramp change condition and the test data does not contain the second data packet, then the data type of the test data is determined to be an audio stream type.
5. The method according to claim 2, characterized in that, The target data type is a video stream type; The step of determining the data detection configuration for the second bitstream data following the first bitstream data based on the target data to be tested includes: Obtain the basic parameters of the video stream of the target data to be tested; Based on the basic parameters of the video stream, determine the associated clock set by the target data to be tested being sent; Based on the associated clock, configure the data capture device of the target communication interface and the operating configuration of the data capture device as a data detection configuration for the second stream data after the first stream data.
6. The method according to claim 3, characterized in that, The target data type is an audio stream type; the step of determining the data detection configuration for the second bitstream data following the first bitstream data based on the target data to be tested includes: Obtain the basic parameters of the audio stream of the target data to be tested; Based on the basic parameters of the audio stream, determine the time difference between the sending timestamp and the arrival timestamp of the target data to be tested; If the time difference is greater than or equal to a set difference, a measurement window for the second bitstream data following the first bitstream data is configured, and constraints on each data packet of the measurement window are constructed as data detection configuration.
7. The method according to claim 4, characterized in that, The target data type is an auxiliary data type; the step of determining the data detection configuration for the second bitstream data following the first bitstream data based on the target data to be tested includes: Obtain the basic parameters of the auxiliary data for the target test data; Based on the basic parameters of the auxiliary data, the delay parameters of the protocol timestamp and arrival timestamp of the target data to be tested are determined, so as to serve as the data detection configuration for the second stream data following the first stream data.
8. A device for detecting IP-based production and broadcasting protocols, characterized in that, The device includes: The receiving module is used to receive the first bitstream data input from the target communication interface; The determination module is used to determine the data detection configuration of the second bitstream data following the first bitstream data based on the target data type of the target test data; wherein, the first bitstream data includes the target test data of the target data type; The module is used to obtain the target traffic shaping parameters of the second bitstream data based on the data detection configuration.
9. The apparatus according to claim 8, characterized in that, The device further includes: The auxiliary data determination module is used to determine the timestamp change amount corresponding to the first data packet with continuous time in the first bitstream data, and to determine the second data packet with a set marker bit in the first bitstream data and the number of data packet intervals between adjacent second data packets; if the timestamp change amount of the first data packet in the test data meets the set step change condition and the number of data packet intervals of the second data packet in the test data is greater than or equal to a first set number, the data type of the test data is determined to be video stream type.
10. The apparatus according to claim 9, characterized in that, The device further includes: The audio determination module is used to determine that the data to be tested has an auxiliary data type when the change in the timestamp of the first data packet in the data to be tested meets a set step change condition and the number of data packet intervals of the second data packet in the data to be tested is less than or equal to a second set number.