CN107071549A - Many player fast switch over method, device and storage medium under single decoder - Google Patents

Many player fast switch over method, device and storage medium under single decoder Download PDF

Info

Publication number
CN107071549A
CN107071549A CN201710319701.5A CN201710319701A CN107071549A CN 107071549 A CN107071549 A CN 107071549A CN 201710319701 A CN201710319701 A CN 201710319701A CN 107071549 A CN107071549 A CN 107071549A
Authority
CN
China
Prior art keywords
video
data
buffering area
decoder
video data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710319701.5A
Other languages
Chinese (zh)
Inventor
罗阳志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Shenzhen TCL Digital 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 CN201710319701.5A priority Critical patent/CN107071549A/en
Publication of CN107071549A publication Critical patent/CN107071549A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4331Caching operations, e.g. of an advertisement for later insertion during playback
    • 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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/44004Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving video buffer management, e.g. video decoder buffer or video display buffer
    • 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/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/458Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
    • H04N21/4586Content update operation triggered locally, e.g. by comparing the version of software modules in a DVB carousel to the version stored locally
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8547Content authoring involving timestamps for synchronizing content

Abstract

The invention discloses many player fast switch over method, device and storage medium under a kind of single decoder, methods described includes:When receiving the first play instruction that first via server is sent, first via video is played out according to the first play instruction;The video data feeding buffering area of first via video is cached;When receiving the second play instruction that the second road server is sent, first via video is suspended, the current time stamp of first via video is obtained, and is played out the second road video according to the second play instruction;Data renewal is carried out to the buffering area according to current time stamp;When receiving three play instruction that the first via server is sent, the video data in the buffering area after renewal is sent into by decoder according to the 3rd play instruction, continues to play the first via video, to realize being switched fast for video.Multiple players carry out accomplishing seamless play during video switching under single decoder of the present invention, improve Consumer's Experience.

Description

