CN105871802A - Method, device and system for monitoring transmission of streaming media file - Google Patents

Method, device and system for monitoring transmission of streaming media file Download PDF

Info

Publication number
CN105871802A
CN105871802A CN201510891324.3A CN201510891324A CN105871802A CN 105871802 A CN105871802 A CN 105871802A CN 201510891324 A CN201510891324 A CN 201510891324A CN 105871802 A CN105871802 A CN 105871802A
Authority
CN
China
Prior art keywords
streaming media
media file
monitoring data
client
data
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.)
Pending
Application number
CN201510891324.3A
Other languages
Chinese (zh)
Inventor
刘凤玉
魏立志
刘斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
LeTV Cloud Computing Co Ltd
Original Assignee
LeTV Cloud Computing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by LeTV Cloud Computing Co Ltd filed Critical LeTV Cloud Computing Co Ltd
Priority to CN201510891324.3A priority Critical patent/CN105871802A/en
Publication of CN105871802A publication Critical patent/CN105871802A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a method, device and system for monitoring transmission of a streaming media file, relates to the technical field of telecommunication and aims at solving the problem that the transmission process of the streaming media file cannot be monitored. The method provided by the invention comprises following steps of collecting monitoring data produced in the transmission process of the streaming media file, wherein the monitoring data is recorded in a log form and is used for reflecting the data transmission state of the streaming media file; and sending the monitoring data to a log center, thus enabling a control center to output the statistic monitoring data of the log center. The method, the device and the system are mainly applied to the process of monitoring transmission of the streaming media file.

Description

