CN106998478A - A kind of offset correction method and device for intelligent television current play list - Google Patents
A kind of offset correction method and device for intelligent television current play list Download PDFInfo
- Publication number
- CN106998478A CN106998478A CN201710153879.7A CN201710153879A CN106998478A CN 106998478 A CN106998478 A CN 106998478A CN 201710153879 A CN201710153879 A CN 201710153879A CN 106998478 A CN106998478 A CN 106998478A
- Authority
- CN
- China
- Prior art keywords
- play list
- section file
- current play
- time
- file
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/242—Synchronization processes, e.g. processing of PCR [Program Clock References]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/4302—Content synchronisation processes, e.g. decoder synchronisation
- H04N21/4305—Synchronising client clock from received content stream, e.g. locking decoder clock with encoder clock, extraction of the PCR packets
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/4302—Content synchronisation processes, e.g. decoder synchronisation
- H04N21/4307—Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/647—Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8456—Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/854—Content authoring
- H04N21/8547—Content authoring involving timestamps for synchronizing content
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/236—Assembling of a multiplex stream, e.g. transport stream, by combining a video stream with other content or additional data, e.g. inserting a URL [Uniform Resource Locator] into a video stream, multiplexing software data into a video stream; Remultiplexing of multiplex streams; Insertion of stuffing bits into the multiplex stream, e.g. to obtain a constant bit-rate; Assembling of a packetised elementary stream
- H04N21/23608—Remultiplexing multiplex streams, e.g. involving modifying time stamps or remapping the packet identifiers
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
The present invention provides a kind of offset correction method and device for intelligent television current play list, and methods described includes:The corresponding actual play time of section file in current play list is obtained, according to the corresponding actual play time of section file, the section file in current play list is traveled through and judges the section file in the current play list with the presence or absence of failure;If there is the section file of failure, the section file of failure is deleted from current play list, and update the label value of current play list.Therefore the present invention can play the section file synchronization of section file and program source server in current play list, so that content offset problem caused by realizing amendment propagation time delay and reproduction time delay, corrects the playing progress rate of different intelligent TV.
Description
Technical field
The present invention relates to TV technology, more particularly to a kind of offset correction for intelligent television current play list
Method and apparatus.
Background technology
With being continuously increased for intelligent television number of users, user is more and more stronger to the demand of video capability.Currently
Wide variety of on-demand content can not meet the growing video requirement of user, live or wheel multicast function video requirement
Cry increases gradually.In view of current live or carousel real-time media stream data (such as video flowing) resource-constrained, generally may
From the program source server of multiple different geographical distributions, played out when intelligent television user actively selectes a certain channel
When, the application of intelligent television carousel will obtain corresponding real-time media stream data from different program source servers.Compared to program request work(
Can, the live or wheel multicast function of intelligent television is higher for the requirement of real-time of stream medium data, especially in viewing such as physical culture
Required during the real time programme content such as competition broadcast higher.
In prior art, the section file of live or carousel video flowing need to be transferred on intelligent television via http network
Play, during this period, the propagation time delay produced during network transmission, the abnormal situation of playing such as broadcasting interim card during broadcasting is produced
Reproduction time delay, due to different intelligent televise video when generally according to the machine time play playlist list in
Video, therefore live video flowing can be caused to show different degrees of broadcasting skew on different intelligent televisions.For example, having
Two intelligent televisions play same channel simultaneously, such as real-time " football match " program.After certain time is played, this two
The playing progress rate of platform TV is it is possible that different degrees of deviation, in particular with the extension of reproduction time, its extent of deviation can
Energy can be bigger.Meanwhile, this two televise content may and program source server current real-time code stream deviation it is larger,
Cause user's viewing is no longer real-time game live information, but the information for the game before a few minutes.
Therefore prior art can not ensure reality of the current live video flowing of different intelligent TV with program source server
Code stream keeps accurately synchronous regime, so that the intelligent television user live video stream higher to requirement of real-time can not be met
Experience.
The content of the invention
In view of this, a kind of offset correction method and device for intelligent television current play list of present invention offer comes
The problem of live video stream solved in prior art in intelligent television can not be with program source server sync.
Specifically, the present invention is achieved through the following technical solutions:
On the one hand, the present invention provides a kind of offset correction method for intelligent television current play list, methods described
Including:
Obtain the corresponding actual play time of section file in current play list;
According to the corresponding actual play time of section file, travel through the section file in current play list and judge described
With the presence or absence of the section file of failure in current play list;
If there is the section file of failure, the section file of failure is deleted from current play list, and renewal is currently broadcast
Emplace the label value of table.
Optionally, the corresponding actual play time of section file obtained in current play list, be specially:
Obtain the synchronization time difference of intelligent television and program source server, by the current time of intelligent television with it is described synchronous
Time difference sum is configured to the corresponding actual play time of section file in current play list.
Optionally, the synchronization time difference for obtaining intelligent television and program source server, be specially:
Request message is sent to program source server, and is recorded between the intelligent television sent at the beginning of request message;
Receive program source server and be directed to the response message that the request message is returned, record the intelligent television and receive
The end time during request message;
According to the time started and the end time, calculate between the intelligent television and the program source server
Synchronization time difference.
Optionally, it is described according to the corresponding actual play time of the section file, travel through cutting in current play list
Piece file simultaneously judges the section file in the current play list with the presence or absence of failure, is specially:
The current play list that program source server is sent is traveled through, wherein, the current play list includes section file
With the timestamp of the section file, the timestamp is that the program source server is effectively broadcast for what the section file was set
Put the time;
If the timestamp for file of cutting into slices is earlier than actual play time, the section file is the section file of failure.
Optionally, the label value for updating current play list, be specially:
The EXT-X-DISCONTINUITY labels of current play list are updated, progress reinitializes parameter value.
On the other hand, conceived based on identical, the present invention also provides a kind of for the inclined of intelligent television current play list
Shift correction device, described device includes:
Time acquisition unit, for obtaining the corresponding actual play time of section file in current play list;
Fail judging unit, for according to the corresponding actual play time of section file, traveling through in current play list
Section file simultaneously judges the section file in the current play list with the presence or absence of failure;
File deletes unit, if for there is the section file of failure, cutting for failure is deleted from current play list
Piece file, and update the label value of current play list.
Optionally, the time acquisition unit, including:
First subelement, the synchronization time difference for obtaining intelligent television and program source server;
Second subelement, it is currently playing for the current time of intelligent television and the synchronization time difference sum to be configured to
The corresponding actual play time of section file in list.
Optionally, first subelement, specifically for:
Request message is sent to program source server, and is recorded between the intelligent television sent at the beginning of request message;
Receive program source server and be directed to the response message that the request message is returned, record the intelligent television and receive the request
End time during message;According to the time started and the end time, the intelligent television and the program source are calculated
Synchronization time difference between server.
Optionally, the failure judging unit, specifically for:
The current play list that program source server is sent is traveled through, wherein, the current play list includes section file
With the timestamp of the section file, the timestamp is that the program source server is effectively broadcast for what the section file was set
Put the time;If the timestamp for file of cutting into slices is earlier than actual play time, the section file is the section file of failure.
Optionally, the file deletes unit, specifically for:
The EXT-X-DISCONTINUITY labels of current play list are updated, progress reinitializes parameter value.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:
The present invention can obtain the corresponding actual play time of section file in current play list, according to section file
Corresponding actual play time, travels through the section file in current play list and judges whether deposited in the current play list
In the section file of failure;If there is the section file of failure, the section file of failure is deleted from current play list, and
Update the label value of current play list.It is section file configuration that program source server is included in the current play list of the present invention
Timestamp, therefore can be realized according to timestamp to making cutting for the section file in current play list and program source server
Piece file plays synchronous, so that content offset problem caused by realizing amendment propagation time delay and reproduction time delay, is corrected
The playing progress rate of different intelligent TV, the user for improving the intelligent television user network direct broadcasting video flowing higher to requirement of real-time
Experience.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, makes required in being described below to embodiment
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings
Accompanying drawing.
Fig. 1 is application scenarios schematic diagram in a kind of illustrative embodiments of the invention;
Fig. 2 is a kind of skew school for intelligent television current play list in a kind of illustrative embodiments of the invention
The process chart of correction method;
Fig. 3 a are the offset correction process charts of the current play list in a kind of illustrative embodiments of the invention;
Fig. 3 b are the offset correction schematic diagrames of the current play list in a kind of illustrative embodiments of the invention;
Fig. 4 is that the offset correction for intelligent television current play list in a kind of illustrative embodiments of the invention is filled
The hardware structure diagram of equipment where putting;
Fig. 5 is a kind of skew school for intelligent television current play list in a kind of illustrative embodiments of the invention
The building-block of logic of equipment.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention
Formula is described in further detail.
Before to the embodiment of the present invention carrying out that explanation is explained in detail, first the application scenarios of the embodiment of the present invention are given
Explanation.As shown in figure 1, the video playback scene that the offset correction method for intelligent television current play list is applied is main
Equipment includes:Program source server and intelligent television, between the two by Http network connections, wherein:
Program source server is used to provide incessantly to intelligent television in real-time video flowing, described live video stream
Contain the playlist for describing each section file (file for example, M3U8TS cuts into slices);
It is used to obtain the playlist in program source server and the section text provided according to playlist in intelligent television
Part address completes the operations such as corresponding audio, video data initialization and coding, realizes video playback.In an alternate embodiment of the invention, intelligence
Energy TV includes channel proxy service module and video playback module, and its mid band proxy service module is used to take program source
Playlist in business device is provided to the video playback module of intelligent television;Video playback module is used for according to from playlist
The section file address of acquisition carries out the operation such as corresponding audio, video data initialization and coding, realizes video playback.
In order to solve the problem of prior art is present, the invention provides a kind of for intelligent television current play list
Offset correction method and device, can obtain the corresponding actual play time of section file in current play list, according to cutting
The corresponding actual play time of piece file, travels through the section file in current play list and judges in the current play list
With the presence or absence of the section file of failure;If there is the section file of failure, the section of failure is deleted from current play list
File, and update the label value of current play list.It is section that program source server is included in the current play list of the present invention
The timestamp of file configuration, therefore can be realized according to timestamp to making the section file in current play list be taken with program source
The section file of business device plays synchronous, so as to realize that amendment propagation time delay and the caused content skew of reproduction time delay are asked
Topic, corrects the playing progress rate of different intelligent TV, improves the intelligent television user network direct broadcasting video higher to requirement of real-time
The Consumer's Experience of stream.
Fig. 2 is refer to, is that one kind in a kind of illustrative embodiments of the invention is used for intelligent television current play list
Offset correction method process chart, this method includes:
Step 201, the corresponding actual play time of section file obtained in current play list;
In the present embodiment, intelligent television can by Http networks to program source server ask playlist so that
Label value and section file can be included by getting in the current play list of program source server transmission, the playlist, often
The corresponding timestamp of section file is included in individual section file, the timestamp is that program source server is set for the section file
Effective reproduction time.
As one embodiment, the content of current play list of the invention is specifically included:
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=747800, RESOLUTION=
640x480, CODECS=" avc1.640014, mp4a.40.2 "
#EXT-X-TARGETDURATION:10
#EXT-X-MEDIA-SEQUENCE:611075
#EXTINF:10.000,
#EXT-X-PROGRAM-DATE-TIME:2016-08-17T06:38:00Z
20160607T084833-12-611075.ts
#EXTINF:10.000,
#EXT-X-PROGRAM-DATE-TIME:2016-08-17T06:38:10Z
20160607T084833-12-611076.ts
#EXTINF:10.000,
#EXT-X-PROGRAM-DATE-TIME:2016-08-17T06:38:20Z
20160607T084833-12-611077.ts
#EXTINF:10.000,
#EXT-X-PROGRAM-DATE-TIME:2016-08-17T06:38:30Z
20160607T084833-12-611078.ts
#EXTINF:10.000,
#EXT-X-PROGRAM-DATE-TIME:2016-08-17T06:38:40Z
20160607T084833-12-611079.ts
Wherein, preceding four rows presentation code mode;Suffix is section file for the file of " .ts ", for example
" 20160607T084833-12-611075.ts, 20160607T084833-12-611076.ts " etc.;In each section file
All carry the section file timestamp, i.e. EXT-X-PROGRAM-DATE-TIME beginning character string, for example
" 20160607T084833-12-611075.ts " corresponding timestamp is " 2016-08-17T06:38:00Z ",
" 20160607T084833-12-611076.ts " corresponding timestamp is " 2016-08-17T06:38:10Z”.In above-mentioned example
Other guide be not related to present subject matter, be not described in detail one by one herein.
In the present embodiment, intelligent television can obtain cutting in current play list after current play list is obtained
The corresponding actual play time of piece file, so-called actual play time refer to the intelligent television play the section file it is actual when
Between.In the present embodiment, intelligent television can be used as the actual play time of section file using the current time of the machine, it is contemplated that intelligence
There can be Network Transmission Delays between TV and program source server, the time of above-mentioned Network Transmission Delays is referred to as intelligence by the present invention
Synchronization time difference that can be between TV and program source server, thus the present invention intelligent television can also by the machine it is current when
Between with the synchronization time difference sum as section file actual play time.For example, the current time of intelligent television is 10:
10:20, synchronization time difference is 5 seconds, then actual play time is 10:10:25.
As one embodiment, intelligent television obtains the machine and the method for the synchronization time difference of program source server is specifically wrapped
Include, intelligent television sends request message to program source server, and record at the beginning of the intelligent television sends request message
Between;Then receive program source server and be directed to the response message that the request message is returned, record intelligent television receives response report
End time when literary;Further according to the time started and the end time, the intelligent television and the program source are calculated
Synchronization time difference between server.
For example, it is assumed that the machine time t1 that intelligent television sends http request message to program source server is 10:
10:10, then t1 is the time started;Intelligent television receive program source server reply response message when the machine time t2 be
10:10:15, then t2 is the end time;Synchronization time difference is the difference of time started and end time, i.e. t2-t1=5 seconds, then intelligence
The synchronization time difference of energy TV and program source server is 5 seconds.Above example is only synchronization time difference ideally, but
In actual applications, the time of the Network Transmission Delays between intelligent television and program source server can be because the change of network state
Change, more accurate for the synchronization time difference of acquisition, intelligent television can also enter according to the synchronization time difference calculated several times
Row average computation goes out final synchronization time difference, or can also be weighted average computation and go out final synchronization time difference.On
The computational methods for stating synchronization time difference are merely illustrative, and are not specifically limited in practical application.
Step 202, according to the corresponding actual play time of section file, the section file in traversal current play list is simultaneously
Judge the section file with the presence or absence of failure in the current play list;
Obtain after the corresponding time reproduction time of section file, intelligent television can work as according to time reproduction time traversal
Section file in preceding playlist, as one embodiment, can include in current play list, cut into slices and file and described cut
The timestamp of piece file, the timestamp is effective reproduction time that program source server is set for section file.Intelligent television
Further the timestamp for file of cutting into slices can be compared with actual play time, if the timestamp of section file is earlier than reality
Reproduction time, then illustrate section file of the section file for failure.
For example, the actual play time of intelligent television is 10:10:25;If the timestamp for file of cutting into slices is 10:10:15, by
In the timestamp 10 of the section file:10:15 earlier than actual play time 10:10:25, then it is assumed that the section file fails;If
The timestamp of section file is 10:10:35, due to the timestamp 10 of the section file:10:35 are later than actual play time 10:
10:25, then it is assumed that the section file is effective.
Because the current play list in prior art is only comprising section file, the corresponding timestamp of file of not cutting into slices,
Therefore when intelligent television obtains the effective broadcasting for the section file that can not be judged after current play list in current play list
Between, therefore can only be played out according to local current time, lead to not judge whether section file has failed.And it is of the invention
Current play list in each section file have corresponding timestamp, when can represent effective broadcasting of the section file
Between, therefore can be by the way that the comparison of actual play time and timestamp to be filtered out to the section file of failure, so as to realize video
The offset correction of stream.Also, because timestamp is that program source server is that section file is set, different intelligent televisions are received
The timestamp of same section file be all identical, therefore can to pass through different intelligent televisions relatively more same by the present invention
Synchronization of the timestamp to realize video is played.
If step 203, the section file that there is failure, delete the section file of failure from current play list, and more
The label value of new current play list.
After traversal current play list gets the section file of failure, failure can be deleted in current play list
Section file.It can be changed after deleting the section file of failure due to playlist, therefore currently playing row can be updated
The label value of table.The present invention can correct the broadcasting of live video stream by deleting the section file of failure, so as to ensure not
With player broadcasting synchronous with the live video stream of program source server.
As one embodiment, intelligent television updates the label value of current play list, refers mainly to update in playlist
EXT-X-DISCONTINUITY labels, the label is used to represent the section file of current play list and a upper played column
The different coding of the section file of table, if, it is necessary to reinitialize the mark when section file of current play list changes
The parameter value of label, the parameter such as coding parameter, file format.
, can be for playlist addition more in order to be preferably corrected to current play list as one embodiment
New mark, the attribute of the update mark includes having updated and not updated, for example, can be represented to have updated with 0, be represented not more with 1
Newly.After current play list is obtained, channel agency service layer can also be first according to the update mark of a upper playlist
Judge whether the label value of current play list needs to update;For example if being 0 if the property value of update mark it need not update, if
The property value of update mark is 1, then needs to update.If current play list needs to update, channel agency service layer can be with
The label value of current play list is updated, the update mode of label value can be found in the label value update method of last embodiment.Mark
After the completion of label value updates, the attribute of update mark can be set in current play list to have updated.
As one embodiment, the specific method for updating label is:
(1) playlist before tag update:
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=747800, RESOLUTION=
640x480, CODECS=" avc1.640014, mp4a.40.2 "
#EXT-X-TARGETDURATION:10
#EXT-X-MEDIA-SEQUENCE:611075
#EXTINF:10.000,
#EXT-X-PROGRAM-DATE-TIME:2016-08-17T06:38:00Z
20160607T084833-12-611075.ts
#EXTINF:10.000,
#EXT-X-PROGRAM-DATE-TIME:2016-08-17T06:38:10Z
20160607T084833-12-611076.ts
#EXTINF:10.000,
#EXT-X-PROGRAM-DATE-TIME:2016-08-17T06:38:20Z
20160607T084833-12-611077.ts
#EXTINF:10.000,
#EXT-X-PROGRAM-DATE-TIME:2016-08-17T06:38:30Z
20160607T084833-12-611078.ts
#EXTINF:10.000,
#EXT-X-PROGRAM-DATE-TIME:2016-08-17T06:38:40Z
20160607T084833-12-611079.ts
It is assumed that preceding 3 section files " 20160607T084833-12-611075.ts in current play list
, 20160607T084833-12-611076.ts, 20160607T084833-12-611077.ts " failed, then
It can be removed.Because code media streams mode is not yet changed, therefore still continue to use original encoding mode;But need in renewal
Position increases saltus step label:#EXT-X-DISCONTINUITY, and increase update mark:True/False, or 0/1, wherein
True or 0, which can be represented, have been updated, and False or 1, which can be represented, not to be updated;Merely illustrative herein, update mark can be by it
It, which is identified, replaces, and can be placed in other places.
Playlist after being updated is as follows.
(2) playlist after tag update:
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=747800, RESOLUTION=
640x480, CODECS=" avc1.640014, mp4a.40.2 "
#EXT-X-TARGETDURATION:10
#EXT-X-MEDIA-SEQUENCE:611075
#EXT-X-DISCONTINUITY
#EXTINF:10.000, True
#EXT-X-PROGRAM-DATE-TIME:2016-08-17T06:38:30Z
20160607T084833-12-611078.ts
#EXTINF:10.000,True
#EXT-X-PROGRAM-DATE-TIME:2016-08-17T06:38:40Z
20160607T084833-12-611079.ts
It is wherein visible, the playlist after renewal remain " 20160607T084833-12-611078.ts and
20160607T084833-12-611079.ts " two section files, in the EXTINF of section file:10.000, increase in mark
Plus update mark " True " is represented and updated, and saltus step label is also added before 20160607T084833-12-611078.ts
" #EXT-X-DISCONTINUITY ", the label is used to represent that the section file of current play list has changed generation time
The discontinuous section file of stamp is, it is necessary to reinitialize the parameter value of the label, if not adding the saltus step label, can because
Section file is discontinuous and causes splashette or the situation of instantaneous blank screen to occur, therefore, it is necessary to update mark after playlist is updated
Label, so as to ensure video normal play.
For the objects, technical solutions and advantages of the present invention are more clearly understood, with reference to Fig. 3 a and Fig. 3 b to this hair
Bright scheme is described in further detail.
It refer to the offset correction processing stream that Fig. 3 a are the current play lists in a kind of illustrative embodiments of the invention
Cheng Tu, including;
Step 301, from program source server obtain current play list, go to step 302;
In the present embodiment, intelligent television can by http request from program source server obtain current play list,
The current play list is as shown in the playlist 1 in Fig. 3 b, and wherein current play list includes label value and section file, i.e.,
TS files 1-6.
Step 302, judge current play list whether need renewal, if so, then going to step 303;If it is not, then going to step
304;
Intelligent television judges whether current play list needs renewal according to the update mark flag of a upper playlist,
For example, when update mark flag is 1, then needing to update, when update mark flag is 0, then need not updating.
Step 303, the label value for updating current play list, go to step 304;
When needing to update, intelligent television can update the EXT-X-DISCONTINUITY labels in current play list,
Reinitialize the parameter value of the label.
Step 304, acquisition actual play time, go to step 305;
When that need not update, then the synchronization time difference of the intelligent television and program source server is directly obtained, this is same
The step time difference is used as actual play time with current time sum.Assuming that the synchronization time difference that intelligent television is obtained is 5 seconds, currently
The local zone time of intelligent television is 2017-01-20T10:10:When 20;Then current play list section file actual play
Time is 2017-01-20T10:10:25.
Step 305, judge section file whether fail, if so, then going to step 306;If it is not, then going to step 307;
Each section file in current play list has corresponding timestamp, such as shown in table 1:
Section file | Timestamp |
1.ts | 2017-01-20T10:10:00 |
2.ts | 2017-01-20T10:10:10 |
3.ts | 2017-01-20T10:10:20 |
4.ts | 2017-01-20T10:10:30 |
5.ts | 2017-01-20T10:10:40 |
6.ts | 2017-01-20T10:10:50 |
Table 1
The actual play time for file of cutting into slices is compared with its timestamp, timestamp is cut earlier than actual play time
Piece file is failure section file.For example, 1.ts, 2.ts, 3.ts timestamp are respectively 2017-01-20T10:10:00、
2017-01-20T10:10:10、2017-01-20T10:10:20 earlier than time reproduction time 2017-01-20T10:10:25, because
This 1.ts, 2.ts, 3.ts fail;The timestamp of other section files is no earlier than reproduction time, then is effective section file.
Step 306, the section file for deleting failure, update the label value of current play list, and terminate;
Intelligent television deletes the section file of failure, the playlist after being updated, the played column in such as Fig. 3 b
Shown in table 2, wherein the playlist 2 includes effectively cut into slices file, i.e. 4.ts, 5.ts, 6.ts.Playlist is updated simultaneously
Label value.
Step 307, parsing section file are played out, and terminated.
The effective section file of parsing is played out, so that user watches.
Therefore, the present invention can reach the live video stream of different intelligent TV and the mesh of program source server near-synchronous
's.
Based on identical design, the present invention also provides a kind of offset correction for intelligent television current play list and filled
Put, the device can be realized by software, can also be realized by way of hardware or software and hardware combining.It is implemented in software to be
, the offset correction device for intelligent television current play list of the invention is as the device on a logical meaning
Run and form after corresponding computer program instructions in memory are read by the CPU of equipment where it.
Fig. 4 is refer to, is that one kind in a kind of illustrative embodiments of the invention is used for intelligent television current play list
Offset correction device 500, the basic running environment of the device include CPU, memory and other hardware, from logic level come
See, the logical construction of the device 500 as shown in figure 5, including:
Time acquisition unit 501, for obtaining the corresponding actual play time of section file in current play list;
Fail judging unit 502, for according to the corresponding actual play time of section file, traveling through in current play list
Section file and judge in the current play list with the presence or absence of failure section file;
File deletes unit 503, if for there is the section file of failure, failure is deleted from current play list
Section file, and update the label value of current play list.
Optionally, the time acquisition unit 501, including:
First subelement 5011, the synchronization time difference for obtaining intelligent television and program source server;
Second subelement 5012, for the current time of intelligent television and the synchronization time difference sum to be configured to currently
The corresponding actual play time of section file in playlist.
Optionally, first subelement 5011, specifically for sending request message to program source server, and records institute
Between stating at the beginning of intelligent television transmission request message;Receive program source server and be directed to the response report that the request message is returned
Text, records the end time when intelligent television receives the request message;According to the time started and the end
Time, calculate the synchronization time difference between the intelligent television and the program source server.
Optionally, the failure judging unit 502, the currently playing row sent specifically for traversal program source server
Table, wherein, the current play list includes the timestamp of section file and the section file, and the timestamp is the section
Effective reproduction time that mesh source server is set for the section file;If the timestamp for file of cutting into slices is earlier than actual play
Between, then the section file is the section file of failure.
Optionally, the file deletes unit 503, the EXT-X- specifically for updating current play list
DISCONTINUITY labels, progress reinitializes parameter value.
To sum up, the corresponding actual play time of section file that can be obtained in current play list of the invention, according to
The corresponding actual play time of section file, travels through the section file in current play list and judges the current play list
In with the presence or absence of failure section file;If there is the section file of failure, cutting for failure is deleted from current play list
Piece file, and update the label value of current play list.Program source server is included in the current play list of the present invention to cut
The timestamp of piece file configuration, therefore can be realized according to timestamp to making section file and program source in current play list
The section file of server plays synchronous, so as to realize content skew caused by amendment propagation time delay and reproduction time delay
Problem, corrects the playing progress rate of different intelligent TV, improves the intelligent television user network direct broadcasting higher to requirement of real-time and regards
The Consumer's Experience of frequency stream.
The function of unit and the implementation process of effect specifically refer to correspondence step in the above method in said apparatus
Implementation process, will not be repeated here.
For device embodiment, because it corresponds essentially to embodiment of the method, so related part is real referring to method
Apply the part explanation of example.Device embodiment described above is only schematical, wherein described be used as separating component
The unit of explanation can be or may not be physically separate, and the part shown as unit can be or can also
It is not physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to reality
Selection some or all of module therein is needed to realize the purpose of application scheme.Those of ordinary skill in the art are not paying
In the case of going out creative work, you can to understand and implement.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
God is with principle, and any modification, equivalent substitution and improvements done etc. should be included within the scope of protection of the invention.
Claims (10)
1. a kind of offset correction method for intelligent television current play list, it is characterised in that methods described includes:
Obtain the corresponding actual play time of section file in current play list;
According to the corresponding actual play time of section file, travel through the section file in current play list and judge described current
With the presence or absence of the section file of failure in playlist;
If there is the section file of failure, the section file of failure is deleted from current play list, and update currently playing row
The label value of table.
2. according to the method described in claim 1, it is characterised in that the section file correspondence obtained in current play list
Actual play time, be specially:
The synchronization time difference of intelligent television and program source server is obtained, by the current time of intelligent television and the lock in time
Poor sum is configured to the corresponding actual play time of section file in current play list.
3. method according to claim 2, it is characterised in that the acquisition intelligent television is synchronous with program source server
Time difference, it is specially:
Request message is sent to program source server, and is recorded between the intelligent television sent at the beginning of request message;
Receive program source server and be directed to the response message that the request message is returned, record the intelligent television receive it is described
End time during request message;
According to the time started and the end time, calculate same between the intelligent television and the program source server
Walk the time difference.
4. according to the method described in claim 1, it is characterised in that during the actual play corresponding according to the section file
Between, travel through the section file in current play list and judge the section text in the current play list with the presence or absence of failure
Part, be specially:
The current play list that program source server is sent is traveled through, wherein, the current play list includes section file and institute
The timestamp of section file is stated, when the timestamp is effective broadcasting that the program source server is set for the section file
Between;
If the timestamp for file of cutting into slices is earlier than actual play time, the section file is the section file of failure.
5. the method according to any one of Claims 1-4, it is characterised in that the label of the renewal current play list
Value, be specially:
The EXT-X-DISCONTINUITY labels of current play list are updated, progress reinitializes parameter value.
6. a kind of offset correction device for intelligent television current play list, it is characterised in that described device includes:
Time acquisition unit, for obtaining the corresponding actual play time of section file in current play list;
Fail judging unit, for according to the corresponding actual play time of section file, traveling through the section in current play list
File simultaneously judges the section file in the current play list with the presence or absence of failure;
File deletes unit, if for there is the section file of failure, the section text of failure is deleted from current play list
Part, and update the label value of current play list.
7. device according to claim 6, it is characterised in that the time acquisition unit, including:
First subelement, the synchronization time difference for obtaining intelligent television and program source server;
Second subelement, for the current time of intelligent television and the synchronization time difference sum to be configured into current play list
In the corresponding actual play time of section file.
8. device according to claim 7, it is characterised in that first subelement, specifically for:
Request message is sent to program source server, and is recorded between the intelligent television sent at the beginning of request message;Receive
Program source server is directed to the response message that the request message is returned, and records the intelligent television and receives the request message
When end time;According to the time started and the end time, the intelligent television and the program source service are calculated
Synchronization time difference between device.
9. device according to claim 6, it is characterised in that the failure judging unit, specifically for:
The current play list that program source server is sent is traveled through, wherein, the current play list includes section file and institute
The timestamp of section file is stated, when the timestamp is effective broadcasting that the program source server is set for the section file
Between;If the timestamp for file of cutting into slices is earlier than actual play time, the section file is the section file of failure.
10. the device according to any one of claim 6 to 9, it is characterised in that the file deletes unit, specifically for:
The EXT-X-DISCONTINUITY labels of current play list are updated, progress reinitializes parameter value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710153879.7A CN106998478B (en) | 2017-03-15 | 2017-03-15 | Offset correction method and device for current playlist of smart television |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710153879.7A CN106998478B (en) | 2017-03-15 | 2017-03-15 | Offset correction method and device for current playlist of smart television |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106998478A true CN106998478A (en) | 2017-08-01 |
CN106998478B CN106998478B (en) | 2020-12-11 |
Family
ID=59431053
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710153879.7A Active CN106998478B (en) | 2017-03-15 | 2017-03-15 | Offset correction method and device for current playlist of smart television |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106998478B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111147906A (en) * | 2018-11-02 | 2020-05-12 | 纬创资通股份有限公司 | Synchronous playing system and synchronous playing method |
CN111866553A (en) * | 2020-07-24 | 2020-10-30 | 聚好看科技股份有限公司 | Media information calibration method and server |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102752669A (en) * | 2011-04-19 | 2012-10-24 | 中国电信股份有限公司 | Transfer processing method and system for multi-channel real-time streaming media file and receiving device |
CN104581190A (en) * | 2014-12-29 | 2015-04-29 | 上海智物信息技术有限公司 | Multi-screen synchronization method and system |
CN104683884A (en) * | 2015-02-09 | 2015-06-03 | 网宿科技股份有限公司 | Live method and system for stream medium |
US20150215661A1 (en) * | 2012-08-24 | 2015-07-30 | Zte Corporation | System And Method For Distributing Live Broadcast Content |
CN105657578A (en) * | 2015-10-29 | 2016-06-08 | 乐视致新电子科技(天津)有限公司 | Live broadcast method, system and client based on HLS protocol |
CN106454553A (en) * | 2016-11-15 | 2017-02-22 | 深圳市视维科技有限公司 | A precise time delay live video network transmission control method |
CN106454493A (en) * | 2016-10-20 | 2017-02-22 | 青岛海信电器股份有限公司 | Method for inquiring currently played television program information and smart TV |
CN106470352A (en) * | 2015-08-18 | 2017-03-01 | 中兴通讯股份有限公司 | Direct broadcast band player method, apparatus and system |
-
2017
- 2017-03-15 CN CN201710153879.7A patent/CN106998478B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102752669A (en) * | 2011-04-19 | 2012-10-24 | 中国电信股份有限公司 | Transfer processing method and system for multi-channel real-time streaming media file and receiving device |
US20150215661A1 (en) * | 2012-08-24 | 2015-07-30 | Zte Corporation | System And Method For Distributing Live Broadcast Content |
CN104581190A (en) * | 2014-12-29 | 2015-04-29 | 上海智物信息技术有限公司 | Multi-screen synchronization method and system |
CN104683884A (en) * | 2015-02-09 | 2015-06-03 | 网宿科技股份有限公司 | Live method and system for stream medium |
CN106470352A (en) * | 2015-08-18 | 2017-03-01 | 中兴通讯股份有限公司 | Direct broadcast band player method, apparatus and system |
CN105657578A (en) * | 2015-10-29 | 2016-06-08 | 乐视致新电子科技(天津)有限公司 | Live broadcast method, system and client based on HLS protocol |
CN106454493A (en) * | 2016-10-20 | 2017-02-22 | 青岛海信电器股份有限公司 | Method for inquiring currently played television program information and smart TV |
CN106454553A (en) * | 2016-11-15 | 2017-02-22 | 深圳市视维科技有限公司 | A precise time delay live video network transmission control method |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111147906A (en) * | 2018-11-02 | 2020-05-12 | 纬创资通股份有限公司 | Synchronous playing system and synchronous playing method |
CN111147906B (en) * | 2018-11-02 | 2024-03-15 | 纬创资通股份有限公司 | Synchronous playing system and synchronous playing method |
CN111866553A (en) * | 2020-07-24 | 2020-10-30 | 聚好看科技股份有限公司 | Media information calibration method and server |
CN111866553B (en) * | 2020-07-24 | 2022-07-08 | 聚好看科技股份有限公司 | Media information calibration method and server |
Also Published As
Publication number | Publication date |
---|---|
CN106998478B (en) | 2020-12-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10798440B2 (en) | Methods and systems for synchronizing data streams across multiple client devices | |
CN106454493B (en) | Currently playing TV program information querying method and smart television | |
US20170126769A1 (en) | Method and apparatus for transmitting and receiving adaptive streaming mechanism-based content | |
CN103392344B (en) | Format-agnostic streaming architecture using an http network for streamings | |
US8341662B1 (en) | User-controlled selective overlay in a streaming media | |
WO2012096372A1 (en) | Content reproduction device, content reproduction method, delivery system, content reproduction program, recording medium, and data structure | |
CN104410902B (en) | The player method and terminal of a kind of programme televised live, the generation method and equipment of index file | |
CN106210768A (en) | Audio segmentation is carried out with the compulsory frame sign of codec | |
CN104202655B (en) | A kind of audio-video document method for down loading and device | |
US11321516B2 (en) | Processing dynamic web content of an ISO BMFF web resource track | |
CN107517411B (en) | Video playing method based on GSstreamer frame | |
CN106789976A (en) | The player method of media file, service end, client and system | |
CN102685561A (en) | Program carousel method and system, terminal equipment and program on-demand device | |
JP2013192062A (en) | Video distribution system, video distribution apparatus, video distribution method and program | |
US9866923B2 (en) | Digital channel integration system | |
JP2013243637A (en) | Distribution device, reproduction device, data structure, distribution method, control program, and recording medium | |
CN109842804A (en) | Processing method and server, the computer storage medium of audio, video data | |
CN105872599A (en) | Method and device for providing and downloading videos | |
CN108833552A (en) | A kind of P2P content distribution system of promiscuous mode | |
CN109005430A (en) | A kind of order method, system, device and the storage medium of audio/video content | |
CN106998478A (en) | A kind of offset correction method and device for intelligent television current play list | |
KR20090079563A (en) | System and Method for Managing Movie Meta Information and Recording Medium | |
KR20130103931A (en) | Advance metadata provision augmented broadcasting apparatus and method | |
CN106302465B (en) | A kind of method and device of playing audio-video data | |
CN107135407A (en) | Synchronous method and system in a kind of piano video teaching |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218 Applicant after: Hisense Video Technology Co., Ltd Address before: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218 Applicant before: HISENSE ELECTRIC Co.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |