CN107547940A - Video playback processing method, equipment and computer-readable recording medium - Google Patents

Video playback processing method, equipment and computer-readable recording medium Download PDF

Info

Publication number
CN107547940A
CN107547940A CN201710829707.7A CN201710829707A CN107547940A CN 107547940 A CN107547940 A CN 107547940A CN 201710829707 A CN201710829707 A CN 201710829707A CN 107547940 A CN107547940 A CN 107547940A
Authority
CN
China
Prior art keywords
video
processing method
playback processing
video playback
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.)
Granted
Application number
CN201710829707.7A
Other languages
Chinese (zh)
Other versions
CN107547940B (en
Inventor
邓雷
邓一雷
陈金源
吴清源
廖宇辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer 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 Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201710829707.7A priority Critical patent/CN107547940B/en
Publication of CN107547940A publication Critical patent/CN107547940A/en
Application granted granted Critical
Publication of CN107547940B publication Critical patent/CN107547940B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of video playback processing method, video playback processing method includes:When playing video, whether detection currently meets preparatory condition;If satisfied, the reading instruction of next video is then sent, for reading the video data in next video beginning preset time from server or local cache;When receiving Switch Video instruction, the video data of reading is played.The invention also discloses a kind of video playback apparatus and computer-readable recording medium.The present invention can be before Switch Video instruction be sent, the video data of next broadcasting video is obtained in advance, and then realize that quick response plays when user selects Switch Video, effectively avoid the occurrence of the phenomenon of Video transfer card, the time to be played such as user is also saved, improves the perception experience of user.

Description

Video playback processing method, equipment and computer-readable recording medium
Technical field
The present invention relates to technical field of video processing, more particularly to a kind of video playback processing method, video playback apparatus And computer-readable recording medium.
Background technology
With the continuous development of information technology and becoming increasingly popular for such as mobile phone, notebook computer intelligent terminal, use Intelligent terminal has become the part in people's life.The amusement function of existing intelligent terminal is stronger and stronger, brings use The more entertainment way in family and usage experience.
At present, intelligent terminal supports Online Video to play, but in video display process, user may constantly switch The video frequency program of viewing is wanted in selection.Prior art is typically after the operational order of Switch Video is received, and is performed under reading One video data, thus during Switch Video, the time to be played such as user is added, while further encounter video and cut Change the phenomenon of interim card, cause user can not smooth viewing video, and then influence user perception experience.
The content of the invention
It is a primary object of the present invention to provide a kind of video playback processing method, video playback apparatus and computer-readable Storage medium, it is intended to when how solution realizes that video switching plays, avoid running into the technical problem of Video transfer card phenomenon.
To achieve the above object, a kind of video playback processing method provided by the invention, the video playback processing method Including:
When playing video, whether detection currently meets preparatory condition;
If satisfied, the reading instruction of next video is then sent, for reading next video from server or local cache Start the video data in preset time;
When receiving Switch Video instruction, the video data of reading is played.
Preferably, described when playing video, whether detection currently meets that preparatory condition includes:
When playing video, detect on the display screen of current video playback equipment with the presence or absence of the slip behaviour of video switching Make;
If in the presence of, it is determined that currently meet preparatory condition, and when the slide generates, trigger the reading and refer to Order.
Preferably, described when playing video, whether detection currently meets that preparatory condition includes:
When playing video, judge whether the time difference between current video play time and end time point is less than Preset time threshold;
If, it is determined that currently meet preparatory condition.
Preferably, it is described if satisfied, then send next video reading instruction, for being read from server or local cache The video data removed in video beginning preset time includes:
If satisfied, then send the reading instruction of next video;
Instruction is read based on described, the video data searched in next video beginning preset time whether there is in institute State in local cache;
If in the presence of by corresponding video data decoding to play buffer, for being read for playing;
If being not present, to video data corresponding to the server acquisition request, and corresponding video data is cached Into local cache.
Preferably, it is described if satisfied, then send next video reading instruction after, the video playback processing method Also include:
The video file information responded according to the server, the cut point and piecemeal size of the video data are determined, And the video data is cut into multiple piecemeal video datas, wherein, the video file information comprise at least video link, Frame list;
Send the download request of the multiple piecemeal video data respectively to the server, and download caching and delay to local In depositing.
Preferably, before the download caching is into the local cache, the video playback processing method also includes:
Piecemeal download policy is generated, judges whether the multiple piecemeal video data based on the policy download can be normal Read and play, if can be to perform the strategy, otherwise regenerate new download policy.
Preferably, the video playback processing method also includes:
When detecting that current video plays, judge whether the video data of a upper video caches completely;If it is not, Then continue to cache the video data of a video.
Preferably, the video playback processing method also includes:
If being unsatisfactory for preparatory condition, Switch Video instruction is generated at the end of current video plays, for from server Or the video data of next video is read in local cache.
In addition, to achieve the above object, the present invention also provides a kind of video playback apparatus, the video playback apparatus bag Include:Memory, processor and the video playback processing routine that can be run on the memory and on the processor is stored in, The video playback processing routine is by the video playback processing method described in realization during the computing device as described above any one The step of.
In addition, to achieve the above object, the present invention also provides a kind of computer-readable recording medium, described computer-readable Video playback processing routine is stored with storage medium, is realized as described above when the video playback processing routine is executed by processor The step of video playback processing method described in any one.
For the present invention when playing video, whether detection currently meets preparatory condition.If satisfied, then send the reading of next video Instruction fetch, for reading the video data in next video beginning preset time from server or local cache.When receiving When Switch Video instructs, the video data of reading is played.The present invention can be before Switch Video instruction be sent, under obtaining in advance The video data of one broadcasting video, and then realize that quick response plays when user selects Switch Video, effectively avoids the occurrence of The phenomenon of Video transfer card, also saves the time to be played such as user, improves the perception experience of user.
Brief description of the drawings
Fig. 1 is the system structure 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 the embodiment of video playback processing method one of the present invention;
Fig. 3 is the schematic flow sheet of the embodiments of step S20 mono- in Fig. 2;
Fig. 4 is the schematic flow sheet of another embodiment in video playback processing method of the present invention;
Fig. 5 is the schematic flow sheet of the preferred embodiment of video playback processing method one 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 specific embodiment described herein is not intended to limit the present invention only to explain the present invention.
Reference picture 1, Fig. 1 are the system structure diagram for the hardware running environment that scheme of the embodiment of the present invention is related to.
Video playback apparatus of the embodiment of the present invention is that have to receive video data, decoding video data, vision signal input The equipment of the functions such as output.
As shown in figure 1, the video playback apparatus can include:Processor 1001, such as CPU, communication bus 1002, user Interface 1003, network interface 1004, memory 1005.Wherein, communication bus 1002 is used to realize the connection between these components Communication.User interface 1003 can include display screen (Display), input block such as keyboard (Keyboard), 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 processor 1001.
Alternatively, video playback apparatus can also include display screen, return path, (Radio Frequency, are penetrated RF Frequently circuit), voicefrequency circuit, sensor, blue tooth interface etc..
It will be understood by those skilled in the art that the hardware configuration of the video playback apparatus shown in Fig. 1 do not form to regarding The restriction of frequency playback equipment, it can include than illustrating more or less parts, either combine some parts or different portions Part is arranged.
As shown in figure 1, as in a kind of memory 1005 of computer-readable recording medium can include operating system, net Network communication module, Subscriber Interface Module SIM and computer program.Wherein, operating system be management and control video playback apparatus and The program of software resource, support the operation of video playback processing routine and other softwares and/or program.
In the hardware configuration of the video playback apparatus shown in Fig. 1, network interface 1004 is mainly used in accessing network;User Interface 1003 is mainly used in detecting and confirms Command And Edit instruction etc..And processor 1001 can be used for calling in memory 1005 The video reproduction program of storage, and perform following operate:
When playing video, whether detection currently meets preparatory condition;
If satisfied, the reading instruction of next video is then sent, for reading next video from server or local cache Start the video data in preset time;
When receiving Switch Video instruction, the video data of reading is played.
Further, the video playback apparatus calls the program stored in memory 1005 to play by processor 1001 Program, to perform operations described below:
When playing video, detect on the display screen of current video playback equipment with the presence or absence of the slip behaviour of video switching Make;
If in the presence of, it is determined that currently meet preparatory condition, and when the slide generates, trigger the reading and refer to Order.
Further, the video playback apparatus calls the program stored in memory 1005 to play by processor 1001 Program, to perform operations described below:
When playing video, judge whether the time difference between current video play time and end time point is less than Preset time threshold;
If, it is determined that currently meet preparatory condition.
Further, the video playback apparatus calls the program stored in memory 1005 to play by processor 1001 Program, to perform operations described below:
If satisfied, then send the reading instruction of next video;
Instruction is read based on described, the video data searched in next video beginning preset time whether there is in institute State in local cache;
If in the presence of by corresponding video data decoding to play buffer, for being read for playing;
If being not present, to video data corresponding to the server acquisition request, and corresponding video data is cached Into local cache.
Further, the video playback apparatus calls the program stored in memory 1005 to play by processor 1001 Program, to perform operations described below:
The video file information responded according to the server, the cut point and piecemeal size of the video data are determined, And the video data is cut into multiple piecemeal video datas, wherein, the video file information comprise at least video link, Frame list;
Send the download request of the multiple piecemeal video data respectively to the server, and download caching and delay to local In depositing.
Further, the video playback apparatus calls the program stored in memory 1005 to play by processor 1001 Program, to perform operations described below:
Piecemeal download policy is generated, judges whether the multiple piecemeal video data based on the policy download can be normal Read and play, if can be to perform the strategy, otherwise regenerate new download policy.
Further, the video playback apparatus calls the program stored in memory 1005 to play by processor 1001 Program, to perform operations described below:
When detecting that current video plays, judge whether the video data of a upper video caches completely;If it is not, Then continue to cache the video data of a video.
Further, the video playback apparatus calls the program stored in memory 1005 to play by processor 1001 Program, to perform operations described below:
If being unsatisfactory for preparatory condition, Switch Video instruction is generated at the end of current video plays, for from server Or the video data of next video is read in local cache.
Based on above-mentioned video playback apparatus hardware configuration, each embodiment of video playback processing method of the present invention is proposed.
Reference picture 2, Fig. 2 are the schematic flow sheet of the embodiment of video playback processing method one of the present invention.
In the present embodiment, video playback processing method includes:
Step S10, when playing video, whether detection currently meets preparatory condition.
In the present embodiment, video technique is referred to a series of static images and is acted upon, stored, transmitted in a manner of electric signal With the various technologies of reproduction, the consecutive image picture change generally per second more than more than 24 frame pictures so that what human eye was watched It is dynamic menu, and the tableaux of single width can not be distinguished.Video content includes but is not limited to TV play, animation, news, music Short-movie, advertisement etc..Further, video format be it is a kind of preserve video file form, common format such as mp4, wmv, Rmvb, avi, mpeg, flv, mov, 3GP etc..Preparatory condition refers to the testing conditions pre-set, can monitor whether Switching command be present, or current video plays and reaches preset duration etc., is configured with specific reference to being actually needed.Further may be used Choosing, preparatory condition can determine next video to be played according to the order of playlist.Playlist, as the term suggests just It is the order list for playing video.Generally one video of addition, the relevant episode number the video, series are added to list automatically In.Such as play the 3rd collection, it is next it is to be played be the 4th collection.
Whether detection currently meets that preparatory condition is preferred:Detect to whether there is on the display screen of current video playback equipment and regard The slide of frequency switching;Or judge whether the time difference between current video play time and end time point is less than in advance If time threshold:
(1) detect on the display screen of current video playback equipment with the presence or absence of the slide of video switching.Slide, The namely slip gesture of user.User's finger is slided to the right on touch screen, or the tiltedly upper slip etc. of 45 degree of angles, i.e. generation are slided Operation.When slide be present, it is determined that meet the setting condition of current preset, such as the position by touch point on touch screen (x, y) calculates displacement and its angle value with terminal point coordinate, and instruction is read in triggering, to shift to an earlier date reading video data, specifically It is configured according to being actually needed.
(2) judge whether the time difference between current video play time and end time point is less than preset time threshold Value.Video playback has certain predetermined duration, thus initial time and end time be present during broadcasting video.Initial time and end Any time point between time can be current video play time.Preset time threshold can be 30 seconds or 2 minutes, specifically It is configured according to being actually needed.
Step S20, if satisfied, the reading instruction of next video is then sent, for being read from server or local cache Video data in next video beginning preset time.
In the present embodiment, read and refer to that processor can be used for the operational order for reading and being handled, specifically It is the instruction for reading next video.Meet preparatory condition, that is, before non-Switch Video, read next video in advance Start the video data in preset time so that user can respond broadcasting at once when switching next video, avoid switching Interim card, and then reduce the time to be played such as user, improve the perception experience of user.It may be configured as in beginning preset time First 5 minutes or 10 minutes, be configured with specific reference to being actually needed, further, read the beginning of next video it is default when Interior video data, rather than the whole partial data of next video, it can effectively mitigate the service ability of processor.
Further, if being unsatisfactory for preparatory condition, Switch Video instruction is generated at the end of current video plays, for The video data of next video is read from server or local cache.Be unsatisfactory for preparatory condition also can not just read in advance it is next Video data in individual video beginning preset time, thus Switch Video instruction is generated at the end of current video plays, under reading The video data of one video.And specifically, it is preferable to first read the video data of next video from local cache, then read from server The video data of next video.
Step S30, when receiving Switch Video instruction, play the video data of reading.
In the present embodiment, Switch Video refers to be altered to another video content from a video content and continues to play Process, be exactly briefly user after selection plays a video, and before the video does not terminate broadcasting, selection plays another One video.When receiving Switch Video instruction, that is, the operation for being altered to another video from a video be present and refer to Order, computing device video playback.Specifically, regarding in above-mentioned steps S20 next video beginning preset time is preferentially read Frequency evidence.
In the present embodiment, video playback apparatus is provided with corresponding Video Applications software, starts Video Applications software and leads to Cross mobile communications network and establish communication connection with server, it is unlimited specifically to establish mode.Thus in the playing process of Online Video, User selects to play a video frequency program, is needed if local cache is not present to server acquisition request associated video number According to the player software that the data to obtain are back to video playback apparatus installation plays out.
In the present embodiment, when playing video, whether detection currently meets preparatory condition.If satisfied, then send next regard The reading instruction of frequency, for reading the video data in next video beginning preset time from server or local cache.When When receiving Switch Video instruction, the video data of reading is played.The present invention can be before Switch Video instruction be sent, in advance The video data of next broadcasting video is obtained, and then realizes that quick response plays when user selects Switch Video, effectively keeps away Exempt from the phenomenon for Video transfer card occur, also save the time to be played such as user, improve the perception experience of user.
Reference picture 3, Fig. 3 are the schematic flow sheet of the embodiments of step S20 mono- in Fig. 2
Step S21, if satisfied, then sending the reading instruction of next video.
Step S22, instructed based on described read, whether the video data in lookup next video beginning preset time It is present in local cache.
In the present embodiment, video is played online, that is to say, that corresponding video file is obtained by accessing internet, and it is right Video file understand the process of broadcasting.Wherein video file includes substantial amounts of video data, and whole video data can Multiple piecemeal video datas are divided into, each piecemeal video data is separately cached into local cache file, obtains multiple cachings Video data.When getting corresponding video file, so that it may the video data of the inside is forwarded to player and is read out, and Decoding plays.Further, access internet and obtain the video data of correlation, while the video data of acquisition is stored in one In individual temporary folder, this file is referred to as local cache file.By the way that video data is stored in local cache, Ke Yijia Fast access speed, that is, this partial data can in local cache directly invoke out, without passing through net every time Network downloads from a server video data.
In the present embodiment, when reading instruction being present, first searching in local cache file corresponded to the presence or absence of request first Buffered video data, rather than first to server request data, can effectively reduce user uses flow, avoids occupancy volume Outer network bandwidth, while reduce the response time to be played such as user.
Step S23, if in the presence of by corresponding video data decoding to play buffer, for being read for playing.
In the present embodiment, the mode for reading buffered video data is comprised at least according to the reading of the order of data flow.Data flow (data stream) represents the digitally encoded signal sequence of the information used in transmission, be the order that provides in advance to It is read a sequence of data.The video data cached is usually coded data, it is necessary to further carry out decoding ability Video content is enough played, for example is decoded as yuv data, wherein YUV is then according to brightness, and the principle of aberration describes color.YUV Data are according to the corresponding different form such as the code check of image, high definition degree, such as YUV444, YUV411, YUV422, YUV420 YUV image data, are configured with specific reference to being actually needed.Further, YUV image data form a frame picture, that is, decode After obtain multiple frame of video, frame of video is also to be shown according to default frame sequential.
Step S24, if being not present, to video data corresponding to the server acquisition request, and by corresponding video Data buffer storage is into local cache.
In the present embodiment, video data piecemeal cached by way of piecemeal download, that is, by complete video counts According to some is divided into, each part is downloaded using a thread.Piecemeal downloads the network speed with currently downloading Relevant, usual multithreading is downloaded simultaneously when, transmission speed can be greatly improved, and due to the bandwidth of transmission network It is limited, bandwidth can be evenly distributed using multithreading, so that it is higher than single thread downloading rate.It is cached with next to be played regard The video data of frequency, including part piecemeal video data, you can decoding is into play buffer.When video switches, that is, redirect and broadcast Put, without waiting, while also facilitate the coherent viewing video of user, reduce the manual operation that user manually selects broadcasting so that Video playback is more intelligent.
In the present embodiment, video data is cached into local cache file and supports breakpoint to download.Breakpoint is downloaded and referred to When downloading, downloading task (file or a compressed package) is divided into several parts, each part uses a line Journey is downloaded, when occur network failure or equipment installation video application terminate suddenly and it is offline when, can be from task The part downloaded starts to continue to download unfinished part, without downloading from the beginning, and then saves the time, improves and pass Defeated speed, consumed flow is avoided, while the broadcasting of video can also be accelerated.The mode that breakpoint is downloaded is realized, can use The configuration Range fragments of http protocol, i.e. HTTP request head, concrete mode are configured according to being actually needed.Range is asked In head, the position of first character section and the position of last byte are specified.Want any portion of object obtained for Tell server Point, general format:Header (" Range ", String.format (" bytes=%d- ", offset));Or Range:bytes =[first byte pos]-[last byte pos].Because local video playback equipment can lead to when initiating and asking The size for crossing file judges lower to how many, then asks to download to server by changing Range fragments.
In the present embodiment, buffered video data be present has two kinds of situations, when one kind is not to server acquisition request data It is already present in local cache file, reading can be directly invoked;Another kind is to server acquisition request data, there is part Piecemeal video data is cached into local cache file, and then called is read, that is to say, that content is played when data cached, User needs not wait for whole data total caching and got off and can just see, so as to reduce the time to be played such as user.Specifically, when When switching another video, and the video data of the video is there are in local cache file, it can directly invoke and read and decode Play, without performing to steps such as server request downloads.
It is further alternative, in another embodiment of video playback processing method of the present invention, in above-described embodiment step S21, if satisfied, after then sending the reading instruction of next video, video playback processing method also includes:
1st, the video file information responded according to server, determines the cut point and piecemeal size of video data, and will regard Frequency evidence cuts into multiple piecemeal video datas, wherein, video file information comprises at least video link, frame list;
2nd, send the download request of multiple piecemeal video datas respectively to server, and download caching to local cache file In.
In the present embodiment, server receives the request of video playback apparatus transmission, and respond request, by corresponding to request Video file is sent to video playback apparatus.Video file includes the content such as video file information, substantial amounts of video data.And Video file information comprises at least video link, frame list, in addition to the type of video file, bit rate, wide height, duration, code Rate, coded format, Key Frames List, and the information such as corresponding time stamp and position hereof.By analyzing video text Part information, obtains video link, you can obtains related data from video link;Video type, bit rate etc. can also be obtained Data message, specifically, one or more combinations that can be in information, to determine the cut point of video data and piecemeal Size, for example according to Key Frames List, or size of data and duration, the cut point and piecemeal size of video data are determined, The original position and length of video data to be downloaded are namely redistributed, so as to which video data is cut into multiple piecemeal videos Data.Frame list can be used to index, and be arranged (which position forward direction image i.e. nearest from present image comes) according to descending.Such as Data cutting is stored in several box by mp4 with specific algorithm, and each box has type and length, can understand box For a data object block.Another box can also be included in box.
It is further alternative, in another embodiment of video playback processing method of the present invention, multiple piecemeals are sent respectively and are regarded The download request of frequency evidence, that is, divide multithreading to download, download and complete when all piecemeal video datas, you can as complete Video data.Generally divide multithreading to download, thus before caching is downloaded, also generate piecemeal download policy, based on policy download point Block video data.The piecemeal video data of download can be played device and normally read broadcasting, that is, connect video playback picture Pass through smooth, specifically, can divide multiple piecemeal video datas by sequential video frame, download priority and the order of division It is consistent.For example may make up the picture of 5 seconds before video and first download caching, that is, realize and played in caching.
Reference picture 4, Fig. 4 are the schematic flow sheet of another embodiment in video playback processing method of the present invention.
In the present embodiment, video playback processing method also includes:
Step S101, the broadcast state of current video is detected, wherein, broadcast state comprises at least and plays, suspends and broadcast Put, terminate any one of broadcasting;
In the present embodiment, video is from being played to the state of end, including plays, suspends, stops, terminating.Broadcast Put the dynamic menu for namely showing video, pause is to show the tableaux of video, stopping and terminate all to be that display video closes Close.Wherein, stopping is not play to stop playing, and it is that video playback finishes stopping broadcasting terminating.
Step S201, when detecting that current video pause plays or terminates to play, current playing progress rate is recorded, for During for playing same video again, the progress position of record is positioned as the original position of video playback.
In the present embodiment, determine that the mode of playing progress rate is unlimited, can be the broadcasting that video is determined according to arrow of time Progress, which position can also be in determine according to frame of video picture, be configured with specific reference to being actually needed.Recording played is entered Degree, user are playing same video next time, it is possible to since being seen the position that the last time is seen, rather than again from the beginning Start to see, improve the perception experience of user.
Step S301, when detecting that current video plays, judge whether the video data of a upper video caches Completely;If it is not, then continue to cache the video data of a video.
In the present embodiment, for example user has played tri- videos of A, B, C successively, currently playing C videos, specifically, B videos User is not played switching to C videos and watched, in the case that C videos are deposited when broadcasting, processor, which also performs, judges that B is regarded Whether the video data of frequency caches completely.It should be noted that because B videos do not play, thus two kinds of situations, i.e. B be present The video data caching of video is complete or imperfect.When the video data caching of B videos is imperfect, and it is switched to C videos and broadcasts Put, B videos stop playing, but do not stop data and continue to cache.When user's selection again switches to B video-sees, due to this Ground video data is complete, can directly invoke broadcasting, solves video cardton or delay phenomenon, improves the perception experience of user.Enter one Step ground, any video that a current upper video played before can also be.It should be noted that limited in network speed Under the conditions of, network bandwidth preferentially distributes to current video, and to be played in caching, next distributes to next video to be played Or current previous video.For example band preference distributes to current C video datas caching, then to a upper B video data.
Further, in order to aid in understanding video playback processing method of the present invention, there is situations below in the present embodiment:1) when Preceding broadcasting C videos, then deposit to C videos when broadcasting.2) B videos are switched to by C videos, but B video datas continue to cache, until Data are complete.After the completion of B video datas caching, user's selection plays again can directly read calling data, without again It is secondary to server request data.3) currently playing C videos, anticipation are next to be played for D videos, buffered in advance D video counts According to, when user selection be switched to D videos when can respond broadcasting at once, that is, read the D video datas of caching.
Reference picture 5, Fig. 5 are the schematic flow sheet of the preferred embodiment of video playback processing method one of the present invention.
In order to aid in understanding video playback processing method of the present invention, video playback processing method one is provided herein and preferably implemented Example, video playback processing method include:
1st, when playing video, detect on the display screen of current video playback equipment with the presence or absence of the slip behaviour of video switching Make, continue if existing, if the monitoring operation that the 1st step of continuation is performed in the absence of if;
2nd, determine currently to meet preparatory condition, send the reading instruction of next video;
3rd, read instruction based on described, search the video data in the next video beginning preset time whether there is in In local cache, continue if existing, the 5th step is jumped to if being not present;
If the 4th, in the presence of by corresponding video data decoding to play buffer, and jumping to the 8th step;
If the 5, being not present, to video data corresponding to the server acquisition request;
6th, the video file information responded according to server, determines the cut point and piecemeal size of video data, and will regard Frequency evidence cuts into multiple piecemeal video datas;
7th, send the download request of multiple piecemeal video datas respectively to server, and download caching to local cache file In;
8th, when receiving Switch Video instruction, the video data of reading is played.
9th, the broadcast state of current video is detected, wherein, broadcast state, which comprises at least, to be played, suspends broadcasting, terminates Any one of play;
10th, when detecting that current video plays, judge whether the video data of a upper video caches completely;
11st, if it is not, then continuing to cache the video data of a video;
Because a upper video does not play, thus two kinds of situations be present, i.e., the video data of a upper video has cached It is whole or imperfect.When the video data caching of a upper video is imperfect, and is switched to another video, a upper video Stop playing, but do not stop data and continue to cache.
In the present embodiment, realize and deposited when broadcasting, and when user's selection switches back into the video content played before, without Again to server ask video data can quick response play, save user using flow and etc. the time to be played, Effectively video is avoided interim card or the phenomenon of delay occur.And when user's selection again switches to a upper video-see, due to Local video data is complete, can directly invoke broadcasting, solves video cardton or delay phenomenon, improves the perception experience of user.
Further, to achieve the above object, the present invention also provides a kind of play system, play system include server and Any video playback apparatus in some above-described embodiments.Both are attached by network.Server can be with more video playbacks Equipment connects.Video playback apparatus sends request to server, and server receives the request of video playback apparatus, and carries out Relevant treatment, result is returned into video playback apparatus, complete interactive process.In the present embodiment, server is that have Data storage, calculation process, and the equipment for responding video playback apparatus request function can be carried out.Service implement body can be stream matchmaker Body server, there is provided various video resources.
Further alternative, to achieve the above object, the present invention also provides a kind of computer-readable recording medium, in this reality Apply and video playback processing routine is stored with the computer-readable recording medium proposed in example, including data cached, decoding data, Play video etc..The video playback processing routine of storage can be read out by the processor, understand and perform, any of the above-described so as to realize The step of video playback processing method in video playback processing method embodiment.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those key elements, and And also include the other element being not expressly set out, or also include for this process, method, article or device 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 Other identical element also be present in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
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.Based on such understanding, 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 a readable storage medium In matter (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal (can be mobile phone, computer, service Device, air conditioner, or network equipment etc.) method that performs each embodiment of the present invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot Form, every equivalent structure made using description of the invention and accompanying drawing content or equivalent flow conversion, or directly or indirectly Other related technical areas are used in, these are belonged within the protection of the present invention.
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 The 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. a kind of video playback processing method, it is characterised in that the video playback processing method includes:
When playing video, whether detection currently meets preparatory condition;
If satisfied, the reading instruction of next video is then sent, for reading next video beginning from server or local cache Video data in preset time;
When receiving Switch Video instruction, the video data of reading is played.
2. video playback processing method as claimed in claim 1, it is characterised in that described when playing video, detection is current Whether meet that preparatory condition includes:
When playing video, detect on the display screen of current video playback equipment with the presence or absence of the slide of video switching;
If in the presence of, it is determined that currently meet preparatory condition, and when the slide generates, trigger described read and instruct.
3. video playback processing method as claimed in claim 1, it is characterised in that described when playing video, detection is current Whether meet that preparatory condition includes:
When playing video, it is default to judge whether the time difference between current video play time and end time point is less than Time threshold;
If, it is determined that currently meet preparatory condition.
4. video playback processing method as claimed in claim 1, it is characterised in that described if satisfied, then sending next video Reading instruction, include for reading the video data in next video beginning preset time from server or local cache:
If satisfied, then send the reading instruction of next video;
Instruction is read based on described, the video data searched in next video beginning preset time whether there is in locally slow In depositing;
If in the presence of by corresponding video data decoding to play buffer, for being read for playing;
If being not present, cached to video data corresponding to the server acquisition request, and by corresponding video data to this In ground caching.
5. the video playback processing method as described in claim 1 or 4, it is characterised in that described if satisfied, then sending next After the reading instruction of video, the video playback processing method also includes:
The video file information responded according to the server, the cut point and piecemeal size of the video data are determined, and will The video data cuts into multiple piecemeal video datas, wherein, the video file information comprises at least video link, frame arranges Table;
Send the download request of the multiple piecemeal video data respectively to the server, and download caching to local cache In.
6. video playback processing method as claimed in claim 5, it is characterised in that delay in caching to the local of downloading Before depositing, the video playback processing method also includes:
Piecemeal download policy is generated, judges whether the multiple piecemeal video data based on the policy download can normally read Play, if can be to perform the strategy, otherwise regenerate new download policy.
7. video playback processing method as claimed in claim 1, it is characterised in that the video playback processing method is also wrapped Include:
When detecting that current video plays, judge whether the video data of a upper video caches completely;If it is not, then after The video data of the continuous upper video of caching.
8. video playback processing method as claimed in claim 1, it is characterised in that the video playback processing method is also wrapped Include:
If being unsatisfactory for preparatory condition, Switch Video instruction is generated at the end of current video plays, for from server or originally The video data of next video is read in ground caching.
9. a kind of video playback apparatus, it is characterised in that the video playback apparatus includes:Memory, processor and it is stored in On the memory and the video playback processing routine that can run on the processor, the video playback processing routine is by institute The step of video playback processing method as any one of claim 1 to 8 being realized when stating computing device.
10. a kind of computer-readable recording medium, it is characterised in that be stored with video on the computer-readable recording medium and broadcast Processing routine is put, is realized when the video playback processing routine is executed by processor as any one of claim 1 to 8 The step of video playback processing method.
CN201710829707.7A 2017-09-13 2017-09-13 Video playing processing method, equipment and computer readable storage medium Active CN107547940B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710829707.7A CN107547940B (en) 2017-09-13 2017-09-13 Video playing processing method, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710829707.7A CN107547940B (en) 2017-09-13 2017-09-13 Video playing processing method, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107547940A true CN107547940A (en) 2018-01-05
CN107547940B CN107547940B (en) 2019-11-12

Family

ID=60963214

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710829707.7A Active CN107547940B (en) 2017-09-13 2017-09-13 Video playing processing method, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107547940B (en)

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108260014A (en) * 2018-04-12 2018-07-06 腾讯科技(上海)有限公司 A kind of video broadcasting method and terminal and storage medium
CN108377409A (en) * 2018-03-05 2018-08-07 广东欧珀移动通信有限公司 A kind of seamless play method, terminal device and the storage medium of multimedia file
CN108462901A (en) * 2018-03-29 2018-08-28 上海七牛信息技术有限公司 A kind of media file playing method and device
CN108600318A (en) * 2018-03-23 2018-09-28 苏州科达科技股份有限公司 Monitor video transfers method, apparatus and server
CN109756785A (en) * 2019-01-16 2019-05-14 上海哔哩哔哩科技有限公司 Video switches playback method, device and storage medium
CN110177309A (en) * 2019-05-31 2019-08-27 北京大米科技有限公司 Method, apparatus, electronic equipment and the medium of video data storage
CN110430461A (en) * 2019-08-28 2019-11-08 腾讯科技(深圳)有限公司 A kind of method, apparatus and video playback apparatus controlling video playing
CN110460810A (en) * 2019-07-30 2019-11-15 视联动力信息技术股份有限公司 A kind of monitoring resource transfer method and device
CN110572685A (en) * 2019-09-18 2019-12-13 中影巴可(北京)电子有限公司 5G storage hard disk and digital movie standby playing method and system
WO2020029935A1 (en) * 2018-08-06 2020-02-13 南京中兴软件有限责任公司 Video live-broadcast processing method, apparatus and terminal
CN111294641A (en) * 2020-03-10 2020-06-16 北京奇艺世纪科技有限公司 Video playing method, system, device, electronic equipment and readable storage medium
CN111552454A (en) * 2020-04-29 2020-08-18 广州酷狗计算机科技有限公司 Audio playing method, device, terminal and storage medium
CN111935507A (en) * 2020-08-19 2020-11-13 上海连尚网络科技有限公司 Video switching method and device
CN112423071A (en) * 2019-08-22 2021-02-26 青岛海信传媒网络技术有限公司 Video playing method, device, equipment and storage medium
CN112437352A (en) * 2020-11-11 2021-03-02 连尚(新昌)网络科技有限公司 Video merging and playing method and device
CN112954445A (en) * 2021-03-16 2021-06-11 深圳市迅雷网络技术有限公司 Streaming media file playing method and device, computer equipment and storage medium
CN113301351A (en) * 2020-07-03 2021-08-24 阿里巴巴集团控股有限公司 Video playing method and device, electronic equipment and computer storage medium
CN114040215A (en) * 2021-10-22 2022-02-11 云南腾云信息产业有限公司 Live stream switching method and device, computer equipment and storage medium
CN114051152A (en) * 2022-01-17 2022-02-15 飞狐信息技术(天津)有限公司 Video playing method and device, storage medium and electronic equipment
CN114125516A (en) * 2020-08-26 2022-03-01 Oppo(重庆)智能科技有限公司 Video playing method, wearable device and storage medium
CN115022721A (en) * 2022-05-31 2022-09-06 北京达佳互联信息技术有限公司 Content display method and device, electronic equipment and storage medium
CN115174680A (en) * 2022-07-05 2022-10-11 广州文远知行科技有限公司 Visual data playing method, device, system, equipment and readable storage medium
CN115499697A (en) * 2021-06-17 2022-12-20 福建省天奕网络科技有限公司 Video carousel switching method and terminal
WO2023284437A1 (en) * 2021-07-13 2023-01-19 北京字跳网络技术有限公司 Media file processing method and apparatus, device, readable storage medium, and product

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102523416A (en) * 2011-11-21 2012-06-27 苏州希图视鼎微电子有限公司 Seamless playing method for multiple segments of media streams
CN102843605A (en) * 2012-08-22 2012-12-26 Tcl集团股份有限公司 Video play method and device thereof
CN102905188A (en) * 2012-11-01 2013-01-30 北京奇艺世纪科技有限公司 Video code stream switching method and device
CN103501462A (en) * 2013-09-26 2014-01-08 天脉聚源(北京)传媒科技有限公司 Video switching method and device
CN103813192A (en) * 2012-11-02 2014-05-21 宏达国际电子股份有限公司 Method, apparatus and computer program product for switching television channels
CN104219579A (en) * 2014-08-20 2014-12-17 北京奇艺世纪科技有限公司 Video switching method and video switching device
CN104378685A (en) * 2014-11-17 2015-02-25 天脉聚源(北京)传媒科技有限公司 Video switching method and device
EP2993911A1 (en) * 2014-09-04 2016-03-09 Thomson Licensing Method and client terminal for receiving a multimedia content split into at least two successive segments, and corresponding computer program product and computer-readable medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102523416A (en) * 2011-11-21 2012-06-27 苏州希图视鼎微电子有限公司 Seamless playing method for multiple segments of media streams
CN102843605A (en) * 2012-08-22 2012-12-26 Tcl集团股份有限公司 Video play method and device thereof
CN102905188A (en) * 2012-11-01 2013-01-30 北京奇艺世纪科技有限公司 Video code stream switching method and device
CN103813192A (en) * 2012-11-02 2014-05-21 宏达国际电子股份有限公司 Method, apparatus and computer program product for switching television channels
CN103501462A (en) * 2013-09-26 2014-01-08 天脉聚源(北京)传媒科技有限公司 Video switching method and device
CN104219579A (en) * 2014-08-20 2014-12-17 北京奇艺世纪科技有限公司 Video switching method and video switching device
EP2993911A1 (en) * 2014-09-04 2016-03-09 Thomson Licensing Method and client terminal for receiving a multimedia content split into at least two successive segments, and corresponding computer program product and computer-readable medium
CN104378685A (en) * 2014-11-17 2015-02-25 天脉聚源(北京)传媒科技有限公司 Video switching method and device

Cited By (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108377409A (en) * 2018-03-05 2018-08-07 广东欧珀移动通信有限公司 A kind of seamless play method, terminal device and the storage medium of multimedia file
CN108600318B (en) * 2018-03-23 2021-12-28 苏州科达科技股份有限公司 Monitoring video calling method and device and server
CN108600318A (en) * 2018-03-23 2018-09-28 苏州科达科技股份有限公司 Monitor video transfers method, apparatus and server
CN108462901A (en) * 2018-03-29 2018-08-28 上海七牛信息技术有限公司 A kind of media file playing method and device
CN108260014A (en) * 2018-04-12 2018-07-06 腾讯科技(上海)有限公司 A kind of video broadcasting method and terminal and storage medium
WO2020029935A1 (en) * 2018-08-06 2020-02-13 南京中兴软件有限责任公司 Video live-broadcast processing method, apparatus and terminal
CN109756785A (en) * 2019-01-16 2019-05-14 上海哔哩哔哩科技有限公司 Video switches playback method, device and storage medium
CN110177309A (en) * 2019-05-31 2019-08-27 北京大米科技有限公司 Method, apparatus, electronic equipment and the medium of video data storage
CN110460810A (en) * 2019-07-30 2019-11-15 视联动力信息技术股份有限公司 A kind of monitoring resource transfer method and device
CN110460810B (en) * 2019-07-30 2021-01-22 视联动力信息技术股份有限公司 Monitoring resource calling method and device
CN112423071A (en) * 2019-08-22 2021-02-26 青岛海信传媒网络技术有限公司 Video playing method, device, equipment and storage medium
CN110430461A (en) * 2019-08-28 2019-11-08 腾讯科技(深圳)有限公司 A kind of method, apparatus and video playback apparatus controlling video playing
CN110572685A (en) * 2019-09-18 2019-12-13 中影巴可(北京)电子有限公司 5G storage hard disk and digital movie standby playing method and system
CN110572685B (en) * 2019-09-18 2021-07-13 中影巴可(北京)电子有限公司 5G storage hard disk and digital movie standby playing method and system
CN111294641A (en) * 2020-03-10 2020-06-16 北京奇艺世纪科技有限公司 Video playing method, system, device, electronic equipment and readable storage medium
CN111552454A (en) * 2020-04-29 2020-08-18 广州酷狗计算机科技有限公司 Audio playing method, device, terminal and storage medium
CN111552454B (en) * 2020-04-29 2023-10-27 广州酷狗计算机科技有限公司 Audio playing method, device, terminal and storage medium
CN113301351A (en) * 2020-07-03 2021-08-24 阿里巴巴集团控股有限公司 Video playing method and device, electronic equipment and computer storage medium
CN113301351B (en) * 2020-07-03 2023-02-24 阿里巴巴集团控股有限公司 Video playing method and device, electronic equipment and computer storage medium
CN111935507A (en) * 2020-08-19 2020-11-13 上海连尚网络科技有限公司 Video switching method and device
CN114125516A (en) * 2020-08-26 2022-03-01 Oppo(重庆)智能科技有限公司 Video playing method, wearable device and storage medium
CN112437352A (en) * 2020-11-11 2021-03-02 连尚(新昌)网络科技有限公司 Video merging and playing method and device
CN112954445A (en) * 2021-03-16 2021-06-11 深圳市迅雷网络技术有限公司 Streaming media file playing method and device, computer equipment and storage medium
CN115499697A (en) * 2021-06-17 2022-12-20 福建省天奕网络科技有限公司 Video carousel switching method and terminal
CN115499697B (en) * 2021-06-17 2023-07-07 福建省天奕网络科技有限公司 Video carousel switching method and terminal
WO2023284437A1 (en) * 2021-07-13 2023-01-19 北京字跳网络技术有限公司 Media file processing method and apparatus, device, readable storage medium, and product
CN114040215A (en) * 2021-10-22 2022-02-11 云南腾云信息产业有限公司 Live stream switching method and device, computer equipment and storage medium
CN114051152A (en) * 2022-01-17 2022-02-15 飞狐信息技术(天津)有限公司 Video playing method and device, storage medium and electronic equipment
CN115022721A (en) * 2022-05-31 2022-09-06 北京达佳互联信息技术有限公司 Content display method and device, electronic equipment and storage medium
CN115022721B (en) * 2022-05-31 2023-11-21 北京达佳互联信息技术有限公司 Content display method and device, electronic equipment and storage medium
CN115174680A (en) * 2022-07-05 2022-10-11 广州文远知行科技有限公司 Visual data playing method, device, system, equipment and readable storage medium
CN115174680B (en) * 2022-07-05 2023-07-25 广州文远知行科技有限公司 Visual data playing method, device, system, equipment and readable storage medium

Also Published As

Publication number Publication date
CN107547940B (en) 2019-11-12

Similar Documents

Publication Publication Date Title
CN107547940A (en) Video playback processing method, equipment and computer-readable recording medium
US7860996B2 (en) Media streaming with seamless ad insertion
US20140286316A1 (en) Apparatus and method for controlling selective use of heterogeneous networks according to unprocessed state of data being streamed
US20040025190A1 (en) System and method for video-on -demand based gaming
CN107071503A (en) The method of net cast, device and live connect streaming server
CN108174280B (en) Audio and video online playing method and system
CN112399190B (en) Audio and video data acquisition method and device
WO2013173554A1 (en) Enforcement of trick-play disablement in adaptive bit rate video content delivery
CN106851427A (en) A kind of transfer control method and device of live video of playing
US11917271B2 (en) Techniques for advancing playback of interactive media titles in response to user selections
US20130110980A1 (en) System and method for predicitive trick play using adaptive video streaming
JP5140952B2 (en) Content distribution system, content distribution server, content reproduction terminal, program, and content distribution method
CN107809647A (en) Code check switching method, device and the storage medium of video playback
CN107318052A (en) Player method, television set and the storage medium of television video
CN106612462A (en) Fast-forward and fast-rewind processing method and terminal
KR101555792B1 (en) Communication apparatus for receiving multimedia chunk, control method thereof, and recording medium for recording program for executing the control method
JP4938384B2 (en) Moving image data distribution system, moving image data providing method, moving image data distribution program, moving image data providing program, and computer-readable recording medium on which those programs are recorded
CN114244843A (en) Streaming media downloading method, electronic equipment and storage medium
US20160173551A1 (en) System and method for session mobility for adaptive bitrate streaming
CN111064698B (en) Method and device for playing multimedia stream data
JP2006339980A (en) Image reproducer
KR101499194B1 (en) Method for Adaptive Streaming
KR101947186B1 (en) Content reproduction method and system
US11647063B2 (en) Method and apparatus for presentation of video content
CN108156515A (en) Video broadcasting method, smart television and computer readable storage medium

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
CB02 Change of applicant information

Address after: 510000 Guangzhou City, Guangzhou, Guangdong, Whampoa Avenue, No. 315, self - made 1-17

Applicant after: Guangzhou KuGou Networks Co., Ltd.

Address before: 510000 Guangzhou City, Guangzhou, Guangdong Province, Tianhe District Ke Yun Road, No. 16 self compiled 2 rooms (the residence limit for this residence)

Applicant before: Guangzhou KuGou Networks Co., Ltd.

GR01 Patent grant
GR01 Patent grant