Method, device and system for monitoring transmission of streaming media file
Technical Field
The embodiment of the invention relates to the technical field of telecommunication, in particular to a method, a device and a system for monitoring transmission of a streaming media file.
Background
Streaming media refers to a media format played on a network by adopting a streaming transmission mode, and is characterized in that a file can be played while a file is transmitted, namely, a user continuously receives, watches or listens to the media while a media provider transmits the media on the network. The streaming media file is sent as a data packet through the streaming media server and transmitted to the network, and after a user decompresses the data through the decompression device, the streaming media file is displayed as before being sent.
The streaming media file does not download the whole file before playing, only stores the beginning part of the content into the memory, and the data stream of the streaming media file is transmitted at any time and played at any time, so that the streaming media file can be watched only after the start delay of a few seconds or tens of seconds without waiting for the whole file to be completely downloaded.
In the process of playing the streaming media file, due to the unstable network, part of the data may be lost, so that the streaming media file has defects in playing. At present, the prior art has no mechanism for monitoring the transmission process of the streaming media, and the playing quality of the streaming media file cannot be ensured.
Disclosure of Invention
The invention provides a method, a device and a system for monitoring transmission of a streaming media file, which can solve the problem that the transmission process of the streaming media file cannot be monitored.
In order to solve the above problem, in one aspect, the present invention provides a method for monitoring streaming media file transmission, where the method includes:
collecting monitoring data generated in the process of transmitting the streaming media file, wherein the monitoring data is recorded in a log form and is used for reflecting the data transmission state of the streaming media file;
and sending the monitoring data to a log center so that a control center outputs the monitoring data counted by the log center.
In another aspect, the present invention provides an apparatus for monitoring transmission of a streaming media file, the apparatus comprising:
the device comprises a collecting unit, a processing unit and a processing unit, wherein the collecting unit is used for collecting monitoring data generated in the process of transmitting the streaming media file, and the monitoring data is recorded in the form of a log and is used for reflecting the data transmission state of the streaming media file;
and the sending unit is used for sending the monitoring data collected by the collecting unit to a log center so that a control center can output the monitoring data counted by the log center.
In another aspect, the present invention provides a system for monitoring streaming media file transmission, which includes a client, a server, a log center and a control center;
the client is used for uploading the streaming media file;
the server side is used for collecting monitoring data of the transmission stream media file;
the log center is used for counting the collected monitoring data;
and the control center is used for outputting the monitoring data counted by the log center.
The method, the device and the system for monitoring the transmission of the streaming media file can collect monitoring data generated in the process of transmitting the streaming media file, and the monitoring data is recorded in a log form and reflects the data transmission state of the streaming media file. And sending the monitoring data to a log center, and outputting statistical monitoring data of the log center by a control center. Compared with the prior art, the method and the device can monitor the transmission of the streaming media file data in the transmission process of the streaming media file, and monitor and record the data transmission state of the streaming media file in real time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a flowchart of a first method for monitoring transmission of a streaming media file according to an embodiment of the present invention;
fig. 2 is a flowchart of a second method for monitoring transmission of a streaming media file according to an embodiment of the present invention;
fig. 3 is a flowchart of a third method for monitoring transmission of a streaming media file according to an embodiment of the present invention;
fig. 4 is a flowchart of a fourth method for monitoring transmission of a streaming media file according to an embodiment of the present invention;
fig. 5 is a block diagram illustrating an apparatus for monitoring transmission of a streaming media file according to an embodiment of the present invention;
FIG. 6 is a block diagram of another apparatus for monitoring transmission of a streaming media file according to an embodiment of the present invention;
fig. 7 is a block diagram of a system for monitoring transmission of a streaming media file according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an apparatus for monitoring transmission of a streaming media file according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to monitor a transmission process of a streaming media file, an embodiment of the present invention provides a method for monitoring transmission of a streaming media file, where as shown in fig. 1, the method includes:
101. and collecting monitoring data generated in the process of transmitting the streaming media file.
Streaming media refers to a mode of playing on the internet by adopting a streaming transmission mode. During streaming transmission, multimedia information such as sound, image or animation is transmitted in real time, a buffer area is firstly established on a computer at a user end, a section of data is downloaded in advance as a buffer before playing, and a user can watch the multimedia information only after the start delay of seconds or tens of seconds. While playing, the remainder of the file continues to be downloaded from the server in the background. The streaming media file refers to a file having a streaming media file format, and common extensions of the streaming media file format include asf, rm, ra, rp, swf, and the like.
In the transmission process of the streaming media file, the streaming media file needs to be split into data frames with identification information, so as to ensure that the streaming media file can be transmitted through a communication line. In this embodiment, the method for splitting the data frame is not limited, and the number of the data frames is not limited. And a data frame for recording file information in the form of binary codes. The data frame also includes position information, check information, format information of the streaming media file corresponding to the data frame, whether the data frame is key frame information, and the like. In this embodiment, the content of the data frame including other information contents besides the streaming media file information is not limited.
The process of streaming media file transmission is a process of continuously transmitting data frames. And monitoring the transmission process of the streaming media file, namely the transmission process of the data frame split by the streaming media. The monitoring data is generated in the process of streaming media file transmission and is generated by monitoring the information carried by the data frame. The monitoring data includes a client IP (internet protocol), a server IP, a stream ID (identification), a position of a data frame in a stream media file, whether the data frame is sent incorrectly, format information of the stream media file corresponding to the data frame, whether the data frame is a key frame, and the like, and information can be recorded in the forms of binary data, english character strings, chinese, and the like. In this embodiment, the information content of the monitoring data is not limited. In this embodiment, the data form of the monitoring data record is not limited.
And in the transmission process of the data frame, regularly collecting monitoring data and recording the monitoring data. The monitoring data is recorded in the form of log and is used for reflecting the data transmission state of the streaming media file. The monitoring data is used for monitoring the transmission of the streaming media file, and a user who uploads the streaming media file and a user who watches the streaming media file need to have the transmission of the streaming media file and need to monitor the transmission of the streaming media file. In this embodiment, the number of users associated with the transport stream media file is not limited.
102. And sending the monitoring data to a log center so that the control center outputs the monitoring data counted by the log center.
And sending the monitoring data information collected by the streaming media server to a log center. The streaming media file realizes the real-time property of transmission through the streaming media server. The streaming media server is divided into different types according to different transmission protocols adopted in the file transmission process. Illustratively, if the RTMP (real time messaging protocol) transmission protocol is used, the CRTMPSEVER server is used. If an HLS (http live streaming, streaming media based on hypertext link protocol) transport protocol is adopted, the NGINX server is used. The same transport protocol, including multiple types of servers. In this embodiment, the specific type of the server is not limited.
And the log center receives the monitoring data and counts the monitoring data. Selecting the monitoring data of the same client IP from the monitoring data, and analyzing the transmission condition of the streaming media file of the client; selecting the same server IP, and analyzing the streaming media file transmission condition of the server; the same streaming media file, i.e. the same stream ID, is selected, and whether the streaming media file is complete or not is analyzed. In this embodiment, the statistical method for the log center to count the monitoring data is not limited.
The control center outputs the monitoring data counted by the log center so that the user can check the monitoring data information. The data output mode of the control center may be a graph, a data table, or text information, and in this embodiment, the data output mode is not limited.
The method for monitoring the transmission of the streaming media file provided by the embodiment of the invention can collect the monitoring data generated in the process of transmitting the streaming media file, and the monitoring data is recorded in a log form and reflects the data transmission state of the streaming media file. And sending the monitoring data to a log center, and outputting statistical monitoring data of the log center by a control center. Compared with the prior art, the embodiment of the invention can monitor the transmission of the streaming media file data in the transmission process of the streaming media file, and monitor and record the data transmission state of the streaming media file in real time.
Further, as a refinement of the method shown in fig. 1, another method for monitoring transmission of a streaming media file is further provided in the embodiments of the present invention, as shown in fig. 2, where the method includes:
201. and collecting monitoring data generated in the uploading process of the streaming media file.
Streaming media, which is "while" streaming media files are uploaded by a streaming media file provider, viewers can view the synchronized streaming media files. The uploading streaming media file is a part of the transmission process of the streaming media file, is a source of the streaming media file, and needs to acquire monitoring data generated in the uploading process of the streaming media file.
When the streaming media file is uploaded on the client, monitoring data of the client are collected, wherein the monitoring data of the client comprise uploading rate, client internet protocol address IP, server IP, stream ID and frame loss times. The upload rate refers to the speed of the streaming media file per unit time in the upload process, and the rate is usually KB/sec or KB/min. In this embodiment, the unit of the upload rate is not limited. The client IP and the server IP refer to address information of the client or the server, and may search a corresponding actual geographic location corresponding to the address information. Stream ID, which refers to the encoding of a streaming media file, represents a streaming media file. The encoding of the stream ID may be written according to a certain encoding rule or may be randomly generated. The stream ID may be encoded by numbers, by letters, or by both numbers and letters. In this embodiment, the encoding method of the stream ID is not limited, and the encoding composition of the stream ID is not limited.
In the process of uploading the streaming media file, the streaming media file is divided into a plurality of data frames, and the data frames are transmitted one by one. Due to the influence of network conditions, transmission paths, server performance, etc., a frame loss phenomenon may occur during the transmission of data frames. According to the identification information contained in the data frame, it is possible to determine whether there is a frame loss, where the frame loss occurs, and how many frames are lost for the whole streaming media file.
In the process of uploading the streaming media file, the data is regularly monitored and sent to the server through the configuration file of the streaming media platform for collecting the uploading information. And recording the uploading rate, the client Internet protocol address IP, the server IP, the stream ID and the frame loss times in the monitoring data.
And when receiving the streaming media file uploaded by the client, judging whether a key frame exists. The key frame is the key information in the multimedia file. The key frame is determined when the streaming media file is split, and may be a key part in the streaming media file, or carry key information of the streaming media file, or define a key frame at intervals of a certain number of data frames. If there is no key frame in a certain time interval, it indicates that the key frame is lost in the transmission process of the streaming media file, the streaming media file uploaded by the client is incomplete, and there is a playing defect. Illustratively, the streaming media file is a video file, the video is a teaching video, and a video frame is a writing on a blackboard written in the teaching process. The picture is divided into two data frames, one is background information of the picture, and the other is text information of the picture, and obviously the text information is key content of the picture, so the text information is defined as a key frame. In this embodiment, the determination method of the key frame is not limited.
Monitoring data generated in the uploading process of the streaming media file is collected and recorded in a log mode so as to further process the monitoring data.
202. And sending the monitoring data to a log center so that the control center outputs the monitoring data counted by the log center.
The control center can output the monitoring data counted by the log center and send instructions to the server.
In the process of uploading the streaming media file, if the frame loss times are greater than a first preset value, a ground current breaking instruction sent by a control center is received; stopping receiving the streaming media file uploaded by the client; and sending the cutoff reason to the client. The first preset value is the maximum number of frame dropping allowed, and if the number of frame dropping exceeds the preset value, information of the streaming media file is lost, and smooth playing of the streaming media file cannot be guaranteed. In this embodiment, the size of the first preset value is not limited. If the streaming media file cannot be played smoothly, and the provider of the streaming media file continues to upload, the meaning of uploading the streaming media file is lost, and the waste of network resources is caused. Therefore, the control center sends a cut-off instruction to the streaming media server, and the streaming media server stops receiving the streaming media file uploaded by the client of the streaming media file provider and sends the cut-off reason to the client of the streaming media file provider.
In the process of uploading the fluid file, if the interval duration of receiving the key frame is greater than a second preset value, receiving a flow cutoff instruction sent by a control center; stopping receiving the streaming media file uploaded by the client; and sending the cutoff reason to the client. The key frames contain key information in the streaming media file, if the key frames are missing, the playing quality is directly reduced, and if no key frame exists within a time interval of a second preset value, the playing defect of the streaming media file may be caused. The playback defect includes a deletion of a playback frame of a playback file in a partial time period, a deletion of a partial audio, and the like. The second preset value is a fixed duration, and may also be dynamically adjusted, in this embodiment, the size of the second preset value is not limited, and the setting method of the second preset value is not limited.
And the control center is used for displaying the monitoring data and controlling the streaming media server to realize the monitoring of the transmission of the streaming media file.
Further, as a refinement of the method shown in fig. 1, another method for monitoring transmission of a streaming media file is further provided in the embodiments of the present invention, as shown in fig. 3, where the method includes:
301. monitoring data generated in the process of distributing the streaming media file by the real-time message transfer protocol RTMP streaming media server is collected.
Streaming media, which is "while" streaming media files are uploaded by a streaming media file provider, viewers can view the synchronized streaming media files. The streaming media server distributes the streaming media file, and the viewer can watch the synchronized streaming media file. If the streaming media file is distributed through the RTMP streaming media server, monitoring data of the RTMP streaming media server of a real-time message transmission protocol needs to be collected, wherein the monitoring data of the RTMP streaming media server comprises a client IP, a server IP, a stream ID and a frame loss identification bit. The client IP, the server IP, and the stream ID are the same as those described in step 201, and are not described again here.
And a frame loss identification bit for marking whether to lose frames in the distribution process of the streaming media file. If the data volume in the buffer register of the RTMP streaming media server is larger than a preset threshold value, discarding the data frame in the buffer register according to a preset discarding strategy; and recording a frame loss identifier at a frame loss identifier bit, wherein the frame loss identifier indicates that the RTMP streaming media server discards data frames in the process of distributing the streaming media file. Such frame loss is different from the frame loss in step 201, and the frame loss in this step is an active frame loss. The server actively discards the data frames under certain defined conditions.
In the process of transmitting a streaming media file, multiple servers are generally required to transmit the streaming media file from a provider of the streaming media file to a viewer of the streaming media file, and at least one server is required to transmit the streaming media file. Therefore, the active frame dropping mode exists between the server and the client and also between the server and the client.
In the process of distributing the streaming media file, the data frame is firstly stored in a buffer register of the RTMP streaming media server and then is sent to a receiver of the data frame of the next streaming media file, and if the network transmission speed of the next receiver is lower, the data volume in the buffer register is continuously increased. And if the data volume in the buffer register is larger than a preset threshold value, discarding the data frame in the buffer register according to a preset discarding strategy. The preset threshold is preset, and in this embodiment, the size of the preset threshold is not limited. For the discard policy, all data frames in the buffer register may be discarded, or part of data may be discarded.
After the data frame is discarded, the frame loss identification is recorded in the frame loss identification bit, which indicates that the data frame is discarded.
And collecting monitoring data of the RTMP streaming media server, and recording the monitoring data in a log form so as to further process the monitoring data.
302. And sending the monitoring data to a log center so that the control center outputs the monitoring data counted by the log center.
And the control center is used for displaying the monitoring data to realize the monitoring of the transmission of the streaming media file.
Further, as a refinement of the method shown in fig. 1, another method for monitoring transmission of a streaming media file is further provided in the embodiments of the present invention, as shown in fig. 4, where the method includes:
401. monitoring data generated in the process of distributing streaming media files by a streaming media live broadcast HLS streaming media server based on a hypertext link protocol are collected.
If the HLS streaming media server is adopted to distribute streaming media files, monitoring data of the HLS streaming media server based on hypertext link protocol live broadcast of streaming media are collected, and distributed data information of the HLS streaming media server comprises a client IP, a server IP, a stream ID, a bandwidth, slow times and fast times. The client IP, the server IP, and the stream ID are the same as those described in step 201, and are not described again here. Bandwidth refers to the "highest data rate" that can be passed from one point in the network to another in a unit of time, i.e., how many bits per second. The bandwidth is used to identify the data transmission capability of the signal transmission, to identify the number of links passing through per unit time, and to identify the display capability of the display.
In the distribution process of the HLS streaming media file, the streaming media file is divided into a plurality of streaming media sub-blocks. The streaming media file is played from the streaming media file by taking a fixed playing time length as a segmentation standard, the fixed playing time length is divided into a streaming media block, and the streaming media file is sequentially divided into a plurality of streaming media sub-blocks according to the playing time sequence of the streaming media file. In this embodiment, the fixed playing time of the slicing criterion is not limited. When the streaming media file is transmitted, if the downloading time of a single streaming media sub-block is longer than a first preset time, marking the downloading as slow speed, and recording the slow speed times; if the downloading time length of the single streaming media sub-block is less than a second preset time length, marking the downloading time as fast, and recording the fast times.
Monitoring data generated in the process of distributing the streaming media file by the HLS streaming media server is collected and recorded in a log mode so as to further process the monitoring data.
402. And sending the monitoring data to a log center so that the control center outputs the monitoring data counted by the log center.
And the control center is used for displaying the monitoring data to realize the monitoring of the transmission of the streaming media file.
Further, as an implementation of the method shown in any one of fig. 1 to 4, another embodiment of the present invention further provides an apparatus for monitoring transmission of a streaming media file. The present apparatus embodiment corresponds to the foregoing method embodiment, and can implement all the contents in the foregoing method embodiment. For convenience of reading, the present apparatus embodiment only performs a summary description on the contents in the foregoing method embodiments, and details in the method embodiments are not repeated. As shown in fig. 5, the apparatus includes: an acquisition unit 51 and a transmission unit 52. Wherein,
the acquisition unit 51 is used for acquiring monitoring data generated in the process of transmitting the streaming media file, and the monitoring data is recorded in a log form and used for reflecting the data transmission state of the streaming media file;
and a sending unit 52, configured to send the monitoring data collected by the collecting unit 51 to the log center, so that the control center outputs the monitoring data counted by the log center.
Further, as shown in fig. 6, the collecting unit 51 includes:
and the uploading acquisition module 511 is configured to acquire monitoring data generated in the uploading process of the streaming media file.
Further, as shown in fig. 6, the upload collecting module 511 is configured to collect monitoring data of the client when the client uploads the streaming media file, where the monitoring data of the client includes an upload rate, a client internet protocol address IP, a server IP, a stream ID, and frame dropping times.
Further, as shown in fig. 6, the apparatus further includes:
the first receiving unit 53 is configured to receive a ground block instruction sent by the control center if the number of frame loss times collected by the upload collection module 511 is greater than a first preset value;
a first stopping unit 54, configured to stop receiving the streaming media file uploaded by the client according to the flow-cut instruction received by the first receiving unit 53;
a sending unit 52, configured to send the interruption reason that the first stopping unit 54 stops receiving to the client.
Further, as shown in fig. 6, the upload collection module 511 is configured to determine whether there is a key frame when receiving the streaming media file uploaded by the client.
Further, as shown in fig. 6, the apparatus further includes:
the second receiving unit 55 is configured to receive a current breaking instruction sent by the control center if the interval duration for receiving the key frames received by the upload acquisition module 511 is greater than a second preset value;
a second stopping unit 56, configured to stop receiving the streaming media file uploaded by the client according to the flow-cut instruction received by the second receiving unit 55;
a sending unit 52, configured to send the interruption reason that the second stopping unit 56 stops receiving to the client.
Further, as shown in fig. 6, the collecting unit 51 includes:
and the distribution acquisition module 512 is used for acquiring monitoring data generated in the distribution process of the streaming media file.
Further, as shown in fig. 6, the distribution and collection module 512 is configured to collect monitoring data of an RTMP streaming server, where the monitoring data of the RTMP streaming server includes a client IP, a server IP, a stream ID, and a frame loss flag.
Further, as shown in fig. 6, the distribution collection module 512 includes:
a discarding submodule 5121, configured to discard a data frame in a buffer register according to a preset discarding strategy if the data amount in the buffer register of the RTMP streaming media server is greater than a preset threshold;
the first recording sub-module 5122 is configured to record a frame loss identifier at the frame loss identifier if the discarding sub-module 5121 discards a data frame, where the frame loss identifier indicates that the RTMP streaming media server discards the data frame in the process of distributing the streaming media file.
Further, as shown in fig. 6, the distribution acquisition module 512 is configured to acquire monitoring data of a http live streaming HLS streaming server, where the distribution data information of the HLS streaming server includes a client IP, a server IP, a stream ID, a bandwidth, slow times, and fast times.
Further, as shown in fig. 6, the distribution collection module 512 includes:
the splitting submodule 5123 is configured to split the streaming media file into a plurality of streaming media sub-blocks in the process of distributing the streaming media file by the HLS streaming media server;
the second recording submodule 5124 is configured to mark the download time as slow speed and record the slow speed times if the download time of a single streaming media subblock segmented by the segmentation submodule 5123 is longer than a first preset time;
the second recording sub-module 5124 is configured to mark the downloading time as fast and record the fast times if the downloading time of the single streaming media sub-block split by the splitting sub-module 5123 is shorter than a second preset time.
Further, as an implementation of the method shown in any one of fig. 1 to 4, another embodiment of the present invention further provides a system for monitoring transmission of a streaming media file. The system embodiment corresponds to the method embodiment, and can realize all the contents in the method embodiment. For convenience of reading, the embodiments of the present system only schematically describe the contents of the foregoing method embodiments, and details of the method embodiments are not described in detail. As shown in fig. 7, the system includes: client 71, server 72, log center 73 and control center 74. Specifically, the method comprises the following steps:
the client 71 is used for uploading streaming media files;
the server 72 is configured to collect monitoring data of the streaming media file uploaded by the transmission client 71;
the log center 73 is used for counting the monitoring data collected by the server 72;
and the control center 74 is used for outputting the monitoring data counted by the log center 73.
The device and the system for monitoring the transmission of the streaming media file, provided by the embodiment of the invention, can collect monitoring data generated in the process of transmitting the streaming media file, and the monitoring data is recorded in a log mode and reflects the data transmission state of the streaming media file. And sending the monitoring data to a log center, and outputting statistical monitoring data of the log center by a control center. Compared with the prior art, the embodiment of the invention can monitor the transmission of the streaming media file data in the transmission process of the streaming media file, and monitor and record the data transmission state of the streaming media file in real time.
It should be noted that, for the above apparatus for monitoring streaming media file transmission, the functions of each unit module used in the embodiment of the present invention may be implemented by a hardware processor (hardware processor).
For example, as shown in fig. 8, fig. 8 is a schematic structural diagram of an apparatus for monitoring streaming media file transmission according to an embodiment of the present invention, where the apparatus for monitoring streaming media file transmission may include: a processor (processor)81, a communication Interface (Communications Interface)82, a memory (memory)83 and a bus 84, wherein the processor 81, the communication Interface 82 and the memory 83 complete communication with each other through the bus 84. The communication interface 82 may be used for information transfer between the server and the client. Processor 81 may call logic instructions in memory 83 to perform the following method: collecting monitoring data generated in the process of transmitting the streaming media file, wherein the monitoring data is recorded in a log form and is used for reflecting the data transmission state of the streaming media file; and sending the monitoring data to a log center so that a control center outputs the monitoring data counted by the log center.
In addition, the logic instructions in the memory 83 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. 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 and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (11)

1. A method for monitoring streaming media file transfers, the method comprising:
collecting monitoring data generated in the process of transmitting the streaming media file, wherein the monitoring data is recorded in a log form and is used for reflecting the data transmission state of the streaming media file;
and sending the monitoring data to a log center so that a control center outputs the monitoring data counted by the log center.
2. The method of claim 1, wherein collecting the monitoring data generated during the transmission of the streaming media file comprises:
collecting monitoring data generated in the uploading process of the streaming media file, wherein the monitoring data comprises frame loss times;
if the frame dropping times are larger than a first preset value, receiving a current-breaking instruction sent by a control center;
stopping receiving the streaming media file uploaded by the client;
and sending the cutoff reason to the client.
3. The method of claim 1, wherein collecting the monitoring data generated during the transmission of the streaming media file comprises:
monitoring data generated in the process of uploading the streaming media file is collected, and whether a key frame exists or not is judged when the streaming media file uploaded by the client is received;
if the interval duration of receiving the key frames is greater than a second preset value, receiving a current cutoff instruction sent by a control center;
stopping receiving the streaming media file uploaded by the client;
and sending the cutoff reason to the client.
4. The method of claim 1, wherein collecting the monitoring data generated during the transmission of the streaming media file comprises:
collecting monitoring data of a real-time message transfer protocol (RTMP) streaming media server, wherein the monitoring data of the RTMP streaming media server comprises a frame loss identification bit;
if the data volume in the buffer register of the RTMP streaming media server is larger than a preset threshold value, discarding the data frame in the buffer register according to a preset discarding strategy;
and recording a frame loss identifier at a frame loss identifier bit, wherein the frame loss identifier indicates that the RTMP streaming media server discards data frames in the process of distributing the streaming media file.
5. The method of claim 1, wherein collecting the monitoring data generated during the transmission of the streaming media file comprises:
collecting monitoring data of a streaming media live broadcast HLS streaming media server based on a hypertext link protocol, wherein distribution data information of the HLS streaming media server comprises slow times and fast times;
in the process of distributing the streaming media file by the HLS streaming media server, dividing the streaming media file into a plurality of streaming media sub-blocks;
if the downloading time length of a single streaming media sub-block is longer than a first preset time length, marking the downloading time as slow speed, and recording slow speed times;
if the downloading time length of the single streaming media sub-block is less than a second preset time length, marking the downloading time as fast, and recording the fast times.
6. An apparatus for monitoring transmission of a streaming media file, the apparatus comprising:
the device comprises a collecting unit, a processing unit and a processing unit, wherein the collecting unit is used for collecting monitoring data generated in the process of transmitting the streaming media file, and the monitoring data is recorded in the form of a log and is used for reflecting the data transmission state of the streaming media file;
and the sending unit is used for sending the monitoring data collected by the collecting unit to a log center so that a control center can output the monitoring data counted by the log center.
7. The device of claim 6, wherein the collecting unit is configured to collect monitoring data uploaded by a client, and the monitoring data of the client includes a frame loss time; and if the frame dropping times are greater than the first preset value, receiving a ground flow breaking instruction sent by the control center, stopping receiving the streaming media file uploaded by the client, and sending a flow breaking reason for stopping receiving to the client.
8. The device according to claim 6, wherein the collecting unit is configured to collect monitoring data uploaded by the client, determine whether there is a key frame, receive a cut-off instruction sent by the control center if an interval duration of the received key frame is greater than a second preset value, stop receiving the streaming media file uploaded by the client, and send the cut-off reason for stopping receiving to the client.
9. The apparatus of claim 6, wherein the collecting unit is configured to collect monitoring data of an RTMP streaming server, where the monitoring data of the RTMP streaming server includes a frame loss flag; if the data volume in the buffer register of the RTMP streaming media server is larger than a preset threshold value, discarding the data frame in the buffer register according to a preset discarding strategy, and recording a frame discarding identifier at a frame discarding identifier bit, wherein the frame discarding identifier indicates that the RTMP streaming media server discards the data frame in the process of distributing the streaming media file.
10. The device according to claim 6, wherein the sub-collection unit is configured to collect monitoring data of a http-based streaming media live broadcast HLS streaming media server, the distribution data information of the HLS streaming media server includes slow times and fast times, during distribution of a streaming media file by the HLS streaming media server, the streaming media file is divided into a plurality of streaming media sub-blocks, and if a download duration of a single split streaming media sub-block is greater than a first preset duration, the sub-collection unit marks the download as slow, and records the slow times; if the downloading time length of the single streaming media sub-block is less than a second preset time length, marking the downloading time as fast, and recording the fast times.
11. A system for monitoring the transmission of streaming media files, the system comprising a client, a log center, a control center and the apparatus according to any one of claims 6 to 10, wherein:
the client is used for uploading the streaming media file;
the log center is used for counting the monitoring data collected by the server side;
and the control center is used for outputting the monitoring data counted by the log center.
CN201510891324.3A 2015-12-07 2015-12-07 Method, device and system for monitoring transmission of streaming media file Pending CN105871802A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510891324.3A CN105871802A (en) 2015-12-07 2015-12-07 Method, device and system for monitoring transmission of streaming media file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510891324.3A CN105871802A (en) 2015-12-07 2015-12-07 Method, device and system for monitoring transmission of streaming media file

Publications (1)

Publication Number Publication Date
CN105871802A true CN105871802A (en) 2016-08-17

Family

ID=56624096

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510891324.3A Pending CN105871802A (en) 2015-12-07 2015-12-07 Method, device and system for monitoring transmission of streaming media file

Country Status (1)

Country Link
CN (1) CN105871802A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109165154A (en) * 2018-09-10 2019-01-08 广东小天才科技有限公司 Display interface fluency statistical method and system, mobile terminal and server
CN109640053A (en) * 2018-12-27 2019-04-16 四川九洲电器集团有限责任公司 A kind of acquisition multi-protocols stream media equipment exception real-time streams method
CN114679300A (en) * 2022-02-28 2022-06-28 福思(杭州)智能科技有限公司 Data verification method and device, electronic equipment and storage medium
WO2023036163A1 (en) * 2021-09-10 2023-03-16 中兴通讯股份有限公司 Video packet processing method and apparatus, computer device, and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1996935A (en) * 2006-01-04 2007-07-11 华为技术有限公司 A dynamic adjusting method for data packets in the buffer at the streaming receiving end
CN101827280A (en) * 2010-02-04 2010-09-08 深圳市同洲电子股份有限公司 Video output quality detection method and device
CN102694743A (en) * 2011-09-01 2012-09-26 新奥特(北京)视频技术有限公司 Method and system for transmitting multimedia file in instant messaging system
US20140355410A1 (en) * 2013-06-04 2014-12-04 Tencent Technology (Shenzhen) Company Limited Systems and Methods for Data Transmission
CN104735473A (en) * 2015-03-05 2015-06-24 天脉聚源(北京)科技有限公司 Video stream playing detection method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1996935A (en) * 2006-01-04 2007-07-11 华为技术有限公司 A dynamic adjusting method for data packets in the buffer at the streaming receiving end
CN101827280A (en) * 2010-02-04 2010-09-08 深圳市同洲电子股份有限公司 Video output quality detection method and device
CN102694743A (en) * 2011-09-01 2012-09-26 新奥特(北京)视频技术有限公司 Method and system for transmitting multimedia file in instant messaging system
US20140355410A1 (en) * 2013-06-04 2014-12-04 Tencent Technology (Shenzhen) Company Limited Systems and Methods for Data Transmission
CN104735473A (en) * 2015-03-05 2015-06-24 天脉聚源(北京)科技有限公司 Video stream playing detection method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109165154A (en) * 2018-09-10 2019-01-08 广东小天才科技有限公司 Display interface fluency statistical method and system, mobile terminal and server
CN109640053A (en) * 2018-12-27 2019-04-16 四川九洲电器集团有限责任公司 A kind of acquisition multi-protocols stream media equipment exception real-time streams method
WO2023036163A1 (en) * 2021-09-10 2023-03-16 中兴通讯股份有限公司 Video packet processing method and apparatus, computer device, and computer readable storage medium
CN114679300A (en) * 2022-02-28 2022-06-28 福思(杭州)智能科技有限公司 Data verification method and device, electronic equipment and storage medium
CN114679300B (en) * 2022-02-28 2023-10-13 福思(杭州)智能科技有限公司 Data verification method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104683884B (en) A kind of stream media live broadcasting method and system
CN107147919B (en) Live broadcast quick starting method and system
CN107071529B (en) A kind of HLS video broadcasting methods, terminal and server
US10326811B2 (en) Communication apparatus, communication data generation method, and communication data processing method
US9521179B2 (en) Validation of live media stream based on predetermined standards
CN105282627B (en) A kind of method and server obtaining live video slice
CN109495505B (en) Streaming media protocol conversion method, device, system and computer readable medium
US11284135B2 (en) Communication apparatus, communication data generation method, and communication data processing method
WO2019062050A1 (en) Live broadcast control method, apparatus, and electronic device
CN105871802A (en) Method, device and system for monitoring transmission of streaming media file
CN107612912B (en) Method and device for setting playing parameters
CN102196001A (en) Movie file downloading device and method
EP1908259B1 (en) Apparatus and method for estimating fill factor of client input buffers of a real time content distribution
CN113411218B (en) Method and device for evaluating instant messaging quality and electronic equipment
US10924524B2 (en) Communication devices, communication data generation method, and communication data processing method
CN106789976A (en) The player method of media file, service end, client and system
KR101472032B1 (en) Method of treating representation switching in HTTP streaming
CN112073543A (en) Cloud video recording method and system and readable storage medium
CN111866526A (en) Live broadcast service processing method and device
CN111327964B (en) Method and device for positioning video playing pause
CA2934905C (en) Communication apparatus, communication data generation method, and communication data processing method
CN113242437A (en) RTSP (real time streaming protocol) video plug-in-free playing method, system, device and storage medium
CN115514684B (en) Audio jamming evaluation method and device
WO2016090912A1 (en) Method, device, terminal and system for generating and playing live video
CN113852865A (en) Code rate adjusting method, device, equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160817