CN114374855A - Live broadcast screen splash diagnosis method, device, equipment and readable storage medium - Google Patents

Live broadcast screen splash diagnosis method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN114374855A
CN114374855A CN202210006589.0A CN202210006589A CN114374855A CN 114374855 A CN114374855 A CN 114374855A CN 202210006589 A CN202210006589 A CN 202210006589A CN 114374855 A CN114374855 A CN 114374855A
Authority
CN
China
Prior art keywords
stream
bytes
live
target
preset range
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
CN202210006589.0A
Other languages
Chinese (zh)
Other versions
CN114374855B (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.)
Wuhan Fonsview Technologies Co ltd
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Wuhan Fonsview Technologies Co ltd
Fiberhome Telecommunication Technologies 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 Wuhan Fonsview Technologies Co ltd, Fiberhome Telecommunication Technologies Co Ltd filed Critical Wuhan Fonsview Technologies Co ltd
Priority to CN202210006589.0A priority Critical patent/CN114374855B/en
Publication of CN114374855A publication Critical patent/CN114374855A/en
Application granted granted Critical
Publication of CN114374855B publication Critical patent/CN114374855B/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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • H04N21/2404Monitoring of server processing errors or hardware failure

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention provides a live broadcast screen splash diagnosis method, a live broadcast screen splash diagnosis device, live broadcast screen splash diagnosis equipment and a readable storage medium. The method comprises the following steps: receiving video stream data packets at each embedded point; analyzing TS (transport stream) in each video stream data packet to obtain a plurality of TS streams; extracting X bytes in a preset range of the most upstream TS stream, and sequentially matching the X bytes with other TS streams according to the positive direction of live stream propagation, wherein X is a positive integer; and determining the position of a buried point corresponding to the TS stream which cannot be matched with the X bytes as the position of the screen splash playing fault. According to the invention, X bytes are extracted from the preset range of the top-stream TS stream, and are sequentially matched with other TS streams according to the positive direction of the live stream propagation, and the position of the buried point corresponding to the TS stream which cannot be matched with the X bytes is determined as the position where the playing splash screen fault occurs, so that the problem that the specific position where the playing splash screen fault occurs is difficult to rapidly determine is solved.

Description