Many player fast switch over method, device and storage medium under single decoder
Technical field
The present invention relates to many player fast switch over method, dress under TV technology, more particularly to a kind of single decoder Put and storage medium.
Background technology
Current TV development platform is all single decoder mostly, and increasing network video-on-demand wants to broadcasting Advertisement is inserted at any time when putting positive.If realizing multiple players, then in a player plays, another broadcasting Device can load data, and the speed for being so switched to second player has obtained larger lifting, but works as and switch back into first During the player plays positive of road, because the data in decoder are cleared, cause to return to when first via player is played out without Method accomplishes seamless play.
The above is only used for auxiliary and understands technical scheme, does not represent and recognizes that the above is existing skill Art.
The content of the invention
It is a primary object of the present invention to propose under a kind of single decoder many player fast switch over method, device and deposit Storage media, it is intended to solve multiple players under single decoder in the prior art and carry out that during video switching seamless play can not be accomplished Technical problem.
To achieve the above object, the present invention provides many player fast switch over method under a kind of single decoder, single solution Many player fast switch over method comprise the following steps under code device:
When receiving the first play instruction that first via server is sent, the first via is regarded according to first play instruction Frequency is played out;
The video data feeding buffering area of the first via video is cached;
When receiving the second play instruction that the second road server is sent, the first via video is suspended, obtained The current time stamp of first via video, and played out the second road video according to second play instruction;
Data renewal is carried out to the buffering area according to the current time stamp;
When receiving three play instruction that the first via server is sent, it will be updated according to the 3rd play instruction Video data feeding decoder in buffering area afterwards, continues to play the first via video, to realize being switched fast for video.
Preferably, it is described before the video data feeding buffering area progress caching step by the first via video Method includes:
Obtain the video data of pending first via video;
Parsing acquisition identification information is carried out to the video data of the pending first via video;
The video data of the pending first via video is ranked up according to the identification information, after acquisition processing The video data of first via video;
The video data feeding buffering area of the first via video is cached.
Preferably, it is described before the video data feeding buffering area progress caching step by the first via video Method also includes:
The video data of the first via video is grouped according to the identification information, described the after packet is obtained Picture group data of the video data of video all the way;
By timestamp in the picture group data markers, and according to the timestamp by the picture group data according to the time Order is ranked up;
Picture group data feeding buffering area is cached.
Preferably, it is described when receiving the second play instruction that the second road server is sent, the first via video is entered Row pause, the current time stamp step for obtaining first via video is specifically included:
The picture group data are sent into decoder to be decoded;
Obtain the timestamp of decoded current picture group data;
Using the timestamp as first via video current time stamp.
Preferably, it is described that buffering area progress data renewal step is specifically included according to the current time stamp:
The timestamp of the current time stamp of the first via video and current picture group data is compared;
, will buffering if the current time stamp of the first via video is more than the timestamp of the current picture group data The current picture group data in area are deleted.
Preferably, it is described that buffering area progress data renewal step is specifically also included according to the current time stamp:
If the current time stamp of the first via video is less than the timestamp of the picture group data, current draw is obtained The timestamp of preset time in the group data of face.
Preferably, it is described when receiving three play instruction that the first via server is sent, broadcast according to the described 3rd Put instruction and the video data in the buffering area after renewal is sent into decoder, continue to play the first via video, regarded with realizing Being switched fast for frequency is specifically included:
The timestamp of preset time in the current picture group data obtains new pending first via video Video data.
Preferably, it is described when receiving three play instruction that the first via server is sent, broadcast according to the described 3rd Put instruction and the video data in the buffering area after renewal is sent into decoder, continue to play the first via video, regarded with realizing Frequency is switched fast before step, and methods described also includes:
The video data of the first via video and picture group data feeding buffering area are cached.
In addition, to achieve the above object, the present invention also proposes many player apparatus for fast switching, institute under a kind of single decoder Stating many player apparatus for fast switching under single decoder includes:Memory, processor and it is stored on the memory and can be Many player fast handover procedures under the single decoder run on the processor, described program is arranged for carrying out such as claim Under single decoder any one of 1 to 8 the step of many player fast switch over method.
In addition, to achieve the above object, the present invention also proposes single solution that is stored with a kind of storage medium, the storage medium It is real when many player fast handover procedures are executed by processor under many player fast handover procedures under code device, the single decoder Now under single decoder as described above the step of many player fast switch over method.
Many player fast switch over method under single decoder proposed by the present invention, are receiving first via server is sent the During one play instruction, first via video is played out according to the first play instruction, when playing, by the video of first via video Data feeding buffering area is cached, then when receiving the second play instruction of the second road server transmission, first via video is entered Row pause, obtains the current time stamp of first via video, and is played out the second road video according to the second play instruction, according to The current time stamp carries out data renewal to the buffering area, then receives the 3rd broadcasting that the first via server sends and refer to When making, the video data in the buffering area after renewal is sent into by decoder according to the 3rd play instruction, continues the broadcasting first via and regards Frequently, to realize being switched fast for video.Due to being handled in the present invention video data, video data is marked upper corresponding Timestamp is simultaneously ranked up and is re-fed into buffering area and is cached, and entered the video data in buffering area according to current time stamp Row updates, therefore, can be switched to the video to be played of correspondent time in time when carrying out video switching, accomplish no seaming and cutting Change, so as to improve Consumer's Experience.
Brief description of the drawings
Fig. 1 is the player structure schematic diagram for the hardware running environment that scheme of the embodiment of the present invention is related to;
Fig. 2 is the schematic flow sheet of many player fast switch over method first embodiments under single decoder of the present invention;
Fig. 3 is the schematic flow sheet of many player fast switch over method second embodiments under single decoder of the present invention;
Fig. 4 is many player system block diagrams under single decoder;
Fig. 5 is streaming media video principle of optimality figure;
Fig. 6 is the schematic flow sheet of many player fast switch over method 3rd embodiments under single decoder of the present invention;
Fig. 7 is picture group arrangement schematic diagram in buffering area;
Fig. 8 is the schematic flow sheet of many player fast switch over method fourth embodiments under single decoder of the present invention;
Fig. 9 is the schematic flow sheet of many embodiments of player fast switch over method the 5th under single decoder of the present invention;
Figure 10 is the schematic flow sheet of many player fast switch over method sixth embodiments under single decoder of the present invention;
Figure 11 is the schematic flow sheet of many embodiments of player fast switch over method the 7th under single decoder of the present invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The solution of the embodiment of the present invention is mainly:When receiving the first play instruction that first via server is sent, First via video is played out according to first play instruction;The video data of the first via video is sent into buffering area Cached;When receiving the second play instruction that the second road server is sent, the first via video is suspended, obtained The current time stamp of first via video, and played out the second road video according to second play instruction;Worked as according to described Preceding timestamp carries out data renewal to the buffering area;When receiving three play instruction that the first via server is sent, Video data in buffering area after renewal is sent into by decoder according to the 3rd play instruction, continues to play the first via Video, to realize being switched fast for video.By the technical scheme of the embodiment of the present invention, multiple players under single decoder are solved The problem of carrying out that seamless play can not be accomplished during video switching.
Many player knots under reference picture 1, the single decoder for the hardware running environment that Fig. 1 is related to for scheme of the embodiment of the present invention Structure schematic diagram.
As shown in figure 1, the player can include:Controller 1001, such as CPU, communication bus 1002, user interface 1003, network interface 1004, memory 1005, separator 1006, decoder 1007.Wherein, communication bus 1002 is used to realize Connection communication between these components.User interface 1003 can include display (Display), input block such as remote control (Remote Control), optional user interface 1003 can also include wireline interface, the wave point of standard.Network interface 1004 can optionally include wireline interface, the wave point (such as WI-FI interfaces) of standard.Memory 1005 can be at a high speed RAM memory or stable memory (non-volatile memory), such as magnetic disk storage.Memory 1005 The optional storage device that can also be independently of aforementioned controllers 1001.It is defeated that separator 1006 can receive user interface 1003 The data entered, can also receive the data of the input of network interface 1004, and controller 1001 can be called storage by decoder 1007 Data in device 1005 are decoded, and the data that controller 1001 can export separator 1006 are sent to the He of decoder 1007 Memory 1005.
It will be understood by those skilled in the art that the player structure shown in Fig. 1 does not constitute the restriction to player, can With including than illustrating more or less parts, either combining some parts or different parts arrangement.
As shown in figure 1, leading to as operating system, network can be included in a kind of memory 1005 of computer-readable storage medium Many player fast handover procedures under letter module, Subscriber Interface Module SIM and single decoder.
In the player shown in Fig. 1, network interface 1004 is mainly used in connecting network, and carrying out data with internet leads to Letter;User interface 1003 is mainly used in connecting user terminal, and row data communication is entered with terminal;Controller in player of the present invention 1001st, memory 1005 can be arranged under single decoder in many player apparatus for fast switching, multicast under the single decoder Put device apparatus for fast switching calls many players under the single decoder stored in memory 1005 quickly to cut by controller 1001 Program is changed, and performs following operate:
When receiving the first play instruction that first via server is sent, the first via is regarded according to first play instruction Frequency is played out;
The video data feeding buffering area of the first via video is cached;
When receiving the second play instruction that the second road server is sent, the first via video is suspended, obtained The current time stamp of first via video, and played out the second road video according to second play instruction;
Data renewal is carried out to the buffering area according to the current time stamp;
When receiving three play instruction that the first via server is sent, it will be updated according to the 3rd play instruction Video data feeding decoder in buffering area afterwards, continues to play the first via video, to realize being switched fast for video.
Further, controller 1001 can call many players under the single decoder stored in memory 1005 quickly to cut Program is changed, following operate also is performed:
Obtain the video data of pending first via video;
Parsing acquisition identification information is carried out to the video data of the pending first via video;
The video data of the pending first via video is ranked up according to the identification information, after acquisition processing The video data of first via video;
The video data feeding buffering area of the first via video is cached.
Further, controller 1001 can call many players under the single decoder stored in memory 1005 quickly to cut Program is changed, following operate also is performed:
The video data of the first via video is grouped according to the identification information, described the after packet is obtained Picture group data of the video data of video all the way;
By timestamp in the picture group data markers, and according to the timestamp by the picture group data according to the time Order is ranked up;
Picture group data feeding buffering area is cached.
Further, controller 1001 can call many players under the single decoder stored in memory 1005 quickly to cut Program is changed, following operate also is performed:
The picture group data are sent into decoder to be decoded;
Obtain the timestamp of decoded current picture group data;
Using the timestamp as first via video current time stamp.
Further, controller 1001 can call many players under the single decoder stored in memory 1005 quickly to cut Program is changed, following operate also is performed:
The timestamp of the current time stamp of the first via video and current picture group data is compared;
, will buffering if the current time stamp of the first via video is more than the timestamp of the current picture group data The current picture group data in area are deleted.
Further, controller 1001 can call many players under the single decoder stored in memory 1005 quickly to cut Program is changed, following operate also is performed:
If the current time stamp of the first via video is less than the timestamp of the picture group data, current draw is obtained The timestamp of preset time in the group data of face.
Further, controller 1001 can call many players under the single decoder stored in memory 1005 quickly to cut Program is changed, following operate also is performed:
The timestamp of preset time in the current picture group data obtains new pending first via video Video data.
Further, controller 1001 can call many players under the single decoder stored in memory 1005 quickly to cut Program is changed, following operate also is performed:
The video data of the first via video and picture group data feeding buffering area are cached.
The present embodiment is by such scheme, when receiving the first play instruction that first via server is sent, according to described First play instruction plays out first via video;The video data feeding buffering area of the first via video is delayed Deposit;When receiving the second play instruction that the second road server is sent, the first via video is suspended, the first via is obtained The current time stamp of video, and played out the second road video according to second play instruction;According to the current time Stamp carries out data renewal to the buffering area;When receiving three play instruction that the first via server is sent, according to institute State the 3rd play instruction and the video data in the buffering area after renewal sent into decoder, continue to play the first via video, To realize being switched fast for video.Because when video switches, the video data in decoder is emptied, without again Send video data, it is only necessary to the video of pause is carried out by seamless play according to the timestamp of the video pause of record, therefore subtracted The buffer time of few video switching, improve Consumer's Experience.
Based on above-mentioned hardware configuration, many player fast switch over method embodiments under single decoder of the present invention are proposed.
Reference picture 2, Fig. 2 is the flow signal of many player fast switch over method first embodiments under single decoder of the present invention Figure.
In the first embodiment, many player fast switch over method comprise the following steps under the single decoder:
Step S10, will according to first play instruction when receiving the first play instruction that first via server is sent First via video is played out;
In the present embodiment, the player is many players of single decoder, and each player corresponding server is instructed Control, when receiving the first play instruction that first via server is sent, first via video player carries out video playback.
The present embodiment is decoded using single decoder, i.e., only one of which multimedia resource is in broadcast state, first When road video is played out, the second road video player carries out video data buffer status, first sent in the reception server During the video playback instruction of the second tunnel of road video pause, first via video carries out park mode, i.e. first via video player and carried out Video data buffer status, the second road video player carries out the second road video data broadcast state.
Step S20, the video data feeding buffering area of the first via video is cached;
Player gets Data Data, and the video data is sent in decoder and is decoded and is played, also should Video data is sent to buffering area and cached.
The present embodiment sets data management system, and data management system is cached the video data feeding buffering area of acquisition, The data management system obtains the video data of the separation in separator, and the video data handled, by after treatment Video data sends into buffering area, and the buffering area storage is currently needed for the video data played, and the video counts of buffering area storage According to for the video data after the processing that is ranked up by data processing and temporally.
Step S30, when receiving the second play instruction that the second road server is sent, the first via video is carried out temporary Stop, obtain the current time stamp of first via video, and played out the second road video according to second play instruction;
When playing out device switching, the instruction for the second tunnel video playback that the second road server is sent is obtained, enters the second tunnel Video is played out, accordingly, and first via video is suspended, and in buffer status.
Understand, in first via video player placed in a suspend state, when the second road video player is in broadcast state, solution Data in code device can be emptied, and the video data for the first via video being already sent in the first Video Decoder will be deleted Remove.
When getting video data, video data is sent in decoder and decodes and plays out, also by video data Timestamp is put on, is ranked up sequentially in time, and is sent to buffering area and is cached.
In first via video player placed in a suspend state, when the second road video player is in broadcast state, in decoding The video data data markers of decoding are passed through in device a timestamp, obtains current timestamp, using the timestamp as extensive The timing node of video data when replay is put.
Step S40, data renewal is carried out according to the current time stamp to the buffering area;
When first via video is in pause, current play time stamp is got, is stabbed according to current play time with buffering The video data of area's caching is compared, if current play time stamp is more than the video data of buffer cache, illustrates slow It is to pass through the video data for decoding and playing to rush the video data cached in area, in this case, by buffering area Video data deleted, and obtain the new video data played out.
If current play time stamp is less than in the video data of buffer cache, illustrate the video cached in buffering area Data are the video datas do not played also, in this case, obtain the timestamp of the time cached in buffering area the latest, And continued to obtain new video data according to the timestamp, so as to ensure that caching is that video data is suitable according to the time in buffering area Sequence is ranked up and continuous video data.
Understand, the video video data buffered in buffering area carry out real-time update according to currently playing timestamp, it is ensured that The video data cached in the buffer is the video data do not played, and the video data played out is deleted Remove.
Step S50, when receiving three play instruction that the first via server is sent, plays according to the described 3rd and refers to Make and the video data in the buffering area after renewal is sent into decoder, continue to play the first via video, to realize video It is switched fast.
The first via video for receiving the transmission of first via server plays out instruction, enters first via video and carries out continuing to broadcast Put, the second road video carries out buffer status, and principle when being buffered in buffer status to the first via is substantially similar, no longer multiple herein State.
When video is switched again, the video data updated in buffering area is sent into decoder and played out, due to Buffer cache is the continuous video data do not played for having carried out video renewal, it is ensured that the continuity of video playback, So as to being switched fast for video video.
The present embodiment is by such scheme, when receiving the first play instruction that first via server is sent, according to first Play instruction plays out first via video, when playing, and the video data feeding buffering area of first via video is delayed When depositing, then receiving the second play instruction of the second road server transmission, first via video is suspended, first via video is obtained Current time stamp, and the second road video is played out according to the second play instruction, according to the current time stamp to described Buffering area carries out data renewal, then when receiving three play instruction of the first via server transmission, plays and refer to according to the 3rd Make and the video data in the buffering area after renewal is sent into decoder, continue to play first via video, to realize the quick of video Switching.Due to being handled in the present invention video data, upper corresponding timestamp is marked to video data and is ranked up again It is sent to buffering area to be cached, and is updated the video data in buffer area according to current time stamp, therefore, is carrying out Video can be switched to the video to be played of correspondent time in time when switching, and accomplish seamless switching, so as to improve Consumer's Experience.
Reference picture 3, Fig. 3 is the flow signal of many player fast switch over method second embodiments under single decoder of the present invention Figure.
In a second embodiment, before the step S20, in addition to:
Step S201, obtains the video data of pending first via video;
As shown in figure 4, player1 is first via player, player2 is No. second player, and InputSource is original Beginning data, Demux is separator, and initial data is separated, and voice data and video data are separated, DataManager is data management system, and the video data in separator is sent in video Decoder decoders and solved Code, decoder is used for the decoding of media data, is broadly divided into Video Decoder and audio decoder, is mainly in the present embodiment For video decoding, video data is also sent to Buffer buffering areas and cached by data management system, and Display is display Device, the video data decoded in Decoder decoders is played out, the operation principle of player2 No. second player with Player1 first via players are identical, no longer repeat herein.
Initial data is obtained, if initial data is network flow, what is obtained is the data that network interface is downloaded, if Local file is played, then corresponding is the data obtained by user interface, is constantly read from the user interface from file Enter data, and be sent in separator and separated, the video data separated is the pending video of the first via.
Step S202, parsing acquisition identification information is carried out to the video data of the pending first via video;
The video data is the frame of video that encoded device is encoded, it is encoded after frame of video for video pictures are divided into Tri- kinds of I, P, B, I frames are intra-coded frames, and P frames are forward coding frames, and B frames are alternating binary coding frames, and I frames are a complete pictures Face, and P frames and B frame recordings is, relative to the change of I frames, not have I frames, P frames and B frames can not just be decoded.
The of the video data of pending first via video is found after the video data for obtaining pending first via video One I frame, finds next I frames successively, according to the I frames searched out, at the video data of pending first via video Reason.
Data management system obtains video data from separator, and is parsed, and first I frame is found, by searching out I Frame is ranked up to the video data, and the video is sent into buffering area cached, if the video data first obtained Individual image frame is not I frames, then is abandoned the image frame, until searching out first I frame.
The video data of the pending first via video, is ranked up, obtains by step S203 according to the identification information Take the video data of the first via video after processing;
The video data of the pending first via video is ranked up according to the I frames searched out, by the pending number According to the video data for the first via video being processed into since I frames.
As shown in figure 5, the video data of the first via video is to proceed by sequence from I frames, and to next I frames.
Step S204, the video data feeding buffering area of the first via video is cached.
The present embodiment is by the judgement to I frames, so that video data is arranged in into the video data since I frames, it is ensured that Carry out obtaining accurate current play time stamp when decoding is played in video data.
Reference picture 6, Fig. 6 is the flow signal of many player fast switch over method 3rd embodiments under single decoder of the present invention Figure.
In the third embodiment, before the step S20, in addition to:
Further, before the step S20, in addition to:
The video data of the first via video, is grouped by step S205 according to the identification information, obtains packet The picture group data of the video data of the first via video afterwards;
The video data of first via video is to proceed by sequence from I frames, and to next I frames, according to the mark of I frames Information, is divided into GOP by the video data of first via video, and first GOP is started with I frames, and according to next I searched out Frame, judges next GOP, and will carry out the video data feeding buffering area of the first via video of GOP judgements and be cached.
Step S206, by timestamp in the picture group data markers, and according to the timestamp by the picture group number According to being ranked up sequentially in time;
Continue as shown in figure 5, receive be arranged in since video data I frames when, then video data solved Analysis, seeks each I frame, if not I frames, illustrates that with previous I frames be not same GOP (Group of Picture pictures Group), if I frames, explanation is a new GOP, will be cached in the GOP data feeding buffering area that sorted, and according to Between the GOP is carried out at the beginning of information updating, including GOP and the end time, such as in Fig. 5, t1 is a GOP time started, T2 is a GOP end time, the GOP in buffering area is ranked up sequentially in time, next I frames represent next GOP。
Video data is ranked up according to the I frames of video data, the GOP since I frames is obtained, GOP is sent to slow Rush in area, and according to GOP by video data mark at the beginning of upper each GOP between and the end time.
As shown in fig. 7, in Buffer buffering areas cache arrangement GOP, such as GOP1, GOP2.
Step S207, picture group data feeding buffering area is cached.
The GOP video datas for putting on temporal information are sent into buffering area to be cached, also the video information are sent to Decoded and played in decoder.
The present embodiment is by the way that video data is handled, and making to be sent to the video data in decoder is started with I frames Picture group, and the picture group puts on timestamp, the current time stamp of first via video playback when more effectively obtaining switching.
Reference picture 8, Fig. 8 is the flow signal of many player fast switch over method fourth embodiments under single decoder of the present invention Figure.
In the fourth embodiment, the step S30 is specifically included:
The picture group data are sent to decoder and decoded by step S301;
The picture group data that data management system puts on timestamp are sent in decoder and decoded, and are regarded by decoded Frequency is according to can just play out.
Step S302, obtains the timestamp of decoded current picture group data;
When receiving the video playback instruction of the second tunnel of first via video pause, GOP's works as when having been played in acquisition decoder Preceding timestamp, GOP includes time started and end time, can obtain GOP end time, and the time that the GOP terminates is made For current time stamp.
,, will when next GOP is decoded if finished in decoder current GOP is decoded when switching over Next GOP times are abandoned, and obtain decoded GOP end time.
Step S303, using the timestamp as first via video current time stamp.
Using decoded GOP end time, as current time stamp, and records current time stamp and entered in a decoder Row is preserved, so as to which when carrying out continuing to play, the timing node for continuing to play is used as using the current time stamp of record.
The present embodiment is by regarding GOP decoded in decoder end time as the time for continuing to play next time Point, the current time stamp of first via video playback when more accurately obtaining switching.
Reference picture 9, Fig. 9 is the flow signal of many embodiments of player fast switch over method the 5th under single decoder of the present invention Figure.
In the 5th embodiment, the step S40 is specifically included:
Step S401, the timestamp of the current time stamp of the first via video and current picture group data is compared Compared with;
Step S402, if the current time stamp of the first via video is more than the time of the current picture group data Stamp, then delete the current picture group data in first via screen buffer.
When carrying out video playback, the current time stamp in decoder is obtained, by the current time stamp in decoder with delaying The GOP rushed in area timestamp is compared, if current time stamp is more than the timestamp second of the video data in buffering area Between at the beginning of individual GOP, illustrate that first GOP is normally decoded and shown and finish, in this case, by buffering area One GOP is deleted, when obtaining current time stamp in real time, the like, by what is finished in screen buffer GOP is deleted, it is ensured that be newest GOP data by the data of screen buffer.
The broadcasting first via video that is sent in the present embodiment by the reception server, the instruction for suspending the second road video, delay GOP data when the data for rushing area's reservation are first via video pause, it is ensured that continue to carry out quick seamless play when playing.
Reference picture 10, Figure 10 shows for the flow of many player fast switch over method sixth embodiments under single decoder of the present invention It is intended to.
In the sixth embodiment, the step S40 is specifically included:
Step S403, if the current time stamp of the first via video is less than the timestamp of the picture group data, Obtain the timestamp of the preset time in current picture group data.
The reception server send broadcastings first via video, pause the second road video instruction when, if current time stamp Less than the video data in buffering area second GOP of timestamp at the beginning of between, illustrate first GOP also without proper solution Code, in this case, it is all the GOP not decoded also to illustrate the GOP in buffering area, in this case, obtains slow Rush the timestamp of GOP times the latest in area.
Broadcasting first via video that the present embodiment is sent by the reception server, the instruction for suspending the second road video, buffering The GOP data do not played also when the data that area retains are first via video pause, it is ensured that not having pause when continuing to play Decoded in the GOP data feeding decoder for having broadcasting, it is ensured that video carries out seamless play when switching.
Reference picture 11, Figure 11 shows for the flow of many embodiments of player fast switch over method the 7th under single decoder of the present invention It is intended to.
In the 7th embodiment, the step S50 is specifically included:
Step S60, the timestamp of the preset time in the current picture group data obtains new pending first The video data of road video.
In the present embodiment, after the broadcasting first via video of the reception server transmission, the instruction of the second road video of pause, root First via video playback is carried out according to current time stamp, if current time stamp is less than the timestamp the of the video data in buffering area Between at the beginning of two GOP, the timestamp of GOP times the latest in buffering area is obtained, in this case, is illustrated in buffering area When the timestamp of GOP times the latest is the second tunnel of first via video pause video playback, the timing node in buffering area, by slow Rush the timestamp of GOP times the latest in area and obtain the video data of new pending first via video, so that GOP in buffering area For according to the continuous GOP of time-sequencing, so that it is guaranteed that the data newly sent into are to follow the GOP above having been fed into, it is ensured that after Continuous broadcasting is continuous without frame-skipping.
The present embodiment is by after the instruction of the second tunnel of first via video pause video playback, obtaining what is cached in buffering area The timestamp of GOP times the latest, the timestamp of the GOP times of the caching the latest is recorded, it is ensured that the data newly sent into are Follow the GOP above having been fed into, it is ensured that follow-up broadcasting is continuous without frame-skipping.
In addition, the embodiment of the present invention also proposes the list that is stored with a kind of storage medium, the computer-readable recording medium When many player fast handover procedures are executed by processor under many player fast handover procedures, the single decoder under decoder Realize following operation:
When receiving the first play instruction that first via server is sent, the first via is regarded according to first play instruction Frequency is played out;
The video data feeding buffering area of the first via video is cached;
When receiving the second play instruction that the second road server is sent, the first via video is suspended, obtained The current time stamp of first via video, and played out the second road video according to second play instruction;
Data renewal is carried out to the buffering area according to the current time stamp;
When receiving three play instruction that the first via server is sent, it will be updated according to the 3rd play instruction Video data feeding decoder in buffering area afterwards, continues to play the first via video, to realize being switched fast for video.
Further, following behaviour is also realized when many player fast handover procedures are executed by processor under the single decoder Make:
Obtain the video data of pending first via video;
Parsing acquisition identification information is carried out to the video data of the pending first via video;
The video data of the pending first via video is ranked up according to the identification information, after acquisition processing The video data of first via video;
The video data of the first via video is stored in first via screen buffer.
Further, following behaviour is also realized when many player fast handover procedures are executed by processor under the single decoder Make:
The video data of the first via video is grouped according to the identification information, described the after packet is obtained Picture group data of the video data of video all the way;
By timestamp in the picture group data markers, and according to the timestamp by the picture group data according to the time Order is ranked up;
Picture group data feeding buffering area is cached.
Further, following behaviour is also realized when many player fast handover procedures are executed by processor under the single decoder Make:
The picture group data are sent into decoder to be decoded;
Obtain the timestamp of decoded current picture group data;
Using the timestamp as first via video current time stamp.
Further, following behaviour is also realized when many player fast handover procedures are executed by processor under the single decoder Make:
The timestamp of the current time stamp of the first via video and current picture group data is compared;
If the current time stamp of first video is more than the timestamp of the current picture group data, first is regarded The current picture group data in frequency buffering area are deleted.
Further, following behaviour is also realized when many player fast handover procedures are executed by processor under the single decoder Make:
If the current time stamp of the first via video is less than the timestamp of the picture group data, current draw is obtained The timestamp of preset time in the group data of face.
Further, following behaviour is also realized when many player fast handover procedures are executed by processor under the single decoder Make:
The timestamp of preset time in the current picture group data obtains new pending first via video Video data.
Further, following behaviour is also realized when many player fast handover procedures are executed by processor under the single decoder Make:
The video data of the first via video and picture group data feeding buffering area are cached.
The present embodiment is by such scheme, when receiving the first play instruction that first via server is sent, according to first Play instruction plays out first via video, when playing, and the video data feeding buffering area of first via video is delayed When depositing, then receiving the second play instruction of the second road server transmission, first via video is suspended, first via video is obtained Current time stamp, and the second road video is played out according to the second play instruction, according to the current time stamp to described Buffering area carries out data renewal, then when receiving three play instruction of the first via server transmission, plays and refer to according to the 3rd Make and the video data in the buffering area after renewal is sent into decoder, continue to play first via video, to realize the quick of video Switching.Due to being handled in the present invention video data, upper corresponding timestamp is marked to video data and is ranked up again It is sent to buffering area to be cached, and is updated the video data in buffer area according to current time stamp, therefore, is carrying out Video can be switched to the video to be played of correspondent time in time when switching, and accomplish seamless switching, so as to improve Consumer's Experience.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property is included, so that process, method, article or system including a series of key elements not only include those key elements, and And also including other key elements being not expressly set out, or also include for this process, method, article or system institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Also there is other identical element in process, method, article or the system of key element.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
In if the unit claim of equipment for drying is listed, several in these devices can be by same hard Part is embodied.The use of word first, second, and third does not indicate that any order.These words can be explained For title.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Understood based on such, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in one as described above In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, Computer, server, air conditioner, or network equipment etc.) perform method described in each of the invention embodiment.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow conversion that bright specification 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. many player fast switch over method under a kind of single decoder, it is characterised in that methods described includes:
When receiving the first play instruction that first via server is sent, first via video is entered according to first play instruction Row is played;
The video data feeding buffering area of the first via video is cached;
When receiving the second play instruction that the second road server is sent, the first via video is suspended, first is obtained The current time stamp of road video, and played out the second road video according to second play instruction;
Data renewal is carried out to the buffering area according to the current time stamp;
When receiving three play instruction that the first via server is sent, according to the 3rd play instruction by after renewal Video data feeding decoder in buffering area, continues to play the first via video, to realize being switched fast for video.
2. many player fast switch over method under single decoder as claimed in claim 1, it is characterised in that described by described Before the video data feeding buffering area of video carries out caching step all the way, methods described includes:
Obtain the video data of pending first via video;
Parsing acquisition identification information is carried out to the video data of the pending first via video;
The video data of the pending first via video is ranked up according to the identification information, first after acquisition processing The video data of road video;
The video data feeding buffering area of the first via video is cached.
3. many player fast switch over method under single decoder as claimed in claim 1 or 2, it is characterised in that described by institute Before the video data feeding buffering area progress caching step for stating first via video, methods described also includes:
The video data of the first via video is grouped according to the identification information, the first via after packet is obtained The picture group data of the video data of video;
By timestamp in the picture group data markers, and according to the timestamp by the picture group data sequentially in time It is ranked up;
Picture group data feeding buffering area is cached.
4. many player fast switch over method under single decoder as claimed in claim 1, it is characterised in that described to receive the During the second play instruction that two road servers are sent, the first via video is suspended, the current of first via video is obtained Timestamp step is specifically included:
The picture group data are sent into decoder to be decoded;
Obtain the timestamp of decoded current picture group data;
Using the timestamp as first via video current time stamp.
5. many player fast switch over method under single decoder as claimed in claim 4, it is characterised in that described in the basis Current time stamp carries out data renewal step to the buffering area and specifically included:
The timestamp of the current time stamp of the first via video and current picture group data is compared;
If the current time stamp of the first via video is more than the timestamp of the current picture group data, by buffering area The current picture group data delete.
6. many player fast switch over method under single decoder as claimed in claim 5, it is characterised in that described in the basis Current time stamp, which carries out data renewal step to the buffering area, specifically also to be included:
If the current time stamp of the first via video is less than the timestamp of the picture group data, current picture group is obtained The timestamp of preset time in data.
7. many player fast switch over method under single decoder as claimed in claim 6, it is characterised in that described to receive institute When stating three play instruction of first via server transmission, according to the 3rd play instruction by regarding in the buffering area after renewal Frequency continues to play the first via video, to realize that being switched fast for video specifically includes according to feeding decoder:
The timestamp of preset time in the current picture group data obtains the video of new pending first via video Data.
8. many player fast switch over method under the single decoder as described in any one of claim 1 to 7, it is characterised in that institute State when receiving three play instruction that the first via server is sent, will be slow after renewal according to the 3rd play instruction The video data feeding decoder rushed in area, continues to play the first via video, with realize video be switched fast step it Before, methods described also includes:
The video data of the first via video and picture group data feeding buffering area are cached.
9. many player apparatus for fast switching under a kind of single decoder, it is characterised in that described device includes:Memory, processing Device and many player fast handover procedures under the single decoder that can be run on the memory and on the processor are stored in, Described program is arranged for carrying out many player fast switch over method under the single decoder as any one of claim 1 to 8 The step of.
10. a kind of computer-readable recording medium, it is characterised in that be stored with single decoding on the computer-readable recording medium Many player fast handover procedures under device, are realized as any one of claim 1 to 8 when described program is executed by processor Single decoder under many player fast switch over method the step of.
CN201710319701.5A 2017-05-05 2017-05-05 Many player fast switch over method, device and storage medium under single decoder Pending CN107071549A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710319701.5A CN107071549A (en) 2017-05-05 2017-05-05 Many player fast switch over method, device and storage medium under single decoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710319701.5A CN107071549A (en) 2017-05-05 2017-05-05 Many player fast switch over method, device and storage medium under single decoder

