[go: up one dir, main page]

CN106803997B - A system and method for detecting client playback status in audio and video live broadcast - Google Patents

A system and method for detecting client playback status in audio and video live broadcast Download PDF

Info

Publication number
CN106803997B
CN106803997B CN201710150872.XA CN201710150872A CN106803997B CN 106803997 B CN106803997 B CN 106803997B CN 201710150872 A CN201710150872 A CN 201710150872A CN 106803997 B CN106803997 B CN 106803997B
Authority
CN
China
Prior art keywords
client
server
data
detection information
audio
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
CN201710150872.XA
Other languages
Chinese (zh)
Other versions
CN106803997A (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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201710150872.XA priority Critical patent/CN106803997B/en
Publication of CN106803997A publication Critical patent/CN106803997A/en
Priority to PCT/CN2017/102283 priority patent/WO2018166162A1/en
Application granted granted Critical
Publication of CN106803997B publication Critical patent/CN106803997B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • 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/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25808Management of client data
    • 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/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/4424Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used

Landscapes

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

Abstract

本发明涉及一种音视频直播中检测客户端播放状态的系统及方法,其中,系统包括:采集端、服务器和客户端,采集端与服务器连接,服务器与客户端连接;采集端能够在采集的音视频数据中加入状态检测信息的标记;服务器检测到音视频数据中的状态检测信息的标记,则将此时的图像进行解码;客户端能够从服务器获取音视频数据并播放;客户端在播放音视频数据时,如果检测到状态检测信息的标记,则实时记录该状态检测信息的标记,同时进行播放区域截图;如果对应于同一状态检测信息的标记的解码后的图像与发送的截图数据不一致或在限定时间内服务器没有接收到客户端发送的截图数据,则判定客户端播放状态异常。本发明能够准确检测直播客户端当前的状态。

The present invention relates to a system and method for detecting the playback state of a client in live audio and video broadcasting, wherein the system includes: a collection end, a server and a client, the collection end is connected to the server, and the server is connected to the client; Add the status detection information mark to the audio and video data; the server detects the status detection information mark in the audio and video data, and then decodes the image at this time; the client can obtain the audio and video data from the server and play it; the client is playing For audio and video data, if the mark of the state detection information is detected, the mark of the state detection information is recorded in real time, and a screenshot of the playback area is taken at the same time; if the decoded image corresponding to the mark of the same state detection information is inconsistent with the sent screenshot data Or if the server does not receive the screenshot data sent by the client within the limited time, it is determined that the playback status of the client is abnormal. The invention can accurately detect the current state of the live broadcast client.

Description

一种音视频直播中检测客户端播放状态的系统及方法A system and method for detecting client playback status in audio and video live broadcast

技术领域technical field

本发明属于网络直播技术领域,具体涉及一种音视频直播中检测客户端播放状态的系统及方法。The invention belongs to the technical field of network live broadcasting, and in particular relates to a system and method for detecting the playback state of a client in audio and video live broadcasting.

背景技术Background technique

直播,作为一种实时展示方式,受到越来越多的人,特别是年轻人的追捧。直播分为文字图片直播和视频直播,传统电视台多以视频直播为主,比如新闻类的《新闻联播》、演艺类的《春节联欢晚会》等。在网络时代,多以图文直播为主,比如直播体育赛事、新闻等。在移动互联网时代,文字、图片、视频皆可进行直播,通过网络,参与者既可以作为发起直播的人,也可以作为观看或收听直播的人。直播状态是否正常,对于发起直播的人和观看或收听直播的人来说,都是至关重要的。Live broadcast, as a way of real-time display, is sought after by more and more people, especially young people. Live broadcasts are divided into text and picture live broadcasts and video live broadcasts. Traditional TV stations mostly focus on video live broadcasts, such as "News Network" for news and "Spring Festival Gala" for performing arts. In the Internet age, live broadcasts with graphics and texts are the main content, such as live broadcasts of sports events and news. In the mobile Internet era, text, pictures, and videos can all be broadcast live. Through the Internet, participants can be the person who initiates the live broadcast, or the person who watches or listens to the live broadcast. Whether the live broadcast status is normal is crucial for both the person who initiates the live broadcast and the person who watches or listens to the live broadcast.

目前的音视频直播状态检测只是通过数据是否到达、信令是否走通来判断是否直播成功。但这种音视频直播状态检测技术对于发起直播的人来说,他们并不知道音视频直播的实际运作情况,因此这种直播状态检测技术并不是很精确。The current audio and video live broadcast status detection only judges whether the live broadcast is successful by whether the data arrives and the signaling is cleared. However, for those who initiate the live broadcast, they do not know the actual operation of the audio and video live broadcast, so this live broadcast status detection technology is not very accurate.

发明内容Contents of the invention

为了解决上述的客户端直播状态检测不精确的技术问题,本发明实施例提出了一种音视频直播中检测客户端播放状态的系统及方法。In order to solve the above-mentioned technical problem of inaccurate detection of the live broadcast status of the client, the embodiment of the present invention proposes a system and method for detecting the playback status of the client during audio and video live broadcast.

一种音视频直播中检测客户端播放状态的系统,包括:采集端、服务器和客户端,其中,采集端与服务器连接,服务器与客户端连接;A system for detecting the playback state of a client in an audio and video live broadcast, comprising: a collection terminal, a server and a client, wherein the collection terminal is connected to the server, and the server is connected to the client;

采集端在采集的音视频数据中加入状态检测信息的标记,并将加入了状态检测信息标记的音视频数据上传到服务器;The acquisition end adds the status detection information mark to the collected audio and video data, and uploads the audio and video data with the status detection information mark to the server;

服务器检测接收到的音视频数据,如果检测到状态检测信息的标记,则将此时的图像进行解码;The server detects the received audio and video data, and if the flag of the state detection information is detected, the image at this time is decoded;

客户端从服务器获取音视频数据并播放;客户端在播放音视频数据时,如果检测到状态检测信息的标记,则实时记录该状态检测信息的标记,同时进行播放区域截图,并将截图数据和状态检测信息的标记数据一起实时发送到服务器;The client obtains the audio and video data from the server and plays them; when the client is playing the audio and video data, if it detects the mark of the state detection information, it will record the mark of the state detection information in real time, and take a screenshot of the playback area at the same time, and save the screenshot data and The marked data of the status detection information is sent to the server in real time;

服务器比较对应于同一状态检测信息的标记的解码后的图像与发送的截图数据是否一致,如果不一致或在限定时间内服务器没有接收到客户端发送的截图数据和状态检测信息的标记数据,则判定客户端播放状态异常。The server compares whether the decoded image corresponding to the tag of the same state detection information is consistent with the sent screenshot data, and if it is inconsistent or the server does not receive the screenshot data and the tag data of the state detection information sent by the client within a limited time, then judge The playback status of the client is abnormal.

进一步地,所述客户端将截图数据和状态检测信息的标记数据一起实时发送到服务器时,还连同客户端的身份标识信息一起发送。Further, when the client sends the screenshot data and the tag data of the state detection information to the server in real time, it also sends the client's identity information together.

进一步地,加入状态检测信息的标记的帧为关键帧。Further, the marked frame added with state detection information is a key frame.

进一步地,状态检测信息的标记为时间戳和/或弹幕。Further, the mark of the state detection information is a time stamp and/or a barrage.

进一步地,在判定客户端播放状态异常时,服务器向发起音视频直播的用户反馈该客户端播放状态异常,或向服务器管理员反馈播放状态异常的客户端的身份标识信息。Further, when it is determined that the playback status of the client is abnormal, the server feeds back the abnormal playback status of the client to the user who initiates the audio and video live broadcast, or feeds back the identity information of the client whose playback status is abnormal to the server administrator.

一种音视频直播中检测客户端播放状态的方法,该方法包括:A method for detecting the playback state of a client in an audio and video live broadcast, the method comprising:

采集步骤:采集端采集音视频数据;Acquisition step: the acquisition terminal collects audio and video data;

加标记步骤:采集端定时在采集到的音视频数据中加入状态检测信息的标记;Marking step: the acquisition terminal regularly adds a mark of status detection information to the collected audio and video data;

上传步骤:经过加标记步骤后,采集端将加入了状态检测信息的标记的音视频数据上传到服务器;Uploading step: after the marking step, the acquisition end uploads the marked audio and video data with status detection information to the server;

第一检测步骤:服务器检测接收到的音视频数据,如果服务器检测到状态检测信息的标记,则将此时的图像进行解码;The first detection step: the server detects the received audio and video data, if the server detects the mark of the state detection information, the image at this time is decoded;

第二检测步骤:客户端从服务器获取音视频数据,客户端在播放音视频数据时,如果检测到状态检测信息的标记,则实时记录该状态检测信息的标记,同时进行播放区域截图,并将截图数据和状态检测信息的标记数据一起实时发送到服务器;The second detection step: the client obtains the audio and video data from the server. When the client is playing the audio and video data, if it detects the mark of the state detection information, it will record the mark of the state detection information in real time, and take a screenshot of the playback area at the same time. The screenshot data and the marked data of the status detection information are sent to the server in real time;

判断步骤:服务器接收客户端发送的截图数据和状态检测信息的标记数据,并比较对应于同一状态检测信息的标记的解码后的图像与发送的截图数据是否一致,如果不一致或在限定时间内服务器没有接收到客户端发送的截图数据和状态检测信息的标记数据,则判定客户端播放状态异常。Judgment step: the server receives the screenshot data sent by the client and the tag data of the state detection information, and compares whether the decoded image corresponding to the tag of the same state detection information is consistent with the sent screenshot data, if not consistent or within a limited time, the server If the screenshot data sent by the client and the tag data of the state detection information are not received, it is determined that the playback state of the client is abnormal.

进一步地,在第二检测步骤中,所述客户端将截图数据和状态检测信息的标记数据一起实时发送到服务器时,还连同客户端的身份标识信息一起发送。Further, in the second detection step, when the client sends the screenshot data and the tag data of the state detection information to the server in real time, it also sends the client's identity information together.

进一步地,加入状态检测信息的标记的帧为关键帧。Further, the marked frame added with state detection information is a key frame.

进一步地,状态检测信息的标记为时间戳和/或弹幕。Further, the mark of the state detection information is a time stamp and/or a barrage.

进一步地,在判断步骤中,当判定客户端播放状态异常时,服务器向发起音视频直播的用户反馈该客户端播放状态异常,或向服务器管理员反馈播放状态异常的客户端的身份标识信息。Further, in the judging step, when it is determined that the playback status of the client is abnormal, the server feeds back the abnormal playback status of the client to the user who initiated the audio and video live broadcast, or feeds back the identity information of the client whose playback status is abnormal to the server administrator.

本发明实施例的有益效果:本发明实施例提出的音视频直播中检测客户端播放状态的系统及方法,相比现有技术中通过数据是否到达、接口是否调用成功等技术方案来说,能够更准确及时地检测直播过程中客户端的当前状态。Beneficial effects of the embodiment of the present invention: the system and method for detecting the playback status of the client in the audio and video live broadcast proposed by the embodiment of the present invention, compared with the technical solutions in the prior art, such as whether the data arrives, whether the interface is called successfully, etc., can More accurate and timely detection of the current status of the client during the live broadcast.

附图说明Description of drawings

图1是本发明实施例提出的音视频直播中检测客户端播放状态的系统的结构框图;Fig. 1 is the structural block diagram of the system that detects client playback state in the audio-video live broadcast that the embodiment of the present invention proposes;

图2是本发明一实施例提出的音视频直播中检测客户端播放状态的方法的流程图;Fig. 2 is the flow chart of the method for detecting the playback status of the client in the audio and video live broadcast proposed by an embodiment of the present invention;

图3是本发明另一实施例提出的音视频直播中检测客户端播放状态的方法的流程图。Fig. 3 is a flow chart of a method for detecting a playback state of a client in an audio and video live broadcast according to another embodiment of the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚明白,以下结合具体实施例,并参照附图,对本发明进一步详细说明。但本领域技术人员知晓,本发明并不局限于附图和以下实施例。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be described in further detail below in conjunction with specific embodiments and with reference to the accompanying drawings. However, those skilled in the art know that the present invention is not limited to the drawings and the following embodiments.

本发明实施例提出的音视频直播中检测客户端播放状态的系统,如图1所示,该系统包括:采集端11、服务器12和客户端13,其中,采集端11与服务器12连接,服务器12与客户端13连接。The system for detecting the playback state of the client in the audio and video live broadcast proposed by the embodiment of the present invention, as shown in Figure 1, the system includes: a collection terminal 11, a server 12 and a client 13, wherein the collection terminal 11 is connected to the server 12, and the server 12 is connected with client 13.

采集端11采集音视频数据,并定时在采集到的音视频数据的关键帧中加入时间戳,从而使得音视频数据携带有状态检测信息;采集端11将加入了时间戳的音视频数据上传到服务器12。所述关键帧指的是不需要其他帧图像作参考,就可以独立进行编码的帧,亦可称为独立帧,一般是指的I帧。所述关键帧可以为一个或多个。Acquisition terminal 11 collects audio-video data, and regularly adds time stamp in the key frame of the audio-video data collected, thereby makes audio-video data carry state detection information; Acquisition terminal 11 uploads the audio-video data that has added time stamp to server 12. The key frame refers to a frame that can be coded independently without other frame images as a reference, and can also be called an independent frame, which generally refers to an I frame. There can be one or more key frames.

客户端13从服务器12下载音视频数据或由服务器12向客户端13转发音视频数据,客户端13对来自服务器12的音视频数据进行播放;客户端13在播放音视频数据时,如果检测到某帧音视频数据中加入了时间戳,则记录该时间戳数据,同时进行播放区域截图,并将截图数据和时间戳数据连同客户端13的身份标识信息一起实时发送到给服务器12,所述身份标识信息可以为ip地址或MAC地址。Client 13 downloads audio and video data from server 12 or forwards audio and video data to client 13 by server 12, and client 13 plays the audio and video data from server 12; Client 13 is when playing audio and video data, if detect A time stamp is added in a certain frame of audio and video data, then record the time stamp data, and simultaneously take screenshots of the playback area, and send the screenshot data and the time stamp data together with the identity information of the client 13 to the server 12 in real time, the described The identification information may be an ip address or a MAC address.

服务器12检测采集端上传的音视频数据,如果检测到某帧数据中加入了时间戳时,则将加入了时间戳的该帧数据对应的图像进行解码,将解码后的图像转换为解码图像的RGB数据,关联地保存时间戳数据和解码图像的RGB数据以及客户端的身份标识信息。The server 12 detects the audio and video data uploaded by the acquisition end. If it is detected that a time stamp has been added to a certain frame of data, the image corresponding to the frame of data with the time stamp added will be decoded, and the decoded image will be converted into a decoded image. RGB data, which store the time stamp data, the RGB data of the decoded image and the identity information of the client in association.

服务器12等待接收客户端发送截图数据和时间戳数据以及客户端13的身份标识信息,对于服务器中保存的每个时间戳数据,服务器12如果在限定时间内接收到客户端13发送的与该时间戳数据对应的截图数据,则对该发送的截图数据进行RGB转换,转换为发送的截图的RGB数据,服务器12通过图形对比算法比较客户端13发送的截图的RGB数据和保存的解码图像的RGB数据是否一致;如果不一致或限定时间内服务器12没有接收到客户端13发送的与该时间戳数据对应的截图数据,则判定该客户端13播放音视频状态异常,并进行实时报警通知等操作,例如通知发起直播的人有客户端播放音视频状态异常,或向服务器管理员反馈播放状态异常的客户端的身份标识信息;如果一致,则判定客户端13播放音视频状态正常。The server 12 waits to receive the screenshot data and timestamp data sent by the client and the identity information of the client 13. For each timestamp data stored in the server, if the server 12 receives the time stamp sent by the client 13 within a limited time Stamp the screenshot data corresponding to the data, then carry out RGB conversion to the sent screenshot data, and convert it into the RGB data of the sent screenshot, and the server 12 compares the RGB data of the screenshot sent by the client 13 with the RGB of the saved decoded image through a graphic comparison algorithm Whether the data is consistent; if inconsistent or the server 12 does not receive the screenshot data corresponding to the timestamp data sent by the client 13 within a limited time, then it is determined that the client 13 plays an abnormal state of audio and video, and performs operations such as real-time alarm notifications, For example, notify the person who initiated the live broadcast that the audio and video status of the client is abnormal, or feed back the identity information of the client whose playback status is abnormal to the server administrator; if consistent, then determine that the audio and video playback status of the client 13 is normal.

所述系统可以同时对多个客户端进行播放状态检测。The system can detect the playing status of multiple clients at the same time.

进一步地,限定时间可以由用户(例如发起直播的人)自行设定,也可以由服务器自动设定。对于每个时间戳来说,其限定时间可以相同,也可以不同。Furthermore, the limited time can be set by the user (for example, the person who initiates the live broadcast), or can be set automatically by the server. For each timestamp, the limited time may be the same or different.

上述实施例中,以时间戳作为状态检测信息的标记,本领域技术人员知晓,也可以采用其他时间标记的方式,或采用其他类型的标记方式,例如在某帧中加入弹幕,将弹幕作为状态检测信息的标记;或者将时间戳和弹幕一起作为状态检测信息的标记,此时时间戳和弹幕可以设置在同一帧中,也可以设置在不同帧中。In the above-mentioned embodiment, the time stamp is used as the mark of the state detection information. Those skilled in the art know that other time mark methods can also be used, or other types of mark methods can be used, such as adding a barrage to a certain frame, and adding the barrage It can be used as a mark of state detection information; or the timestamp and bullet chatting can be used together as a mark of state detection information. At this time, the time stamp and bullet chatting can be set in the same frame or in different frames.

本发明实施例提出的音视频直播中检测客户端播放状态的方法,在本实施例中,以时间戳作为状态检测信息的标记。本实施例提出的方法如图2所示,该方法包括:In the method for detecting the playback state of the client in the audio and video live broadcast proposed by the embodiment of the present invention, in this embodiment, the time stamp is used as the mark of the state detection information. The method proposed in this embodiment is shown in Figure 2, and the method includes:

步骤S21、采集步骤:采集端采集音视频数据;Step S21, collection step: the collection terminal collects audio and video data;

步骤S22、加标记步骤:采集端定时在采集到的音视频数据的关键帧中加入时间戳,从而使得音视频数据携带有状态检测信息;所述关键帧指的是不需要其他帧图像作参考,就可以独立进行编码的帧,亦可称为独立帧,一般是指的I帧。所述关键帧可以为一个或多个。Step S22, marking step: the acquisition end regularly adds time stamps to the key frames of the collected audio and video data, so that the audio and video data carry state detection information; the key frames refer to the fact that no other frame images are required for reference , the frame that can be encoded independently can also be called an independent frame, which generally refers to an I frame. There can be one or more key frames.

步骤S23、上传步骤:采集端将加入了时间戳的音视频数据上传到服务器;Step S23, uploading step: the acquisition end uploads the audio and video data with the time stamp added to the server;

步骤S24、第一检测步骤:服务器检测采集端上传的音视频数据,当服务器检测到某帧数据中加入了时间戳时,则将加入了时间戳的该帧数据对应的图像进行解码,将解码后的图像转换为解码图像的RGB数据,关联地保存时间戳数据和解码图像的RGB数据;Step S24, the first detection step: the server detects the audio and video data uploaded by the acquisition end, and when the server detects that a time stamp has been added to a certain frame of data, it will decode the image corresponding to the frame of data with the time stamp added, and decode The converted image is converted to the RGB data of the decoded image, and the timestamp data and the RGB data of the decoded image are saved in association;

步骤S25、第二检测步骤:客户端从服务器下载音视频数据或服务器向客户端转发音视频数据,客户端对来自服务器的音视频数据进行播放;客户端在播放音视频数据时如果检测到某帧数据中加入了时间戳,则记录该时间戳数据,同时进行播放区域截图,并将截图数据和时间戳数据连同客户端的身份识别信息一起实时发送到服务器;身份识别信息可以为ip地址或MAC地址;Step S25, the second detection step: the client downloads audio and video data from the server or the server forwards audio and video data to the client, and the client plays the audio and video data from the server; if the client detects certain audio and video data when playing audio and video data If a time stamp is added to the frame data, record the time stamp data, take a screenshot of the playback area at the same time, and send the screenshot data and time stamp data together with the client's identification information to the server in real time; the identification information can be ip address or MAC address;

步骤S26、判断步骤:服务器等待接收客户端发送的截图数据和时间戳数据以及客户端的身份识别信息,对于服务器中保存的每个时间戳数据,服务器如果在限定时间内接收到客户端发送的与该时间戳数据对应的截图数据,则对该发送的截图数据进行RGB转换,转换为发送的截图的RGB数据;服务器通过图形对比算法比较该发送的截图的RGB数据和保存的解码图像的RGB数据是否一致;如果不一致或限定时间内服务器没有接收到客户端发送的与该时间戳数据对应的截图数据,则判定该客户端播放音视频状态异常,并进行实时报警通知等操作,例如通知发起直播的人有客户端播放音视频状态异常,或向服务器管理员反馈播放状态异常的客户端的身份标识信息;如果一致,则判定客户端播放音视频状态正常。Step S26, judging step: the server waits to receive the screenshot data and timestamp data sent by the client, as well as the identification information of the client. For the screenshot data corresponding to the timestamp data, RGB conversion is performed on the sent screenshot data to convert it into the RGB data of the sent screenshot; the server compares the RGB data of the sent screenshot with the RGB data of the saved decoded image through a graphic comparison algorithm Whether it is consistent; if it is inconsistent or the server does not receive the screenshot data corresponding to the time stamp data sent by the client within a limited time, it will be determined that the audio and video playback status of the client is abnormal, and real-time alarm notifications and other operations will be performed, such as notifications to initiate live broadcasts The person who has the audio and video playback status of the client is abnormal, or feeds back the identity information of the client whose playback status is abnormal to the server administrator; if they are consistent, it is determined that the audio and video playback status of the client is normal.

本发明另一实施例提出的音视频直播中检测客户端播放状态的方法,在本实施例中,以弹幕作为检测状态信息的标记,在音视频数据的某些帧中加入弹幕。该实施例提出的方法如图3所示,包括:Another embodiment of the present invention proposes a method for detecting the playback state of a client in a live audio and video broadcast. In this embodiment, bullet chatting is used as a mark for detecting status information, and bullet chatting is added to certain frames of audio and video data. The method proposed in this embodiment is shown in Figure 3, including:

步骤S31、采集步骤:采集端采集音视频数据;Step S31, collection step: the collection terminal collects audio and video data;

步骤S32、加标记步骤:采集端定时在采集到的音视频数据的某些帧中加入弹幕,从而使得音视频数据携带有状态检测信息;Step S32, marking step: the acquisition end regularly adds barrage to some frames of the collected audio and video data, so that the audio and video data carry state detection information;

步骤S33、上传步骤:采集端将加入弹幕的音视频数据上传到服务器;Step S33, uploading step: the acquisition end uploads the audio and video data added to the barrage to the server;

步骤S34、第一检测步骤:服务器检测采集端上传的音视频数据,当服务器检测到某帧数据中加入了弹幕时,则将加入了弹幕的该帧数据对应的图像进行解码,将解码后的图像转换为解码图像的RGB数据,关联地保存弹幕和解码图像的RGB数据;Step S34, the first detection step: the server detects the audio and video data uploaded by the acquisition terminal, and when the server detects that a barrage has been added to a certain frame of data, it will decode the image corresponding to the frame of data that has added the barrage, and the decoded The converted image is converted to the RGB data of the decoded image, and the RGB data of the barrage and the decoded image are saved in association;

步骤S35、第二检测步骤:客户端从服务器下载音视频数据或服务器向客户端转发音视频数据,客户端对来自服务器的音视频数据进行播放;客户端在播放音视频数据时如果检测到某帧数据加入了弹幕,则记录该弹幕数据,同时进行播放区域截图,并将截图数据和弹幕数据连同该客户端的身份识别信息一起实时发送到服务器;所述身份标识信息可以为ip地址或MAC地址;Step S35, the second detection step: the client downloads audio and video data from the server or the server forwards audio and video data to the client, and the client plays the audio and video data from the server; if the client detects certain audio and video data when playing audio and video data If the frame data is added to the barrage, then record the barrage data, and simultaneously take screenshots of the playing area, and send the screenshot data and the barrage data together with the identification information of the client to the server in real time; the identity information can be an ip address or MAC address;

步骤S36、判断步骤:服务器等待接收客户端发送的截图数据和弹幕数据以及客户端的身份标识信息,对于服务器中保存的每个弹幕数据,服务器如果在限定时间内接收到客户端发送的与该弹幕数据对应的截图数据,则对该发送的截图数据进行RGB转换,转换为发送的截图的RGB数据;服务器通过图形对比算法比较该发送的截图的RGB数据和保存的解码图像的RGB数据是否一致;如果不一致或限定时间内服务器没有接收到客户端发送的与该弹幕数据对应的截图数据,则判定客户端播放视频状态异常,并进行实时报警通知等操作,例如通知发起直播的人有客户端播放音视频状态异常,或向服务器管理员反馈播放状态异常的客户端的身份标识信息;如果一致,则判定客户端播放视频状态正常。Step S36, judging step: the server waits to receive screenshot data and barrage data sent by the client, as well as the identity information of the client. For the screenshot data corresponding to the barrage data, RGB conversion is performed on the sent screenshot data to convert it into the RGB data of the sent screenshot; the server compares the RGB data of the sent screenshot with the RGB data of the stored decoded image through a graphic comparison algorithm Whether it is consistent; if it is inconsistent or the server does not receive the screenshot data corresponding to the barrage data sent by the client within a limited time, it will be determined that the status of the video played by the client is abnormal, and real-time alarm notifications and other operations will be performed, such as notifying the person who initiated the live broadcast There is an abnormality in the audio and video playback status of the client, or the identity information of the client whose playback status is abnormal is fed back to the server administrator; if they are consistent, it is determined that the video playback status of the client is normal.

本领域技术人员可以理解,在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,“计算机可读介质”可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。Those skilled in the art will understand that the logic and/or steps shown in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, which can be specifically implemented in on any computer-readable medium for use by an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, apparatus, or device and execute them), or Used in conjunction with these instruction execution systems, devices or equipment. For the purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use in or in conjunction with an instruction execution system, device or device.

计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。More specific examples (non-exhaustive list) of computer-readable media include the following: electrical connection with one or more wires (electronic device), portable computer disk case (magnetic device), random access memory (RAM), Read Only Memory (ROM), Erasable and Editable Read Only Memory (EPROM or Flash Memory), Fiber Optic Devices, and Portable Compact Disc Read Only Memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program can be printed, since the program can be read, for example, by optically scanning the paper or other medium, followed by editing, interpretation or other suitable processing if necessary. The program is processed electronically and stored in computer memory.

应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或它们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that various parts of the present invention can be realized by hardware, software, firmware or their combination. In the embodiments described above, various steps or methods may be implemented by software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques known in the art: Discrete logic circuits, ASICs with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.

在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, descriptions referring to the terms "one embodiment", "some embodiments", "example", "specific examples", or "some examples" mean that specific features described in connection with the embodiment or example , structure, material or characteristic is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

以上,对本发明的实施方式进行了说明。但是,本发明不限定于上述实施方式。凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The embodiments of the present invention have been described above. However, the present invention is not limited to the above-mentioned embodiments. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (10)

1.一种音视频直播中检测客户端播放状态的系统,其特征在于,包括:采集端、服务器和客户端,其中,采集端与服务器连接,服务器与客户端连接;1. A system for detecting the playback state of a client in an audio and video live broadcast, characterized in that it comprises: a collection end, a server and a client, wherein the collection end is connected to the server, and the server is connected to the client; 采集端定时在采集的音视频数据中加入状态检测信息的标记,并将加入了状态检测信息标记的音视频数据上传到服务器;其中,以时间标记作为所述状态检测信息的标记;The acquisition terminal regularly adds the mark of the state detection information in the audio and video data collected, and uploads the audio and video data added with the state detection information mark to the server; wherein, the time mark is used as the mark of the state detection information; 服务器检测接收到的音视频数据,如果检测到状态检测信息的标记,则将此时的图像进行解码,将解码后的图像转换为解码图像的RGB数据,关联地保存状态检测信息的标记和解码图像的RGB数据以及客户端的身份标识信息;The server detects the received audio and video data, and if it detects the flag of the state detection information, it decodes the image at this time, converts the decoded image into the RGB data of the decoded image, and stores the flag and decoding of the state detection information in association The RGB data of the image and the identity information of the client; 客户端从服务器获取音视频数据并播放;客户端在播放音视频数据时,如果检测到状态检测信息的标记,则实时记录该状态检测信息的标记,同时进行播放区域截图,并将截图数据和状态检测信息的标记数据连同客户端的身份标识信息一起实时发送到服务器;The client obtains the audio and video data from the server and plays them; when the client is playing the audio and video data, if it detects the mark of the state detection information, it will record the mark of the state detection information in real time, and take a screenshot of the playback area at the same time, and save the screenshot data and The marked data of the state detection information is sent to the server in real time together with the identity information of the client; 服务器对在限定时间内接收到的客户端发送的截图数据进行RGB转换,转换为发送的截图的RGB数据,比较对应于同一状态检测信息的标记的解码图像的RGB数据与发送的截图的RGB数据是否一致,如果不一致或在限定时间内服务器没有接收到客户端发送的截图数据和状态检测信息的标记数据,则判定客户端播放状态异常;The server performs RGB conversion on the screenshot data sent by the client received within a limited time, converts it into the RGB data of the sent screenshot, and compares the RGB data of the decoded image corresponding to the flag of the same state detection information with the RGB data of the sent screenshot Whether it is consistent, if it is not consistent or the server does not receive the screenshot data sent by the client and the tag data of the status detection information within the limited time, it is determined that the playback status of the client is abnormal; 所述系统能够同时对多个客户端进行播放状态检测。The system can detect the playing state of multiple clients at the same time. 2.根据权利要求1所述的系统,其特征在于,所述身份标识信息为ip地址或MAC地址。2. The system according to claim 1, wherein the identity information is an ip address or a MAC address. 3.根据权利要求2所述的系统,其特征在于,加入状态检测信息的标记的帧为关键帧。3 . The system according to claim 2 , wherein the marked frame added with the state detection information is a key frame. 4 . 4.根据权利要求1所述的系统,其特征在于,状态检测信息的标记为时间戳和/或弹幕。4. The system according to claim 1, wherein the state detection information is marked with a time stamp and/or a barrage. 5.根据权利要求1至4中任一项所述的系统,其特征在于,在判定客户端播放状态异常时,服务器向发起音视频直播的用户反馈该客户端播放状态异常,或向服务器管理员反馈播放状态异常的客户端的身份标识信息。5. The system according to any one of claims 1 to 4, characterized in that, when it is determined that the playback status of the client is abnormal, the server feeds back the abnormal playback status of the client to the user who initiated the audio and video live broadcast, or reports to the server management The identification information of the client whose playback status is abnormal is reported by the staff. 6.一种音视频直播中检测客户端播放状态的方法,其特征在于,该方法包括:6. A method for detecting the playback state of a client in an audio and video live broadcast, characterized in that the method comprises: 采集步骤:采集端采集音视频数据;Acquisition step: the acquisition terminal collects audio and video data; 加标记步骤:采集端定时在采集到的音视频数据中加入状态检测信息的标记;其中,以时间标记作为所述状态检测信息的标记;Marking step: the acquisition terminal regularly adds the mark of the state detection information in the audio and video data collected; wherein, the time mark is used as the mark of the state detection information; 上传步骤:经过加标记步骤后,采集端将加入了状态检测信息的标记的音视频数据上传到服务器;Uploading step: after the marking step, the acquisition end uploads the marked audio and video data with status detection information to the server; 第一检测步骤:服务器检测接收到的音视频数据,如果服务器检测到状态检测信息的标记,则将此时的图像进行解码,将解码后的图像转换为解码图像的RGB数据,关联地保存状态检测信息的标记和解码图像的RGB数据以及客户端的身份标识信息;The first detection step: the server detects the received audio and video data, if the server detects the flag of the state detection information, it decodes the image at this time, converts the decoded image into the RGB data of the decoded image, and saves the state in association Marking of detection information and RGB data of decoded image and identity information of client; 第二检测步骤:客户端从服务器获取音视频数据,客户端在播放音视频数据时,如果检测到状态检测信息的标记,则实时记录该状态检测信息的标记,同时进行播放区域截图,并将截图数据和状态检测信息的标记数据连同客户端的身份标识信息一起实时发送到服务器;The second detection step: the client obtains the audio and video data from the server. When the client is playing the audio and video data, if it detects the mark of the state detection information, it will record the mark of the state detection information in real time, and take a screenshot of the playback area at the same time. The screenshot data and the marked data of the state detection information are sent to the server in real time together with the identity information of the client; 判断步骤:服务器接收客户端发送的截图数据和状态检测信息的标记数据,并对在限定时间内接收到的客户端发送的截图数据进行RGB转换,转换为发送的截图的RGB数据,比较对应于同一状态检测信息的标记的解码图像的RGB数据与发送的截图的RGB数据是否一致,如果不一致或在限定时间内服务器没有接收到客户端发送的截图数据和状态检测信息的标记数据,则判定客户端播放状态异常;Judgment step: the server receives the screenshot data sent by the client and the tag data of the state detection information, and performs RGB conversion on the screenshot data sent by the client received within a limited time, and converts it into the RGB data of the sent screenshot, and compares the corresponding Whether the RGB data of the decoded image marked with the same state detection information is consistent with the RGB data of the sent screenshot, if they are inconsistent or the server does not receive the screenshot data sent by the client and the marked data of the state detection information within a limited time, then determine whether the client The playback status of the terminal is abnormal; 所述方法能够同时对多个客户端进行播放状态检测。The method can detect the playing state of multiple clients at the same time. 7.根据权利要求6所述的方法,其特征在于,所述身份标识信息为ip地址或MAC地址。7. The method according to claim 6, wherein the identity information is an ip address or a MAC address. 8.根据权利要求7所述的方法,其特征在于,加入状态检测信息的标记的帧为关键帧。8 . The method according to claim 7 , wherein the marked frame added with the state detection information is a key frame. 9.根据权利要求6所述的方法,其特征在于,状态检测信息的标记为时间戳和/或弹幕。9. The method according to claim 6, wherein the state detection information is marked with a time stamp and/or a barrage. 10.根据权利要求6至9中任一项所述的方法,其特征在于,在判断步骤中,当判定客户端播放状态异常时,服务器向发起音视频直播的用户反馈该客户端播放状态异常,或向服务器管理员反馈播放状态异常的客户端的身份标识信息。10. The method according to any one of claims 6 to 9, characterized in that, in the judging step, when it is determined that the playback status of the client is abnormal, the server feeds back the abnormal playback status of the client to the user who initiated the audio and video live broadcast , or feedback the identity information of the client whose playback status is abnormal to the server administrator.
CN201710150872.XA 2017-03-14 2017-03-14 A system and method for detecting client playback status in audio and video live broadcast Active CN106803997B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710150872.XA CN106803997B (en) 2017-03-14 2017-03-14 A system and method for detecting client playback status in audio and video live broadcast
PCT/CN2017/102283 WO2018166162A1 (en) 2017-03-14 2017-09-19 System and method for detecting playing status of client in audio and video live broadcast

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710150872.XA CN106803997B (en) 2017-03-14 2017-03-14 A system and method for detecting client playback status in audio and video live broadcast

Publications (2)

Publication Number Publication Date
CN106803997A CN106803997A (en) 2017-06-06
CN106803997B true CN106803997B (en) 2019-12-17

Family

ID=58987973

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710150872.XA Active CN106803997B (en) 2017-03-14 2017-03-14 A system and method for detecting client playback status in audio and video live broadcast

Country Status (2)

Country Link
CN (1) CN106803997B (en)
WO (1) WO2018166162A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106803997B (en) * 2017-03-14 2019-12-17 广州视源电子科技股份有限公司 A system and method for detecting client playback status in audio and video live broadcast
CN110380843B (en) * 2018-04-13 2022-12-02 武汉斗鱼网络科技有限公司 Information processing method and related equipment
CN114363063A (en) * 2018-11-01 2022-04-15 西安万像电子科技有限公司 Data transmission method, device and system
CN111641847A (en) * 2020-06-11 2020-09-08 南昌威爱教育科技有限公司 Data transmission method for virtual reality teaching
CN112218175B (en) * 2020-12-09 2021-03-02 深圳市房多多网络科技有限公司 Processing method and device for live broadcast room state and computing equipment
CN112911325B (en) * 2021-01-29 2023-07-14 百果园技术(新加坡)有限公司 Method and device for recovering inter-live-broadcast room connection
CN113766306B (en) * 2021-04-21 2023-11-14 腾讯科技(北京)有限公司 Method, device, computer equipment and storage medium for detecting video clamping
CN113886206B (en) * 2021-09-30 2023-11-03 南京奥拓电子科技有限公司 Method and system for collecting behavior data of interactive media terminal user
CN113961462A (en) * 2021-10-26 2022-01-21 深圳市瑞云科技有限公司 Automatic testing method for cloud game chromatic aberration

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103974061A (en) * 2014-05-27 2014-08-06 合一网络技术(北京)有限公司 Play test method and system
CN106101825A (en) * 2015-04-30 2016-11-09 北京视联动力国际信息技术有限公司 A kind of method and apparatus of terminal monitoring
CN106412662A (en) * 2016-09-20 2017-02-15 腾讯科技(深圳)有限公司 Timestamp distribution method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9633272B2 (en) * 2013-02-15 2017-04-25 Yahoo! Inc. Real time object scanning using a mobile phone and cloud-based visual search engine
CN105245514B (en) * 2015-09-28 2019-05-07 珠海多玩信息技术有限公司 Plug-in recognition methods, apparatus and system
CN106028147B (en) * 2016-06-23 2019-05-28 北京华兴宏视技术发展有限公司 Vision signal monitoring method and vision signal monitor system
CN106302477A (en) * 2016-08-18 2017-01-04 合网络技术(北京)有限公司 A kind of net cast method of testing and system
CN106488291B (en) * 2016-11-17 2019-10-15 百度在线网络技术(北京)有限公司 The method and apparatus of simultaneous display file in net cast
CN106803997B (en) * 2017-03-14 2019-12-17 广州视源电子科技股份有限公司 A system and method for detecting client playback status in audio and video live broadcast

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103974061A (en) * 2014-05-27 2014-08-06 合一网络技术(北京)有限公司 Play test method and system
CN106101825A (en) * 2015-04-30 2016-11-09 北京视联动力国际信息技术有限公司 A kind of method and apparatus of terminal monitoring
CN106412662A (en) * 2016-09-20 2017-02-15 腾讯科技(深圳)有限公司 Timestamp distribution method and device