Live broadcast screen splash diagnosis method, device, equipment and readable storage medium
Technical Field
The invention relates to the technical field of IPTV/OTT live broadcast technology, CDN streaming media technology and big data, in particular to a live broadcast screensaver diagnosis method, device, equipment and readable storage medium.
Background
At present, the IPTV (Internet Protocol Television) technology is more and more mature, the development situation is better, each large operator builds its own IPTV platform to provide the user with the basic services of live broadcast, review and time shift, and due to the difference of the network infrastructure of the operator, the networking scheme of the IPTV has diversity, and generally, a live broadcast content provider provides a live broadcast source to the CDN of the operator in a multicast or unicast manner, the operator provides the user with the multicast/unicast service, and the user is provided with the time shift and review service to the CDN after recording.
The content provider transmits the live broadcast signal to a central node streaming media server of an operator CDN platform through UDP multicast, the CDN platform converts the multicast live broadcast after decapsulation into unicast live broadcast to provide live broadcast service for users, and records one part of the live broadcast to provide time shift service. In the process, a live broadcast multicast source provided by a content provider adopts UDP multicast, because UDP is an unreliable transmission protocol, the possibility of disorder in the transmission process of a data packet exists, and meanwhile, the live broadcast data packet is lost or disordered in a certain scene through an inflow network card of an outflow media server, the processing of an operating system protocol stack, a streaming media application program and the processing of an outflow network card, for example, the situation of playing the splash screen can be caused by the situation of example, the watching experience of a user is seriously influenced, although the situation of playing the splash screen is easily found, the specific position of the fault is difficult to determine.
Disclosure of Invention
The invention mainly aims to provide a live broadcast screen splash diagnosis method, a live broadcast screen splash diagnosis device, live broadcast screen splash diagnosis equipment and a readable storage medium, and aims to solve the problem that the specific position of a broadcast screen splash fault is difficult to quickly determine.
In a first aspect, the present invention provides a live broadcast screensaver diagnostic method, including:
receiving video stream data packets at each embedded point;
analyzing TS (transport stream) in each video stream data packet to obtain a plurality of TS streams;
extracting X bytes in a preset range of the most upstream TS stream, and sequentially matching the X bytes with other TS streams according to the positive direction of live stream propagation, wherein X is a positive integer;
and determining the position of a buried point corresponding to the TS stream which cannot be matched with the X bytes as the position of the screen splash playing fault.
Optionally, each of the burial points includes:
the embedded point A at the streaming network card of the central streaming media server, the embedded point B at the local program broadcast position of the central streaming media server, the embedded point C at the streaming network card of the central streaming media server, the embedded point D at the streaming network card of the edge streaming media server, the embedded point E at the local program broadcast position of the edge streaming media server, the embedded point F at the streaming network card of the edge streaming media server and the embedded point G at the local program broadcast position of the broadcast terminal.
Optionally, after the step of sequentially matching the X bytes with other TS streams, the method further includes:
and extracting X + N bytes in a preset range of the most upstream TS stream, and sequentially matching the X + N bytes with other TS streams according to the positive direction of the live stream propagation, wherein N is a positive integer.
Optionally, after the step of analyzing the TS streams in each video stream data packet to obtain a plurality of TS streams, the method further includes:
selecting a target TS stream which is not the most upstream from a plurality of TS streams;
extracting X bytes in a preset range of a target TS stream, wherein X is a positive integer;
matching the X bytes with other TS streams at the upstream of the target TS stream in sequence according to the reverse direction of the live stream propagation;
when the TS stream which is not matched with the X bytes is not the most upstream TS stream, taking the TS stream which is not matched with the X bytes as a target TS stream, and extracting X bytes in a preset range of the target TS stream, wherein X is a positive integer;
when the TS stream which is not matched with the X bytes is the most upstream TS stream, taking the position of a buried point corresponding to the next upstream TS stream as the position where the playing screen splash fault occurs;
when the X bytes are matched with other TS flows at the upstream of the target TS flow, judging whether the target TS flow is the target TS flow selected for the first time;
if yes, sequentially matching the X bytes with other TS (transport stream) streams downstream of the target TS stream according to the positive direction of live stream propagation;
determining the position of a buried point corresponding to the TS stream which is not matched with the X bytes as the position of the playing screen splash fault;
if the X bytes can be matched with other TS streams downstream of the target TS stream, expanding the value of the X bytes, and when the range of the X bytes is not larger than a preset range, executing a step of extracting the X bytes in the preset range of the target TS stream, wherein X is a positive integer, and when the range of the X bytes is larger than the preset range, determining that the live stream has no fault;
if not, the value of the X bytes is expanded, when the range of the X bytes is not larger than the preset range, the step of extracting the X bytes in the preset range of the target TS stream is executed, wherein X is a positive integer, and when the range of the X bytes is larger than the preset range, the step of sequentially matching the X bytes with other TS streams at the downstream of the target TS stream according to the positive direction of the live stream propagation is executed.
Optionally, before the step of extracting X bytes in a preset range of the most upstream TS stream, the method further includes:
acquiring a starting position and an end position of each TS stream, and determining a latest starting position and an earliest end position from the starting position and the end position of each TS stream;
the range between the latest starting position and the earliest ending position is taken as a preset range.
In a second aspect, the present invention further provides a live broadcast screensaver diagnostic apparatus, including:
the receiving module is used for receiving video stream data packets at each embedded point;
the analysis module is used for analyzing the TS in each video stream data packet to obtain a plurality of TS;
the matching module is used for extracting X bytes in a preset range of the most upstream TS stream, and sequentially matching the X bytes with other TS streams according to the positive direction of live stream propagation, wherein X is a positive integer;
and the determining module is used for determining the position of the buried point corresponding to the TS stream which cannot be matched with the X bytes as the position of the playing screensaver fault.
Optionally, the live broadcast screenplay diagnosis apparatus further includes an extraction module, configured to:
and extracting X + N bytes in a preset range of the most upstream TS stream, and sequentially matching the X + N bytes with other TS streams according to the positive direction of the live stream propagation, wherein N is a positive integer.
Optionally, the determining module is further configured to:
selecting a target TS stream which is not the most upstream from a plurality of TS streams;
extracting X bytes in a preset range of a target TS stream, wherein X is a positive integer;
matching the X bytes with other TS streams at the upstream of the target TS stream in sequence according to the reverse direction of the live stream propagation;
when the TS stream which is not matched with the X bytes is not the most upstream TS stream, taking the TS stream which is not matched with the X bytes as a target TS stream, and extracting X bytes in a preset range of the target TS stream, wherein X is a positive integer;
when the TS stream which is not matched with the X bytes is the most upstream TS stream, taking the position of a buried point corresponding to the next upstream TS stream as the position where the playing screen splash fault occurs;
when the X bytes are matched with other TS flows at the upstream of the target TS flow, judging whether the target TS flow is the target TS flow selected for the first time;
if yes, sequentially matching the X bytes with other TS (transport stream) streams downstream of the target TS stream according to the positive direction of live stream propagation;
determining the position of a buried point corresponding to the TS stream which is not matched with the X bytes as the position of the playing screen splash fault;
if the X bytes can be matched with other TS streams downstream of the target TS stream, expanding the value of the X bytes, and when the range of the X bytes is not larger than a preset range, executing a step of extracting the X bytes in the preset range of the target TS stream, wherein X is a positive integer, and when the range of the X bytes is larger than the preset range, determining that the live stream has no fault;
if not, the value of the X bytes is expanded, when the range of the X bytes is not larger than the preset range, the step of extracting the X bytes in the preset range of the target TS stream is executed, wherein X is a positive integer, and when the range of the X bytes is larger than the preset range, the step of sequentially matching the X bytes with other TS streams at the downstream of the target TS stream according to the positive direction of the live stream propagation is executed.
In a third aspect, the present invention further provides a live broadcast screensaver diagnostic device, where the live broadcast screensaver diagnostic device includes a processor, a memory, and a live broadcast screensaver diagnostic program stored in the memory and executable by the processor, where the live broadcast screensaver diagnostic program, when executed by the processor, implements the steps of the live broadcast screensaver diagnostic method described above.
In a fourth aspect, the present invention further provides a readable storage medium, where a live screen splash diagnosis program is stored, where the live screen splash diagnosis program, when executed by a processor, implements the steps of the live screen splash diagnosis method described above.
In the invention, video stream data packets at various embedded points are received; analyzing TS (transport stream) in each video stream data packet to obtain a plurality of TS streams; extracting X bytes in a preset range of the most upstream TS stream, and sequentially matching the X bytes with other TS streams according to the positive direction of live stream propagation, wherein X is a positive integer; and determining the position of a buried point corresponding to the TS stream which cannot be matched with the X bytes as the position of the screen splash playing fault. By the method and the device, the TS in the video stream data packet deployed at each embedded point is obtained, the X bytes in the preset range of the most upstream TS are extracted to be sequentially matched with other TS according to the positive direction of the broadcast stream propagation, the position of the embedded point corresponding to the TS which cannot be matched with the X bytes is determined as the position where the playing splash screen fault occurs, and the problem that the specific position where the playing splash screen fault occurs is difficult to rapidly determine is solved.
Drawings
Fig. 1 is a schematic hardware structure diagram of a live broadcast screenplay diagnostic device according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a live screen splash diagnosis method according to a first embodiment of the present invention;
FIG. 3 is a diagram of an architecture of an embodiment of a live screen splash diagnosis method of the present invention;
FIG. 4 is a TS flow diagram of a live broadcast screensaver diagnostic method according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating a live screen splash diagnosis method according to a second embodiment of the present invention;
fig. 6 is a functional module schematic diagram of a live broadcast screensaver diagnostic apparatus according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In a first aspect, an embodiment of the present invention provides a live broadcast screensaver diagnostic apparatus, where the live broadcast screensaver diagnostic apparatus may be an apparatus with a data processing function, such as a Personal Computer (PC), a notebook computer, or a server.
Referring to fig. 1, fig. 1 is a schematic diagram of a hardware structure of a live broadcast screenplay diagnosis device according to an embodiment of the present invention. In this embodiment of the present invention, the live screenplay diagnosis device may include a processor 1001 (e.g., a Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used for realizing connection communication among the components; the user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard); the network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WI-FI interface, WI-FI interface); the memory 1005 may be a Random Access Memory (RAM) or a non-volatile memory (non-volatile memory), such as a magnetic disk memory, and the memory 1005 may optionally be a storage device independent of the processor 1001. Those skilled in the art will appreciate that the hardware configuration depicted in FIG. 1 is not intended to be limiting of the present invention, and may include more or less components than those shown, or some components in combination, or a different arrangement of components.
With continued reference to fig. 1, a memory 1005, which is one type of computer storage medium in fig. 1, may include an operating system, a network communication module, a user interface module, and a live screensaver diagnostic program. The processor 1001 may call a live splash screen diagnostic program stored in the memory 1005, and execute the live splash screen diagnostic method provided by the embodiment of the present invention.
In a second aspect, an embodiment of the present invention provides a live broadcast screensaver diagnosis method.
In an embodiment, referring to fig. 2, fig. 2 is a schematic flow chart of a live screen splash diagnosis method according to a first embodiment of the present invention. As shown in fig. 2, the live broadcast screenplay diagnosis method includes the following steps:
s10, receiving video stream packets at each embedded point;
in this embodiment, referring to fig. 3, fig. 3 is an architecture diagram of a live screen splash diagnosis method according to an embodiment of the present invention. As shown in fig. 3, sending a collection instruction to a collection program deployed on a central streaming media server, an edge streaming media server and a broadcast measurement terminal of a content delivery network CDN, and receiving a video streaming data packet at each embedded point, which is collected by the collection program according to the received collection instruction and transmitted according to an interface protocol, where the collection instruction is sent by an operation control unit of a diagnostic platform, the received video streaming data packet at each embedded point is stored in a storage middleware of the diagnostic platform, the interface protocol includes a video streaming data packet and metadata information of the video streaming data packet, the metadata information includes an instruction number, a collection embedded point, an address where the streaming media data packet is accessible, a live streaming data packet transmission protocol (multicast/HLS/RTSP), an encapsulation format adopted by the data packet, and an IP and a port required for analyzing the channel data packet, and the collection program encapsulates each video streaming data packet according to the encapsulation format adopted by each video streaming data packet and then encapsulates the video streaming data packet And transmitting the video stream data packets at the various buried points according to an interface protocol. The video stream data packet includes: the method comprises the steps of directly playing a live broadcast source multicast/unicast direct-view video stream data packet at a buried point A of a central streaming media server, a unicast broadcast measurement video stream data packet at a buried point B of the central streaming media server, a live broadcast channel unicast video stream data packet at a buried point C of the central streaming media server, a source return center unicast video stream data packet at a buried point D of an edge streaming media server, a unicast broadcast measurement video stream data packet at a buried point E of the edge streaming media server, a live broadcast channel unicast video stream data packet at a buried point F of the edge streaming media server and a unicast broadcast measurement video stream data packet at a buried point G of a broadcast measurement terminal.
Further, in an embodiment, each of the buried points includes:
the embedded point A at the streaming network card of the central streaming media server, the embedded point B at the local program broadcast position of the central streaming media server, the embedded point C at the streaming network card of the central streaming media server, the embedded point D at the streaming network card of the edge streaming media server, the embedded point E at the local program broadcast position of the edge streaming media server, the embedded point F at the streaming network card of the edge streaming media server and the embedded point G at the local program broadcast position of the broadcast terminal.
In this embodiment, with reference to fig. 3, each embedded point is determined according to the acquisition programs deployed in the central streaming server, the edge streaming server and the broadcast measurement terminal, the acquisition program deployed on the central streaming media server has three embedded points, namely an embedded point A at an inflow network card of the central streaming media server, an embedded point B at a local program broadcast measurement position of the central streaming media server and an embedded point C at an outflow network card of the central streaming media server, the acquisition program deployed on the edge streaming media server also has three embedded points, namely an embedded point D at the inflow network card of the edge streaming media server, an embedded point E at a local program broadcast measurement position of the edge streaming media server and an embedded point F at an outflow network card of the edge streaming media server, and the acquisition program deployed on the broadcast measurement terminal has one embedded point, namely an embedded point G at a local program broadcast measurement position of the broadcast measurement terminal.
S20, analyzing the TS in each video stream data packet to obtain a plurality of TS;
in this embodiment, each video stream packet is unpacked by the computing unit of the diagnostic platform, so as to obtain a plurality of TS streams. If the transmission protocol of the live broadcast stream data packet is UDP multicast live broadcast stream, the acquired data packet is a UDP data packet, only 8 bytes of the UDP packet head are required to be removed, and the rest part is sequentially written into the memory area to obtain TS stream. And if the live streaming data packet transmission protocol is HLS unicast live streaming, the acquired data packet is an HTTP TS data packet, an HTTP response packet header is removed, and the rest part is sequentially written into the memory area to obtain TS. If the live streaming data packet transmission protocol is RTSP unicast live streaming, the acquired data packet is UDP transmission and RTP encapsulated data packet, so that the UDP packet header, the RTP packet header and the rest part are sequentially written into the memory area to obtain TS stream.
S30, extracting X bytes in a preset range of the most upstream TS stream, and sequentially matching the X bytes with other TS streams according to the positive direction of live stream propagation, wherein X is a positive integer;
in this embodiment, referring to fig. 4, fig. 4 is a schematic view of a TS flow of an embodiment of a live screen splash diagnosis method according to the present invention. As shown in fig. 3 and 4, the TS stream at the buried point a is the uppermost TS stream that receives the live stream first, X bytes in the TS stream at the buried point a are extracted, and the X bytes are sequentially matched with other TS streams in the positive direction of the live stream propagation, where X is a positive integer. If there are X bytes in the other TS stream that are the same as the X bytes in the TS stream at buried point a, the matching is good, and if there are no X bytes in the other TS stream that are the same as the X bytes in the TS stream at buried point a, the matching is not good.
Specifically, one fragment, that is, 188 bytes, in the TS stream at the buried point a is extracted, and the 188 bytes are matched with the TS stream at the buried point B first, then matched with the TS stream at the buried point C, and sequentially performed according to the forward direction of the live stream propagation. If the TS stream at the buried point B has the same bytes as the 188 bytes, the matching is good, and if the TS stream at the buried point B has no bytes as the 188 bytes, the matching is not good.
And S40, determining the position of the buried point corresponding to the TS stream which cannot be matched with the X bytes as the position of the playing screensaver fault.
In this embodiment, if the TS stream that cannot be matched with X bytes is the TS stream at the buried point C, it is determined that the buried point C, that is, the position of the streaming network card of the central streaming media server, is the position where the screen splash playing fault occurs.
In this embodiment, video stream packets at each embedded point are received; analyzing TS (transport stream) in each video stream data packet to obtain a plurality of TS streams; extracting X bytes in a preset range of the most upstream TS stream, and sequentially matching the X bytes with other TS streams according to the positive direction of live stream propagation, wherein X is a positive integer; and determining the position of a buried point corresponding to the TS stream which cannot be matched with the X bytes as the position of the screen splash playing fault. In the embodiment, the TS stream in the video stream data packet deployed at each embedded point is obtained, X bytes in the preset range of the most upstream TS stream are extracted to be sequentially matched with other TS streams according to the positive direction of the broadcast stream propagation, the position of the embedded point corresponding to the TS stream which cannot be matched with the X bytes is determined as the position where the playing splash screen fault occurs, and the problem that the specific position where the playing splash screen fault occurs is difficult to rapidly determine is solved.
Further, in an embodiment, before the step of extracting X bytes in the preset range of the most upstream TS stream, the method further includes:
acquiring the starting position and the end position of each TS stream, determining the latest starting position and the earliest end position from the starting position and the end position of each TS stream, and taking the range between the latest starting position and the earliest end position as a preset range.
In the present embodiment, the start position and the end position of each TS stream are acquired, and the latest start position and the earliest end position are determined from the start position and the end position of each TS stream, as shown in fig. 4, the latest start position is the start position S0 of the TS stream at the buried point B, the earliest end position is the end position S1 of the TS stream at the buried point C, the range between the start position S0 of the TS stream at the buried point B and the end position S1 of the TS stream at the buried point C is taken as the preset range, and the next preset range is described as the range set forth herein.
Further, in an embodiment, after the step of sequentially matching the X bytes with other TS streams, the method further includes:
and extracting X + N bytes in a preset range of the most upstream TS stream, and sequentially matching the X + N bytes with other TS streams according to the positive direction of the live stream propagation, wherein N is a positive integer.
In this embodiment, X bytes are sequentially matched with other TS streams, and if all of the X bytes are matched, the matching range of the X bytes is expanded, and preferably, the X bytes are extracted before and after the X bytes2 NAnd (2) extracting X + N bytes in a preset range of the most upstream TS, and sequentially matching the X + N bytes in the preset range of the most upstream TS with other TS according to the positive direction of the broadcast stream propagation, wherein N is a positive integer. Further, when the range of the X + N bytes is equal to the preset range and can be matched with other TS streams, determining that the live stream has no fault.
Further, in an embodiment, after the step of parsing out the TS streams in each video stream data packet to obtain a plurality of TS streams, the method further includes:
selecting a target TS stream which is not the most upstream from a plurality of TS streams;
extracting X bytes in a preset range of a target TS stream, wherein X is a positive integer;
matching the X bytes with other TS streams at the upstream of the target TS stream in sequence according to the reverse direction of the live stream propagation;
when the TS stream which is not matched with the X bytes is not the most upstream TS stream, taking the TS stream which is not matched with the X bytes as a target TS stream, and extracting X bytes in a preset range of the target TS stream, wherein X is a positive integer;
when the TS stream which is not matched with the X bytes is the most upstream TS stream, taking the position of a buried point corresponding to the next upstream TS stream as the position where the playing screen splash fault occurs;
when the X bytes are matched with other TS flows at the upstream of the target TS flow, judging whether the target TS flow is the target TS flow selected for the first time;
if yes, sequentially matching the X bytes with other TS (transport stream) streams downstream of the target TS stream according to the positive direction of live stream propagation;
determining the position of a buried point corresponding to the TS stream which is not matched with the X bytes as the position of the playing screen splash fault;
if the X bytes can be matched with other TS streams downstream of the target TS stream, expanding the value of the X bytes, and when the range of the X bytes is not larger than a preset range, executing a step of extracting the X bytes in the preset range of the target TS stream, wherein X is a positive integer, and when the range of the X bytes is larger than the preset range, determining that the live stream has no fault;
if not, the value of the X bytes is expanded, when the range of the X bytes is not larger than the preset range, the step of extracting the X bytes in the preset range of the target TS stream is executed, wherein X is a positive integer, and when the range of the X bytes is larger than the preset range, the step of sequentially matching the X bytes with other TS streams at the downstream of the target TS stream according to the positive direction of the live stream propagation is executed.
In this embodiment, referring to fig. 5, fig. 5 is a flowchart illustrating a live screen splash diagnosis method according to a second embodiment of the present invention. As shown in fig. 4 and 5, a target TS stream that is not the most upstream stream is selected from the plurality of TS streams, and if the target TS stream is a TS stream at an embedded point D, X bytes in a preset range of the TS stream at the embedded point D are extracted, where the preset range is a range between the latest starting position and the earliest ending position among the starting position and the ending position of each TS stream, and X is a positive integer;
matching the X bytes with other TS streams at the upstream of a target TS stream in sequence according to the reverse direction of the propagation of the live stream, namely matching with the TS stream at the buried point C, then matching with the TS stream at the buried point B, and then matching with the TS stream at the buried point A;
and when the TS stream which does not match with the X bytes is not the most upstream TS stream, taking the TS stream which does not match with the X bytes as a target TS stream, and extracting X bytes in a preset range of the target TS stream, wherein X is a positive integer. For example, if the TS stream that cannot be matched with X bytes is the TS stream at the buried point C, the TS stream at the buried point C is taken as the target TS stream, X bytes in the target TS stream are extracted, and according to the reverse direction of the live stream propagation, the X bytes are first matched with the TS stream at the buried point B, and then matched with the TS stream at the buried point a.
When the TS stream that does not match with X bytes is the most upstream TS stream, the position of the buried point corresponding to the next upstream TS stream is taken as the position where the play splash screen fault occurs, for example, when the TS stream that cannot match with the target TS stream, i.e., the TS stream at the buried point D, is the TS stream at the most upstream TS stream, i.e., the buried point a, the position of the buried point corresponding to the next upstream TS stream, i.e., the position where the play splash screen fault occurs at the local program broadcast location of the central streaming media server is determined.
When the X bytes are matched with other TS flows at the upstream of the target TS flow, whether the target TS flow is the target TS flow selected for the first time is judged, namely whether the target TS flow is the TS flow at the buried point D is judged. And if the target TS stream is the TS stream at the buried point D, sequentially matching the X bytes with other TS streams downstream of the target TS stream according to the positive direction of the live stream propagation, and when the TS stream which is not matched with the X bytes is detected, determining the position of the buried point corresponding to the TS stream which is not matched with the X bytes as the position of the playing screen fault. Because the place where the problem occurs is not necessarily in the extracted section of X bytes, when the X bytes can be matched with other TS streams downstream of the target TS stream, the value of the X bytes is expanded, when the range of the X bytes is not more than a preset range, the step of extracting the X bytes in the preset range of the target TS stream is executed, wherein X is a positive integer, and when the range of the X bytes is more than the preset range, the live stream is determined to be fault-free.
If the target TS stream is the TS stream at the buried point C, namely the target TS stream is not the TS stream at the buried point D, the range of X bytes extracted from the TS stream at the buried point C is expanded, and when the range of the X bytes is not larger than a preset range, the step of extracting the X bytes in the preset range of the target TS stream is executed, wherein X is a positive integer. And when the range of the X bytes is larger than the preset range, executing a step of sequentially matching the X bytes with other TS flows at the downstream of the target TS flow according to the positive direction of live stream propagation.
In a third aspect, an embodiment of the present invention further provides a live broadcast screensaver diagnosis apparatus.
In an embodiment, referring to fig. 6, fig. 6 is a functional module schematic diagram of a live screen splash diagnosis apparatus according to a first embodiment of the present invention. As shown in fig. 6, the live screen splash diagnosis apparatus includes:
a receiving module 10, configured to receive video stream packets at each embedded point;
the parsing module 20 is configured to parse TS streams in each video stream data packet to obtain a plurality of TS streams;
the matching module 30 is configured to extract X bytes in a preset range of the most upstream TS stream, and sequentially match the X bytes with other TS streams according to a positive direction of live stream propagation, where X is a positive integer;
and the determining module 40 is configured to determine that the position of the buried point corresponding to the TS stream that cannot be matched with the X bytes is a position where a screen splash playing fault occurs.
Further, in one embodiment, each of the buried points includes: the embedded point A at the streaming network card of the central streaming media server, the embedded point B at the local program broadcast position of the central streaming media server, the embedded point C at the streaming network card of the central streaming media server, the embedded point D at the streaming network card of the edge streaming media server, the embedded point E at the local program broadcast position of the edge streaming media server, the embedded point F at the streaming network card of the edge streaming media server and the embedded point G at the local program broadcast position of the broadcast terminal.
Further, in an embodiment, the live broadcast screenplay diagnosis apparatus further includes an extraction module, specifically configured to:
and extracting X + N bytes in a preset range of the most upstream TS stream, and sequentially matching the X + N bytes with other TS streams according to the positive direction of the live stream propagation, wherein N is a positive integer.
Further, in an embodiment, the determining module 40 is further configured to:
selecting a target TS stream which is not the most upstream from a plurality of TS streams;
extracting X bytes in a preset range of a target TS stream, wherein X is a positive integer;
matching the X bytes with other TS streams at the upstream of the target TS stream in sequence according to the reverse direction of the live stream propagation;
when the TS stream which is not matched with the X bytes is not the most upstream TS stream, taking the TS stream which is not matched with the X bytes as a target TS stream, and extracting X bytes in a preset range of the target TS stream, wherein X is a positive integer;
when the TS stream which is not matched with the X bytes is the most upstream TS stream, taking the position of a buried point corresponding to the next upstream TS stream as the position where the playing screen splash fault occurs;
when the X bytes are matched with other TS flows at the upstream of the target TS flow, judging whether the target TS flow is the target TS flow selected for the first time;
if yes, sequentially matching the X bytes with other TS (transport stream) streams downstream of the target TS stream according to the positive direction of live stream propagation;
determining the position of a buried point corresponding to the TS stream which is not matched with the X bytes as the position of the playing screen splash fault;
if the X bytes can be matched with other TS streams downstream of the target TS stream, expanding the value of the X bytes, and when the range of the X bytes is not larger than a preset range, executing a step of extracting the X bytes in the preset range of the target TS stream, wherein X is a positive integer, and when the range of the X bytes is larger than the preset range, determining that the live stream has no fault;
if not, the value of the X bytes is expanded, when the range of the X bytes is not larger than the preset range, the step of extracting the X bytes in the preset range of the target TS stream is executed, wherein X is a positive integer, and when the range of the X bytes is larger than the preset range, the step of sequentially matching the X bytes with other TS streams at the downstream of the target TS stream according to the positive direction of the live stream propagation is executed.
Further, in an embodiment, the live broadcast screenplay diagnosis apparatus further includes an obtaining module, specifically configured to:
acquiring a starting position and an end position of each TS stream, and determining a latest starting position and an earliest end position from the starting position and the end position of each TS stream;
the range between the latest starting position and the earliest ending position is taken as a preset range.
The function implementation of each module in the live broadcast screen splash diagnosis device corresponds to each step in the live broadcast screen splash diagnosis method embodiment, and the functions and implementation processes are not described in detail here.
In a fourth aspect, the embodiment of the present invention further provides a readable storage medium.
The readable storage medium of the present invention stores a live screen splash diagnosis program, wherein when the live screen splash diagnosis program is executed by the processor, the steps of the live screen splash diagnosis method are implemented.
The method for implementing the live screen splash diagnosis program when executed may refer to each embodiment of the live screen splash diagnosis method of the present invention, and details are not described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for causing a terminal device to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A live broadcast screen splash diagnosis method is characterized by comprising the following steps:
receiving video stream data packets at each embedded point;
analyzing TS (transport stream) in each video stream data packet to obtain a plurality of TS streams;
extracting X bytes in a preset range of the most upstream TS stream, and sequentially matching the X bytes with other TS streams according to the positive direction of live stream propagation, wherein X is a positive integer;
and determining the position of a buried point corresponding to the TS stream which cannot be matched with the X bytes as the position of the screen splash playing fault.
2. The live screenplay diagnostic method of claim 1, wherein each of said buried points comprises:
the embedded point A at the streaming network card of the central streaming media server, the embedded point B at the local program broadcast position of the central streaming media server, the embedded point C at the streaming network card of the central streaming media server, the embedded point D at the streaming network card of the edge streaming media server, the embedded point E at the local program broadcast position of the edge streaming media server, the embedded point F at the streaming network card of the edge streaming media server and the embedded point G at the local program broadcast position of the broadcast terminal.
3. The live screensaver diagnostic method of claim 1, further comprising, after said step of sequentially matching said X bytes to other TS streams:
and extracting X + N bytes in a preset range of the most upstream TS stream, and sequentially matching the X + N bytes with other TS streams according to the positive direction of the live stream propagation, wherein N is a positive integer.
4. The live video screenplay diagnostic method according to claim 1, after said step of parsing out TS streams in each video stream data packet to obtain a plurality of TS streams, further comprising:
selecting a target TS stream which is not the most upstream from a plurality of TS streams;
extracting X bytes in a preset range of a target TS stream, wherein X is a positive integer;
matching the X bytes with other TS streams at the upstream of the target TS stream in sequence according to the reverse direction of the live stream propagation;
when the TS stream which is not matched with the X bytes is not the most upstream TS stream, taking the TS stream which is not matched with the X bytes as a target TS stream, and extracting X bytes in a preset range of the target TS stream, wherein X is a positive integer;
when the TS stream which is not matched with the X bytes is the most upstream TS stream, taking the position of a buried point corresponding to the next upstream TS stream as the position where the playing screen splash fault occurs;
when the X bytes are matched with other TS flows at the upstream of the target TS flow, judging whether the target TS flow is the target TS flow selected for the first time;
if yes, sequentially matching the X bytes with other TS (transport stream) streams downstream of the target TS stream according to the positive direction of live stream propagation;
determining the position of a buried point corresponding to the TS stream which is not matched with the X bytes as the position of the playing screen splash fault;
if the X bytes can be matched with other TS streams downstream of the target TS stream, expanding the value of the X bytes, and when the range of the X bytes is not larger than a preset range, executing a step of extracting the X bytes in the preset range of the target TS stream, wherein X is a positive integer, and when the range of the X bytes is larger than the preset range, determining that the live stream has no fault;
if not, the value of the X bytes is expanded, when the range of the X bytes is not larger than the preset range, the step of extracting the X bytes in the preset range of the target TS stream is executed, wherein X is a positive integer, and when the range of the X bytes is larger than the preset range, the step of sequentially matching the X bytes with other TS streams at the downstream of the target TS stream according to the positive direction of the live stream propagation is executed.
5. The live screenplay diagnostic method of any one of claims 1 to 4, further comprising, prior to said step of extracting X bytes in a preset range of the most upstream TS stream:
acquiring a starting position and an end position of each TS stream, and determining a latest starting position and an earliest end position from the starting position and the end position of each TS stream;
the range between the latest starting position and the earliest ending position is taken as a preset range.
6. A live broadcast screenplay diagnostic apparatus, comprising:
the receiving module is used for receiving video stream data packets at each embedded point;
the analysis module is used for analyzing the TS in each video stream data packet to obtain a plurality of TS;
the matching module is used for extracting X bytes in a preset range of the most upstream TS stream, and sequentially matching the X bytes with other TS streams according to the positive direction of live stream propagation, wherein X is a positive integer;
and the determining module is used for determining the position of the buried point corresponding to the TS stream which cannot be matched with the X bytes as the position of the playing screensaver fault.
7. The live screensaver diagnostic device of claim 6, further comprising an extraction module for:
and extracting X + N bytes in a preset range of the most upstream TS stream, and sequentially matching the X + N bytes with other TS streams according to the positive direction of the live stream propagation, wherein N is a positive integer.
8. The live screensaver diagnostic apparatus of claim 6, wherein the determination module is further configured to:
selecting a target TS stream which is not the most upstream from a plurality of TS streams;
extracting X bytes in a preset range of a target TS stream, wherein X is a positive integer;
matching the X bytes with other TS streams at the upstream of the target TS stream in sequence according to the reverse direction of the live stream propagation;
when the TS stream which is not matched with the X bytes is not the most upstream TS stream, taking the TS stream which is not matched with the X bytes as a target TS stream, and extracting X bytes in a preset range of the target TS stream, wherein X is a positive integer;
when the TS stream which is not matched with the X bytes is the most upstream TS stream, taking the position of a buried point corresponding to the next upstream TS stream as the position where the playing screen splash fault occurs;
when the X bytes are matched with other TS flows at the upstream of the target TS flow, judging whether the target TS flow is the target TS flow selected for the first time;
if yes, sequentially matching the X bytes with other TS (transport stream) streams downstream of the target TS stream according to the positive direction of live stream propagation;
determining the position of a buried point corresponding to the TS stream which is not matched with the X bytes as the position of the playing screen splash fault;
if the X bytes can be matched with other TS streams downstream of the target TS stream, expanding the value of the X bytes, and when the range of the X bytes is not larger than a preset range, executing a step of extracting the X bytes in the preset range of the target TS stream, wherein X is a positive integer, and when the range of the X bytes is larger than the preset range, determining that the live stream has no fault;
if not, the value of the X bytes is expanded, when the range of the X bytes is not larger than the preset range, the step of extracting the X bytes in the preset range of the target TS stream is executed, wherein X is a positive integer, and when the range of the X bytes is larger than the preset range, the step of sequentially matching the X bytes with other TS streams at the downstream of the target TS stream according to the positive direction of the live stream propagation is executed.
9. A live screensaver diagnostic device comprising a processor, a memory, and a live screensaver diagnostic program stored on the memory and executable by the processor, wherein the steps of the live screensaver diagnostic method as claimed in any one of claims 1 to 5 are carried out when the live screensaver diagnostic program is executed by the processor.
10. A readable storage medium having stored thereon a live screensaver diagnostic program, wherein the live screensaver diagnostic program when executed by a processor implements the steps of a live screensaver diagnostic method as claimed in any one of claims 1 to 5.
CN202210006589.0A 2022-01-05 2022-01-05 Live broadcast screen diagnosis method, device, equipment and readable storage medium Active CN114374855B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210006589.0A CN114374855B (en) 2022-01-05 2022-01-05 Live broadcast screen diagnosis method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210006589.0A CN114374855B (en) 2022-01-05 2022-01-05 Live broadcast screen diagnosis method, device, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN114374855A true CN114374855A (en) 2022-04-19
CN114374855B CN114374855B (en) 2023-05-23