Publications (1)

Publication Number Publication Date
CN107071549A true CN107071549A (en) 2017-08-18

Family

ID=59596467

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710319701.5A Pending CN107071549A (en) 2017-05-05 2017-05-05 Many player fast switch over method, device and storage medium under single decoder

Country Status (1)

Country Link
CN (1) CN107071549A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107786890A (en) * 2017-10-30 2018-03-09 深圳Tcl数字技术有限公司 Video switching method, device and storage medium
CN110213659A (en) * 2019-07-01 2019-09-06 杭州当虹科技股份有限公司 A kind of implementation method that player can be switched fast between different video stream
WO2020114146A1 (en) * 2018-12-07 2020-06-11 广州市百果园信息技术有限公司 Multi-video playing method, storage medium, and computer device
CN111954068A (en) * 2019-05-14 2020-11-17 阿里巴巴集团控股有限公司 Method and device for video definition switching and electronic device
CN112887774A (en) * 2021-02-05 2021-06-01 冠捷显示科技(厦门)有限公司 Method and device for playing content seamlessly
CN113271468A (en) * 2020-02-14 2021-08-17 北京灵汐科技有限公司 SoC video decoding and buffering method and device based on GOP
CN114584794A (en) * 2020-12-01 2022-06-03 青岛海信宽带多媒体技术有限公司 Audio and video playing method and device, playing terminal and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030035650A1 (en) * 2001-08-20 2003-02-20 Jason Demas Apparatus and method of seamless switching between a live DTV decoding and a PVR playback
CN101335883A (en) * 2007-06-29 2008-12-31 国际商业机器公司 Method and apparatus for processing video stream in digital video broadcast system
JP2013025855A (en) * 2011-07-26 2013-02-04 Mitsubishi Electric Corp Disk reproducing device
CN103780943A (en) * 2014-01-24 2014-05-07 华为技术有限公司 Audio channel switching method, device and system
CN105657524A (en) * 2016-01-13 2016-06-08 上海视云网络科技有限公司 Seamless video switching method
CN105828195A (en) * 2016-03-10 2016-08-03 乐视云计算有限公司 Suspending resuming method and apparatus of player
CN106534952A (en) * 2016-09-28 2017-03-22 青岛海信电器股份有限公司 Method for continuingly playing film source after source switching and smart television

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030035650A1 (en) * 2001-08-20 2003-02-20 Jason Demas Apparatus and method of seamless switching between a live DTV decoding and a PVR playback
CN101335883A (en) * 2007-06-29 2008-12-31 国际商业机器公司 Method and apparatus for processing video stream in digital video broadcast system
JP2013025855A (en) * 2011-07-26 2013-02-04 Mitsubishi Electric Corp Disk reproducing device
CN103780943A (en) * 2014-01-24 2014-05-07 华为技术有限公司 Audio channel switching method, device and system
CN105657524A (en) * 2016-01-13 2016-06-08 上海视云网络科技有限公司 Seamless video switching method
CN105828195A (en) * 2016-03-10 2016-08-03 乐视云计算有限公司 Suspending resuming method and apparatus of player
CN106534952A (en) * 2016-09-28 2017-03-22 青岛海信电器股份有限公司 Method for continuingly playing film source after source switching and smart television

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107786890A (en) * 2017-10-30 2018-03-09 深圳Tcl数字技术有限公司 Video switching method, device and storage medium
WO2020114146A1 (en) * 2018-12-07 2020-06-11 广州市百果园信息技术有限公司 Multi-video playing method, storage medium, and computer device
RU2762399C1 (en) * 2018-12-07 2021-12-21 Биго Текнолоджи Пте. Лтд. Method for playing multiple videos, data storage, and computer apparatus
US11627357B2 (en) 2018-12-07 2023-04-11 Bigo Technology Pte. Ltd. Method for playing a plurality of videos, storage medium and computer device
CN111954068A (en) * 2019-05-14 2020-11-17 阿里巴巴集团控股有限公司 Method and device for video definition switching and electronic device
CN110213659A (en) * 2019-07-01 2019-09-06 杭州当虹科技股份有限公司 A kind of implementation method that player can be switched fast between different video stream
CN113271468A (en) * 2020-02-14 2021-08-17 北京灵汐科技有限公司 SoC video decoding and buffering method and device based on GOP
CN114584794A (en) * 2020-12-01 2022-06-03 青岛海信宽带多媒体技术有限公司 Audio and video playing method and device, playing terminal and storage medium
CN114584794B (en) * 2020-12-01 2023-09-22 青岛海信宽带多媒体技术有限公司 Audio and video playing method and device, intelligent set top box and storage medium
CN112887774A (en) * 2021-02-05 2021-06-01 冠捷显示科技(厦门)有限公司 Method and device for playing content seamlessly

