CN106412661B - Method and system for collecting network video playing information of smart television - Google Patents

Method and system for collecting network video playing information of smart television Download PDF

Info

Publication number
CN106412661B
CN106412661B CN201611076005.8A CN201611076005A CN106412661B CN 106412661 B CN106412661 B CN 106412661B CN 201611076005 A CN201611076005 A CN 201611076005A CN 106412661 B CN106412661 B CN 106412661B
Authority
CN
China
Prior art keywords
playing
video
data
packet
playing information
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
CN201611076005.8A
Other languages
Chinese (zh)
Other versions
CN106412661A (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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN201611076005.8A priority Critical patent/CN106412661B/en
Priority to PCT/CN2016/113019 priority patent/WO2018098884A1/en
Publication of CN106412661A publication Critical patent/CN106412661A/en
Application granted granted Critical
Publication of CN106412661B publication Critical patent/CN106412661B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/426Internal components of the client ; Characteristics thereof
    • H04N21/42607Internal components of the client ; Characteristics thereof for processing the incoming bitstream
    • 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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4334Recording operations
    • 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/44204Monitoring of content usage, e.g. the number of times a movie has been viewed, copied or the amount which has been watched

Landscapes

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

Abstract

The invention discloses a method for acquiring network video playing information of an intelligent television, which comprises the following steps: acquiring a data packet transmitted and received by a currently working network interface from a link layer; when the data packet is a request packet and data in the request packet comprises a video address, acquiring first playing information of a currently played video according to the data packet; when the data packet is a response packet, acquiring second playing information of a currently played video according to the response packet; when the end of playing of the currently played video is detected, recording the playing end time, and sending the first playing information, the second playing information and the playing end time to a server. The invention also discloses a system for acquiring the network video playing information of the intelligent television. In the technical scheme of the invention, because the collection of the playing information is realized by processing the data packet acquired on the link layer, the processing of the data packet is simpler, and the collection of the playing information by the method is simple and convenient.

Description

Method and system for collecting network video playing information of smart television
Technical Field
The invention relates to the technical field of internet network transmission and streaming media, in particular to a method and a system for acquiring network video playing information of an intelligent television.
Background
The intelligent television is a new television product based on an internet application technology and provided with a full-open platform, and a user can install and uninstall various application software on the television by himself to expand and upgrade the functions of the television. Among various application software, video application is one of the most important applications, but the number of video applications is large, and basically all portals and video websites develop own video applications, so that different users facing such various video applications have different choices. In order to improve the performance of the television, it is necessary to make a statistic on the video playing quality at the terminal of the smart television and collect playing information including the playing start time, the playing end time, the playing state, the video address and the like. Generally, various kinds of playing information are collected through the background of the video application, but due to the diversification of the video application, the existing method is difficult to adapt to various kinds of video applications, so that the collection of the playing information becomes complicated.
Disclosure of Invention
The invention mainly aims to provide a method and a system for collecting network video playing information of an intelligent television, and aims to solve the technical problem that video playing information is difficult to collect at an intelligent television.
In order to achieve the above object, the invention provides a method for acquiring network video playing information of an intelligent television, comprising the following steps:
acquiring a data packet transmitted and received by a currently working network interface from a link layer;
when the data packet is a request packet and data in the request packet comprises a video address, acquiring and storing first playing information of a currently played video according to the data packet, wherein the first playing information comprises playing start time and a video address;
when the data packet is a response packet, acquiring and storing second playing information of the currently played video according to the response packet, wherein the second playing information comprises a playing state of the currently played video and/or a received data length;
when the end of playing of the currently played video is detected, recording the playing end time, and sending the first playing information, the second playing information and the playing end time to a server.
Preferably, the playing status includes a pause duration, and the step of obtaining and storing the second playing information of the currently played video according to the response packet includes:
analyzing the response packet to obtain analysis data;
when the analysis data comprises an ordered media uniform resource identifier list, acquiring and storing the uniform resource identifier list, the standard playing time length of the media stream segment and the data length in the analysis data;
when the analysis data comprises the media stream segment and the received media stream segment reaches the data length, acquiring the actual playing time length of the received media stream segment;
and when the actual playing time length is greater than the standard playing time length, recording the pause time length of the currently played video.
Preferably, when the data in the request packet includes a video address and the smart television is in a video playing state, it is determined that the current video playing is finished.
Preferably, when the data packet is a request packet and the data in the request packet includes a video address, the step of obtaining and storing the first playing information of the currently played video according to the data packet includes:
and when the request packet containing the media uniform resource identifier is not acquired from the link layer within the preset time, judging that the playing of the currently played video is finished.
Preferably, when the data packet is a request packet and data in the request packet includes a video address, the step of obtaining and storing first playing information of a currently played video according to the data packet includes:
when the data packet is a request packet and the data in the request packet comprises a video address, judging whether the destination address of the request packet is a preset address or not;
and when the destination address of the data packet is a preset address, acquiring and storing first playing information of the currently played video according to the data packet.
In addition, in order to achieve the above object, the present invention further provides a system for acquiring network video playing information of a smart television, including:
the data acquisition module is used for acquiring a data packet transmitted and received by a currently working network interface from a link layer;
a first playing information obtaining module, configured to, when the data packet is a request packet and data in the request packet includes a video address, obtain and store first playing information of a currently playing video according to the data packet, where the first playing information includes a playing start time and a video address;
the second playing information acquisition module is used for acquiring and storing second playing information of the currently played video according to the response packet when the data packet is the response packet, wherein the second playing information comprises the playing state of the currently played video and/or the received data length;
and the information sending module is used for recording the playing ending time when the end of the playing of the current playing video is detected, and sending the first playing information, the second playing information and the playing ending time to a service.
Preferably, the playing status includes a pause duration, and the second playing information obtaining module includes:
the analysis unit is used for analyzing the response packet to obtain analysis data;
the storage unit is used for acquiring and storing the uniform resource identifier list, the standard playing time length of the media stream segment and the data length in the analysis data when the analysis data comprises the ordered media uniform resource identifier list;
an actual playing time length unit, configured to obtain an actual playing time length of the received media stream segment when the parsing data includes the media stream segment and the received media stream segment reaches the data length;
and the pause time length unit is used for recording the pause time length of the currently played video when the actual playing time length is greater than the standard playing time length.
Preferably, the system further comprises:
and the first end judgment module is used for judging that the current video playing is ended when the data in the request packet comprises a video address and the smart television is in a video playing state.
Preferably, the system further comprises:
and the second ending judging module is used for judging that the playing of the currently played video is ended when the request packet containing the media uniform resource identifier is not acquired from the link layer within the preset time.
Preferably, the first playing information obtaining module includes:
the judging unit is used for judging whether the destination address of the request packet is a preset address or not when the data packet is a request packet and the data in the request packet comprises a video address;
and the first playing information acquisition unit is used for acquiring and storing the first playing information of the currently played video according to the data packet when the destination address of the data packet is a preset address.
In the technical scheme provided by the invention, all video applications are interacted with a server based on the internet as a client when playing programs, and data is acquired by sending a request waiting response according to the operation of a user, so that a data packet can be captured from a link layer of a monitored network port, and if a request packet for starting video playing is acquired, playing information such as playing starting time and video address is recorded; when a response packet corresponding to the request packet is captured, the playing state of the currently played video can be acquired according to the response packet, and the received playing information such as the data length and the like is recorded; when the end of the playing is detected, the time of the playing end is recorded, and the playing information and the time of the playing end are organized and packaged into an agreed format to be sent to the server. The collection of the playing information is realized by processing the data packet acquired on the link layer, and the processing of the data packet is simpler, so that the method for collecting the playing information is simple and convenient, and the problem of adapting to various video applications does not exist.
Drawings
Fig. 1 is a schematic flow chart of a first embodiment of a method for acquiring video playing information of a smart television network according to the present invention;
fig. 2 is a detailed flowchart of a step of acquiring and storing second playing information of a currently played video according to a response packet in a second embodiment of the method for acquiring video playing information of a smart television network according to the present invention;
fig. 3 is a detailed flowchart of the steps of acquiring and storing the first playing information of the currently played video according to the data packet in the third embodiment of the method for acquiring the video playing information of the smart television network according to the present invention;
fig. 4 is a functional module schematic diagram of a first embodiment of a network video playing information collecting system of an intelligent television according to the present invention;
fig. 5 is a schematic diagram of a detailed functional module of a second playing information acquiring module in a second embodiment of the intelligent television network video playing information collecting system according to the present invention;
fig. 6 is a functional module schematic diagram of a third embodiment of the network video playing information collecting system of the smart television according to the present invention;
fig. 7 is a functional module schematic diagram of a fourth embodiment of the network video playing information collecting system of the smart television according to the present invention;
fig. 8 is a schematic diagram of a detailed functional module of a first playing information acquiring module in a fifth embodiment of the system for acquiring network video playing information of a smart television according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, a method for acquiring network video playing information of a smart television according to a first embodiment of the present invention includes:
step S100, obtaining the data packet transmitted and received through the currently operating network interface from the link layer.
Specifically, after the television system is started, the current network access mode is detected, so as to monitor a working network port corresponding to the network access mode, such as an ethernet port eth0, a wireless network wlan0, and the like. The detection of the network access mode, and the acquisition of data packets transmitted and received via the currently operating network interface from the link layer, need to exist all the time during the operation of the television system, and when the change of the network access mode is detected, the monitored working network port needs to be changed correspondingly.
And copying and analyzing part of data packets passing through the current working network port from a TCP/IP link layer. Each packet contains source address, source port, destination address and destination port information.
Step S200, when the data packet is a request packet and the data in the request packet includes a video address, acquiring and storing first playing information of a currently played video according to the data packet, wherein the first playing information includes a playing start time and a video address.
After the data packet is obtained, it is first determined whether the source address of the data packet is the local address, if so, the data packet may be a request packet for video playing, and if not, the data packet may be a response packet.
If the video address (i.e. UR L address) in the request packet has a field of ". m3u 8.
From the above, when the request packet passing through the working network port is obtained from the link layer, the play start time and the video address can be obtained.
Step S300, when the data packet is a response packet, second playing information of the currently played video is obtained according to the response packet and stored, and the second playing information comprises the playing state of the currently played video and/or the received data length.
Specifically, when the source address is not the local address, the packet obtained from the link layer is a response packet. The request from the intelligent television client to the server side and the response from the server side to the intelligent television client are realized by a session containing data streams in two directions, and all the sessions are started from the request. The flags of the two flows of the same session are address information, the source addresses and the destination addresses of the request packet and the response packet are opposite, and if the request address is 192.168.029.147.44345-192.168.029.016.08118, the response address is 192.168.029.016.08118-192.168.029.147.44345. Whether the same session is conducted between the intelligent television client and the server side or not can be known by looking at the source address and the destination address of the request packet and the response packet.
The method comprises the steps that when a smart television client sends a request packet for obtaining an H L S playlist to a server, an H L S playing session is created and added to a session queue to wait for a response of the server, when the server receives the request packet, a response packet is returned to the smart television client, the smart television client analyzes the response packet to obtain the H L S playlist, after the smart television client obtains the H L S playlist, a session is created for each subsequent media stream segment obtaining request to detect the playing state, when the server receives the media stream segment obtaining request, the server returns a response packet to the smart television client, and the response packet is analyzed to obtain the media stream segments to be played.
When the smart television client sends a request for obtaining an H L S playlist to the server, a corresponding response packet is obtained at a link layer, the response packet is stored, a media URI list and an information label are obtained after the response packet is analyzed, and the information label comprises the standard playing time length and the data length of each media stream segment.
The method comprises the steps that the server side sends media stream segments to the smart television client side according to a URI list in an H L S playlist, and the server side sends a request for obtaining the media stream segments to the server side.
From the above, the received data length and the stuck condition can be obtained according to the response packet obtained from the link layer and passing through the working network port.
Step S400, when the end of the playing of the current playing video is detected, the playing end time is recorded, and the first playing information, the second playing information and the playing end time are sent to a server.
Specifically, playing each media stream segment received in sequence at the smart television client, and recording the playing ending time when the end of playing of the currently played video is detected. The first playing information obtained according to the request packet, such as the recorded playing start time and the video address, the second playing information obtained according to the response packet, such as the received data length, the pause times and the duration, and the recorded playing end time, are sent to a server for data statistics, and the server can analyze the network video playing quality of the smart television according to the information, such as the most browsing times of which website the user browses, whether pause frequently occurs when the video resources are obtained from the website, the highest attention degree of which video resources the user pays attention to, and the like.
In the technical scheme provided by the invention, all video applications are interacted with a server based on the internet as a client when playing programs, and data is acquired by sending a request waiting response according to the operation of a user, so that a data packet can be captured from a link layer of a monitored network port, and if a request packet for starting video playing is acquired, playing information such as playing starting time and video address is recorded; when a response packet corresponding to the request packet is captured, the playing state of the currently played video can be acquired according to the response packet, and the received playing information such as the data length and the like is recorded; when the end of the playing is detected, the time of the playing end is recorded, and the playing information and the time of the playing end are organized and packaged into an agreed format to be sent to the server. The collection of the playing information is realized by processing the data packet acquired on the link layer, and the processing of the data packet is simpler, so that the method for collecting the playing information is simple and convenient, and the problem of adapting to various video applications does not exist.
Further, referring to fig. 2, a second embodiment of the method for acquiring network video playing information of a smart television according to the present invention is shown, based on the first embodiment of the method for acquiring network video playing information of a smart television according to the present invention, where the playing status includes a pause duration, and the step of acquiring and storing the second playing information of the currently played video according to the response packet includes:
step S301, analyzing the response packet to obtain analysis data;
step S302, when the analysis data includes an ordered media uniform resource identifier list, acquiring and storing the uniform resource identifier list, the standard playing time length of the media stream segment and the data length in the analysis data.
Specifically, when the smart television client sends a request for obtaining a playlist to the server, the server responds and sends a response packet to the smart television client. The response packet passing through the working network port may be obtained from the link layer, and a copy is made, and after the response packet is analyzed, a media URI list and an information tag may be obtained, where the information tag includes a standard play time and a data length of each media stream segment, which is exemplified as follows:
the smart television client plays a single continuous media stream, the single continuous media stream is composed of a plurality of ordered media stream segments, if the continuous media stream is 500 million, the continuous media stream can be played for 500 minutes in total, the continuous media stream is composed of 250 media stream segments, if the data length of each media stream segment is the same, the data length of the first media stream segment, the second media stream segment to the second hundred and fifty media stream segments is 2 million, and the playing time length (i.e. the standard playing time length) is 2 minutes.
Step S303, when the analysis data includes the media stream segment and the received media stream segment reaches the data length, acquiring the actual playing time length of the received media stream segment;
step S304, when the actual playing time length is longer than the standard playing time length, recording the pause time length of the currently played video.
Specifically, when the smart television client sends a request for acquiring the media stream segment to the server according to the media URI list, the server responds and sends a response packet containing the media stream segment to the smart television client. The response packet passing through the working network may be obtained at the link layer, but the response packet is not stored, but the time used by the smart tv client to completely receive the media stream segment, that is, the actual playing time length, is recorded, for example, as follows:
the method comprises the steps that a smart television client sends a request for obtaining a first media stream segment to a server according to a URI of the first media stream segment in a media URI list, the server sends the first media stream segment to the smart television client according to the request, because the first media stream segment is 2 million, when the smart television client receives 2 million of data, the fact that the first media stream segment is received completely is indicated, the time from sending the request for obtaining the first media stream segment to the fact that the data are received completely is recorded, if the time is used for 3 minutes, because the actual playing time is longer than 2 minutes of a standard playing time, the fact that video playing is blocked is indicated, the blocking time is 1 minute, and the blocking times are added with 1. The final pause number uploaded to the server is the accumulated pause number between the play start time and the play end time.
In order to obtain the standard playing time length and the data length of each media stream segment and the actual playing time length from the time of sending the request for obtaining the media stream segment to the time of receiving the media stream segment in the complete period, only a response packet containing an ordered media uniform resource identifier list and an information tag needs to be stored, and the response packet containing the media stream segment and having a larger occupied space does not need to be stored, so that the memory occupation is reduced.
In this embodiment, the playing state of the currently played video can be determined by the response packet obtained from the link layer through the working network port, and the number of times and duration of the pause and the length of the received data are recorded.
Further, on the basis of the second embodiment, when the data in the request packet includes a video address and the smart tv is in a video playing state, it is determined that the current video playing is finished.
Specifically, when the current H L S playing is in progress, a request for obtaining an H L S playlist with a field of ". m3u 8.
Further, on the basis of the second embodiment, when the data packet is a request packet and the data in the request packet includes a video address, the step of obtaining and storing the first playing information of the currently played video according to the data packet includes:
step S500, when the request packet containing the media uniform resource identifier is not acquired from the link layer within the preset time, the end of the playing of the currently played video is judged.
Specifically, the media stream segment currently downloaded from the server end is consumed, but the request for obtaining the next media stream segment is not continuously received at the link layer, which indicates that the currently playing video playing is also ended. There are two cases where the link layer does not continue to receive a request to retrieve the next media stream segment: first, if all media stream segments have been completely downloaded, it means playing to the end; second, if all media stream segments are not completely downloaded, it may mean that the user actively quits playing.
Further, referring to fig. 3, a third embodiment of the method for acquiring network video playing information of a smart television according to the present invention is based on the first or second embodiment, where the data packet is a request packet, and when data in the request packet includes a video address, the step of obtaining and storing the first playing information of a currently playing video according to the data packet includes:
step S201, when the data packet is a request packet and the data in the request packet includes a video address, determining whether a destination address of the request packet is a preset address;
step S202, when the destination address of the data packet is a preset address, acquiring and storing first playing information of a currently played video according to the data packet.
In particular, since the number of packets passing through a particular portal can be enormous, it is important to set appropriate packet filtering conditions, which would place a significant performance burden on the television system if all packets were detected and could lead to inaccuracies in the detection results.
For the data packet sent from the local address, filtering may be performed according to the destination address and the destination port, for example, the destination port number may be limited to only 80, and so on. According to the filtering condition of the destination address, statistics can be carried out on information of a specific video resource acquisition path, such as the jamming condition of a server provided by Yokoku.
Referring to fig. 4, a first embodiment of the system for acquiring network video playing information of a smart television according to the present invention includes:
a data obtaining module 100, configured to obtain, from the link layer, a data packet transmitted and received through a currently operating network interface.
Specifically, after the television system is started, the current network access mode is detected, so as to monitor a working network port corresponding to the network access mode, such as an ethernet port eth0, a wireless network wlan0, and the like. The detection of the network access mode needs to exist all the time during the operation of the television system, and when the change of the network access mode is detected, the monitored working network port needs to be changed correspondingly.
And copying and analyzing part of data packets passing through the current working network port from a TCP/IP link layer. Each packet contains source address, source port, destination address and destination port information.
A first playing information obtaining module 200, configured to, when the data packet is a request packet and data in the request packet includes a video address, obtain and store first playing information of a currently playing video according to the data packet, where the first playing information includes a playing start time and a video address.
After the data packet is obtained, it is first determined whether the source address of the data packet is the local address, if so, the data packet may be a request packet for video playing, and if not, the data packet may be a response packet.
If the video address (i.e. UR L address) in the request packet has a field of ". m3u 8.
From the above, when the request packet passing through the working network port is obtained from the link layer, the play start time and the video address can be obtained.
The second playing information obtaining module 300 is configured to, when the data packet is a response packet, obtain and store second playing information of the currently playing video according to the response packet, where the second playing information includes a playing state of the currently playing video and/or a received data length.
Specifically, when the source address is not the local address, the packet obtained from the link layer is a response packet. The request from the intelligent television client to the server side and the response from the server side to the intelligent television client are realized by a session containing data streams in two directions, and all the sessions are started from the request. The flags of the two flows of the same session are address information, the source addresses and the destination addresses of the request packet and the response packet are opposite, and if the request address is 192.168.029.147.44345-192.168.029.016.08118, the response address is 192.168.029.016.08118-192.168.029.147.44345. Whether the same session is conducted between the intelligent television client and the server side or not can be known by looking at the source address and the destination address of the request packet and the response packet.
The method comprises the steps that when a smart television client sends a request packet for obtaining an H L S playlist to a server, an H L S playing session is created and added to a session queue to wait for a response of the server, when the server receives the request packet, a response packet is returned to the smart television client, the smart television client analyzes the response packet to obtain the H L S playlist, after the smart television client obtains the H L S playlist, a session is created for each subsequent media stream segment obtaining request to detect the playing state, when the server receives the media stream segment obtaining request, the server returns a response packet to the smart television client, and the response packet is analyzed to obtain the media stream segments to be played.
When the smart television client sends a request for obtaining an H L S playlist to the server, a corresponding response packet is obtained at a link layer, the response packet is stored, a media URI list and an information label are obtained after the response packet is analyzed, and the information label comprises the standard playing time length and the data length of each media stream segment.
The method comprises the steps that the server side sends media stream segments to the smart television client side according to a URI list in an H L S playlist, and the server side sends a request for obtaining the media stream segments to the server side.
From the above, the received data length and the stuck condition can be obtained according to the response packet obtained from the link layer and passing through the working network port.
The information sending module 400 is configured to record a playing end time when it is detected that playing of the currently played video is ended, and send the first playing information, the second playing information, and the playing end time to the server.
Specifically, playing each media stream segment received in sequence at the smart television client, and recording the playing ending time when the end of playing of the currently played video is detected. The first playing information obtained according to the request packet, such as the recorded playing start time and the video address, the second playing information obtained according to the response packet, such as the received data length, the pause times and the duration, and the recorded playing end time, are sent to a server for data statistics, and the server can analyze the network video playing quality of the smart television according to the information, such as the most browsing times of which website the user browses, whether pause frequently occurs when the video resources are obtained from the website, the highest attention degree of which video resources the user pays attention to, and the like.
In the technical scheme provided by the invention, all video applications are interacted with a server based on the internet as a client when playing programs, and data is acquired by sending a request waiting response according to the operation of a user, so that a data packet can be captured from a link layer of a monitored network port, and if a request packet for starting video playing is acquired, playing information such as playing starting time and video address is recorded; when a response packet corresponding to the request packet is captured, the playing state of the currently played video can be acquired according to the response packet, and the received playing information such as the data length and the like is recorded; when the end of the playing is detected, the time of the playing end is recorded, and the playing information and the time of the playing end are organized and packaged into an agreed format to be sent to the server. The collection of the playing information is realized by processing the data packet acquired on the link layer, and the processing of the data packet is simpler, so that the method for collecting the playing information is simple and convenient, and the problem of adapting to various video applications does not exist.
Further, referring to fig. 5, which is a second embodiment of the system for acquiring network video playing information of a smart television according to the present invention, based on the first embodiment of the system for acquiring network video playing information of a smart television according to the present invention, the playing status includes a pause duration, and the second playing information acquiring module 300 includes:
an analyzing unit 301, configured to analyze the response packet to obtain analysis data;
the storage unit 302 is configured to, when the analysis data includes an ordered media uniform resource identifier list, obtain and store the uniform resource identifier list, the standard playing time length of the media stream segment, and the data length in the analysis data.
Specifically, when the smart television client sends a request for obtaining a playlist to the server, the server responds and sends a response packet to the smart television client. The response packet passing through the working network port may be obtained from the link layer, and a copy is made, and after the response packet is analyzed, a media URI list and an information tag may be obtained, where the information tag includes a standard play time and a data length of each media stream segment, which is exemplified as follows:
the smart television client plays a single continuous media stream, the single continuous media stream is composed of a plurality of ordered media stream segments, if the continuous media stream is 500 million, the continuous media stream can be played for 500 minutes in total, the continuous media stream is composed of 250 media stream segments, if the data length of each media stream segment is the same, the data length of the first media stream segment, the second media stream segment to the second hundred and fifty media stream segments is 2 million, and the playing time length (i.e. the standard playing time length) is 2 minutes.
An actual playing time length unit 303, configured to obtain an actual playing time length of the received media stream segment when the parsing data includes the media stream segment and the received media stream segment reaches the data length;
a pause duration unit 304, configured to record the pause duration of the currently played video when the actual playing duration is greater than the standard playing duration.
Specifically, when the smart television client sends a request for acquiring the media stream segment to the server according to the media URI list, the server responds and sends a response packet containing the media stream segment to the smart television client. The response packet passing through the working network may be obtained at the link layer, but the response packet is stored, and the time used by the smart tv client to completely receive the media stream segment, that is, the actual playing time length, is recorded, for example, as follows:
the method comprises the steps that a smart television client sends a request for obtaining a first media stream segment to a server according to a URI of the first media stream segment in a media URI list, the server sends the first media stream segment to the smart television client according to the request, because the first media stream segment is 2 million, when the smart television client receives 2 million of data, the fact that the first media stream segment is received completely is indicated, the time from sending the request for obtaining the first media stream segment to the fact that the data are received completely is recorded, if the time is used for 3 minutes, because the actual playing time is longer than 2 minutes of a standard playing time, the fact that video playing is blocked is indicated, the blocking time is 1 minute, and the blocking times are added with 1. The final pause number uploaded to the server is the accumulated pause number between the play start time and the play end time.
In order to obtain the standard playing time and the data length of each media stream segment and the actual playing time from the time of sending the request for obtaining the media stream segment to the time of receiving the media stream segment in the complete period, only a response packet containing an ordered media uniform resource identifier list and an information tag needs to be stored, and a response packet containing the media stream segment with a larger occupied space does not need to be stored, so that the memory occupation is reduced.
In this embodiment, the playing state of the currently played video can be determined by the response packet obtained from the link layer through the working network port, and the number of times and duration of the pause and the length of the received data are recorded.
Further, referring to fig. 6, a third embodiment of the system for acquiring network video playing information of a smart television according to the present invention is shown, and based on the second embodiment of the system for acquiring network video playing information of a smart television according to the present invention, the system for acquiring network video playing information of a smart television further includes:
the first end determining module 600 is configured to determine that the current video playing is ended when the data in the request packet includes a video address and the smart television is in a video playing state.
Specifically, when the current H L S playing is in progress, a request for obtaining an H L S playlist with a field of ". m3u 8.
Further, referring to fig. 7, a fourth embodiment of the system for acquiring network video playing information of a smart television according to the present invention is shown, and based on the second embodiment of the system for acquiring network video playing information of a smart television according to the present invention, the system for acquiring network video playing information of a smart television further includes:
a second end determining module 500, configured to determine that playing of the currently played video is ended when a request packet containing the media uniform resource identifier is not acquired from the link layer within a preset time.
Specifically, the media stream segment currently downloaded from the server end is consumed, but the request for obtaining the next media stream segment is not continuously received at the link layer, which indicates that the currently playing video playing is also ended. There are two cases where the link layer does not continue to receive a request to retrieve the next media stream segment: first, if all media stream segments have been completely downloaded, it means playing to the end; second, if all media stream segments are not completely downloaded, it may mean that the user actively quits playing.
Further, referring to fig. 8, which is a fifth embodiment of the system for acquiring network video playing information of a smart television according to the present invention, based on any one of the first to fourth embodiments of the system for acquiring network video playing information of a smart television according to the present invention, the first playing information acquiring module 200 includes:
a determining unit 201, configured to determine whether a destination address of the request packet is a preset address when the data packet is a request packet and data in the request packet includes a video address;
a first playing information obtaining unit 202, configured to obtain and store first playing information of a currently playing video according to the data packet when the destination address of the data packet is a preset address.
In particular, since the number of packets passing through a particular portal can be enormous, it is important to set appropriate packet filtering conditions, which would place a significant performance burden on the television system if all packets were detected and could lead to inaccuracies in the detection results.
For the data packet sent from the local address, filtering may be performed according to the destination address and the destination port, for example, the destination port number may be limited to only 80, and so on. According to the filtering condition of the destination address, statistics can be carried out on information of a specific video resource acquisition path, such as the jamming condition of a server provided by Yokoku.
The above description is only an alternative embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. A method for acquiring network video playing information of an intelligent television is characterized by comprising the following steps:
acquiring a data packet transmitted and received by a currently working network interface from a link layer;
when the data packet is a request packet and data in the request packet comprises a video address, acquiring and storing first playing information of a currently played video according to the data packet, wherein the first playing information comprises playing start time and a video address;
when the data packet is a response packet corresponding to the request packet, analyzing the response packet to obtain analyzed data;
when the analysis data comprises an ordered media uniform resource identifier list, acquiring and storing the uniform resource identifier list, the standard playing time length of the media stream segment and the data length in the analysis data;
when the analysis data comprises the media stream segment and the received media stream segment reaches the data length, acquiring the actual playing time length of the received media stream segment;
when the actual playing time length is longer than the standard playing time length, recording the pause time length of the currently played video;
when the end of playing the currently played video is detected, recording the playing end time, and sending the first playing information, the playing end time, the pause time of the currently played video and/or the received data length to a server.
2. The method for collecting video playing information of the smart tv network as claimed in claim 1, wherein when the data in the request packet includes a video address and the smart tv is in a video playing state, it is determined that the current video playing is finished.
3. The method for collecting video playing information of an intelligent television network as claimed in claim 1, wherein when the data packet is a request packet and the data in the request packet includes a video address, the step of obtaining and storing the first playing information of the currently played video according to the data packet comprises the following steps:
and when the request packet containing the media uniform resource identifier is not acquired from the link layer within the preset time, judging that the playing of the currently played video is finished.
4. The method for collecting video playing information of an intelligent television network according to any one of claims 1 to 3, wherein when the data packet is a request packet and the data in the request packet includes a video address, the step of obtaining and storing the first playing information of the currently played video according to the data packet comprises:
when the data packet is a request packet and the data in the request packet comprises a video address, judging whether the destination address of the request packet is a preset address or not;
and when the destination address of the data packet is a preset address, acquiring and storing first playing information of the currently played video according to the data packet.
5. The system for acquiring the video playing information of the intelligent television network is characterized by comprising the following components:
the data acquisition module is used for acquiring a data packet transmitted and received by a currently working network interface from a link layer;
a first playing information obtaining module, configured to, when the data packet is a request packet and data in the request packet includes a video address, obtain and store first playing information of a currently playing video according to the data packet, where the first playing information includes a playing start time and a video address;
the second playing information acquisition module comprises an analysis unit, a storage unit, an actual playing time length unit and a pause time length unit;
the analysis unit is used for analyzing the response packet to obtain analysis data when the data packet is the response packet;
the storage unit is used for acquiring and storing the uniform resource identifier list, the standard playing time length of the media stream segment and the data length in the analysis data when the analysis data comprises the ordered media uniform resource identifier list;
the actual playing time length unit is configured to obtain an actual playing time length of the received media stream segment when the analysis data includes the media stream segment and the received media stream segment reaches the data length;
the pause time recording unit is used for recording the pause time of the currently played video when the actual playing time is longer than the standard playing time;
and the information sending module is used for recording the playing ending time when the end of the playing of the currently played video is detected, and sending the first playing information, the playing ending time, the pause time of the currently played video and/or the received data length to a server.
6. The system for collecting video playing information of an intelligent television network as claimed in claim 5, wherein the system further comprises:
and the first end judgment module is used for judging that the current video playing is ended when the data in the request packet comprises a video address and the smart television is in a video playing state.
7. The system for collecting video playing information of an intelligent television network as claimed in claim 5, wherein the system further comprises:
and the second ending judging module is used for judging that the playing of the currently played video is ended when the request packet containing the media uniform resource identifier is not acquired from the link layer within the preset time.
8. The system for acquiring video playing information of an intelligent television network according to any one of claims 5 to 7, wherein the first playing information acquiring module comprises:
the judging unit is used for judging whether the destination address of the request packet is a preset address or not when the data packet is a request packet and the data in the request packet comprises a video address;
and the first playing information acquisition unit is used for acquiring and storing the first playing information of the currently played video according to the data packet when the destination address of the data packet is a preset address.
CN201611076005.8A 2016-11-29 2016-11-29 Method and system for collecting network video playing information of smart television Active CN106412661B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201611076005.8A CN106412661B (en) 2016-11-29 2016-11-29 Method and system for collecting network video playing information of smart television
PCT/CN2016/113019 WO2018098884A1 (en) 2016-11-29 2016-12-29 Network video playback information acquisition method and system of mart television

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611076005.8A CN106412661B (en) 2016-11-29 2016-11-29 Method and system for collecting network video playing information of smart television

Publications (2)

Publication Number Publication Date
CN106412661A CN106412661A (en) 2017-02-15
CN106412661B true CN106412661B (en) 2020-07-14

Family

ID=58084330

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611076005.8A Active CN106412661B (en) 2016-11-29 2016-11-29 Method and system for collecting network video playing information of smart television

Country Status (2)

Country Link
CN (1) CN106412661B (en)
WO (1) WO2018098884A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108174187B (en) * 2017-12-14 2020-04-24 聚好看科技股份有限公司 Method and system for testing response time of smart television
CN113973216A (en) * 2020-07-22 2022-01-25 聚好看科技股份有限公司 Video collection generation method and display device

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7984097B2 (en) * 2008-03-18 2011-07-19 Media Patents, S.L. Methods for transmitting multimedia files and advertisements
CN101600093A (en) * 2009-04-29 2009-12-09 四川长虹电器股份有限公司 A kind of digital television program interaction method, system, terminal equipment and set-top box
CN103024598B (en) * 2013-01-10 2015-12-09 深信服网络科技(深圳)有限公司 Obtain method and device that Internet video plays fluency
CN103501434A (en) * 2013-09-17 2014-01-08 北京奇艺世纪科技有限公司 Method and device for analyzing quality of video
CN103841412B (en) * 2014-03-18 2016-03-02 北京邮电大学 A kind of Internet video quality measurement of user experience method and apparatus
CN104168506A (en) * 2014-08-13 2014-11-26 广州市香港科大霍英东研究院 Method for obtaining user video experience quality by sniffing HTTP data packet
CN104349220A (en) * 2014-11-25 2015-02-11 复旦大学 Service quality monitoring system for intelligent television terminal
CN106060663B (en) * 2016-06-24 2018-11-27 武汉斗鱼网络科技有限公司 The method and system of monitor video smoothness degree during net cast

Also Published As

Publication number Publication date
CN106412661A (en) 2017-02-15
WO2018098884A1 (en) 2018-06-07

Similar Documents

Publication Publication Date Title
EP3313043B1 (en) System and method for determining quality of a media stream
US9088481B2 (en) Web transaction analysis
EP2942970A1 (en) Streaming media data obtaining method, device, and system
US9549010B2 (en) Method and apparatus for media session identification, tracking, and analysis
US20120317151A1 (en) Model-Based Method for Managing Information Derived From Network Traffic
CN101594241B (en) Method and system for downloading network video
CN106878074B (en) Flow filtering method and device
CN114422451A (en) Network traffic identification method and related equipment
CN107743228A (en) Video quality detection method, monitoring device and storage medium
CN109587521B (en) Video stuck judgment method and device
US20210176530A1 (en) ESTIMATING OTT PLAYER QoE METRICS FROM CDN LOGS USING AI AND MACHINE LEARNING
US20170085950A1 (en) Determining a quality of experience metric based on uniform resource locator data
CN105451071A (en) Video stream processing method, device and system
CN104185016B (en) OTT video quality method for supervising, Apparatus and system
CN106412661B (en) Method and system for collecting network video playing information of smart television
WO2015154549A1 (en) Data processing method and device
CN109688483A (en) A kind of method, apparatus and electronic equipment obtaining video
CA3010007C (en) Systems and methods for bandwidth estimation in oscillating networks
WO2013029215A1 (en) Method and apparatus for modeling a service delivered over a communication network
CN106549794A (en) A kind of mass monitoring system of OTT business, apparatus and method
CN107623847B (en) Video quality evaluation method and device for video service
CN106973307A (en) A kind of video equipment access method and device
CN114245105A (en) Video playing quality detection method, system, device and storage medium
US20150350708A1 (en) Video stream transmission method and system
CN106330548B (en) Flow statistical method, device and system

Legal Events

Date Code Title Description
C06 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