CN106412661A - Smart television network video play information collection method and system - Google Patents

Smart television network video play information collection method and system Download PDF

Info

Publication number
CN106412661A
CN106412661A CN201611076005.8A CN201611076005A CN106412661A CN 106412661 A CN106412661 A CN 106412661A CN 201611076005 A CN201611076005 A CN 201611076005A CN 106412661 A CN106412661 A CN 106412661A
Authority
CN
China
Prior art keywords
video
broadcast information
bag
data
packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201611076005.8A
Other languages
Chinese (zh)
Other versions
CN106412661B (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

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 method discloses a smart television network video play information collection method. The method comprises: obtaining a data packet transmitted and received from a link layer through the current working network interface; when the data packet is a request packet and the data in the request packet includes a video address, obtaining the first play information of the current playing video according to the data packet; when the data packet is a response packet, obtaining the second play information of the current playing video according to the response packet; and when it is detected that the current playing video play completes, recording the play ending time and sending the first play information, the second play information and the play ending time to a server. The present invention further discloses a smart television network video play information collection system. In the technical scheme, because the collection of the play information is realized through the data packet obtained on the link layer, the processing of the data packet is simple, and the play information is simple, rapid and convenient through the method provided by the invention.

Description

Intelligent television Internet video broadcast information acquisition method and system
Technical field
The present invention relates to Internet transmission and stream media technology field, more particularly, to a kind of intelligent television Internet video Broadcast information acquisition method and system.
Background technology
Intelligent television is that one kind is based on internet, applications technology, has the new tv product of full open model platform, Yong Huke Voluntarily install and uninstall types of applications software on TV, the function of TV is expanded and upgrades.In types of applications software In, Video Applications are one of wherein of paramount importance applications, but Video Applications quantity is various, substantially all doors and video website All develop the Video Applications of oneself, different users has different choice in the face of so various Video Applications.In order to improve TV performance it is necessary to the terminal-pair video playing quality in intelligent television does a statistics, collect include play start time, Play the broadcast information such as end time, broadcast state and video address.Various broadcasting is collected on backstage generally by Video Applications Put information, but the variation due to Video Applications, and existing method is difficult to be adapted to various Video Applications so that broadcast information Collection becomes complicated.
Content of the invention
Present invention is primarily targeted at proposing a kind of intelligent television Internet video broadcast information acquisition method and system, purport Solving to be difficult to the technical problem in intelligent television end collection video playback information.
For achieving the above object, a kind of intelligent television Internet video broadcast information acquisition method that the present invention provides, described Method includes:
Obtain network interface transfers and the packet receiving through work at present from link layer;
When data in described packet is for request bag, and described request bag includes video address, according to described data Bag obtains the first broadcast information of currently playing video and preserves, and described first broadcast information includes play start time and video Address;
When described packet is response bag, the second broadcast information according to the described response bag currently playing video of acquisition is simultaneously Preservation, the described second broadcast information broadcast state including currently playing video and/or the data length receiving;
At the end of currently playing video playback is detected, the recording played end time, and by described first broadcast information, Second broadcast information and broadcasting end time are sent to server.
Preferably, described broadcast state includes interim card duration, described obtains currently playing video according to described response bag The second broadcast information step preserving includes:
Analyze the response to bag to obtain parsing data;
When described parsing data includes orderly media uniform resource identifier list, obtain in described parsing data Uniform resource identifier list, the normal play duration of Media Stream fragment and data length simultaneously preserve;
When described parsing data includes described Media Stream fragment, and the described Media Stream fragment receiving reaches described data During length, obtain the actual play duration of the described Media Stream fragment receiving;
When described actual play duration is more than described normal play duration, record the interim card duration of currently playing video.
Preferably, the data in described request bag includes video address, and when intelligent television is in video broadcasting condition, Judge that current video is play to terminate.
Preferably, when described data in described packet is for request bag, and described request bag includes video address, root Include after the step obtaining the first broadcast information of currently playing video according to described packet and preserving:
When the request bag comprising media Uniform Resource Identifier not being got from link layer in Preset Time, sentence Fixed currently playing video playback terminates.
Preferably, when described data in described packet is for request bag, and described request bag includes video address, root The step obtaining the first broadcast information of currently playing video according to described packet and preserving includes:
When data in described packet is for request bag, and described request bag includes video address, judge described request Whether the destination address of bag is preset address;
When the destination address of described packet is preset address, obtain the of currently playing video according to described packet One broadcast information simultaneously preserves.
Additionally, for achieving the above object, the present invention also proposes a kind of intelligent television Internet video broadcast information acquisition system, Including:
Data acquisition module, for obtaining network interface transfers and the packet receiving through work at present from link layer;
First broadcast information acquisition module, for being the packet in request bag, and described request bag in described packet When including video address, the first broadcast information of currently playing video is obtained according to described packet and preserves, described first broadcasting Information includes play start time and video address;
Second broadcast information acquisition module, for when described packet is response bag, obtaining according to described response bag and working as Front the second broadcast information playing video simultaneously preserves, described second broadcast information include currently playing video broadcast state and/ Or the data length receiving;
Information sending module, at the end of currently playing video playback ought be detected, the recording played end time, and will Described first broadcast information, the second broadcast information and broadcasting end time are sent to service.
Preferably, described broadcast state includes interim card duration, and described second broadcast information acquisition module includes:
Resolution unit, is used for analyzing the response to bag and obtains parsing data;
Memory element, for when described parsing data includes orderly media uniform resource identifier list, obtaining institute State the uniform resource identifier list in parsing data, the normal play duration of Media Stream fragment and data length and preserve;
Actual play duration unit, for including described Media Stream fragment when described parsing data, and receive described When Media Stream fragment reaches described data length, obtain the actual play duration of the described Media Stream fragment receiving;
Interim card duration unit, for when described actual play duration is more than described normal play duration, record is currently broadcast Put the interim card duration of video.
Preferably, described system also includes:
First end determination module, includes video address for the data in described request bag, and intelligent television is in During video broadcasting condition, judge that current video is play and terminate.
Preferably, described system also includes:
Second end determination module, comprises the unified money of media for working as not getting from link layer in Preset Time During the request bag of source identifier, judge that currently playing video playback terminates.
Preferably, described first broadcast information acquisition module includes:
Judging unit, during for being that the data in request bag, and described request bag includes video address in described packet, Whether the destination address judging described request bag is preset address;
First broadcast information acquiring unit, for when the destination address of described packet is preset address, according to described Packet obtains the first broadcast information of currently playing video and preserves.
In technical scheme proposed by the present invention, because all of Video Applications are all based on the Internet and make when playing program Interact with server for client, according to the operation of user, obtain data by sending request wait-for-response, so can To capture packet on the link layer of the network interface of monitoring, if getting the request bag that a video playback starts, record Play the broadcast information such as the time starting and video address;When grabbing response bag corresponding with above-mentioned request bag, then permissible Obtain the broadcast state of currently playing video according to response bag, record the broadcast information such as the data length receiving;When detecting this At the end of secondary broadcasting, the time that recording played terminates, the time tissue that this broadcast information and broadcasting are terminated is packaged into about Fixed form is sent to server.Because the collection of broadcast information is all to be realized by processing the packet obtaining on link layer , and the process to packet is relatively simple, collection broadcast information is simple and convenient by this method, also there is not adaptation various The problem of Video Applications.
Brief description
Fig. 1 is the schematic flow sheet of intelligent television Internet video broadcast information acquisition method first embodiment of the present invention;
Fig. 2 is to be obtained according to response bag in intelligent television Internet video broadcast information acquisition method second embodiment of the present invention Second broadcast information of currently playing video the refinement schematic flow sheet of the step preserving;
Fig. 3 is to be obtained according to packet in intelligent television Internet video broadcast information acquisition method 3rd embodiment of the present invention First broadcast information of currently playing video the refinement schematic flow sheet of the step preserving;
Fig. 4 is that the functional module of intelligent television Internet video broadcast information acquisition system first embodiment of the present invention is illustrated Figure;
Fig. 5 is that in intelligent television Internet video broadcast information acquisition system second embodiment of the present invention, second broadcast information obtains The refinement high-level schematic functional block diagram of delivery block;
Fig. 6 is that the functional module of intelligent television Internet video broadcast information acquisition system 3rd embodiment of the present invention is illustrated Figure;
Fig. 7 is that the functional module of intelligent television Internet video broadcast information acquisition system fourth embodiment of the present invention is illustrated Figure;
Fig. 8 is that in intelligent television Internet video broadcast information acquisition system the 5th embodiment of the present invention, first broadcast information obtains The refinement high-level schematic functional block diagram of delivery block.
The realization of the object of the invention, functional characteristics and advantage will be described further in conjunction with the embodiments referring to the drawings.
Specific embodiment
It should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
As shown in figure 1, the intelligent television Internet video broadcast information acquisition method that first embodiment of the invention proposes, described Intelligent television Internet video broadcast information acquisition method includes:
Step S100, obtains network interface transfers and the packet receiving through work at present from link layer.
Specifically, after television system starts, detect current network access mode, thus monitoring this network access mode pair The work network interface answered, such as Ethernet interface eth0, wireless network wlan0 etc..Detection to network access mode, and from link Layer obtains network interface transfers through work at present and the packet that receives needs in television system run duration to exist always, when Detect and when network access mode changes, need the corresponding work network interface changing monitoring.
From TCP/IP link layer, the partial data bag through work at present network interface is copied and parses.Every number Comprise source address, source port, destination address and destination interface information according to Bao Jun.
Step S200, when the data in described packet is for request bag, and described request bag includes video address, according to Described packet obtains the first broadcast information of currently playing video and preserves, when described first broadcast information includes playing beginning Between and video address.
Specifically, the packet getting from link layer is divided into request bag and response bag.After getting packet, first Judge this packet source address be the machine address, if so, this packet be probably a video playback request bag, If it is not, this packet is probably response bag.The present embodiment taking HLS broadcasting as a example illustrates.
For source address is for the packet of the machine address, this video can be determined whether by parsing this packet What kind of solicited message is the request bag play be.If the video address in request bag (i.e. URL address) carries " .m3u8?" word Section mean this request bag solicited message be request HLS (HTTP Live Streaming) playlist, this request bag send out Send the beginning meaning that a HLS plays, record play start time.HLS playlist is by an orderly media unification Resource identifier list (i.e. media URI List) and information labels composition, each media URI points to a media file, this matchmaker Body file is a fragment on single continuous media.In order to play Media Stream, client obtains playlist first, then Obtain and play each media stream file according to the media URI in playlist successively, form continuous video playback, at this In bright, client is intelligent television client.
From the above it can be seen that when obtaining on link layer through the request bag of the network interface that works, it is possible to obtain play start time And video address.
Step S300, when described packet is response bag, obtains the second of currently playing video according to described response bag Broadcast information simultaneously preserves, and the described second broadcast information broadcast state including currently playing video and/or the data receiving are long Degree.
Specifically, when source address is not the machine address, the packet obtaining from link layer is response bag.Intelligent television The response of client to request server end to the intelligent television client of server end is by comprising both direction data The session of stream is achieved, and all of session is all from the beginning of request.Mark as same session two-way stream is ground The source address of location information, request bag and response bag and destination address are contrary, if request address is 192.168.029.147.44345-192.168.029.016.08118, then response address is 192.168.029.016.08118-192.168.029.147.44345.By check request bag and response bag source address and Destination address may know that the whether same session carrying out between intelligent television client and server end.
When intelligent television client sends the request bag obtaining HLS playlist, create a HLS and broadcast Put session and be added to the response that medium device end to be serviced is lined up in session;When received server-side is to this request bag, to intelligent electricity Return response bag depending on client, intelligent television client can obtain HLS playlist after parsing this response bag;Intelligent television visitor Family end is that obtaining of each follow-up Media Stream fragment asks to create session to detect the shape of broadcasting after getting HLS playlist State;Received server-side to obtain Media Stream fragment request when, can to intelligent television client return response bag, parse this sound Should wrap and can obtain Media Stream fragment thus playing.
When intelligent television client sends the request obtaining HLS playlist, it is right to obtain in link layer The response bag answered, and preserve this response bag, obtain media URI List and information labels, in information labels after parsing this response bag Comprise the normal play duration data length of each Media Stream fragment.
Then, media are obtained when intelligent television client sends to server end according to the URI List in HLS playlist During the request of flow section, server end sends Media Stream fragment to intelligent television client.Knowable to from HLS playlist The data length of each Media Stream fragment, can know according to the time point that intelligent television client reception Media Stream fragment finishes Receive the actual play duration of this Media Stream fragment, by the normal play time length ratio in actual play duration and HLS playlist May know that whether video playback occurs interim card, and the duration of interim card.
From the above it can be seen that according to the response bag obtaining on link layer through work network interface, it is possible to obtain the number receiving According to length and interim card situation.
Step S400, at the end of currently playing video playback is detected, the recording played end time, and by described first Broadcast information, the second broadcast information and broadcasting end time are sent to server.
Specifically, each Media Stream fragment being sequentially received in intelligent television client terminal playing, currently broadcasts when detecting At the end of putting video playback, the recording played end time.By the first broadcast information being obtained according to request bag, the broadcasting of such as record Put time started and video address, the second broadcast information being obtained according to response bag, the data length such as receiving, interim card time Number and duration etc., and the end time of playing of record be sent to the server carrying out data statisticss, this server is according to above-mentioned Information can be analyzed to the Internet video play quality of intelligent television end, and such as user is to the number of visits of which network address Many, whether the situation of interim card often occurs when this network address obtains video resource, user is to the attention rate of which video resource Height etc..
In technical scheme proposed by the present invention, because all of Video Applications are all based on the Internet and make when playing program Interact with server for client, according to the operation of user, obtain data by sending request wait-for-response, so can To capture packet on the link layer of the network interface of monitoring, if getting the request bag that a video playback starts, record Play the broadcast information such as the time starting and video address;When grabbing response bag corresponding with above-mentioned request bag, then permissible Obtain the broadcast state of currently playing video according to response bag, record the broadcast information such as the data length receiving;When detecting this At the end of secondary broadcasting, the time that recording played terminates, the time tissue that this broadcast information and broadcasting are terminated is packaged into about Fixed form is sent to server.Because the collection of broadcast information is all to be realized by processing the packet obtaining on link layer , and the process to packet is relatively simple, collection broadcast information is simple and convenient by this method, also there is not adaptation various The problem of Video Applications.
Further, with reference to Fig. 2, it is the second enforcement of intelligent television Internet video broadcast information acquisition method of the present invention Example, based on the first embodiment of intelligent television Internet video broadcast information acquisition method of the present invention, described broadcast state includes card Immediately long, the described step obtaining the second broadcast information of currently playing video according to described response bag and preserving includes:
Step S301, analyzes the response to bag and obtains parsing data;
Step S302, when described parsing data includes orderly media uniform resource identifier list, obtains described solution Uniform resource identifier list in analysis data, the normal play duration of Media Stream fragment and data length simultaneously preserve.
Specifically, when intelligent television client sends the request obtaining playlist, server end does Go out response, send response bag to intelligent television client.This response bag through work network interface can be obtained from link layer, and copy Shellfish is a, can obtain media URI List and information labels, this information labels includes each media flow after parsing this response bag The normal play duration of section and data length, are below illustrated:
Intelligent television client terminal playing is single continuous media, and single continuous media is by multiple orderly Media Streams The composition of fragment, if this continuous media is 500,000,000, can play 500 minutes, this continuous media is by 250 media altogether Flow section forms, if the data length of each Media Stream fragment is the same, then the first Media Stream fragment, the second Media Stream Fragment is 2,000,000 to the data length of the 250th Media Stream fragment, and playing duration (i.e. normal play duration) is 2 points Clock.
Step S303, when described parsing data includes described Media Stream fragment, and the described Media Stream fragment receiving reaches During to described data length, obtain the actual play duration of the described Media Stream fragment receiving;
Step S304, when described actual play duration is more than described normal play duration, records currently playing video Interim card duration.
Specifically, obtain Media Stream fragment when intelligent television client sends to server end according to media URI List During request, server end responds, and sends the response bag including Media Stream fragment to intelligent television client.In link layer This response bag through job network can be obtained, but this response bag is not stored, but record intelligent television visitor Family end receives the time that this Media Stream fragment is used, i.e. actual play duration completely, is below illustrated:
Intelligent television client sends to server end according to the URI of the first Media Stream fragment in media URI List and obtains Take the request of the first Media Stream fragment, server end sends the first Media Stream fragment according to this request to intelligent television client, Because the first Media Stream fragment is 2,000,000, when intelligent television client receives 2,000,000 data, the first Media Stream fragment is described Receive, record finishes the used time from sending request to the receiving data obtaining the first Media Stream fragment, if making With 3 minutes, because this actual play duration is more than 2 minutes of normal play duration, illustrate that video playback there occurs interim card, card When a length of 1 minute, and interim card number of times is added 1.The interim card number of times finally uploaded onto the server be from play start time to Play the accumulative interim card number of times between the end time.
In order to obtain the normal play duration data length of each Media Stream fragment, and from the described acquisition media of transmission The request of flow section receives the actual play duration of period completely to described Media Stream fragment, only need to preserve and include orderly matchmaker Body uniform resource identifier list and the response bag of information labels, are not required to preserve take up room and larger include Media Stream fragment Response bag, thus reducing EMS memory occupation.
In the present embodiment, by link layer obtain the response bag through work network interface may determine that currently playing The broadcast state of video, the number of times of record interim card and duration, the data length receiving.
Further, on the basis of above-mentioned second embodiment, the data in described request bag includes video address, and When intelligent television is in video broadcasting condition, judges that current video is play and terminate.
Specifically, when previous HLS broadcasting is ongoing simultaneously, link layer gets one and carries " .m3u8?” It is meant that user have switched program, currently playing video playback terminates, and record is broadcast for the request of the acquisition HLS playlist of field Put the end time, and upload, with the first broadcast information, the server carrying out data statisticss together with the second broadcast information, start new Information gathering.
Further, on the basis of above-mentioned second embodiment, described is request bag in described packet, and described request When data in bag includes video address, the first broadcast information of currently playing video is obtained according to described packet and preserves Include after step:
Step S500, comprises asking of media Uniform Resource Identifier when getting from link layer in Preset Time When seeking bag, judge that currently playing video playback terminates.
Specifically, the Media Stream fragment currently downloaded from server end has run out of, but does not continue in link layer Receive the request obtaining next Media Stream fragment, illustrate that currently playing video playback also finishes.Do not continue in link layer The request that continued access receives the next Media Stream fragment of acquisition has two kinds of situations:The first, if all of Media Stream fragment Download completely, meaning is played to tail;Second, does not download completely if all of Media Stream segmentation, might mean that user Actively exit broadcasting.
Further, with reference to Fig. 3, it is the 3rd enforcement of intelligent television Internet video broadcast information acquisition method of the present invention Example, on the basis of above-mentioned first or second embodiments, described is the number in request bag, and described request bag in described packet During according to inclusion video address, the step bag obtaining the first broadcast information of currently playing video and preserving according to described packet Include:
Step S201, when the data in described packet is for request bag, and described request bag includes video address, judges Whether the destination address of described request bag is preset address;
Step S202, when the destination address of described packet is preset address, obtains according to described packet and currently broadcasts Put the first broadcast information of video and preserve.
Specifically, because the quantity of the packet through specific network interface may be very huge, suitable Packet Filtering is set Condition is critically important, all detects and will bring huge performance burden to television system and may lead to detect if all of packet Result inaccurate.
For the packet sending from the machine address, can be filtered according to destination address and destination interface, such as be limited Destination slogan is only 80 etc..Situation about being filtered according to destination address, can obtain way to specific video resource The information in footpath is counted, interim card situation of server that such as youku.com provides etc..
With reference to Fig. 4, it is the first embodiment of intelligent television Internet video broadcast information acquisition system of the present invention, described intelligence TV network video playback information acquisition system includes:
Data acquisition module 100, for obtaining network interface transfers and the data receiving through work at present from link layer Bag.
Specifically, after television system starts, detect current network access mode, thus monitoring this network access mode pair The work network interface answered, such as Ethernet interface eth0, wireless network wlan0 etc..To the detection of network access mode in television system Run duration needs to exist always, needs the corresponding working net changing monitoring when network access mode is detected and changing Mouthful.
From TCP/IP link layer, the partial data bag through work at present network interface is copied and parses.Every number Comprise source address, source port, destination address and destination interface information according to Bao Jun.
First broadcast information acquisition module 200, for being the data in request bag, and described request bag in described packet During including video address, the first broadcast information of currently playing video is obtained according to described packet and preserves, described first broadcasts The information of putting includes play start time and video address.
Specifically, the packet getting from link layer is divided into request bag and response bag.After getting packet, first Judge this packet source address be the machine address, if so, this packet be probably a video playback request bag, If it is not, this packet is probably response bag.The present embodiment taking HLS broadcasting as a example illustrates.
For source address is for the packet of the machine address, this video can be determined whether by parsing this packet What kind of solicited message is the request bag play be.If the video address in request bag (i.e. URL address) carries " .m3u8?" word Section mean this request bag solicited message be request HLS (HTTP Live Streaming) playlist, this request bag send out Send the beginning meaning that a HLS plays, record play start time.HLS playlist is by an orderly media unification Resource identifier list (i.e. media URI List) and information labels composition, each media URI points to a media file, this matchmaker Body file is a fragment on single continuous media.In order to play Media Stream, client obtains playlist first, then Obtain and play each media stream file according to the media URI in playlist successively, form continuous video playback, at this In bright, client is intelligent television client.
From the above it can be seen that when obtaining on link layer through the request bag of the network interface that works, it is possible to obtain play start time And video address.
Second broadcast information acquisition module 300, for when described packet is response bag, obtaining according to described response bag Second broadcast information of currently playing video simultaneously preserves, and described second broadcast information includes the broadcast state of currently playing video And/or the data length receiving.
Specifically, when source address is not the machine address, the packet obtaining from link layer is response bag.Intelligent television The response of client to request server end to the intelligent television client of server end is by comprising both direction data The session of stream is achieved, and all of session is all from the beginning of request.Mark as same session two-way stream is ground The source address of location information, request bag and response bag and destination address are contrary, if request address is 192.168.029.147.44345-192.168.029.016.08118, then response address is 192.168.029.016.08118-192.168.029.147.44345.By check request bag and response bag source address and Destination address may know that the whether same session carrying out between intelligent television client and server end.
When intelligent television client sends the request bag obtaining HLS playlist, create a HLS and broadcast Put session and be added to the response that medium device end to be serviced is lined up in session;When received server-side is to this request bag, to intelligent electricity Return response bag depending on client, intelligent television client can obtain HLS playlist after parsing this response bag;Intelligent television visitor Family end is that obtaining of each follow-up Media Stream fragment asks to create session to detect the shape of broadcasting after getting HLS playlist State;Received server-side to obtain Media Stream fragment request when, can to intelligent television client return response bag, parse this sound Should wrap and can obtain Media Stream fragment thus playing.
When intelligent television client sends the request obtaining HLS playlist, it is right to obtain in link layer The response bag answered, and preserve this response bag, obtain media URI List and information labels, in information labels after parsing this response bag Comprise the normal play duration data length of each Media Stream fragment.
Then, media are obtained when intelligent television client sends to server end according to the URI List in HLS playlist During the request of flow section, server end sends Media Stream fragment to intelligent television client.Knowable to from HLS playlist The data length of each Media Stream fragment, can know according to the time point that intelligent television client reception Media Stream fragment finishes Receive the actual play duration of this Media Stream fragment, by the normal play time length ratio in actual play duration and HLS playlist May know that whether video playback occurs interim card, and the duration of interim card.
From the above it can be seen that according to the response bag obtaining on link layer through work network interface, it is possible to obtain the number receiving According to length and interim card situation.
Information sending module 400, at the end of currently playing video playback ought be detected, the recording played end time, And described first broadcast information, the second broadcast information and broadcasting end time are sent to server.
Specifically, each Media Stream fragment being sequentially received in intelligent television client terminal playing, currently broadcasts when detecting At the end of putting video playback, the recording played end time.By the first broadcast information being obtained according to request bag, the broadcasting of such as record Put time started and video address, the second broadcast information being obtained according to response bag, the data length such as receiving, interim card time Number and duration etc., and the end time of playing of record be sent to the server carrying out data statisticss, this server is according to above-mentioned Information can be analyzed to the Internet video play quality of intelligent television end, and such as user is to the number of visits of which network address Many, whether the situation of interim card often occurs when this network address obtains video resource, user is to the attention rate of which video resource Height etc..
In technical scheme proposed by the present invention, because all of Video Applications are all based on the Internet and make when playing program Interact with server for client, according to the operation of user, obtain data by sending request wait-for-response, so can To capture packet on the link layer of the network interface of monitoring, if getting the request bag that a video playback starts, record Play the broadcast information such as the time starting and video address;When grabbing response bag corresponding with above-mentioned request bag, then permissible Obtain the broadcast state of currently playing video according to response bag, record the broadcast information such as the data length receiving;When detecting this At the end of secondary broadcasting, the time that recording played terminates, the time tissue that this broadcast information and broadcasting are terminated is packaged into about Fixed form is sent to server.Because the collection of broadcast information is all to be realized by processing the packet obtaining on link layer , and the process to packet is relatively simple, collection broadcast information is simple and convenient by this method, also there is not adaptation various The problem of Video Applications.
Further, with reference to Fig. 5, it is the second enforcement of intelligent television Internet video broadcast information acquisition system of the present invention Example, based on the first embodiment of intelligent television Internet video broadcast information acquisition system of the present invention, described broadcast state includes card Immediately long, described second broadcast information acquisition module 300 includes:
Resolution unit 301, is used for analyzing the response to bag and obtains parsing data;
Memory element 302, for when described parsing data includes orderly media uniform resource identifier list, obtaining Uniform resource identifier list in described parsing data, the normal play duration of Media Stream fragment and data length are simultaneously protected Deposit.
Specifically, when intelligent television client sends the request obtaining playlist, server end does Go out response, send response bag to intelligent television client.This response bag through work network interface can be obtained from link layer, and copy Shellfish is a, can obtain media URI List and information labels, this information labels includes each media flow after parsing this response bag The normal play duration of section and data length, are below illustrated:
Intelligent television client terminal playing is single continuous media, and single continuous media is by multiple orderly Media Streams The composition of fragment, if this continuous media is 500,000,000, can play 500 minutes, this continuous media is by 250 media altogether Flow section forms, if the data length of each Media Stream fragment is the same, then the first Media Stream fragment, the second Media Stream Fragment is 2,000,000 to the data length of the 250th Media Stream fragment, and playing duration (i.e. normal play duration) is 2 points Clock.
Actual play duration unit 303, for including described Media Stream fragment, and the institute receiving when described parsing data When stating Media Stream fragment and reaching described data length, obtain the actual play duration of the described Media Stream fragment receiving;
Interim card duration unit 304, for when described actual play duration is more than described normal play duration, record is current Play the interim card duration of video.
Specifically, obtain Media Stream fragment when intelligent television client sends to server end according to media URI List During request, server end responds, and sends the response bag including Media Stream fragment to intelligent television client.In link layer This response bag through job network can be obtained, but and this response bag is stored, but record intelligent television client End receives the time that this Media Stream fragment is used, i.e. actual play duration completely, is below illustrated:
Intelligent television client sends to server end according to the URI of the first Media Stream fragment in media URI List and obtains Take the request of the first Media Stream fragment, server end sends the first Media Stream fragment according to this request to intelligent television client, Because the first Media Stream fragment is 2,000,000, when intelligent television client receives 2,000,000 data, the first Media Stream fragment is described Receive, record finishes the used time from sending request to the receiving data obtaining the first Media Stream fragment, if making With 3 minutes, because this actual play duration is more than 2 minutes of normal play duration, illustrate that video playback there occurs interim card, card When a length of 1 minute, and interim card number of times is added 1.The interim card number of times finally uploaded onto the server be from play start time to Play the accumulative interim card number of times between the end time.
In order to reach the normal play duration data length obtaining each Media Stream fragment, and from the described acquisition of transmission The request of Media Stream fragment receives the actual play duration of period completely to described Media Stream fragment, only need to preserve and include in order Media uniform resource identifier list and information labels response bag, be not required to preserve take up room and larger include Media Stream The response bag of fragment, thus reduce EMS memory occupation.
In the present embodiment, by link layer obtain the response bag through work network interface may determine that currently playing The broadcast state of video, the number of times of record interim card and duration, the data length receiving.
Further, with reference to Fig. 6, it is the 3rd enforcement of intelligent television Internet video broadcast information acquisition system of the present invention Example, based on the second embodiment of intelligent television Internet video broadcast information acquisition system of the present invention, described intelligent television network video Frequency broadcast information acquisition system also includes:
First end determination module 600, includes video address for the data in described request bag, and at intelligent television When video broadcasting condition, judge that current video is play and terminate.
Specifically, when previous HLS broadcasting is ongoing simultaneously, link layer gets one and carries " .m3u8?” It is meant that user have switched program, currently playing video playback terminates, and record is broadcast for the request of the acquisition HLS playlist of field Put the end time, and upload, with the first broadcast information, the server carrying out data statisticss together with the second broadcast information, start new Information gathering.
Further, with reference to Fig. 7, it is the 4th enforcement of intelligent television Internet video broadcast information acquisition system of the present invention Example, based on the second embodiment of intelligent television Internet video broadcast information acquisition system of the present invention, described intelligent television network video Frequency broadcast information acquisition system also includes:
Second end determination module 500, comprises media system for working as not getting from link layer in Preset Time During the request bag of one resource identifier, judge that currently playing video playback terminates.
Specifically, the Media Stream fragment currently downloaded from server end has run out of, but does not continue in link layer Receive the request obtaining next Media Stream fragment, illustrate that currently playing video playback also finishes.Do not continue in link layer The request that continued access receives the next Media Stream fragment of acquisition has two kinds of situations:The first, if all of Media Stream fragment Download completely, meaning is played to tail;Second, does not download completely if all of Media Stream segmentation, might mean that user Actively exit broadcasting.
Further, with reference to Fig. 8, it is the 5th enforcement of intelligent television Internet video broadcast information acquisition system of the present invention Example, based on first to fourth any embodiment of intelligent television Internet video broadcast information acquisition system of the present invention, described first Broadcast information acquisition module 200 includes:
Judging unit 201, for being that the data in request bag, and described request bag includes video address in described packet When, judge whether the destination address of described request bag is preset address;
First broadcast information acquiring unit 202, for when the destination address of described packet is preset address, according to institute State packet to obtain the first broadcast information of currently playing video and preserve.
Specifically, because the quantity of the packet through specific network interface may be very huge, suitable Packet Filtering is set Condition is critically important, all detects and will bring huge performance burden to television system and may lead to detect if all of packet Result inaccurate.
For the packet sending from the machine address, can be filtered according to destination address and destination interface, such as be limited Destination slogan is only 80 etc..Situation about being filtered according to destination address, can obtain way to specific video resource The information in footpath is counted, interim card situation of server that such as youku.com provides etc..
These are only the alternative embodiment of the present invention, not thereby limit the present invention the scope of the claims, every using this Equivalent structure or equivalent flow conversion that bright description and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of intelligent television Internet video broadcast information acquisition method is it is characterised in that methods described includes:
Obtain network interface transfers and the packet receiving through work at present from link layer;
When data in described packet is for request bag, and described request bag includes video address, obtained according to described packet Take the first broadcast information of currently playing video and preserve, described first broadcast information includes play start time and video ground Location;
When described packet is response bag, the second broadcast information of currently playing video is obtained according to described response bag and protects Deposit, the described second broadcast information broadcast state including currently playing video and/or the data length receiving;
At the end of currently playing video playback is detected, the recording played end time, and by described first broadcast information, second Broadcast information and broadcasting end time are sent to server.
2. intelligent television Internet video broadcast information acquisition method as claimed in claim 1 is it is characterised in that described broadcasting shape State includes interim card duration, the described step bag obtaining the second broadcast information of currently playing video and preserving according to described response bag Include:
Analyze the response to bag to obtain parsing data;
When described parsing data includes orderly media uniform resource identifier list, obtain the unification in described parsing data Resource identifier list, the normal play duration of Media Stream fragment and data length simultaneously preserve;
When described parsing data includes described Media Stream fragment, and the described Media Stream fragment receiving reaches described data length When, obtain the actual play duration of the described Media Stream fragment receiving;
When described actual play duration is more than described normal play duration, record the interim card duration of currently playing video.
3. intelligent television Internet video broadcast information acquisition method as claimed in claim 2 is it is characterised in that in described request Data in bag includes video address, and when intelligent television is in video broadcasting condition, judges that current video is play and terminate.
4. intelligent television Internet video broadcast information acquisition method as claimed in claim 2 it is characterised in that described described When packet includes video address for the data in request bag, and described request bag, obtained currently playing according to described packet Include after first broadcast information of video the step that preserves:
When not getting the request bag comprising media Uniform Resource Identifier from link layer in Preset Time, judgement is worked as Front broadcasting video playback terminates.
5. the intelligent television Internet video broadcast information acquisition method as described in any one of claim 1-4 is it is characterised in that institute State described packet be request bag, and described request bag in data include video address when, according to described packet obtain First broadcast information of the currently playing video step preserving includes:
When data in described packet is for request bag, and described request bag includes video address, judge described request bag Whether destination address is preset address;
When the destination address of described packet is preset address, obtains the first of currently playing video according to described packet and broadcast Put information and preserve.
6. a kind of intelligent television Internet video broadcast information acquisition system is it is characterised in that described system includes:
Data acquisition module, for obtaining network interface transfers and the packet receiving through work at present from link layer;
First broadcast information acquisition module, for being that the data in request bag, and described request bag includes regarding in described packet During frequency address, the first broadcast information of currently playing video is obtained according to described packet and preserves, described first broadcast information Including play start time and video address;
Second broadcast information acquisition module, for when described packet is response bag, obtaining according to described response bag and currently broadcasting Put the second broadcast information of video and preserve, described second broadcast information includes the broadcast state of currently playing video and/or connects The data length receiving;
Information sending module, at the end of currently playing video playback ought be detected, the recording played end time, and will be described First broadcast information, the second broadcast information and broadcasting end time are sent to service.
7. intelligent television Internet video broadcast information acquisition system as claimed in claim 6 is it is characterised in that described broadcasting shape State includes interim card duration, and described second broadcast information acquisition module includes:
Resolution unit, is used for analyzing the response to bag and obtains parsing data;
Memory element, for when described parsing data includes orderly media uniform resource identifier list, obtaining described solution Uniform resource identifier list in analysis data, the normal play duration of Media Stream fragment and data length simultaneously preserve;
Actual play duration unit, for including described Media Stream fragment, and the described media receiving when described parsing data When flow section reaches described data length, obtain the actual play duration of the described Media Stream fragment receiving;
Interim card duration unit, for when described actual play duration is more than described normal play duration, recording currently playing regarding The interim card duration of frequency.
8. intelligent television Internet video broadcast information acquisition system as claimed in claim 7 it is characterised in that described system also Including:
First end determination module, includes video address for the data in described request bag, and intelligent television is in video During broadcast state, judge that current video is play and terminate.
9. intelligent television Internet video broadcast information acquisition system as claimed in claim 7 it is characterised in that described system also Including:
Second end determination module, comprises media unified resource mark for working as to get from link layer in Preset Time When knowing the request bag according with, judge that currently playing video playback terminates.
10. the intelligent television Internet video broadcast information acquisition system as described in any one of claim 6-9 it is characterised in that Described first broadcast information acquisition module includes:
Judging unit, during for being that the data in request bag, and described request bag includes video address in described packet, judges Whether the destination address of described request bag is preset address;
First broadcast information acquiring unit, for when the destination address of described packet is preset address, according to described data Bag obtains the first broadcast information of currently playing video and preserves.
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 true CN106412661A (en) 2017-02-15
CN106412661B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108174187A (en) * 2017-12-14 2018-06-15 聚好看科技股份有限公司 A kind of test method and its system of smart television response time

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113973216A (en) * 2020-07-22 2022-01-25 聚好看科技股份有限公司 Video collection generation method and display device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100198982A1 (en) * 2008-03-18 2010-08-05 Clarity Systems, S.L. Methods for Transmitting Multimedia Files and Advertisements
CN103024598A (en) * 2013-01-10 2013-04-03 深信服网络科技(深圳)有限公司 Device and method for acquiring network video playing fluency
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

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101600093A (en) * 2009-04-29 2009-12-09 四川长虹电器股份有限公司 A kind of digital television program interaction method, system, terminal equipment and set-top box
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
CN106060663B (en) * 2016-06-24 2018-11-27 武汉斗鱼网络科技有限公司 The method and system of monitor video smoothness degree during net cast

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100198982A1 (en) * 2008-03-18 2010-08-05 Clarity Systems, S.L. Methods for Transmitting Multimedia Files and Advertisements
CN103024598A (en) * 2013-01-10 2013-04-03 深信服网络科技(深圳)有限公司 Device and method for acquiring network video playing fluency
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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108174187A (en) * 2017-12-14 2018-06-15 聚好看科技股份有限公司 A kind of test method and its system of smart television response time

Also Published As

Publication number Publication date
WO2018098884A1 (en) 2018-06-07
CN106412661B (en) 2020-07-14

Similar Documents

Publication Publication Date Title
US11831950B2 (en) Methods and apparatus to measure exposure to streaming media
EP3313043B1 (en) System and method for determining quality of a media stream
US7822868B2 (en) Method and apparatus for targeted content delivery based on RSS feed analysis
CN103945240B (en) A kind of video broadcasting method and device based on video aggregation
CN110519177A (en) A kind of network flow identification method and relevant device
CN104780004B (en) The bandwidth velocity-measuring system and method for a kind of home gateway
CN101594241B (en) Method and system for downloading network video
US20060212347A1 (en) System and method for advertisement delivery in a network system
CN106656629B (en) Method for predicting streaming media playing quality
CN102006605A (en) Methods and apparatus to identify wireless carrier performance effects
US20130007274A1 (en) Method for Analyzing Browsing and Device for Implementing the Method
CN112203136B (en) Method and device for predicting definition of encrypted flow video
JP6132116B2 (en) Method, device and system for assessing user experience value of video quality
US20100169482A1 (en) Method And An Apparatus For Monitoring Multimedia Data
CN109982068B (en) Method, apparatus, device and medium for evaluating quality of synthesized video
CN111787345A (en) Interactive resource processing method and device based on network live broadcast room, server and storage medium
CN103166808A (en) Monitoring method, device and system for Internet protocol television (IPTV) service quality
CN105159992A (en) Method and device for detecting page contents and network behaviors of application program
CN109275045A (en) Mobile terminal encrypted video ad traffic recognition methods based on DFI
WO2010044602A2 (en) Apparatus and method for measuring advertising metrics
CN103955846A (en) Control method and device for controlling multi-terminal intelligent feedback in information processing system
CN106412661A (en) Smart television network video play information collection method and system
CN109981550B (en) Game service quality evaluation method and device
CN104283849A (en) Popup window data pushing and displaying method, device and system
CN101184002A (en) Point-to-point flux deepness monitoring method and equipment

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