Similar Documents

Publication Publication Date Title
CN107071549A (en) Many player fast switch over method, device and storage medium under single decoder
US20190028746A1 (en) Synchronous and Multi-Sourced Audio and Video Broadcast
CN107566918B (en) A kind of low delay under video distribution scene takes the neutrel extraction of root
CN201781583U (en) Multichannel server video playback synchronous control system
CN107547940A (en) Video playback processing method, equipment and computer-readable recording medium
CN106412677B (en) Method and device for generating playback video file
CN106534952B (en) Source switching back-film source continuous playing method and smart television
CN102036058B (en) Method, server, terminal and system for switching videos in video monitoring system
CN105516791A (en) Intelligent household streaming media seamless connection realization method and intelligent household streaming media seamless connection realization system
CN108174280B (en) Audio and video online playing method and system
CN104202684A (en) Segmental network video seamless playing method and device
CN111316659A (en) Dynamically reducing playout of substitute content to help align the end of substitute content with the end of replaced content
CN106791988B (en) Multimedia data carousel method and terminal
JP2007259050A (en) Mobile communication terminal, and program
CN110198494B (en) Video playing method, device, equipment and storage medium
CN101277450A (en) Method and apparatus for switching program
US8509599B2 (en) Recording and reproducing apparatus, recording and reproducing method and program
RU2007110224A (en) METHOD FOR PLAYING BROADCAST DATA IN THE RECEIVER
CN103491430B (en) Streaming medium data processing method and electronic equipment
CN106791994A (en) A kind of low delay quickly starts broadcasting method and device
CN105915985A (en) Method for performing watch-back in live broadcasting and device thereof
CN105898392A (en) Online live video player and method
CN105791987B (en) The method and terminal that media data plays
CN108271031A (en) The playback method and device of a kind of live video
CN106572383A (en) Video switching method and system based on multi-screen interaction

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170818