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

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

Info

Publication number
CN114374855B
CN114374855B CN202210006589.0A CN202210006589A CN114374855B CN 114374855 B CN114374855 B CN 114374855B CN 202210006589 A CN202210006589 A CN 202210006589A CN 114374855 B CN114374855 B CN 114374855B
Authority
CN
China
Prior art keywords
stream
bytes
live
target
streams
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.)
Active
Application number
CN202210006589.0A
Other languages
Chinese (zh)
Other versions
CN114374855A (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 video screen diagnosis method, a live video screen diagnosis device, live video screen diagnosis equipment and a readable storage medium. The method comprises the following steps: receiving video stream data packets at all buried points; analyzing TS streams 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 forward direction of live broadcast stream propagation, wherein X is a positive integer; and determining the position of the buried point corresponding to the TS stream which cannot be matched with the X bytes as the position where the fault of the playing screen occurs. According to the invention, X bytes are extracted from the preset range of the most upstream TS stream, the X bytes are sequentially matched with other TS streams according to the forward direction of live broadcast stream propagation, and the positions of the buried points corresponding to the TS streams on which the X bytes cannot be matched are determined as the positions where the broadcast screen faults occur, so that the problem that the specific positions where the broadcast screen faults occur are difficult to quickly determine is solved.

Description

Live broadcast screen diagnosis method, device, equipment and readable storage medium
Technical Field
The invention relates to the fields of IPTV/OTT live broadcast technology, CDN streaming media technology and big data technology, in particular to a live broadcast screen diagnosis method, a live broadcast screen diagnosis device, live broadcast screen diagnosis equipment and a readable storage medium.
Background
At present, the IPTV (Internet Protocol Television, interactive network television) technology is mature, the development situation is better, each large operator is building own IPTV platform to provide live broadcast, review and time shift basic services for users, because of the difference of network infrastructures of operators, the networking scheme of IPTV has diversity, generally, a live broadcast content provider provides a live broadcast source for the CDN of the operator in a multicast or unicast manner, the CDN of the operator provides multicast/unicast live broadcast service for the users, and the live broadcast service of the operators provides time shift and review services for the users after recording.
The content provider transmits the live broadcast signals to a central node streaming media server of the CDN platform of the operator through UDP multicast, and the CDN platform then decapsulates the multicast live broadcast and converts the multicast live broadcast into unicast live broadcast to provide live broadcast service for users, and records a service providing time shift service. In this process, the live broadcast multicast source provided by the content provider adopts UDP multicast, because UDP is an unreliable transmission protocol, there is a possibility of disorder in the data packet transmission process, and meanwhile, through the processing of the streaming network card of the streaming media server and the operating system protocol stack, the processing of the streaming media application program and the streaming network card may be caused to lose or disorder in a certain scenario, for example, the performance bottleneck of the network card of the server or the system resource bottleneck causes the data packet to be jammed and discarded or disordered, the performance bottleneck of the streaming media program itself, etc., which may cause the situation of playing the splash screen to seriously affect the viewing experience of the user, although the playing splash screen fault is easy to find, but the specific location of the fault is difficult to determine.
Disclosure of Invention
The invention mainly aims to provide a live video screen diagnosis method, a device, equipment and a readable storage medium, and aims to solve the problem that a specific position where a video screen fault occurs is difficult to quickly determine.
In a first aspect, the present invention provides a live video streaming diagnostic method, the live video streaming diagnostic method including:
receiving video stream data packets at all buried points;
analyzing TS streams 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 forward direction of live broadcast stream propagation, wherein X is a positive integer;
and determining the position of the buried point corresponding to the TS stream which cannot be matched with the X bytes as the position where the fault of the playing screen occurs.
Optionally, each buried point includes:
the method comprises the steps of burying a point A at an inflow network card of a central streaming media server, burying a point B at a local program broadcasting position of the central streaming media server, burying a point C at an outflow network card of the central streaming media server, burying a point D at an inflow network card of an edge streaming media server, burying a point E at a local program broadcasting position of the edge streaming media server, burying a point F at an outflow network card of the edge streaming media server and burying a point G at a local program broadcasting position of a broadcasting terminal.
Optionally, after the step of sequentially matching the X bytes with other TS streams, the method further includes:
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 live stream propagation, wherein N is a positive integer.
Optionally, after the step of parsing out the TS streams in each video stream packet to obtain a plurality of TS streams, the method further includes:
selecting a target TS stream which is not the most upstream from the TS streams;
extracting X bytes in a preset range of a target TS stream, wherein X is a positive integer;
according to the opposite direction of live stream propagation, sequentially matching the X bytes with other TS streams upstream of the target TS stream;
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 executing the step of extracting the X bytes in the 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 the buried point corresponding to the next upstream TS stream as the position where the fault of the playing screen occurs;
when the X bytes are matched with other TS streams upstream of the target TS stream, judging whether the target TS stream is the first selected target TS stream;
if yes, sequentially matching the X bytes with other TS streams downstream of the target TS stream according to the forward 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 where the fault of the playing screen occurs;
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 executing the step of extracting the X bytes in the preset range of the target TS stream when the range of the X bytes is not larger than the preset range, wherein X is a positive integer, and determining that the live stream has no fault when the range of the X bytes is larger than the preset range;
if not, expanding the value of X bytes, executing the step of extracting X bytes in the preset range of the target TS stream when the range of the X bytes is not larger than the preset range, wherein X is a positive integer, and executing the step of sequentially matching the X bytes with other TS streams downstream of the target TS stream according to the positive direction of live broadcast stream propagation when the range of the X bytes is larger than the preset range.
Optionally, before the step of extracting X bytes in the preset range of the most upstream TS stream, the method further includes:
acquiring a starting point position and an end point position of each TS stream, and determining a latest starting point position and an earliest end point position from the starting point position and the end point position of each TS stream;
the range between the latest start position and the earliest end position is taken as a preset range.
In a second aspect, the present invention also provides a live video flower screen diagnostic apparatus, including:
the receiving module is used for receiving the video stream data packets at all the buried points;
the analysis module is used for analyzing TS streams in each video stream data packet to obtain a plurality of TS streams;
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 broadcast 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 where the fault of the playing screen occurs.
Optionally, the live flower screen diagnostic device further includes an extraction module, configured to:
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 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 the TS streams;
extracting X bytes in a preset range of a target TS stream, wherein X is a positive integer;
according to the opposite direction of live stream propagation, sequentially matching the X bytes with other TS streams upstream of the target TS stream;
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 executing the step of extracting the X bytes in the 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 the buried point corresponding to the next upstream TS stream as the position where the fault of the playing screen occurs;
when the X bytes are matched with other TS streams upstream of the target TS stream, judging whether the target TS stream is the first selected target TS stream;
if yes, sequentially matching the X bytes with other TS streams downstream of the target TS stream according to the forward 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 where the fault of the playing screen occurs;
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 executing the step of extracting the X bytes in the preset range of the target TS stream when the range of the X bytes is not larger than the preset range, wherein X is a positive integer, and determining that the live stream has no fault when the range of the X bytes is larger than the preset range;
if not, expanding the value of X bytes, executing the step of extracting X bytes in the preset range of the target TS stream when the range of the X bytes is not larger than the preset range, wherein X is a positive integer, and executing the step of sequentially matching the X bytes with other TS streams downstream of the target TS stream according to the positive direction of live broadcast stream propagation when the range of the X bytes is larger than the preset range.
In a third aspect, the present invention also provides a live-broadcast screen diagnostic apparatus, the live-broadcast screen diagnostic apparatus comprising a processor, a memory, and a live-broadcast screen diagnostic program stored on the memory and executable by the processor, wherein the live-broadcast screen diagnostic program, when executed by the processor, implements the steps of the live-broadcast screen diagnostic method as described above.
In a fourth aspect, the present invention further provides a readable storage medium, on which a live-on-screen diagnostic program is stored, wherein the live-on-screen diagnostic program, when executed by a processor, implements the steps of the live-on-screen diagnostic method as described above.
In the invention, video stream data packets at all buried points are received; analyzing TS streams 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 forward direction of live broadcast stream propagation, wherein X is a positive integer; and determining the position of the buried point corresponding to the TS stream which cannot be matched with the X bytes as the position where the fault of the playing screen occurs. According to the invention, the TS stream in the video stream data packet deployed at each buried point is acquired, X bytes in the preset range of the most upstream TS stream are extracted, and are sequentially matched with other TS streams according to the forward direction of live stream propagation, so that the position of the buried point corresponding to the TS stream on which the X bytes cannot be matched is determined as the position where the broadcast screen fault occurs, and the problem that the specific position where the broadcast screen fault occurs is difficult to quickly determine is solved.
Drawings
Fig. 1 is a schematic hardware structure diagram of a live video screen diagnostic device according to an embodiment of the present invention;
FIG. 2 is a flowchart of a first embodiment of a live video streaming diagnostic method according to the present invention;
FIG. 3 is a schematic diagram of an embodiment of a live video streaming diagnostic method according to the present invention;
FIG. 4 is a schematic TS flow diagram of an embodiment of a live video streaming diagnostic method according to the present invention;
FIG. 5 is a flowchart of a second embodiment of the live video streaming diagnostic method of the present invention;
fig. 6 is a schematic diagram of functional modules of an embodiment of the live video diagnostic apparatus of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In a first aspect, an embodiment of the present invention provides a live video diagnostic apparatus, which may be a personal computer (personal computer, PC), a notebook computer, a server, or the like, having a data processing function.
Referring to fig. 1, fig. 1 is a schematic hardware structure diagram of a live video streaming diagnostic apparatus according to an embodiment of the present invention. In an embodiment of the present invention, the live video diagnostic device may include a processor 1001 (e.g., central processing unit Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein the communication bus 1002 is used to enable connected communications between these 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., WIreless-FIdelity, WI-FI interface); the memory 1005 may be a high-speed random access memory (random access memory, RAM) or a stable memory (non-volatile memory), such as a disk memory, and the memory 1005 may alternatively be a storage device independent of the processor 1001. Those skilled in the art will appreciate that the hardware configuration shown in fig. 1 is not limiting of the invention and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
With continued reference to FIG. 1, an operating system, a network communication module, a user interface module, and a live screen diagnostic program may be included in memory 1005, which is one type of computer storage medium in FIG. 1. The processor 1001 may call a live screen diagnostic program stored in the memory 1005, and execute the live screen diagnostic method provided by the embodiment of the present invention.
In a second aspect, an embodiment of the present invention provides a live video streaming diagnostic method.
In an embodiment, referring to fig. 2, fig. 2 is a flowchart of a first embodiment of a live-broadcast screen diagnostic method according to the present invention. As shown in fig. 2, the live video flower screen diagnosis method comprises the following steps:
s10, receiving video stream data packets at all buried points;
in this embodiment, referring to fig. 3, fig. 3 is a schematic diagram of an embodiment of a live-broadcast screen diagnostic method according to the present invention. As shown in fig. 3, an acquisition instruction is sent to an acquisition program deployed at a central streaming media server, an edge streaming media server and a broadcast measurement terminal of a content delivery network CDN, the acquisition program is received to acquire video stream data packets at each embedded point according to the received acquisition instruction and transmitted according to an interface protocol, wherein the acquisition instruction is sent out by an operation control unit of a diagnostic platform, the received video stream data packets at each embedded point are stored in a storage middleware of the diagnostic platform, the interface protocol includes the video stream data packets and metadata information of the video stream data packets, the metadata information includes an instruction number, an address accessible by the acquisition embedded point and the streaming media data packets, a live streaming data packet transmission protocol (multicast/HLS/RTSP), an encapsulation format adopted by the data packets, and an IP and a port required for parsing the channel data packets, and the acquisition program encapsulates each video stream data packet according to the encapsulation format adopted by each video stream data packet and then transmits the video stream data packets at each embedded point according to the interface protocol. The video stream data packet includes: the method comprises the steps of multicasting/unicasting direct video stream data packets of a live broadcast source at a buried point A of a central streaming media server, unicasting video stream data packets of a unicast video stream at a buried point B of the central streaming media server, unicasting video stream data packets of a live broadcast channel at a buried point C of the central streaming media server, unicasting video stream data packets of a return source center at a buried point D of an edge streaming media server, unicasting video stream data packets of a unicast video stream at a buried point E of the edge streaming media server, unicasting video stream data packets of a live broadcast channel at a buried point F of the edge streaming media server and unicasting video stream data packets at a buried point G of a broadcasting terminal.
Further, in an embodiment, each of the buried points includes:
the method comprises the steps of burying a point A at an inflow network card of a central streaming media server, burying a point B at a local program broadcasting position of the central streaming media server, burying a point C at an outflow network card of the central streaming media server, burying a point D at an inflow network card of an edge streaming media server, burying a point E at a local program broadcasting position of the edge streaming media server, burying a point F at an outflow network card of the edge streaming media server and burying a point G at a local program broadcasting position of a broadcasting terminal.
In this embodiment, with continued reference to fig. 3, each buried point is determined according to the collection programs deployed at the central streaming media server, the edge streaming media server and the broadcast measurement terminal, where the collection program deployed at the central streaming media server has three buried points, namely, a buried point a at the inflow network card of the central streaming media server, a buried point B at the local program broadcast measurement of the central streaming media server, and a buried point C at the outflow network card of the central streaming media server, the collection program deployed at the edge streaming media server also has three buried points, namely, a buried point D at the inflow network card of the edge streaming media server, a buried point E at the local program broadcast measurement of the edge streaming media server, and a buried point F at the outflow network card of the edge streaming media server.
S20, analyzing TS streams in each video stream data packet to obtain a plurality of TS streams;
in this embodiment, the calculation unit of the diagnostic platform unpacks each video stream packet to obtain a plurality of TS streams. If the live stream data packet transmission protocol is UDP multicast live stream, the collected data packet is UDP data packet, only 8 bytes of UDP packet header are removed, and the rest part is written into the memory area in sequence to obtain TS stream. If the live stream data packet transmission protocol is HLS unicast live stream, the collected data packets are HTTP TS data packets, HTTP response packet heads are removed, and the remainder is written into a memory area in sequence to obtain TS stream. If the live stream data packet transmission protocol is RTSP unicast live stream, the collected data packet is UDP transmission, and RTP encapsulated data packet, therefore, the UDP packet header is intercepted, the RTP packet header, and the rest part is written into the memory area in sequence to be 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 broadcast 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 in an embodiment of a live video streaming diagnostic method according to the present invention. As shown in fig. 3 and fig. 4, the TS stream at the buried point a is the uppermost stream 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 according to the positive direction of propagation of the live stream, where X is a positive integer. If the other TS stream has X bytes identical to the X bytes in the TS stream at the buried point a, the matching cannot be performed if the other TS stream has no X bytes identical to the X bytes in the TS stream at the buried point a.
Specifically, a slice, i.e. 188 bytes, of the TS stream at the buried point A is extracted, the 188 bytes are matched with the TS stream at the buried point B, and then the 188 bytes are matched with the TS stream at the buried point C, and the steps are sequentially carried out according to the forward direction of live broadcast stream propagation. If the TS stream at the buried point B has the same bytes as the 188 bytes, the matching cannot be performed if the TS stream at the buried point B has no bytes as the 188 bytes.
S40, determining the position of the buried point corresponding to the TS stream which cannot be matched with the X bytes as the position where the video screen fault occurs.
In this embodiment, if the TS stream that cannot be matched with the X bytes is the TS stream at the embedded point C, that is, the position where the play screen fault occurs at the streaming network card of the central streaming media server is determined.
In this embodiment, video stream packets at each buried point are received; analyzing TS streams 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 forward direction of live broadcast stream propagation, wherein X is a positive integer; and determining the position of the buried point corresponding to the TS stream which cannot be matched with the X bytes as the position where the fault of the playing screen occurs. In this embodiment, the TS streams in the video stream data packets disposed at each buried point are acquired, the X bytes in the preset range of the most upstream TS stream are extracted, and are sequentially matched with other TS streams according to the forward direction of live stream propagation, so that the position of the buried point corresponding to the TS stream on which the X bytes cannot be matched is determined as the position where the broadcast screen fault occurs, and the problem that the specific position where the broadcast screen fault occurs is difficult to be quickly determined 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:
and acquiring the starting point position and the end point position of each TS stream, determining the latest starting point position and the earliest end point position from the starting point position and the end point position of each TS stream, and taking the range between the latest starting point position and the earliest end point position as a preset range.
In this embodiment, the start position and the end position of each TS stream are obtained, 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, where the latest start position is the start position S0 of the TS stream at the buried point B, and the earliest end position is the end position S1 of the TS stream at the buried point C, and 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 a preset range, and the following preset range is described with 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:
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 live stream propagation, wherein N is a positive integer.
In this embodiment, the matching range of the X bytes is enlarged by sequentially matching the X bytes with other TS streams, and preferably, the X bytes are extracted before and after each other 2 N And extracting X+N bytes in a preset range of the most upstream TS stream, and sequentially matching the X+N bytes in the preset range of the most upstream TS stream with other TS streams according to the forward direction of live broadcast stream propagation, wherein N is a positive integer. Further, when the range of x+n bytes is equal to the preset range and can be matched with other TS streams, it is determined that the live stream has no fault.
Further, in an embodiment, after the step of parsing the TS streams in each video stream packet to obtain a plurality of TS streams, the method further includes:
selecting a target TS stream which is not the most upstream from the TS streams;
extracting X bytes in a preset range of a target TS stream, wherein X is a positive integer;
according to the opposite direction of live stream propagation, sequentially matching the X bytes with other TS streams upstream of the target TS stream;
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 executing the step of extracting the X bytes in the 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 the buried point corresponding to the next upstream TS stream as the position where the fault of the playing screen occurs;
when the X bytes are matched with other TS streams upstream of the target TS stream, judging whether the target TS stream is the first selected target TS stream;
if yes, sequentially matching the X bytes with other TS streams downstream of the target TS stream according to the forward 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 where the fault of the playing screen occurs;
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 executing the step of extracting the X bytes in the preset range of the target TS stream when the range of the X bytes is not larger than the preset range, wherein X is a positive integer, and determining that the live stream has no fault when the range of the X bytes is larger than the preset range;
if not, expanding the value of X bytes, executing the step of extracting X bytes in the preset range of the target TS stream when the range of the X bytes is not larger than the preset range, wherein X is a positive integer, and executing the step of sequentially matching the X bytes with other TS streams downstream of the target TS stream according to the positive direction of live broadcast stream propagation when the range of the X bytes is larger than the preset range.
In this embodiment, referring to fig. 5, fig. 5 is a flowchart of a second embodiment of the live video streaming diagnostic method according to the present invention. As shown in fig. 4 and 5, selecting a target TS stream which is not the most upstream from the plurality of TS streams, if the target TS stream is a TS stream at the buried point D, extracting X bytes in a preset range of the TS stream at the buried point D, wherein the preset range is a range between a start position and a latest start position and an earliest end position of the start position and the end position of each TS stream, and X is a positive integer;
according to the opposite direction of live broadcast stream propagation, matching X bytes with other TS streams at the upstream of a target TS stream in sequence, namely, firstly matching with TS streams at a buried point C, then matching with TS streams at a buried point B, and then matching with TS streams at a buried point A;
when the TS stream not matched with the X bytes is not the most upstream TS stream, taking the TS stream not matched with the X bytes as a target TS stream, and executing the step of extracting the X bytes in the preset range of the target TS stream, wherein X is a positive integer. For example, if the TS stream that cannot be matched with the X bytes is the TS stream at the buried point C, the TS stream at the buried point C is used as the target TS stream, the X bytes in the target TS stream are extracted, and according to the opposite direction of the propagation of the live stream, the X bytes are first matched with the TS stream at the buried point B, and then are matched with the TS stream at the buried point a.
When the TS stream that is not matched with the X bytes is the most upstream TS stream, the position of the buried point corresponding to the secondary upstream TS stream is taken as the position where the video screen fault occurs, for example, when the TS stream that cannot be matched with the TS stream at the destination TS stream, i.e., the TS stream at the buried point D, is the most upstream TS stream, i.e., the TS stream at the buried point a, the position of the buried point corresponding to the secondary upstream TS stream, i.e., the position where the video screen fault occurs is determined as the position where the video screen fault occurs at the local program of the central streaming media server.
When the X bytes are matched with other TS streams at the upstream of the target TS stream, judging whether the target TS stream is the first selected target TS stream, namely judging whether the target TS stream is the TS stream at the buried point D. 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 forward direction of live broadcast stream propagation, and determining the position of the buried point corresponding to the TS stream which is not matched with the X bytes as the position where the broadcast screen fault occurs when the TS stream which is not matched with the X bytes is detected. Because the place where the problem occurs is not necessarily in the extracted section of X bytes, when the X bytes are matched with other TS streams downstream of the target TS stream, the value of the X bytes is enlarged, when the range of the X bytes is not greater than the preset range, the step of extracting the X bytes in the preset range of the target TS stream is performed, wherein X is a positive integer, and when the range of the X bytes is greater than the preset range, it is determined that the live stream has no fault.
If the target TS stream is the TS stream at the buried point C, that is, if 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 enlarged, and when the range of X bytes is not greater than the preset range, the step of extracting 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 the step of sequentially matching the X bytes with other TS streams downstream of the target TS stream according to the forward direction of live stream propagation.
In a third aspect, the embodiment of the invention further provides a live video screen diagnosis device.
In an embodiment, referring to fig. 6, fig. 6 is a schematic functional block diagram of a first embodiment of a live-broadcast screen diagnostic device according to the present invention. As shown in fig. 6, the live flower screen diagnostic device includes:
a receiving module 10, configured to receive video stream packets at each buried point;
the parsing module 20 is configured to parse out the TS streams in each video stream 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 match the X bytes with other TS streams in sequence according to a positive direction of propagation of the live stream, where X is a positive integer;
and a determining module 40, configured to determine a position of a buried point corresponding to the TS stream that cannot be matched with the X bytes as a position where a playback screen fault occurs.
Further, in one embodiment, each buried point includes: the method comprises the steps of burying a point A at an inflow network card of a central streaming media server, burying a point B at a local program broadcasting position of the central streaming media server, burying a point C at an outflow network card of the central streaming media server, burying a point D at an inflow network card of an edge streaming media server, burying a point E at a local program broadcasting position of the edge streaming media server, burying a point F at an outflow network card of the edge streaming media server and burying a point G at a local program broadcasting position of a broadcasting terminal.
Further, in an embodiment, the live video diagnostic apparatus further includes an extraction module, specifically configured to:
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 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 the TS streams;
extracting X bytes in a preset range of a target TS stream, wherein X is a positive integer;
according to the opposite direction of live stream propagation, sequentially matching the X bytes with other TS streams upstream of the target TS stream;
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 executing the step of extracting the X bytes in the 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 the buried point corresponding to the next upstream TS stream as the position where the fault of the playing screen occurs;
when the X bytes are matched with other TS streams upstream of the target TS stream, judging whether the target TS stream is the first selected target TS stream;
if yes, sequentially matching the X bytes with other TS streams downstream of the target TS stream according to the forward 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 where the fault of the playing screen occurs;
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 executing the step of extracting the X bytes in the preset range of the target TS stream when the range of the X bytes is not larger than the preset range, wherein X is a positive integer, and determining that the live stream has no fault when the range of the X bytes is larger than the preset range;
if not, expanding the value of X bytes, executing the step of extracting X bytes in the preset range of the target TS stream when the range of the X bytes is not larger than the preset range, wherein X is a positive integer, and executing the step of sequentially matching the X bytes with other TS streams downstream of the target TS stream according to the positive direction of live broadcast stream propagation when the range of the X bytes is larger than the preset range.
Further, in an embodiment, the live video flower screen diagnostic device further includes an acquisition module, specifically configured to:
acquiring a starting point position and an end point position of each TS stream, and determining a latest starting point position and an earliest end point position from the starting point position and the end point position of each TS stream;
the range between the latest start position and the earliest end position is taken as a preset range.
The function implementation of each module in the live broadcast screen display diagnostic device corresponds to each step in the live broadcast screen display diagnostic method embodiment, and the function and implementation process of each module are not described in detail herein.
In a fourth aspect, embodiments of the present invention also provide a readable storage medium.
The invention stores a live video diagnostic program on a readable storage medium, wherein the live video diagnostic program realizes the steps of the live video diagnostic method when being executed by a processor.
The method implemented when the live-broadcast screen diagnostic program is executed may refer to various embodiments of the live-broadcast screen diagnostic method of the present invention, which 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 one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising several instructions for causing a terminal device to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (7)

1. The live broadcast flower screen diagnosis method is characterized by comprising the following steps of:
receiving video stream data packets at each buried point, the each buried point comprising: the method comprises the steps of burying a point A at an inflow network card of a central streaming media server, burying a point B at a local program broadcasting and measuring position of the central streaming media server, burying a point C at an outflow network card of the central streaming media server, burying a point D at an inflow network card of an edge streaming media server, burying a point E at a local program broadcasting and measuring position of the edge streaming media server, burying a point F at an outflow network card of the edge streaming media server and burying a point G at a local program broadcasting and measuring position of a broadcasting and measuring terminal;
analyzing TS streams 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 forward direction of live broadcast stream propagation, wherein X is a positive integer;
determining the position of a buried point corresponding to the TS stream which cannot be matched with the X bytes as the position where the fault of the playing screen occurs;
after the step of parsing the TS streams in each video stream packet to obtain a plurality of TS streams, the method further includes:
selecting a target TS stream which is not the most upstream from the TS streams;
extracting X bytes in a preset range of a target TS stream, wherein X is a positive integer;
according to the opposite direction of live stream propagation, sequentially matching the X bytes with other TS streams upstream of the target TS stream;
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 executing the step of extracting the X bytes in the 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 the buried point corresponding to the next upstream TS stream as the position where the fault of the playing screen occurs;
when the X bytes are matched with other TS streams upstream of the target TS stream, judging whether the target TS stream is the first selected target TS stream;
if yes, sequentially matching the X bytes with other TS streams downstream of the target TS stream according to the forward 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 where the fault of the playing screen occurs;
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 executing the step of extracting the X bytes in the preset range of the target TS stream when the range of the X bytes is not larger than the preset range, wherein X is a positive integer, and determining that the live stream has no fault when the range of the X bytes is larger than the preset range;
if not, expanding the value of X bytes, executing the step of extracting X bytes in the preset range of the target TS stream when the range of the X bytes is not larger than the preset range, wherein X is a positive integer, and executing the step of sequentially matching the X bytes with other TS streams downstream of the target TS stream according to the positive direction of live broadcast stream propagation when the range of the X bytes is larger than the preset range.
2. The live video streaming diagnostic method of claim 1, further comprising, after the step of sequentially matching the X bytes with other TS streams:
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 live stream propagation, wherein N is a positive integer.
3. The live video streaming diagnostic method according to any one of claims 1 to 2, further comprising, before the step of extracting X bytes in a preset range of the most upstream TS stream:
acquiring a starting point position and an end point position of each TS stream, and determining a latest starting point position and an earliest end point position from the starting point position and the end point position of each TS stream;
the range between the latest start position and the earliest end position is taken as a preset range.
4. A live video flower screen diagnostic device, characterized in that the live video flower screen diagnostic device comprises:
the receiving module is used for receiving the video stream data packets at each embedded point, and each embedded point comprises: the method comprises the steps of burying a point A at an inflow network card of a central streaming media server, burying a point B at a local program broadcasting and measuring position of the central streaming media server, burying a point C at an outflow network card of the central streaming media server, burying a point D at an inflow network card of an edge streaming media server, burying a point E at a local program broadcasting and measuring position of the edge streaming media server, burying a point F at an outflow network card of the edge streaming media server and burying a point G at a local program broadcasting and measuring position of a broadcasting and measuring terminal;
the analysis module is used for analyzing TS streams in each video stream data packet to obtain a plurality of TS streams;
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 broadcast stream propagation, wherein X is a positive integer;
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 where the fault of the playing screen occurs;
the determining module is further configured to:
selecting a target TS stream which is not the most upstream from the TS streams;
extracting X bytes in a preset range of a target TS stream, wherein X is a positive integer;
according to the opposite direction of live stream propagation, sequentially matching the X bytes with other TS streams upstream of the target TS stream;
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 executing the step of extracting the X bytes in the 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 the buried point corresponding to the next upstream TS stream as the position where the fault of the playing screen occurs;
when the X bytes are matched with other TS streams upstream of the target TS stream, judging whether the target TS stream is the first selected target TS stream;
if yes, sequentially matching the X bytes with other TS streams downstream of the target TS stream according to the forward 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 where the fault of the playing screen occurs;
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 executing the step of extracting the X bytes in the preset range of the target TS stream when the range of the X bytes is not larger than the preset range, wherein X is a positive integer, and determining that the live stream has no fault when the range of the X bytes is larger than the preset range;
if not, expanding the value of X bytes, executing the step of extracting X bytes in the preset range of the target TS stream when the range of the X bytes is not larger than the preset range, wherein X is a positive integer, and executing the step of sequentially matching the X bytes with other TS streams downstream of the target TS stream according to the positive direction of live broadcast stream propagation when the range of the X bytes is larger than the preset range.
5. The live video diagnostics device according to claim 4, further comprising an extraction module for:
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 live stream propagation, wherein N is a positive integer.
6. A live-screen diagnostic device comprising a processor, a memory, and a live-screen diagnostic program stored on the memory and executable by the processor, wherein the live-screen diagnostic program, when executed by the processor, implements the steps of the live-screen diagnostic method of any of claims 1 to 3.
7. A readable storage medium, characterized in that the readable storage medium has stored thereon a live-floral screen diagnostic program, wherein the live-floral screen diagnostic program, when executed by a processor, implements the steps of the live-floral screen diagnostic method of any of claims 1 to 3.
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 CN114374855A (en) 2022-04-19
CN114374855B true 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 (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
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
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

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9106800B2 (en) * 2007-08-31 2015-08-11 At&T Intellectual Property I, L.P. System and method of monitoring video data packet delivery
CN102137282B (en) * 2010-12-15 2014-02-19 华为技术有限公司 Method, device, nodes and system for detecting faulted link
US20160099859A1 (en) * 2014-10-06 2016-04-07 Futurewei Technologies, Inc. Reverse Path Validation for Source Routed Networks
CN110418199B (en) * 2018-04-26 2023-03-03 视联动力信息技术股份有限公司 Information processing method and system based on video network
CN108737026B (en) * 2018-05-08 2020-07-03 深圳市心流科技有限公司 Data transmission method, device and computer readable storage medium
CN113300816B (en) * 2020-07-15 2022-04-12 阿里巴巴集团控股有限公司 Node positioning method, network transmission method, device and equipment

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
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
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
CN114374855A (en) 2022-04-19

Similar Documents

Publication Publication Date Title
US9848250B2 (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
US10531143B2 (en) Apparatus and method for media detection and replacement
EP2613527B1 (en) Transmission device and method, reception device and method, and transmission and reception system
US7720986B2 (en) Method and system for media adaption
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
US20160140122A1 (en) Relevancy improvement through targeting of information based on data gathered from a capture device associated with a client device
US20130318157A1 (en) Relevancy improvement through targeting of information based on data gathered from a networked device associated with a security sandbox of a client device
US8060373B2 (en) System and method of identifying contact information
WO2011112003A2 (en) Method and apparatus for providing broadcast content and system using the same
US10631068B2 (en) Content exposure attribution based on renderings of related content across multiple devices
WO2007118064A1 (en) Method and system for aggregating tv program information from different live tv feeds
CN101465857A (en) Method and equipment for monitoring network multimedia information
CN112367527A (en) Method, device and equipment for generating transport stream file and storage medium
CN107113325A (en) The system and method operated for selective delivery acceleration device
EP1833254A1 (en) Television broadcast viewing system and television broadcast viewing method
CN111866526B (en) Live broadcast service processing method and device
CN114374855B (en) Live broadcast screen diagnosis method, device, equipment and readable storage medium
WO2015009828A1 (en) Method and system for detecting live over the top streams
CN102149014A (en) Real-time audio and video information navigation method and system
CN108880925B (en) Method and system for monitoring flow
CN112350986B (en) Shaping method and system for audio and video network transmission fragmentation
KR101192900B1 (en) Method for determining complementary data relating to at least one content, method for transmitting said complementary data, and associated processing device and application server
CN111246239B (en) Method, system, apparatus, device and storage medium for testing live programs
CN108111880B (en) Obstacle removing method and obstacle removing system

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