Also Published As

Publication number Publication date
CN106803997A (en) 2017-06-06
WO2018166162A1 (en) 2018-09-20

Similar Documents

Publication Publication Date Title
CN106803997B (en) A system and method for detecting client playback status in audio and video live broadcast
CN103188522B (en) Method and system for providing and delivering a composite condensed stream
CN106411927A (en) Monitoring video recording method and device
CN104486649B (en) Video content ranking method and device
CN104798346A (en) Enriching broadcast media related electronic messaging
CN111541859B (en) Video conference processing method, device, electronic device and storage medium
CN111601102A (en) A method and system for detecting freeze in live broadcast
CN110740386B (en) Live broadcast switching method and device and storage medium
CN108174295B (en) Method and device for notifying host status, and method and device for prompting host status
US11539985B2 (en) No reference realtime video quality assessment
CN112822435A (en) A security method, device and system that can be easily accessed by users
US20160029053A1 (en) Method for transmitting media data and virtual desktop server
CN112771881A (en) Bullet screen processing method and device, electronic equipment and computer readable storage medium
CN104735407A (en) Method for carrying out live playing of monitoring video on mobile terminal
US20240187548A1 (en) Dynamic resolution switching in live streams based on video quality assessment
CN108696713B (en) Code stream safety test method, device and test equipment
US20110271307A1 (en) Video data stream evaluation systems and methods
CN106664432B (en) Multimedia information playing method and system, acquisition equipment and standardized server
CN105262975B (en) A kind of method and video conferencing system for controlling video conference
CN104301749A (en) Pre-broadcast material detection method and equipment
US20220188549A1 (en) Context aware word cloud for context oriented dynamic actions
EP4505748A1 (en) Systems and methods for automatically generating content items from identified events
WO2019076155A1 (en) Data transmission method, camera and electronic device
CN110855619B (en) Processing method and device for playing audio and video data, storage medium and terminal equipment
CN104168509B (en) Program editing method applicable to environment with various material sources

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