Family

ID=81141840

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210006589.0A Active CN114374855B (en) 2022-01-05 2022-01-05 Live broadcast screen diagnosis method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN114374855B (en)

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090064248A1 (en) * 2007-08-31 2009-03-05 At&T Knowledge Ventures, Lp System and method of monitoring video data packet delivery
CN102572531A (en) * 2012-02-21 2012-07-11 德科仕通信(上海)有限公司 Method and system for delimiting packet loss faults of internet protocol television (IPTV) network
CN103053175A (en) * 2011-08-16 2013-04-17 华为技术有限公司 Iptv Fault Location Method, Device And System
US20130279347A1 (en) * 2010-12-15 2013-10-24 Huawei Technologies Co., Ltd Faulty Link Detection Method, Apparatus, Node, and System
US20160099859A1 (en) * 2014-10-06 2016-04-07 Futurewei Technologies, Inc. Reverse Path Validation for Source Routed Networks
WO2016150105A1 (en) * 2015-03-20 2016-09-29 中兴通讯股份有限公司 Fault location method, device and system for ethernet link
CN106803951A (en) * 2015-11-26 2017-06-06 德科仕通信(上海)有限公司 The live interim card method for diagnosing faults of HLS
WO2019019370A1 (en) * 2017-07-24 2019-01-31 平安科技(深圳)有限公司 Processing method for live broadcast of audio and video, storage medium and mobile terminal
CN109587551A (en) * 2017-09-29 2019-04-05 北京金山云网络技术有限公司 A kind of judgment method, device, equipment and the storage medium of live streaming media Caton
CN110418199A (en) * 2018-04-26 2019-11-05 北京视联动力国际信息技术有限公司 A kind of information processing method and system based on view networking
CN110677327A (en) * 2019-10-31 2020-01-10 盛科网络(苏州)有限公司 Chip-based real-time detection method for RTP flow fault
CN111787026A (en) * 2020-07-27 2020-10-16 北京飞讯数码科技有限公司 Method, device and equipment for transmitting media data and storage medium
US20210014342A1 (en) * 2018-05-08 2021-01-14 Shenzhen Mental Flow Technology Co., Ltd. Data transmission method, device and computer readable storage medium
CN112261429A (en) * 2020-10-21 2021-01-22 北华大学 Live broadcast application system, method, equipment and storage medium of cardless intelligent terminal
CN112583642A (en) * 2020-12-10 2021-03-30 广州虎牙科技有限公司 Abnormality detection method, model, electronic device, and computer-readable storage medium
CN113055693A (en) * 2021-04-20 2021-06-29 上海哔哩哔哩科技有限公司 Data processing method and device
CN113300816A (en) * 2020-07-15 2021-08-24 阿里巴巴集团控股有限公司 Node positioning method, network transmission method, device and equipment

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090064248A1 (en) * 2007-08-31 2009-03-05 At&T Knowledge Ventures, Lp System and method of monitoring video data packet delivery
US20130279347A1 (en) * 2010-12-15 2013-10-24 Huawei Technologies Co., Ltd Faulty Link Detection Method, Apparatus, Node, and System
CN103053175A (en) * 2011-08-16 2013-04-17 华为技术有限公司 Iptv Fault Location Method, Device And System
CN102572531A (en) * 2012-02-21 2012-07-11 德科仕通信(上海)有限公司 Method and system for delimiting packet loss faults of internet protocol television (IPTV) network
US20160099859A1 (en) * 2014-10-06 2016-04-07 Futurewei Technologies, Inc. Reverse Path Validation for Source Routed Networks
WO2016150105A1 (en) * 2015-03-20 2016-09-29 中兴通讯股份有限公司 Fault location method, device and system for ethernet link
CN106803951A (en) * 2015-11-26 2017-06-06 德科仕通信(上海)有限公司 The live interim card method for diagnosing faults of HLS
WO2019019370A1 (en) * 2017-07-24 2019-01-31 平安科技(深圳)有限公司 Processing method for live broadcast of audio and video, storage medium and mobile terminal
CN109587551A (en) * 2017-09-29 2019-04-05 北京金山云网络技术有限公司 A kind of judgment method, device, equipment and the storage medium of live streaming media Caton
CN110418199A (en) * 2018-04-26 2019-11-05 北京视联动力国际信息技术有限公司 A kind of information processing method and system based on view networking
US20210014342A1 (en) * 2018-05-08 2021-01-14 Shenzhen Mental Flow Technology Co., Ltd. Data transmission method, device and computer readable storage medium
CN110677327A (en) * 2019-10-31 2020-01-10 盛科网络(苏州)有限公司 Chip-based real-time detection method for RTP flow fault
CN113300816A (en) * 2020-07-15 2021-08-24 阿里巴巴集团控股有限公司 Node positioning method, network transmission method, device and equipment
CN111787026A (en) * 2020-07-27 2020-10-16 北京飞讯数码科技有限公司 Method, device and equipment for transmitting media data and storage medium
CN112261429A (en) * 2020-10-21 2021-01-22 北华大学 Live broadcast application system, method, equipment and storage medium of cardless intelligent terminal
CN112583642A (en) * 2020-12-10 2021-03-30 广州虎牙科技有限公司 Abnormality detection method, model, electronic device, and computer-readable storage medium
CN113055693A (en) * 2021-04-20 2021-06-29 上海哔哩哔哩科技有限公司 Data processing method and device

Also Published As

Publication number Publication date
CN114374855B (en) 2023-05-23

Similar Documents

Publication Publication Date Title
US10986141B2 (en) Relevancy improvement through targeting of information based on data gathered from a networked device associated with a security sandbox of a client device
US9386356B2 (en) Targeting with television audience data across multiple screens
US9026668B2 (en) Real-time and retargeted advertising on multiple screens of a user watching television
US10531143B2 (en) Apparatus and method for media detection and replacement
US10880340B2 (en) Relevancy improvement through targeting of information based on data gathered from a networked device associated with a security sandbox of a client device
US9203642B2 (en) Method and system for collecting data on a wireless device
US20160140122A1 (en) Relevancy improvement through targeting of information based on data gathered from a capture device associated with a client device
EP2613527B1 (en) Transmission device and method, reception device and method, and transmission and reception system
US8060373B2 (en) System and method of identifying contact information
US10631068B2 (en) Content exposure attribution based on renderings of related content across multiple devices
US8248940B2 (en) Method and apparatus for targeted content delivery based on internet video traffic analysis
CN103517135A (en) Method, system and television capable of playing MP4-format video files continuously
CN107113325A (en) The system and method operated for selective delivery acceleration device
US10355967B2 (en) Optical character recognition for video automation
CN107040615B (en) Downloading method of media fragment, terminal and computer readable storage medium
US9641908B2 (en) Method and system for transferring real-time audio/video stream
CN102149014B (en) Real-time audio and video information navigation method and system
CN114374855B (en) Live broadcast screen diagnosis method, device, equipment and readable storage medium
JP4966412B2 (en) Media resource reservation method, service package information acquisition method, and apparatus
CN106412661B (en) Method and system for collecting network video playing information of smart television
KR102611253B1 (en) Receiving devices, transmitting devices and data processing methods
CN112350986B (en) Shaping method and system for audio and video network transmission fragmentation
US20090265480A1 (en) Method for determining complementary data regarding at least one piece of content, method for transmitting said complementary data, associated processing device and application server
CN114245105A (en) Video playing quality detection method, system, device and storage medium
CN110324608B (en) Method and device for detecting video stream quality and computer equipment

Legal Events

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